From 708954e853925dfbfbfb583048d1a9f43d9a5f3a Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 28 Oct 2007 17:54:28 +0000 Subject: fixed minor glitching --- src/game/server/game_server.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/game/server/game_server.cpp b/src/game/server/game_server.cpp index 57b3b18f..8aaa9ab2 100644 --- a/src/game/server/game_server.cpp +++ b/src/game/server/game_server.cpp @@ -1125,13 +1125,12 @@ void player::snap(int snaping_client) core.write(character); - if(snaping_client != client_id) - { - character->vx = 0; // make sure that we don't send these to clients who don't need them + // this is to make sure that players that are just standing still + // isn't sent. this is because the physics keep bouncing between + // 0-128 when just standing. + // TODO: fix the physics so this isn't needed + if(snaping_client != client_id && abs(character->vy) < 256.0f) character->vy = 0; - character->hook_dx = 0; - character->hook_dy = 0; - } if (emote_stop < server_tick()) { -- cgit 1.4.1