Commit MetaInfo

Revisión8844950c6771f6d395ea4bc012ef1d2707448cfc (tree)
Tiempo2014-12-27 05:41:01
AutorRandy Heit <rheit@user...>
CommiterRandy Heit

Log Message

Read script number as signed when parsing SARY chunks

- Fixed: Script arrays didn't work in named scripts because the loader

read the script number as an unsigned word, hence it would never find
named scripts, since they are stored with negative numbers.

Cambiar Resumen

Diferencia incremental

diff -r 91b0645a4f75 -r 8844950c6771 src/p_acs.cpp
--- a/src/p_acs.cpp Sun Jun 19 16:49:26 2022 -0400
+++ b/src/p_acs.cpp Fri Dec 26 14:41:01 2014 -0600
@@ -2927,7 +2927,7 @@
29272927 int size = LittleLong(scripts.dw[1]);
29282928 if (size >= 6)
29292929 {
2930- int script_num = LittleShort(scripts.w[4]);
2930+ int script_num = LittleShort(scripts.sw[4]);
29312931 ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript(script_num));
29322932 if (ptr != NULL)
29332933 {
Show on old repository browser