aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/enid2.cpp
diff options
context:
space:
mode:
authoruruk2013-07-24 18:25:07 +0200
committeruruk2013-07-24 18:25:07 +0200
commit10ec7e0e0f2d4cc246db0c3792c5af05e413976b (patch)
tree13516a3765905781cd17a1bb5c4c747436b9370a /engines/avalanche/enid2.cpp
parentf035622b14966e3af0a1fe53b63619ee29591e3a (diff)
downloadscummvm-rg350-10ec7e0e0f2d4cc246db0c3792c5af05e413976b.tar.gz
scummvm-rg350-10ec7e0e0f2d4cc246db0c3792c5af05e413976b.tar.bz2
scummvm-rg350-10ec7e0e0f2d4cc246db0c3792c5af05e413976b.zip
AVALANCHE: Change _gyro into pointer, update everything accordingly.
Diffstat (limited to 'engines/avalanche/enid2.cpp')
-rw-r--r--engines/avalanche/enid2.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/engines/avalanche/enid2.cpp b/engines/avalanche/enid2.cpp
index 107330a678..7284b888b4 100644
--- a/engines/avalanche/enid2.cpp
+++ b/engines/avalanche/enid2.cpp
@@ -94,7 +94,7 @@ Common::String Enid::expanddate(byte d, byte m, uint16 y) {
break;
}
- day = _vm->_gyro.strf(d);
+ day = _vm->_gyro->strf(d);
if (((d >= 0) && (d <= 9)) || ((d >= 21) && (d <= 31))) {
switch (d % 10) {
@@ -112,7 +112,7 @@ Common::String Enid::expanddate(byte d, byte m, uint16 y) {
}
}
- expanddate_result = day + ' ' + month + ' ' + _vm->_gyro.strf(y);
+ expanddate_result = day + ' ' + month + ' ' + _vm->_gyro->strf(y);
return expanddate_result;
}
@@ -148,8 +148,8 @@ void Enid::edna_save(Common::String name) {
}
void Enid::loaderror(Common::String x, char icon) {
- if (_vm->_gyro.holdthedawn) {
- _vm->_gyro.holdthedawn = false;
+ if (_vm->_gyro->holdthedawn) {
+ _vm->_gyro->holdthedawn = false;
_vm->_lucerna.dawn();
}
_vm->_scrolls.display(Common::String('\7') + '\6' + '\23' + icon + '\26' + "Loading error: " + "\r\r\22" + x);
@@ -250,17 +250,17 @@ void Enid::avvy_background() { /* Not really a filing procedure,
}
void Enid::to_sundry(sundry &sund) {
- sund.qenid_filename = _vm->_gyro.enid_filename;
- sund.qsoundfx = _vm->_gyro.soundfx;
- sund.qthinks = _vm->_gyro.thinks;
- sund.qthinkthing = _vm->_gyro.thinkthing;
+ sund.qenid_filename = _vm->_gyro->enid_filename;
+ sund.qsoundfx = _vm->_gyro->soundfx;
+ sund.qthinks = _vm->_gyro->thinks;
+ sund.qthinkthing = _vm->_gyro->thinkthing;
}
void Enid::from_sundry(sundry sund) {
- _vm->_gyro.enid_filename = sund.qenid_filename;
- _vm->_gyro.soundfx = sund.qsoundfx;
- _vm->_gyro.thinks = sund.qthinks;
- _vm->_gyro.thinkthing = sund.qthinkthing;
+ _vm->_gyro->enid_filename = sund.qenid_filename;
+ _vm->_gyro->soundfx = sund.qsoundfx;
+ _vm->_gyro->thinks = sund.qthinks;
+ _vm->_gyro->thinkthing = sund.qthinkthing;
}
void Enid::restore_dna() {
@@ -274,19 +274,19 @@ void Enid::edna_reload() {
restore_dna();
- _vm->_gyro.seescroll = true; /* This prevents display of the new sprites before the
+ _vm->_gyro->seescroll = true; /* This prevents display of the new sprites before the
new picture is loaded. */
_vm->_lucerna.major_redraw();
- _vm->_gyro.whereis[_vm->_gyro.pavalot] = _vm->_gyro.dna.room;
+ _vm->_gyro->whereis[_vm->_gyro->pavalot] = _vm->_gyro->dna.room;
- _vm->_gyro.alive = true;
+ _vm->_gyro->alive = true;
_vm->_lucerna.objectlist();
- if (_vm->_gyro.holdthedawn) {
- _vm->_gyro.holdthedawn = false;
+ if (_vm->_gyro->holdthedawn) {
+ _vm->_gyro->holdthedawn = false;
_vm->_lucerna.dawn();
}
}