From 2c7de6b9f66720380c30309741d247b9a2002d57 Mon Sep 17 00:00:00 2001 From: DCurrent Date: Thu, 20 Aug 2026 03:24:32 -0400 Subject: [PATCH] Fix script mapping for 64-bit animation identifiers Update dynamic animation table declarations in scriptcommon.h from int pointers to animation_id_t pointers, matching their definitions in openbor.c. The stale 32-bit declarations caused the script constant mapper to walk 64-bit animation tables in 32-bit steps. This returned the upper zero half of an entry for every second lookup and shifted the remaining animation constants to incorrect identifiers. This affected ANI_FOLLOW and other configurable animation families used through openborconstant(). --- engine/source/openborscript/scriptcommon.h | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/engine/source/openborscript/scriptcommon.h b/engine/source/openborscript/scriptcommon.h index 0b76bebf0..3bb70ed5d 100644 --- a/engine/source/openborscript/scriptcommon.h +++ b/engine/source/openborscript/scriptcommon.h @@ -79,26 +79,26 @@ extern s_level *level; extern s_filestream *filestreams; extern int numfilestreams; extern entity *self; -extern int *animspecials; -extern int *animattacks; -extern int *animfollows; -extern int *animpains; -extern int *animfalls; -extern int *animrises; -extern int *animriseattacks; -extern int *animdies; -extern int *animidles; -extern int *animwalks; -extern int *animbackwalks; -extern int *animups; -extern int *animdowns; -extern int *animbackpains; -extern int *animbackfalls; -extern int *animbackdies; -extern int *animbackrises; -extern int *animbackriseattacks; -extern int *animblkpains; -extern int *animbackblkpains; +extern animation_id_t *animspecials; +extern animation_id_t *animattacks; +extern animation_id_t *animfollows; +extern animation_id_t *animpains; +extern animation_id_t *animfalls; +extern animation_id_t *animrises; +extern animation_id_t *animriseattacks; +extern animation_id_t *animdies; +extern animation_id_t *animidles; +extern animation_id_t *animwalks; +extern animation_id_t *animbackwalks; +extern animation_id_t *animups; +extern animation_id_t *animdowns; +extern animation_id_t *animbackpains; +extern animation_id_t *animbackfalls; +extern animation_id_t *animbackdies; +extern animation_id_t *animbackrises; +extern animation_id_t *animbackriseattacks; +extern animation_id_t *animblkpains; +extern animation_id_t *animbackblkpains; extern s_global_config global_config;