summaryrefslogtreecommitdiff
path: root/src/throwables.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 13:53:19 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 13:53:19 +0100
commit61c5fb1e253f31d2faa3a0fc970ce4e18f32b205 (patch)
tree0220c5c8ad31d926c5a3223ef6ad7a341f309dd8 /src/throwables.c
parent55898db4a9cf2b5721279d665918fc0eaa02c1cc (diff)
pickup sound
Diffstat (limited to 'src/throwables.c')
-rw-r--r--src/throwables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/throwables.c b/src/throwables.c
index 2e7d957..cd8f8af 100644
--- a/src/throwables.c
+++ b/src/throwables.c
@@ -10,7 +10,7 @@ void throw_throwable(platform_window* window, u32 id, throwable_type type, float
log_info("User with unknown id throwing stuff");
}
- throwable t = {.active = true, .state = THROWABLE_FLYING, .alive_time = 0.0f, .type = type, .direction = (vec3f){.x = dirx, .y = diry, .z = -0.2f},
+ throwable t = {.active = true, .state = THROWABLE_FLYING, .alive_time = 0.0f, .type = type, .direction = (vec3f){.x = dirx*1.5f, .y = diry*1.5f, .z = -0.2f},
.player_id = id, .position = (vec3f){.x = p->playerx, .y = p->playery, .z = p->height}};
t.sprite = create_sprite(img_grenade_explode, 12, 96, 96, 0.1f);