From 2231cd8c39b553e1ddf4bf1388083c618b708470 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 22 Jul 2007 12:01:20 +0000 Subject: various small changes --- src/game/server/game_server.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/game/server') diff --git a/src/game/server/game_server.cpp b/src/game/server/game_server.cpp index 6d026fb4..a1f1b72e 100644 --- a/src/game/server/game_server.cpp +++ b/src/game/server/game_server.cpp @@ -10,7 +10,7 @@ data_container *data = 0x0; using namespace baselib; // --------- DEBUG STUFF --------- -const bool debug_bots = true; +const bool debug_bots = false; // --------- PHYSICS TWEAK! -------- const float ground_control_speed = 7.0f; @@ -1691,14 +1691,18 @@ void mods_init() case ITEM_ARMOR: type = POWERUP_TYPE_ARMOR; break; + case ITEM_NINJA: type = POWERUP_TYPE_NINJA; subtype = WEAPON_NINJA; break; }; - powerup *ppower = new powerup(type, subtype); - ppower->pos = vec2(it->x, it->y); + if(type != -1) + { + powerup *ppower = new powerup(type, subtype); + ppower->pos = vec2(it->x, it->y); + } } world.insert_entity(&gameobj); -- cgit 1.4.1