B14001 - Stinking clouds in bonesfiles
Incorporate a fix from <Someone> that resets the timestamp on stinking clouds left in bones files. This does allow the cloud's ttl to restart. Extended it to reset the player_inside flag. Then noticed that the only placed that called in_out_region was domove(). Added calls when changing levels (which causes player_inside to be set correctly if the cloud covers the location where the player starts on the bones level), teleporting, and inside hurtle_step. There are still other places that fail to call in_out_region, which others may choose to tackle. I split out the remaining stinking cloud bug reported in the same e-mail into a separate betabug. That one probably cannot be addressed without changing the level file format to track the creator.
This commit is contained in:
@@ -1638,7 +1638,7 @@ E void FDECL(update_monster_region, (struct monst *));
|
||||
E NhRegion *FDECL(visible_region_at, (XCHAR_P,XCHAR_P));
|
||||
E void FDECL(show_region, (NhRegion*, XCHAR_P, XCHAR_P));
|
||||
E void FDECL(save_regions, (int,int));
|
||||
E void FDECL(rest_regions, (int));
|
||||
E void FDECL(rest_regions, (int,BOOLEAN_P));
|
||||
E NhRegion* FDECL(create_gas_cloud, (XCHAR_P, XCHAR_P, int, int));
|
||||
|
||||
/* ### restore.c ### */
|
||||
|
||||
Reference in New Issue
Block a user