Fix time credit headup (#182)
Store the previous time credit in `gLast_time_credit_amount` instead of `gLast_time_credit_headup`. The latter is supposed to hold the headup slot number and gets overwritten with time unrelated values. Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
This commit is contained in:
parent
0343e53b07
commit
676d26d3f9
|
|
@ -1450,9 +1450,9 @@ void AwardTime(tU32 pTime) {
|
|||
}
|
||||
gOld_times[0] = pTime;
|
||||
if (gLast_time_credit_headup >= 0 && (the_time - gLast_time_earn_time) < 2000) {
|
||||
pTime += gLast_time_credit_headup;
|
||||
pTime += gLast_time_credit_amount;
|
||||
}
|
||||
gLast_time_credit_headup = pTime;
|
||||
gLast_time_credit_amount = pTime;
|
||||
gTimer += original_amount * 1000;
|
||||
s[0] = '+';
|
||||
TimerString(1000 * pTime, &s[1], 0, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue