From 4a0cd41ce3faada68d636276da304fddd025c456 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Thu, 14 Aug 2003 11:17:49 +0000 Subject: [PATCH] clipping patch (from ) No objections were heard to this previously circulated change. > Clipping should occur right before user input (rhack) vs in the > beginning of the move loop. For example, if hero had > "teleportitis" and teleported because of that then the clipping > region was not updated to reflect a new hero position until the > next turn. This patch fixes that. --- src/allmain.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/allmain.c b/src/allmain.c index af56a8329..b54f7cebc 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -60,9 +60,6 @@ moveloop() youmonst.movement = NORMAL_SPEED; /* give the hero some movement points */ for(;;) { -#ifdef CLIPPING - cliparound(u.ux, u.uy); -#endif get_nh_event(); #ifdef POSITIONBAR do_positionbar(); @@ -381,6 +378,11 @@ moveloop() sanity_check(); #endif +#ifdef CLIPPING + /* just before rhack */ + cliparound(u.ux, u.uy); +#endif + u.umoved = FALSE; if (multi > 0) { -- 2.40.0