]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
beginnings of qw protocol support
[xonotic/darkplaces.git] / sv_user.c
index d2fafa04f64696b3541a6b41d7693d948262040a..966c0551366c965cbe14d2089912485f51449531 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -604,6 +604,7 @@ SV_ReadClientMove
 */
 qboolean SV_ReadClientMove (void)
 {
+       qboolean kickplayer = false;
        int i;
        double oldmovetime;
        usercmd_t *move = &host_client->cmd;
@@ -694,7 +695,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 +712,7 @@ qboolean SV_ReadClientMove (void)
                        prog->globals.server->frametime = oldframetime;
                }
        }
-       return false;
+       return kickplayer;
 }
 
 void SV_ApplyClientMove (void)