DEADSOFTWARE

Испавлено возрождение при нажатии кнопки
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 4 Apr 2017 19:23:32 +0000 (22:23 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 4 Apr 2017 19:23:32 +0000 (22:23 +0300)
server.c

index e28b30203679bdde9c28ac957b2a8f487e9570cc..e60ac264fdffb1ac32881cf4bd0812542baba512 100644 (file)
--- a/server.c
+++ b/server.c
@@ -75,9 +75,12 @@ static void sv_move_player(int id, ProtocolMessage m) {
        assert(id >= 0);
        assert(client[id].connected);
 
-       if(!g_player[id].live)
+       if(!g_player[id].live && m.cl.does.code.bits)
                sv_spawn_player(id);
 
+       if(!g_player[id].live)
+               return;
+
        g_player_does(id, m.cl.does.code);
 }