diff options
author | quou <quou@disroot.org> | 2023-05-07 12:56:44 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 12:56:50 +1000 |
commit | 1867e71ac2870f904e0856fd3b093abed6e8a58b (patch) | |
tree | ce5458702674aaa0cdb1830dabe58615039af4bb /bullet.c | |
parent | 5f341eacdf0d75a4b334969a2d8a4701d61e4d9e (diff) |
Fix a crash.
Diffstat (limited to 'bullet.c')
-rw-r--r-- | bullet.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -62,13 +62,10 @@ Entity new_player_bullet( sprid = sprite_player_bullet_down; col->w = 9 << fbits; col->h = 14 << fbits; + } else { + destroy_entity(world, e); + return -1; } -#ifdef DEBUG - else { - platform_log("Player bullets must have velocity\n"); - platform_abort(error_gameplay_error); - } -#endif init_csprite(sprite, sprid); |