mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 05:00:59 +00:00
AVALANCHE: Repair Timeout.
This commit is contained in:
parent
06bde8b277
commit
395b917e94
@ -49,7 +49,7 @@ namespace Avalanche {
|
|||||||
Timeout::Timeout(AvalancheEngine *vm) {
|
Timeout::Timeout(AvalancheEngine *vm) {
|
||||||
_vm = vm;
|
_vm = vm;
|
||||||
|
|
||||||
for (int i = 0; i < sizeof(times); i++) {
|
for (byte i = 0; i < 7; i++) {
|
||||||
times[i].time_left = 0;
|
times[i].time_left = 0;
|
||||||
times[i].then_where = 0;
|
times[i].then_where = 0;
|
||||||
times[i].what_for = 0;
|
times[i].what_for = 0;
|
||||||
@ -64,10 +64,10 @@ void Timeout::set_up_timer(int32 howlong, byte whither, byte why) {
|
|||||||
if (fv == 7)
|
if (fv == 7)
|
||||||
return; /* Oh dear... */
|
return; /* Oh dear... */
|
||||||
|
|
||||||
timetype &with = times[fv]; /* Everything's OK here! */
|
/* Everything's OK here! */
|
||||||
with.time_left = howlong;
|
times[fv].time_left = howlong;
|
||||||
with.then_where = whither;
|
times[fv].then_where = whither;
|
||||||
with.what_for = why;
|
times[fv].what_for = why;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Timeout::one_tick() {
|
void Timeout::one_tick() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user