X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fconfigfile.c;h=fc2c771f42d952a3c5c5721d8dd533153ee264f1;hb=4266e8b48fc5481ce24c0bf02fdd517217f8390a;hp=14464396dc7e93ff6af93396d8a0faee0e2f78bf;hpb=bfd1888150ed5345fb4552ccaa8f304ae4819980;p=plomrogue diff --git a/src/server/configfile.c b/src/server/configfile.c index 1446439..fc2c771 100644 --- a/src/server/configfile.c +++ b/src/server/configfile.c @@ -93,9 +93,6 @@ static void test_corpse_ids(); /* set_members() helper specifically for editing world.map members. */ static uint8_t set_map_members(char * token0,char * token1,uint8_t * map_flags); -/* If "token0" matches "comparand", set world.enemy_fov to "token1". */ -static uint8_t set_enemy_fov(char * token0, char * comparand, char * token1); - /* If "token0" matches "comparand", set world.player_type to int in "token1". */ static uint8_t set_player_type(char * token0, char * comparand, char * token1); @@ -124,7 +121,6 @@ static void tokens_into_entries(char * token0, char * token1) char * str_obj = "OBJECT"; char * str_map = "MAP_TYPE"; char * str_player = "PLAYER_TYPE"; - char * str_enemyfov = "ENEMY_FOV"; static struct MapObjAct ** moa_p_p = &world.map_obj_acts; static struct MapObjDef ** mod_p_p = &world.map_obj_defs; static uint8_t action_flags = READY_ACT; @@ -133,8 +129,7 @@ static void tokens_into_entries(char * token0, char * token1) static struct EntryHead * moa = NULL; static struct EntryHead * mod = NULL; if (!token0 || !strcmp(token0, str_act) || !strcmp(token0, str_obj) - || !strcmp(token0, str_map) || !strcmp(token0, str_player) - || !strcmp(token0, str_enemyfov)) + || !strcmp(token0, str_map) || !strcmp(token0, str_player)) { parse_and_reduce_to_readyflag(&action_flags, READY_ACT); parse_and_reduce_to_readyflag(&object_flags, READY_OBJ); @@ -157,7 +152,6 @@ static void tokens_into_entries(char * token0, char * token1) (struct EntryHead *) world.map_obj_defs) || start_map(token0, str_map, &map_flags) || set_player_type(token0, str_player, token1) - || set_enemy_fov(token0, str_enemyfov, token1) || set_members(token0, token1, &object_flags, &action_flags, &map_flags, (struct MapObjDef *)mod, (struct MapObjAct *) moa))) @@ -261,21 +255,6 @@ static uint8_t set_map_members(char * token0, char * token1,uint8_t * map_flags) -static uint8_t set_enemy_fov(char * token0, char * comparand, char * token1) -{ - if (strcmp(token0, comparand)) - { - return 0; - } - parsetest_int(token1, '8'); - int test = atoi(token1) > 1; - err_line(test, "Value must be 0 or 1."); - world.enemy_fov = atoi(token1); - return 1; -} - - - static uint8_t set_player_type(char * token0, char * comparand, char * token1) { if (strcmp(token0, comparand))