comparison 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
comparison
equal deleted inserted replaced
56:3c5682bbf164 57:fdc588551178
320 else 320 else
321 th->t_pos = spot; 321 th->t_pos = spot;
322 rm = rp - &rooms[0]; 322 rm = rp - &rooms[0];
323 th->t_room = rp; 323 th->t_room = rp;
324 th->t_oldch = mvwinch(cw, th->t_pos.y, th->t_pos.x); 324 th->t_oldch = mvwinch(cw, th->t_pos.y, th->t_pos.x);
325 light(&oldspot); 325 if (ishero)
326 light(&oldspot);
326 th->t_nomove = 0; 327 th->t_nomove = 0;
327 if (ishero) { 328 if (ishero) {
328 light(&hero); 329 light(&hero);
329 mvwaddch(cw, hero.y, hero.x, PLAYER); 330 mvwaddch(cw, hero.y, hero.x, PLAYER);
330 /* 331 /*