From aee26c2637aebf799af4527a2357794694e4eeaa Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 1 May 2023 10:50:23 +0200 Subject: [PATCH] - reset counter in SetMove --- source/games/duke/src/vmexports.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/games/duke/src/vmexports.cpp b/source/games/duke/src/vmexports.cpp index bcb9bc5ca..368f15981 100644 --- a/source/games/duke/src/vmexports.cpp +++ b/source/games/duke/src/vmexports.cpp @@ -741,6 +741,7 @@ void Duke_SetMove(DDukeActor* self, int intname, int flags) int ndx = LookupMove(self->GetClass(), FName(ENamedName(intname))); self->curMove = &moves[ndx]; self->spr.hitag = flags; + self->counter = 0; } DEFINE_ACTION_FUNCTION_NATIVE(DDukeActor, SetMove, Duke_SetMove)