omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
361 stars 36 forks source link

Pyros' win animation glitches. #655

Open nopjne opened 5 days ago

nopjne commented 5 days ago

https://github.com/user-attachments/assets/45ffb111-87b3-46a6-8176-d258151276e0

Vagabond commented 5 days ago
--- a/src/game/protos/player.c
+++ b/src/game/protos/player.c
@@ -723,7 +723,7 @@ void player_run(object *obj) {
     // Tick management
     if(sd_script_isset(frame, "d") && !obj->animation_state.disable_d) {
         state->previous_tick = state->current_tick;
-        state->current_tick = sd_script_get(frame, "d");
+        state->current_tick = sd_script_get(frame, "d") + 1;
         return;
     }

Fixes it, but its not clear if that will break any other uses of the 'd' tag.

nopjne commented 5 days ago

Is there a good way to know what else uses the d tag? I can try those out too.