clipping patch (from <Someone>)

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.
This commit is contained in:
nethack.allison
2003-08-14 11:17:49 +00:00
parent 5e94d4478b
commit 4a0cd41ce3

View File

@@ -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) {