AVALANCHE: Repair Timeout::lose_timer().

This commit is contained in:
uruk 2013-08-11 02:06:11 +02:00
parent c519ea0aa2
commit ee6119d07f

View File

@ -214,11 +214,10 @@ void Timeout::one_tick() {
void Timeout::lose_timer(byte which) {
byte fv;
for (fv = 1; fv <= 7; fv++) {
timetype &with = times[fv];
if (with.what_for == which)
with.time_left = 0;
} /* Cancel this one! */
for (fv = 0; fv < 7; fv++) {
if (times[fv].what_for == which)
times[fv].time_left = 0; // Cancel this one!
}
}
/*function timer_is_on(which:byte):boolean;