version 1.73 | | version 1.74 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.73 2005/04/14 19:15:27 ryo_saeba Exp $"; | | * "$Id: map.c,v 1.74 2005/07/15 13:51:49 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
delete_map(m); | | delete_map(m); |
m = load_original_map(buf, 0); | | m = load_original_map(buf, 0); |
if(m==NULL) return NULL; | | if(m==NULL) return NULL; |
(*fix_auto_apply_func)(m); /* Chests which open as default */ | | fix_auto_apply(m); /* Chests which open as default */ |
return m; | | return m; |
} | | } |
| | |
| | |
delete_map(m); | | delete_map(m); |
m = load_original_map(buf, 0); | | m = load_original_map(buf, 0); |
if(m==NULL) return NULL; | | if(m==NULL) return NULL; |
(*fix_auto_apply_func)(m); /* Chests which open as default */ | | fix_auto_apply(m); /* Chests which open as default */ |
return m; | | return m; |
} | | } |
| | |
| | |
if (!(m = load_original_map(name, (flags & MAP_PLAYER_UNIQUE)))) | | if (!(m = load_original_map(name, (flags & MAP_PLAYER_UNIQUE)))) |
return (NULL); | | return (NULL); |
| | |
(*fix_auto_apply_func)(m); /* Chests which open as default */ | | fix_auto_apply(m); /* Chests which open as default */ |
| | |
/* If a player unique map, no extra unique object file to load. | | /* If a player unique map, no extra unique object file to load. |
* if from the editor, likewise. | | * if from the editor, likewise. |
| | |
/* In case other objects press some buttons down */ | | /* In case other objects press some buttons down */ |
update_buttons(m); | | update_buttons(m); |
if (m->outdoor) | | if (m->outdoor) |
(*set_darkness_map_func)(m); | | set_darkness_map(m); |
/* run the weather over this map */ | | /* run the weather over this map */ |
(*weather_effect_func)(name); | | weather_effect(name); |
return m; | | return m; |
} | | } |
| | |
| | |
| | |
/* inform all players on the map */ | | /* inform all players on the map */ |
if (change>0) | | if (change>0) |
(info_map_func)(NDI_BLACK, m,"It becomes darker."); | | new_info_map(NDI_BLACK, m,"It becomes darker."); |
else | | else |
(info_map_func)(NDI_BLACK, m,"It becomes brighter."); | | new_info_map(NDI_BLACK, m,"It becomes brighter."); |
| | |
/* Do extra checking. since m->darkness is a unsigned value, | | /* Do extra checking. since m->darkness is a unsigned value, |
* we need to be extra careful about negative values. | | * we need to be extra careful about negative values. |