diff options
author | Max Horn | 2003-03-07 22:44:25 +0000 |
---|---|---|
committer | Max Horn | 2003-03-07 22:44:25 +0000 |
commit | 12d09b57b5c000fc32a5bf4a89572298c17aa417 (patch) | |
tree | e07850e150cc11734290cbba95a41af408fd8929 | |
parent | cb04f9f9b3b3b5b7d32bd87400bc6ad440233978 (diff) | |
download | scummvm-rg350-12d09b57b5c000fc32a5bf4a89572298c17aa417.tar.gz scummvm-rg350-12d09b57b5c000fc32a5bf4a89572298c17aa417.tar.bz2 scummvm-rg350-12d09b57b5c000fc32a5bf4a89572298c17aa417.zip |
ah yeah, I did that on purpose. Really. Just wanted to check if everybody is paying attention
svn-id: r6757
-rw-r--r-- | scumm/scummvm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 58df2f05a2..c3bfa3c57b 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1451,12 +1451,12 @@ int toSimpleDir(int dirType, int dir) { const int16 directions[] = { 22, 72, 107, 157, 202, 252, 287, 337 }; for (int i = 0; i < 7; i++) if (dir >= directions[i] && dir <= directions[i+1]) - return i; + return i+1; } else { const int16 directions[] = { 71, 109, 251, 289 }; for (int i = 0; i < 3; i++) if (dir >= directions[i] && dir <= directions[i+1]) - return i; + return i+1; } return 0; |