[Scummvm-cvs-logs] CVS: scummvm scummvm.cpp,1.147,1.148
Max Horn
fingolfin at users.sourceforge.net
Fri May 10 14:23:02 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv25711
Modified Files:
scummvm.cpp
Log Message:
rewrote many_direction_tab a bit to make it clearer where that values come from
Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scummvm.cpp,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- scummvm.cpp 10 May 2002 21:19:24 -0000 1.147
+++ scummvm.cpp 10 May 2002 21:22:13 -0000 1.148
@@ -1042,7 +1042,7 @@
}
// 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};
More information about the Scummvm-git-logs
mailing list