From 4c987519b073f159ea7ab9273a6b30799fd1af36 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 13 Jan 2008 11:43:43 +0000 Subject: removed some old code --- src/game/server/gs_server.cpp | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'src/game/server/gs_server.cpp') 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); } } -- cgit 1.4.1