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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user