diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-10-28 17:54:28 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-10-28 17:54:28 +0000 |
| commit | 708954e853925dfbfbfb583048d1a9f43d9a5f3a (patch) | |
| tree | 3d2c7a257ac022f256fd9067bf8248aa1bc441e9 /src/game/server | |
| parent | 5f8c4522fd0c78f517f127e3a1afe1201b9bf996 (diff) | |
| download | zcatch-708954e853925dfbfbfb583048d1a9f43d9a5f3a.tar.gz zcatch-708954e853925dfbfbfb583048d1a9f43d9a5f3a.zip | |
fixed minor glitching
Diffstat (limited to 'src/game/server')
| -rw-r--r-- | src/game/server/game_server.cpp | 11 |
1 files 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()) { |