Skip to content

Commit

Permalink
DREAMWEB: Remove some unused globals
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 28, 2011
1 parent 749c82b commit 1d4337e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
16 changes: 16 additions & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -477,6 +477,22 @@ p = parser(skip_binary_data = [
'initialvars',
'lengthofbuffer',
'lenofreelrouts',
'reellist',
'intext',
'lengthofmap',
'blocktext',
'blocks',
'frframes',
'frames',
'persontxtdat',
'persontext',
'tablesize',
'undertextsizex', # defined in dreambase.h
'undertextsizey', # defined in dreambase.h
#'lengthofvars', # kept to verify savegame validity
'lenofmapstore', # defined in dreambase.h
'keypadx',
'keypady',
# vgagrafx.asm
'cityname',
'extragraphics1',
Expand Down
15 changes: 0 additions & 15 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -109,36 +109,22 @@ static const uint16 kIntextdat = (0);
static const uint16 kFreetextdat = (0);
static const uint16 kFrframedata = (0);
static const uint16 kSettext = (0+(130*2));
static const uint16 kReellist = (0+(36*144));
static const uint16 kIntext = (0+(38*2));
static const uint16 kLengthofmap = (0+(66*60));
static const uint16 kFreetext = (0+(82*2));
static const uint16 kBlocktext = (0+(98*2));
static const uint16 kBlocks = (0+192);
static const uint16 kFrframes = (0+2080);
static const uint16 kExframes = (0+2080);
static const uint16 kFrames = (0+2080);
static const uint16 kExdata = (0+2080+30000);
static const uint16 kExtextdat = (0+2080+30000+(16*114));
static const uint16 kExtext = (0+2080+30000+(16*114)+((114+2)*2));
static const uint16 kLengthofextra = (0+2080+30000+(16*114)+((114+2)*2)+18000);
static const uint16 kPersontxtdat = (0+24);
static const uint16 kPersontext = (0+24+(1026*2));
static const uint16 kForeign = (1);
static const uint16 kCd = (1);
static const uint16 kNumexobjects = (114);
static const uint16 kUndertextsizey = (13);
static const uint16 kZoomy = (132);
static const uint16 kFreedatlen = (16*80);
static const uint16 kExtextlen = (18000);
static const uint16 kLenofmapstore = (22*8*20*8);
static const uint16 kUndertextsizex = (228);
static const uint16 kNumchanges = (250);
static const uint16 kUndertimedysize = (30);
static const uint16 kExframeslen = (30000);
static const uint16 kTablesize = (32);
static const uint16 kScreenwidth = (320);
static const uint16 kKeypadx = (36+112);
static const uint16 kItempicsize = (44);
static const uint16 kDiaryy = (48+12);
static const uint16 kOpsy = (52);
Expand All @@ -154,7 +140,6 @@ static const uint16 kTextstart = (66*2);
static const uint16 kMaplen = (66*60);
static const uint16 kDiaryx = (68+24);
static const uint16 kLengthofvars = (68-0);
static const uint16 kKeypady = (72);
static const uint16 kZoomx = (8);
static const uint16 kInventx = (80);
static const uint16 kMenux = (80+40);
Expand Down
3 changes: 3 additions & 0 deletions engines/dreamweb/keypad.cpp
Expand Up @@ -24,6 +24,9 @@

namespace DreamGen {

const uint16 kKeypadx = 36+112;
const uint16 kKeypady = 72;

void DreamBase::getUnderMenu() {
multiGet(_underTimedText, kMenux, kMenuy, 48, 48);
}
Expand Down

0 comments on commit 1d4337e

Please sign in to comment.