about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-09 13:19:43 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-09 13:19:43 +0000
commit6abf334cedc8acc433ea291fd4104a219340c422 (patch)
treeb74656ed382faf7973c150e8aafb8d310fcdb8d6 /src/game/client
parentdc8272bc1d9dc681e72adc2aa992ed7ac4320b85 (diff)
downloadzcatch-6abf334cedc8acc433ea291fd4104a219340c422.tar.gz
zcatch-6abf334cedc8acc433ea291fd4104a219340c422.zip
fixed hand rendering bug
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/game_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index 0c619c27..29a4cbe9 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -1518,9 +1518,9 @@ static void render_player(
 						offsety = -offsety;
 
 					vec2 diry(-dir.y,dir.x);
-					p += dir * data->weapons[iw].muzzleoffsetx + diry * offsety;
+					vec2 muzzlepos = p + dir * data->weapons[iw].muzzleoffsetx + diry * offsety;
 
-					draw_sprite(p.x, p.y, data->weapons[iw].visual_size);
+					draw_sprite(muzzlepos.x, muzzlepos.y, data->weapons[iw].visual_size);
 					/*gfx_setcolor(1.0f,1.0f,1.0f,alpha);
 					vec2 diry(-dir.y,dir.x);
 					p += dir * muzzleparams[player.weapon].offsetx + diry * offsety;