diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-13 11:43:43 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-13 11:43:43 +0000 |
| commit | 4c987519b073f159ea7ab9273a6b30799fd1af36 (patch) | |
| tree | 2056acd477f4cf8b4373753140af3cc471c4faf4 /src/game/server/gs_server.cpp | |
| parent | ea245b969d1864441b41d25c7631beccfb39d874 (diff) | |
| download | zcatch-4c987519b073f159ea7ab9273a6b30799fd1af36.tar.gz zcatch-4c987519b073f159ea7ab9273a6b30799fd1af36.zip | |
removed some old code
Diffstat (limited to 'src/game/server/gs_server.cpp')
| -rw-r--r-- | src/game/server/gs_server.cpp | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/game/server/gs_server.cpp b/src/game/server/gs_server.cpp index 98a99804..d4538ba1 100644 --- a/src/game/server/gs_server.cpp +++ b/src/game/server/gs_server.cpp @@ -2081,41 +2081,8 @@ void mods_init() for(int x = 0; x < tmap->width; x++) { int index = tiles[y*tmap->width+x].index - ENTITY_OFFSET; - int type = -1; - int subtype = 0; vec2 pos(x*32.0f+16.0f, y*32.0f+16.0f); - - if(index == ENTITY_SPAWN) - spawn_points[0][num_spawn_points[0]++] = pos; - else if(index == ENTITY_SPAWN_RED) - spawn_points[1][num_spawn_points[1]++] = pos; - else if(index == ENTITY_SPAWN_BLUE) - spawn_points[2][num_spawn_points[2]++] = pos; - else if(index == ENTITY_ARMOR_1) - type = POWERUP_ARMOR; - else if(index == ENTITY_HEALTH_1) - type = POWERUP_HEALTH; - else if(index == ENTITY_WEAPON_SHOTGUN) - { - type = POWERUP_WEAPON; - subtype = WEAPON_SHOTGUN; - } - else if(index == ENTITY_WEAPON_ROCKET) - { - type = POWERUP_WEAPON; - subtype = WEAPON_ROCKET; - } - else if(index == ENTITY_POWERUP_NINJA) - { - type = POWERUP_NINJA; - subtype = WEAPON_NINJA; - } - - if(type != -1) - { - powerup *ppower = new powerup(type, subtype); - ppower->pos = pos; - } + gameobj->on_entity(index, pos); } } |