diff options
author | Max Horn | 2006-10-18 15:08:43 +0000 |
---|---|---|
committer | Max Horn | 2006-10-18 15:08:43 +0000 |
commit | 3467a6f19b5ddd2266a0133a66c0c0b7c874b208 (patch) | |
tree | b9bfba2baa57756697d8714ced89f4b48639a601 | |
parent | 1a086279b25b802f5b4c905afdd4fec4509002cd (diff) | |
download | scummvm-rg350-3467a6f19b5ddd2266a0133a66c0c0b7c874b208.tar.gz scummvm-rg350-3467a6f19b5ddd2266a0133a66c0c0b7c874b208.tar.bz2 scummvm-rg350-3467a6f19b5ddd2266a0133a66c0c0b7c874b208.zip |
SCUMM: Got rid of BompHeader
svn-id: r24371
-rw-r--r-- | engines/scumm/object.cpp | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/engines/scumm/object.cpp b/engines/scumm/object.cpp index 9978520a3c..e474719e3e 100644 --- a/engines/scumm/object.cpp +++ b/engines/scumm/object.cpp @@ -36,24 +36,6 @@ namespace Scumm { -#include "common/pack-start.h" // START STRUCT PACKING - -struct BompHeader { /* Bomp header */ - union { - struct { - uint16 unk; - uint16 width, height; - } old; - - struct { - uint32 width, height; - } v8; - }; -}; - -#include "common/pack-end.h" // END STRUCT PACKING - - void ScummEngine::addObjectToInventory(uint obj, uint room) { int idx, slot; uint32 size; @@ -293,7 +275,7 @@ int ScummEngine::getState(int obj) { // // This will keep the security door open at all times. I can only // assume that 182 and 193 each correspond to one particular side of - // the it. Fortunately it does not prevent frustrated players from + // it. Fortunately this does not prevent frustrated players from // blowing up the mansion, should they feel the urge to. if (_game.id == GID_MANIAC && (obj == 182 || obj == 193)) @@ -1651,11 +1633,11 @@ void ScummEngine_v6::drawBlastObject(BlastObject *eo) { error("object %d is not a blast object", eo->number); if (_game.version == 8) { - bdd.srcwidth = READ_LE_UINT32(&((const BompHeader *)bomp)->v8.width); - bdd.srcheight = READ_LE_UINT32(&((const BompHeader *)bomp)->v8.height); + bdd.srcwidth = READ_LE_UINT32(bomp); + bdd.srcheight = READ_LE_UINT32(bomp+4); } else { - bdd.srcwidth = READ_LE_UINT16(&((const BompHeader *)bomp)->old.width); - bdd.srcheight = READ_LE_UINT16(&((const BompHeader *)bomp)->old.height); + bdd.srcwidth = READ_LE_UINT16(bomp+2); + bdd.srcheight = READ_LE_UINT16(bomp+4); } bdd.dst = *vs; |