Reset getdir_click when exiting therecmdmenu early
This was causing a really annoying to track down bug where the fuzzer threw the attached iron ball and it could end up anywhere on the level, emitting a sanity check error.
This commit is contained in:
@@ -5604,6 +5604,7 @@ dotherecmdmenu(void)
|
|||||||
else
|
else
|
||||||
ch = there_cmd_menu(x, y, iflags.getdir_click);
|
ch = there_cmd_menu(x, y, iflags.getdir_click);
|
||||||
gc.clicklook_cc.x = gc.clicklook_cc.y = -1;
|
gc.clicklook_cc.x = gc.clicklook_cc.y = -1;
|
||||||
|
iflags.getdir_click = 0;
|
||||||
return (ch && ch != '\033') ? ECMD_TIME : ECMD_OK;
|
return (ch && ch != '\033') ? ECMD_TIME : ECMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user