Follow up to df0457c

* Fixes a possible infinite loop timer for Vacuum Extreme.
This commit is contained in:
aleos 2021-04-14 10:31:22 -04:00
parent a397ad7f5e
commit 3d85700628

View File

@ -15045,7 +15045,7 @@ TIMER_FUNC(status_change_timer){
}
break;
case SC_VACUUM_EXTREME:
if (sce->val4 >= 0) {
if (sce->val4 > 0) {
// Only slide targets to center if they are standing still
if (unit_bl2ud(bl)->walktimer == INVALID_TIMER) {
uint16 x = sce->val3 >> 16, y = sce->val3 & 0xFFFF;