diff options
author | Max Horn | 2009-05-26 11:30:21 +0000 |
---|---|---|
committer | Max Horn | 2009-05-26 11:30:21 +0000 |
commit | 7d5f3e1714dff2f0beed0f10bcce01be8204f377 (patch) | |
tree | 7a361b49a88617531c9b983c3e07fc73069b2207 /engines/sci/engine/kmovement.cpp | |
parent | 94dfc8f6386ebf0f4a13094e68eaec289a974347 (diff) | |
download | scummvm-rg350-7d5f3e1714dff2f0beed0f10bcce01be8204f377.tar.gz scummvm-rg350-7d5f3e1714dff2f0beed0f10bcce01be8204f377.tar.bz2 scummvm-rg350-7d5f3e1714dff2f0beed0f10bcce01be8204f377.zip |
Turned some static tables into static const tables; added some FIXME comments to global static vars that should be removed (many more exist in SCI, Tinsel, and some other engines)
svn-id: r40908
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
-rw-r--r-- | engines/sci/engine/kmovement.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp index 32007e93b4..5e3da6403b 100644 --- a/engines/sci/engine/kmovement.cpp +++ b/engines/sci/engine/kmovement.cpp @@ -231,11 +231,13 @@ reg_t kInitBresen(EngineState *s, int funct_nr, int argc, reg_t *argv) { #define MOVING_ON_X (((axis == _K_BRESEN_AXIS_X)&&bi1) || dx) #define MOVING_ON_Y (((axis == _K_BRESEN_AXIS_Y)&&bi1) || dy) -static enum { +enum Movecnt { IGNORE_MOVECNT, INCREMENT_MOVECNT, UNINITIALIZED -} handle_movecnt = UNINITIALIZED; +}; + +static Movecnt handle_movecnt = UNINITIALIZED; // FIXME: Avoid static vars int parse_reg_t(EngineState *s, const char *str, reg_t *dest); |