mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
gameclient is now reset correctly
This commit is contained in:
parent
09744696bd
commit
e858ed1310
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue