- Duke: fixed bad init of hitag in initspriteforspawn

This commit is contained in:
Christoph Oelckers 2023-04-15 19:53:04 +02:00
parent 24fc780ede
commit 17cde1e3ca
4 changed files with 1 additions and 4 deletions

View file

@ -63,7 +63,6 @@
#include "hw_cvars.h"
EXTERN_CVAR (Bool, vid_vsync)
EXTERN_CVAR(Bool, r_drawvoxels)
EXTERN_CVAR(Int, gl_tonemap)
EXTERN_CVAR(Bool, cl_capfps)
EXTERN_CVAR(Int, gl_pipeline_depth);

View file

@ -61,7 +61,6 @@
#include "hw_cvars.h"
EXTERN_CVAR (Bool, vid_vsync)
EXTERN_CVAR(Bool, r_drawvoxels)
EXTERN_CVAR(Int, gl_tonemap)
EXTERN_CVAR(Bool, cl_capfps)
EXTERN_CVAR(Int, gl_pipeline_depth);

View file

@ -68,7 +68,6 @@
FString JitCaptureStackTrace(int framesToSkip, bool includeNativeFrames, int maxFrames = -1);
EXTERN_CVAR(Bool, r_drawvoxels)
EXTERN_CVAR(Int, gl_tonemap)
EXTERN_CVAR(Int, screenblocks)
EXTERN_CVAR(Bool, cl_capfps)

View file

@ -236,7 +236,7 @@ bool initspriteforspawn(DDukeActor* act)
auto sa = &ScriptCode[coninf->scriptaddress];
act->curAction = &actions[sa[1]];
act->curMove = &moves[sa[2]];
int s3 = ScriptCode[sa[3]];
int s3 = sa[3];
if (s3 && act->spr.hitag == 0)
act->spr.hitag = s3;
}