nhmall
d730bf2b1c
Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
2018-11-24 16:11:09 -05:00
PatR
cc5bb44a9a
fix #H7591 - migrating monsters vs full levels
...
During level change, when a monster from mydogs (monsters accompaying
hero, usually pets) couldn't be placed because the level was full, it
was set to migrate to that level (in order to get another chance to
arrive if hero left and returned). The code sequence
mon_arrive()-> mnexto()-> m_into_limbo()-> migrate_to_level()-> relmon()
tried to remove the monster from the map, but it wasn't necessarily on
the map (depending upon whether it couldn't arrive at all, or arrived
at the hero's spot and couldn't be moved out of the hero's way). The
EXTRA_SANITY_CHECKS for remove_monster() issued impossible "no monster
to remove". relmon() now checks whether monster is already off the map.
While investigating that, I discovered that pets set to re-migrate
to the same level to try again on hero's next visit didn't work at all.
migrating_mons gets processed after mydogs so moving something from
the latter to the former after arrival failure just resulted in
immediate second failure when the more general list was handled during
the hero's current arrival. And failure to arrive from migrating_mons
would kill the monster instead of scheduling another attempt.
The sanest fix for that turned out to be to have all monsters who
can't arrive be put back on the migrating_mons list to try again upon
hero's next visit. Pets still fail twice but are no longer discarded
during the second time, and now do arrive when hero leaves and comes
back provided he or she has opened up some space before leaving. If
there's still no space on the next visit, monsters who can't arrive
then are scheduled to try again on the visit after that.
Recent fix for invalid corpses becomes moot. Monsters aren't killed
during arrival failure so there are no resulting corpses to deal with.
2018-11-24 01:45:09 -08:00
Patric Mueller
531ccca7d9
Revert "Revert "Send travis notification mails to mailing list""
...
This reverts commit 8edaa021d5 .
2018-11-24 10:07:38 +01:00
nhmall
8edaa021d5
Revert "Send travis notification mails to mailing list"
...
This reverts commit d60097b286 .
2018-11-23 22:17:40 -05:00
nhmall
569a66e32e
Revert "Removed unnecessary use of static for nocreate values."
...
This reverts commit 74fc1403e3 .
2018-11-23 22:17:38 -05:00
nhmall
75a962aa78
Revert "Modified how we initialize save file info."
...
This reverts commit 44b002c9f3 .
2018-11-23 22:17:35 -05:00
nhmall
66b874dce3
Revert "Added PLAYAGAIN experimental support definition."
...
This reverts commit ea8cf6613a .
2018-11-23 22:17:33 -05:00
nhmall
d88490fa94
Revert "Revert "Modified how we initialize save file info.""
...
This reverts commit 05c9ccc035 .
2018-11-23 22:17:31 -05:00
nhmall
a1a51463c6
Revert "Added nhassert() support to tile2bmp."
...
This reverts commit a27fd2d83d .
2018-11-23 22:17:29 -05:00
nhmall
dbf2b0e852
Revert "Added nhassert() support."
...
This reverts commit 31dc1c9233 .
2018-11-23 22:17:26 -05:00
nhmall
c5b283a839
Revert "Added decl_early_init() which is called when PLAYAGAIN is supported."
...
This reverts commit acbe4d9242 .
2018-11-23 22:17:24 -05:00
nhmall
bb826992dd
Revert "Previous encumberance state moved to decl.c."
...
This reverts commit 4e774197a6 .
2018-11-23 22:17:22 -05:00
nhmall
28a953337f
Revert "Moved petname_used to decl.c"
...
This reverts commit 6272c37035 .
2018-11-23 22:17:20 -05:00
nhmall
162018060a
Revert "Initial check in of icontext."
...
This reverts commit 5bbe3cd6bb .
2018-11-23 22:17:18 -05:00
nhmall
93ebcf0071
Revert "check."
...
This reverts commit 7814d9097a .
2018-11-23 22:17:16 -05:00
nhmall
7ce4c28eb9
Revert "Fixed nocreate."
...
This reverts commit 244a473a19 .
2018-11-23 22:17:14 -05:00
nhmall
4590c9c0dd
Revert "Instance variable work check-point."
...
This reverts commit 8e316df117 .
2018-11-23 22:17:12 -05:00
nhmall
4d6e3326bb
Revert "Instance variable work."
...
This reverts commit 14bf74c862 .
2018-11-23 22:17:09 -05:00
nhmall
7ad3f32e16
Revert "Renamed instance_variables to global_variables and iv to g."
...
This reverts commit f9a0db6c44 .
2018-11-23 22:17:07 -05:00
nhmall
414a5135b7
Revert "rumors.c static globals moved to instance_globals."
...
This reverts commit 6a78b203e4 .
2018-11-23 22:17:05 -05:00
nhmall
bf3602eb1b
Revert "rfilter initialized to UNDEFINED."
...
This reverts commit 716c2ceccf .
2018-11-23 22:17:03 -05:00
nhmall
5e5e321378
Revert "Renamed UNDEFINED to UNDEFINED_VALUE."
...
This reverts commit cee4933c24 .
2018-11-23 22:17:01 -05:00
nhmall
053baa8274
Revert "restore.c globals moved to instance_globals."
...
This reverts commit 865c4d5a7d .
2018-11-23 22:16:59 -05:00
nhmall
04fe16d938
Revert "Moved read.c globals to instance_globals."
...
This reverts commit d37a91a6b8 .
2018-11-23 22:16:56 -05:00
nhmall
2fb68024fe
Revert "Moved potion.c globals to instance_globals."
...
This reverts commit d3c192e5a8 .
2018-11-23 22:16:54 -05:00
nhmall
6f3f1caee3
Revert "define nhassert if not defined by port."
...
This reverts commit cff9fb441a .
2018-11-23 22:16:52 -05:00
nhmall
9db124f650
Revert "Fix compiler warnings in macos build."
...
This reverts commit 0d59f1a22b .
2018-11-23 22:16:49 -05:00
nhmall
7f023c99fb
Revert "Moved sex_change_ok to instance_globals."
...
This reverts commit ee22210a68 .
2018-11-23 22:16:47 -05:00
nhmall
44af1c78f3
Revert "topl.c globals moved to instance_globals."
...
This reverts commit b384223e1b .
2018-11-23 22:16:45 -05:00
nhmall
01bc4ab5e2
Revert "Fix g.restoring comments."
...
This reverts commit ad725c0f0f .
2018-11-23 22:16:42 -05:00
nhmall
61a35d4ac0
Revert "Moved pickup globals to instance_globals."
...
This reverts commit 01596f1660 .
2018-11-23 22:16:40 -05:00
nhmall
734a6c2ddb
Revert "objnam.c globals moved to instance globals."
...
This reverts commit 041e55467a .
2018-11-23 22:16:35 -05:00
nhmall
3cbc6d4cf5
Revert "Modified objects initialization to support re-entry."
...
This reverts commit c3eefefc99 .
2018-11-23 22:16:24 -05:00
nhmall
efdfd2fa1d
Revert "Removing prototype for decl_globals_init()."
...
This reverts commit 26d03b5017 .
2018-11-23 22:15:37 -05:00
nhmall
04d497a644
Merge commit 'd60097b2868d1f7403ddaa10d48d3be59bc7c1bb' into NetHack-3.6.2
2018-11-23 20:31:18 -05:00
Bart House
26d03b5017
Removing prototype for decl_globals_init().
2018-11-23 15:47:18 -08:00
Bart House
52736f367f
Merge branch 'win-bart' of https://rodney.nethack.org:20040/git/NHsource into win-bart
2018-11-23 15:23:06 -08:00
Bart House
c3eefefc99
Modified objects initialization to support re-entry.
2018-11-23 15:22:55 -08:00
Bart House
041e55467a
objnam.c globals moved to instance globals.
2018-11-23 15:22:55 -08:00
Bart House
01596f1660
Moved pickup globals to instance_globals.
2018-11-23 15:22:55 -08:00
Bart House
ad725c0f0f
Fix g.restoring comments.
2018-11-23 15:22:54 -08:00
Bart House
b384223e1b
topl.c globals moved to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
ee22210a68
Moved sex_change_ok to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
0d59f1a22b
Fix compiler warnings in macos build.
2018-11-23 15:22:54 -08:00
Bart House
cff9fb441a
define nhassert if not defined by port.
2018-11-23 15:22:54 -08:00
Bart House
d3c192e5a8
Moved potion.c globals to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
d37a91a6b8
Moved read.c globals to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
865c4d5a7d
restore.c globals moved to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
cee4933c24
Renamed UNDEFINED to UNDEFINED_VALUE.
2018-11-23 15:22:54 -08:00
Bart House
716c2ceccf
rfilter initialized to UNDEFINED.
2018-11-23 15:22:54 -08:00