bug diagnostic comment

This commit is contained in:
nhmall
2025-09-01 09:47:03 -04:00
parent 7e44aad627
commit 137c028200

View File

@@ -1790,6 +1790,18 @@ hmon_hitmon(
if (hmd.jousting) {
hmon_hitmon_jousting(&hmd, mon, obj);
/*
* FIXME:
* If jousting occurred above, it can lead to:
* mhurtle_to_doom()
* mhurtle()
* mintrap()
* trapeffect_hole()
* trapeffect_level_telep()
* migrate_to_level()
* which results in mon-mx being set to 0, and that
* can lead to an impossible() in clone_mon() trying
* to create a monster at <0,0> */
} else if (hmd.unarmed && hmd.dmg > 1 && !thrown && !obj && !Upolyd) {
hmon_hitmon_stagger(&hmd, mon, obj);
} else if (!hmd.unarmed && hmd.dmg > 1 && !thrown && !Upolyd