diff srogue/wizard.c @ 57:fdc588551178

srogue: don't display a room when a monster steps on a teleport trap.
author elwin
date Wed, 09 Nov 2011 18:41:21 +0000
parents 7612f48a38ad
children 3aa87373c908
line wrap: on
line diff
--- a/srogue/wizard.c	Fri Oct 28 16:00:05 2011 +0000
+++ b/srogue/wizard.c	Wed Nov 09 18:41:21 2011 +0000
@@ -322,7 +322,8 @@
 	rm = rp - &rooms[0];
 	th->t_room = rp;
 	th->t_oldch = mvwinch(cw, th->t_pos.y, th->t_pos.x);
-	light(&oldspot);
+	if (ishero)
+		light(&oldspot);
 	th->t_nomove = 0;
 	if (ishero) {
 		light(&hero);