diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-22 12:01:20 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-22 12:01:20 +0000 |
| commit | 2231cd8c39b553e1ddf4bf1388083c618b708470 (patch) | |
| tree | 819646eef860ee3215d411c33da8214620c19536 /src/game/server/game_server.cpp | |
| parent | bcb97cfdf631edec486e8f56349a275ddb706392 (diff) | |
| download | zcatch-2231cd8c39b553e1ddf4bf1388083c618b708470.tar.gz zcatch-2231cd8c39b553e1ddf4bf1388083c618b708470.zip | |
various small changes
Diffstat (limited to 'src/game/server/game_server.cpp')
| -rw-r--r-- | src/game/server/game_server.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
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); |