Skip to content

Commit 260833c

Browse files
author
nitrocaster
committed
Delete duplicated code.
1 parent b6d698a commit 260833c

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/xrGame/ActorAnimation.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -622,20 +622,7 @@ void CActor::g_SetAnimation( u32 mstate_rl )
622622
#ifdef DEBUG
623623
if ((Level().CurrentControlEntity() == this) && g_ShowAnimationInfo) {
624624
string128 buf;
625-
xr_strcpy(buf,"");
626-
if (isActorAccelerated(mstate_rl, IsZoomAimingMode())) xr_strcat(buf,"Accel ");
627-
if (mstate_rl&mcCrouch) xr_strcat(buf,"Crouch ");
628-
if (mstate_rl&mcFwd) xr_strcat(buf,"Fwd ");
629-
if (mstate_rl&mcBack) xr_strcat(buf,"Back ");
630-
if (mstate_rl&mcLStrafe) xr_strcat(buf,"LStrafe ");
631-
if (mstate_rl&mcRStrafe) xr_strcat(buf,"RStrafe ");
632-
if (mstate_rl&mcJump) xr_strcat(buf,"Jump ");
633-
if (mstate_rl&mcFall) xr_strcat(buf,"Fall ");
634-
if (mstate_rl&mcTurn) xr_strcat(buf,"Turn ");
635-
if (mstate_rl&mcLanding) xr_strcat(buf,"Landing ");
636-
if (mstate_rl&mcLLookout) xr_strcat(buf,"LLookout ");
637-
if (mstate_rl&mcRLookout) xr_strcat(buf,"RLookout ");
638-
if (m_bJumpKeyPressed) xr_strcat(buf,"+Jumping ");
625+
ConvState(mstate_rl, &buf);
639626
UI().Font().pFontStat->OutNext ("MSTATE: [%s]",buf);
640627
/*
641628
switch (m_PhysicMovementControl->Environment())

0 commit comments

Comments
 (0)