WIZKIT overflow tweak (trunk only)

Redo the $WIZKIT overflow handling from a few days ago.  Instead of
having two migration codes which both mean "with the hero", combine them
and add a mask flag to control scattering at the destination to be able to
get the alternate behavior.
This commit is contained in:
nethack.rankin
2007-06-19 03:13:20 +00:00
parent d1387f2b6b
commit acc0aa3ff3
4 changed files with 14 additions and 15 deletions

View File

@@ -2428,7 +2428,7 @@ struct obj *obj;
add_to_migration(obj);
obj->ox = 0; /* index of main dungeon */
obj->oy = 1; /* starting level number */
obj->owornmask = (long)(MIGR_AT_HERO|MIGR_NOBREAK);
obj->owornmask = (long)(MIGR_WITH_HERO | MIGR_NOBREAK|MIGR_NOSCATTER);
} else {
(void)addinv(obj);
}