[Scummvm-cvs-logs] SF.net SVN: scummvm:[39260] scummvm/trunk/engines/agos
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Mon Mar 9 05:37:31 CET 2009
Revision: 39260
http://scummvm.svn.sourceforge.net/scummvm/?rev=39260&view=rev
Author: Kirben
Date: 2009-03-09 04:37:31 +0000 (Mon, 09 Mar 2009)
Log Message:
-----------
Cleanup.
Modified Paths:
--------------
scummvm/trunk/engines/agos/agos.cpp
scummvm/trunk/engines/agos/agos.h
scummvm/trunk/engines/agos/draw.cpp
Modified: scummvm/trunk/engines/agos/agos.cpp
===================================================================
--- scummvm/trunk/engines/agos/agos.cpp 2009-03-09 04:16:27 UTC (rev 39259)
+++ scummvm/trunk/engines/agos/agos.cpp 2009-03-09 04:37:31 UTC (rev 39260)
@@ -64,9 +64,11 @@
AGOSEngine_PuzzlePack::AGOSEngine_PuzzlePack(OSystem *system)
: AGOSEngine_Feeble(system) {
+ _oopsValid = false;
_iconToggleCount = 0;
_voiceCount = 0;
+ _gameTime = 0;
_lastTickCount = 0;
_thisTickCount = 0;
_startSecondCount = 0;
@@ -75,6 +77,8 @@
AGOSEngine_Feeble::AGOSEngine_Feeble(OSystem *system)
: AGOSEngine_Simon2(system) {
+
+ _vgaCurSpritePriority = 0;
}
AGOSEngine_Simon2::AGOSEngine_Simon2(OSystem *system)
@@ -87,6 +91,19 @@
AGOSEngine_Waxworks::AGOSEngine_Waxworks(OSystem *system)
: AGOSEngine_Elvira2(system) {
+
+ _boxCR = false;
+ _boxLineCount = 0;
+ memset(_boxBuffer, 0, sizeof(_boxBuffer));
+ _boxBufferPtr = _boxBuffer;
+
+ _linePtrs[0] = 0;
+ _linePtrs[1] = 0;
+ _linePtrs[2] = 0;
+ _linePtrs[3] = 0;
+ _linePtrs[4] = 0;
+ _linePtrs[5] = 0;
+ memset(_lineCounts, 0, sizeof(_lineCounts));
}
AGOSEngine_Elvira2::AGOSEngine_Elvira2(OSystem *system)
@@ -99,6 +116,7 @@
AGOSEngine::AGOSEngine(OSystem *syst)
: Engine(syst) {
+
_vcPtr = 0;
_vcGetOutOfCode = 0;
_gameOffsetsPtr = 0;
@@ -282,7 +300,6 @@
_clockStopped = 0;
_gameStoppedClock = 0;
- _gameTime = 0;
_lastTime = 0;
_lastMinute = 0;
@@ -360,7 +377,6 @@
_vgaCurZoneNum = 0;
_vgaCurSpriteId = 0;
- _vgaCurSpritePriority = 0;
_baseY = 0;
_scale = 0;
@@ -395,19 +411,6 @@
_superRoomNumber = 0;
_wallOn = 0;
- _boxCR = false;
- _boxLineCount = 0;
- memset(_boxBuffer, 0, sizeof(_boxBuffer));
- _boxBufferPtr = _boxBuffer;
-
- _linePtrs[0] = 0;
- _linePtrs[1] = 0;
- _linePtrs[2] = 0;
- _linePtrs[3] = 0;
- _linePtrs[4] = 0;
- _linePtrs[5] = 0;
- memset(_lineCounts, 0, sizeof(_lineCounts));
-
memset(_objectArray, 0, sizeof(_objectArray));
memset(_itemStore, 0, sizeof(_itemStore));
memset(_textMenu, 0, sizeof(_textMenu));
@@ -491,8 +494,6 @@
_saveOrLoad = false;
_saveLoadEdit = false;
- _oopsValid = false;
-
_hyperLink = 0;
_interactY = 0;
_oracleMaxScrollY = 0;
Modified: scummvm/trunk/engines/agos/agos.h
===================================================================
--- scummvm/trunk/engines/agos/agos.h 2009-03-09 04:16:27 UTC (rev 39259)
+++ scummvm/trunk/engines/agos/agos.h 2009-03-09 04:37:31 UTC (rev 39260)
@@ -329,13 +329,6 @@
const byte *_scrollImage;
byte _boxStarHeight;
- bool _boxCR;
- char _boxBuffer[310];
- char *_boxBufferPtr;
- int _boxLineCount;
- int _lineCounts[6];
- char *_linePtrs[6];
-
SubroutineLine *_classLine;
int16 _classMask, _classMode1, _classMode2;
Item *_findNextPtr;
@@ -391,7 +384,7 @@
uint32 _lastMinute; // Used in processSpecialKeys()
uint32 _lastTime;
- uint32 _clockStopped, _gameStoppedClock, _gameTime;
+ uint32 _clockStopped, _gameStoppedClock;
uint32 _timeStore;
TimeEvent *_firstTimeStruct, *_pendingDeleteTimeEvent;
@@ -462,7 +455,6 @@
uint16 _zoneNumber;
uint16 _vgaWaitFor, _lastVgaWaitFor;
uint16 _vgaCurSpriteId, _vgaCurZoneNum;
- uint16 _vgaCurSpritePriority;
int16 _baseY;
float _scale;
@@ -582,8 +574,6 @@
byte _saveLoadType, _saveLoadSlot;
char _saveLoadName[108];
- bool _oopsValid;
-
byte *_backGroundBuf;
byte *_backBuf;
byte *_scaleBuf;
@@ -1743,6 +1733,13 @@
const OpcodeEntryWaxworks *_opcodesWaxworks;
+ bool _boxCR;
+ char _boxBuffer[310];
+ char *_boxBufferPtr;
+ int _boxLineCount;
+ int _lineCounts[6];
+ char *_linePtrs[6];
+
virtual void drawIcon(WindowBlock *window, uint icon, uint x, uint y);
virtual void boxController(uint x, uint y, uint mode);
@@ -1930,6 +1927,8 @@
const OpcodeEntryFeeble *_opcodesFeeble;
+ uint16 _vgaCurSpritePriority;
+
virtual uint16 to16Wrapper(uint value);
virtual uint16 readUint16Wrapper(const void *src);
virtual uint32 readUint32Wrapper(const void *src);
@@ -2040,7 +2039,9 @@
const OpcodeEntryPuzzlePack *_opcodesPuzzlePack;
+ bool _oopsValid;
int16 _iconToggleCount, _voiceCount;
+ uint32 _gameTime;
uint32 _lastTickCount, _thisTickCount;
uint32 _startSecondCount, _tSecondCount;
Modified: scummvm/trunk/engines/agos/draw.cpp
===================================================================
--- scummvm/trunk/engines/agos/draw.cpp 2009-03-09 04:16:27 UTC (rev 39259)
+++ scummvm/trunk/engines/agos/draw.cpp 2009-03-09 04:37:31 UTC (rev 39260)
@@ -219,7 +219,6 @@
_curSfxFile = vpe->sfxFile;
_windowNum = vsp->windowNum;
_vgaCurSpriteId = vsp->id;
- _vgaCurSpritePriority = vsp->priority;
saveBackGround(vsp);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list