AVALANCHE: move some engine init instructions to Gyro
This commit is contained in:
parent
8be433b960
commit
9ba81f6097
6 changed files with 32 additions and 29 deletions
|
@ -57,7 +57,7 @@ Timer::Timer(AvalancheEngine *vm) {
|
|||
* @remarks Originally called 'set_up_timer'
|
||||
*/
|
||||
void Timer::addTimer(int32 duration, byte action, byte reason) {
|
||||
if ((_vm->_gyro->isLoaded == false) || (_timerLost == true)) {
|
||||
if ((_vm->_gyro->_isLoaded == false) || (_timerLost == true)) {
|
||||
byte i = 0;
|
||||
while ((i < 7) && (_times[i]._timeLeft != 0))
|
||||
i++;
|
||||
|
@ -70,7 +70,7 @@ void Timer::addTimer(int32 duration, byte action, byte reason) {
|
|||
_times[i]._action = action;
|
||||
_times[i]._reason = reason;
|
||||
} else {
|
||||
_vm->_gyro->isLoaded = false;
|
||||
_vm->_gyro->_isLoaded = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue