aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorsegrax2012-01-17 20:03:52 +1100
committerTobias Gunkel2012-02-11 08:28:51 +0100
commitcbae5c79b702494dd30abb9504767029fba065ae (patch)
tree70795c9c622ab3545929230049918a84dd90ac1e /engines
parent347035385e3608c3107db7b9cba0673ce9e03a22 (diff)
downloadscummvm-rg350-cbae5c79b702494dd30abb9504767029fba065ae.tar.gz
scummvm-rg350-cbae5c79b702494dd30abb9504767029fba065ae.tar.bz2
scummvm-rg350-cbae5c79b702494dd30abb9504767029fba065ae.zip
SCUMM: Change vars to ints, remove unused variable for now
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/actor.cpp5
-rw-r--r--engines/scumm/actor.h5
-rw-r--r--engines/scumm/costume.cpp2
3 files changed, 5 insertions, 7 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 950f580f42..e703c55192 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -866,8 +866,7 @@ void Actor::setDirection(int direction) {
_vm->_costumeLoader->costumeDecodeData(this, _standFrame, 0);
// 0x2C17
-
- ((ActorC64*) this)->_byte_FD0A = 0xFF;
+ ((ActorC64*) this)->_byte_FD0A = -1;
_needRedraw = true;
return;
@@ -2653,7 +2652,7 @@ void ActorC64::animateActor(int anim) {
if( this->isInCurrentRoom() ) {
- this->_costCommandNew = anim;
+ // this->_costCommandNew = anim;
this->_byte_FD0A = this->_byte_FDE8;
// 0x273A
diff --git a/engines/scumm/actor.h b/engines/scumm/actor.h
index 1feb1afaa5..a2b36e51ca 100644
--- a/engines/scumm/actor.h
+++ b/engines/scumm/actor.h
@@ -348,14 +348,13 @@ enum ActorC64MiscFlags {
class ActorC64 : public Actor_v2 {
public:
- byte _costCommandNew;
byte _costCommand, _costFrame;
byte _miscflags;
byte _speaking, _speakingPrev;
- byte _byte_FDE8;
+ int8 _byte_FDE8;
int8 _byte_FD0A;
- byte _byte_FCE2[8];
+ int8 _byte_FCE2[8];
public:
diff --git a/engines/scumm/costume.cpp b/engines/scumm/costume.cpp
index 0c091c38bf..68eeeea674 100644
--- a/engines/scumm/costume.cpp
+++ b/engines/scumm/costume.cpp
@@ -1464,7 +1464,7 @@ byte C64CostumeLoader::increaseAnims(Actor *a) {
// 0x2556
--a->_cost.curpos[limb];
- A->_costCommandNew = 0xFF;
+ //A->_costCommandNew = 0xFF;
//A->_costCommand = 0xFF;
// 0x2568