TRECISION: Remove the unused _actionLen array

This commit is contained in:
Filippos Karapetis 2021-05-22 14:04:46 +03:00 committed by SupSuper
parent 31f51e0a8f
commit 0f3bc23d82
3 changed files with 1 additions and 5 deletions

View File

@ -2321,8 +2321,6 @@ Game Structure
#define MAXOBJINROOM 128 // Objects per room
#define MAXSOUNDSINROOM 15 // Sounds per room
#define MAXACTIONINROOM 32 // Number of actions per room
#define MAXACTION 620 // Number of actions in the game
#define MAXACTIONFRAMESINROOM 1200 // Number of action frames per room
#define MAXSENTENCE 4000 // Max Examine phrases
#define MAXOBJNAME 1400

View File

@ -129,8 +129,7 @@ void TrecisionEngine::loadAll() {
_animMgr->loadAnimTab(&dataNl);
_dialogMgr->loadData(&dataNl);
for (int i = 0; i < MAXACTION; ++i)
_actionLen[i] = dataNl.readByte();
dataNl.skip(620); // actions (unused)
int numFileRef = dataNl.readSint32LE();
dataNl.skip(numFileRef * (12 + 4)); // fileRef name + offset

View File

@ -133,7 +133,6 @@ class TrecisionEngine : public Engine {
char *_textArea;
uint16 _curScriptFrame[10];
uint8 _actionLen[MAXACTION];
char *_textPtr;
uint16 _curAscii;