diff options
| author | Alfred Eriksson <somerunce@gmail.com> | 2008-10-18 10:32:36 +0000 |
|---|---|---|
| committer | Alfred Eriksson <somerunce@gmail.com> | 2008-10-18 10:32:36 +0000 |
| commit | e858ed13109f3e2bf875c098a4c6e475402db022 (patch) | |
| tree | d9b982af58bf8be8306ff84fa81bbdefb1498201 /src/game/client/gameclient.cpp | |
| parent | 09744696bdd677d34e6ba2aac80fde1fb0df01c6 (diff) | |
| download | zcatch-e858ed13109f3e2bf875c098a4c6e475402db022.tar.gz zcatch-e858ed13109f3e2bf875c098a4c6e475402db022.zip | |
gameclient is now reset correctly
Diffstat (limited to 'src/game/client/gameclient.cpp')
| -rw-r--r-- | src/game/client/gameclient.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 4ac9c50a..a0c83366 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -430,12 +430,8 @@ void GAMECLIENT::on_message(int msgtype) void GAMECLIENT::on_statechange(int new_state, int old_state) { - // clear out the invalid pointers - mem_zero(&gameclient.snap, sizeof(gameclient.snap)); - - // first issue a reset to all - for(int i = 0; i < all.num; i++) - all.components[i]->on_reset(); + // reset everything + on_reset(); // then change the state for(int i = 0; i < all.num; i++) |