More long worm checks when splitting

When a long worm is split into two, perform more checks placing
the segments on the map.
This commit is contained in:
Pasi Kallinen
2018-11-19 21:49:49 +02:00
parent 7119baafb8
commit 2a439af336
4 changed files with 18 additions and 7 deletions

View File

@@ -1587,7 +1587,7 @@ struct monst *mtmp, *mtmp2;
if (mtmp != u.usteed) /* don't place steed onto the map */
place_monster(mtmp2, mtmp2->mx, mtmp2->my);
if (mtmp2->wormno) /* update level.monsters[wseg->wx][wseg->wy] */
place_wsegs(mtmp2); /* locations to mtmp2 not mtmp. */
place_wsegs(mtmp2, NULL); /* locations to mtmp2 not mtmp. */
if (emits_light(mtmp2->data)) {
/* since this is so rare, we don't have any `mon_move_light_source' */
new_light_source(mtmp2->mx, mtmp2->my, emits_light(mtmp2->data),