diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 13:51:55 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 13:51:55 +0000 |
| commit | 808959328acbed8467fb8feb25341bb924dfd529 (patch) | |
| tree | a15b11a84518c7eee6676240171eed2a4f8c19b5 /src/game/client | |
| parent | 633612409700d56ac98c2a9448e79bf6701b508f (diff) | |
| download | zcatch-808959328acbed8467fb8feb25341bb924dfd529.tar.gz zcatch-808959328acbed8467fb8feb25341bb924dfd529.zip | |
fixed the shotgun spread
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/game_client.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index 25a9fdc4..32a98cc5 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -939,6 +939,9 @@ static void render_projectile(const obj_projectile *prev, const obj_projectile * // get positions float gravity = -400; + if(current->type != WEAPON_ROCKET) + gravity = -100; + float ct = (client_tick()-current->start_tick)/(float)SERVER_TICK_SPEED + client_intratick()*1/(float)SERVER_TICK_SPEED; vec2 startpos(current->x, current->y); vec2 startvel(current->vx, current->vy); |