]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
added qw compatible "rcon" support (allows a client who knows the server's rcon_passw...
[xonotic/darkplaces.git] / sv_user.c
index d2fafa04f64696b3541a6b41d7693d948262040a..cddaf7f708bf359ef55b4fc97a567c54defc0beb 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -604,10 +604,13 @@ SV_ReadClientMove
 */
 qboolean SV_ReadClientMove (void)
 {
+       qboolean kickplayer = false;
        int i;
        double oldmovetime;
        usercmd_t *move = &host_client->cmd;
 
+       SV_VM_Begin();
+
        oldmovetime = move->time;
 
        // if this move has been applied, clear it, and start accumulating new data
@@ -694,7 +697,7 @@ qboolean SV_ReadClientMove (void)
                // this fixes the timestamp to prevent a speed cheat from working
                move->time = sv.time;
                // but we kick the player for good measure
-               return true;
+               kickplayer = true;
        }
        else
        {
@@ -711,7 +714,8 @@ qboolean SV_ReadClientMove (void)
                        prog->globals.server->frametime = oldframetime;
                }
        }
-       return false;
+       SV_VM_End();
+       return kickplayer;
 }
 
 void SV_ApplyClientMove (void)