aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-05-10 21:22:13 +0000
committerMax Horn2002-05-10 21:22:13 +0000
commit4de29e7476e9cf59365939640c07fb7b907d5010 (patch)
tree6094bea965e02fd7b3226f3108d4dabe01a1fe45
parent1dc88c58554072d0fa717b03d98d1583cfc955a7 (diff)
downloadscummvm-rg350-4de29e7476e9cf59365939640c07fb7b907d5010.tar.gz
scummvm-rg350-4de29e7476e9cf59365939640c07fb7b907d5010.tar.bz2
scummvm-rg350-4de29e7476e9cf59365939640c07fb7b907d5010.zip
rewrote many_direction_tab a bit to make it clearer where that values come from
svn-id: r4274
-rw-r--r--scummvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index b5d5e44ab8..4daa7989eb 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -1042,7 +1042,7 @@ int Scumm::numSimpleDirDirections(int dirType)
}
// FIXME - is the value "530" in many_direction_tab really correct? Maybe it should be "289" ?
-const uint16 many_direction_tab[18] = {4, 8, 71, 109, 251, 530, 0, 0, 0, 0, 22, 72, 107, 157, 202, 252, 287, 337};
+const uint16 many_direction_tab[18] = {4, 8, 90-19, 90+19, 270-19, 530, 0, 0, 0, 0, 0+22, 90-18, 90+17, 180-23, 180+22, 270-18, 270+17, 360-23};
const int16 many_direction_tab_2[16] = {0, 90, 180, 270, -1, -1, -1, -1, 0, 45, 90, 135, 180, 225, 270, 315};
const int bit_table[16] = {1,2,4,8,0x10,0x20,0x40,0x80,0x100,0x200,0x400,0x800,0x1000,0x2000,0x4000,0x8000};