CGE: Fix name of showBak()

This commit is contained in:
Strangerke 2011-07-18 23:14:22 +02:00
parent b3f0e72e25
commit 17003d0e90
3 changed files with 13 additions and 10 deletions

View File

@ -123,11 +123,12 @@ void CGEEngine::setup() {
_maxCaveArr[3] = 23;
_maxCaveArr[4] = 24;
};
_maxCave = 0;
_dark = false;
_game = false;
_now = 1;
_lev = -1;
_maxCave = 0;
_dark = false;
_game = false;
_now = 1;
_lev = -1;
_recentStep = -2;
for (int i = 0; i < 4; i++)
_flag[i] = false;

View File

@ -111,7 +111,7 @@ public:
bool _game;
int _now;
int _lev;
char _usrFnam[15];
char _usrFnam[15];
Common::RandomSource _randomSource;
byte * _mini;
@ -189,7 +189,7 @@ public:
void miniStep(int stp);
void AltCtrlDel();
void postMiniStep(int stp);
void ShowBak(int ref);
void showBak(int ref);
void snBackPt(Sprite *spr, int stp);
void snBarrier(int cav, int bar, bool horz);

View File

@ -560,8 +560,8 @@ void CGEEngine::postMiniStep(int step) {
SNPOST2_(SNEXEC, -1, _recentStep = step, kMiniStep);
}
void CGEEngine::ShowBak(int ref) {
debugC(1, kDebugEngine, "CGEEngine::ShowBack(%d)", ref);
void CGEEngine::showBak(int ref) {
debugC(1, kDebugEngine, "CGEEngine::showBack(%d)", ref);
Sprite *spr = _vga->_spareQ->locate(ref);
if (spr) {
@ -582,7 +582,7 @@ void CGEEngine::caveUp() {
if (_music)
loadMidi(_now);
ShowBak(BakRef);
showBak(BakRef);
loadMapping();
_text->preload(BakRef, BakRef + 1000);
Sprite *spr = _vga->_spareQ->first();
@ -1042,6 +1042,8 @@ void CGEEngine::nextStep() {
}
void CGEEngine::saveMapping() {
debugC(1, kDebugEngine, "CGEEngine::saveMapping()");
IoHand cfTab(progName(".TAB"), UPD);
if (!cfTab._error) {
cfTab.seek((_now - 1) * sizeof(Cluster::_map));