aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bullet.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bullet.c b/bullet.c
index b3182ea..a205e4f 100644
--- a/bullet.c
+++ b/bullet.c
@@ -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);