Browse Source

Cleaned up the first few branches a bit more [readability]

pull/4/head
Dennis Duda 8 years ago
parent
commit
6f81657988
  1. 15
      Source/player.cpp

15
Source/player.cpp

@ -3698,17 +3698,15 @@ BOOL __fastcall PM_DoRangeAttack(int pnum)
TermMsg("PM_DoRangeAttack: illegal player %d", pnum);
}
int animFrame = plr[pnum]._pAnimFrame;
if ( plr[pnum]._pIFlags & ISPL_QUICKATTACK && plr[pnum]._pAnimFrame == 1 ) {
plr[pnum]._pAnimFrame = animFrame + 1;
int origFrame = plr[pnum]._pAnimFrame;
if ( plr[pnum]._pIFlags & ISPL_QUICKATTACK && origFrame == 1 ) {
plr[pnum]._pAnimFrame++;
}
if ( plr[pnum]._pIFlags & ISPL_FASTATTACK && (animFrame == 1 || animFrame == 3) ) {
if ( plr[pnum]._pIFlags & ISPL_FASTATTACK && (origFrame == 1 || origFrame == 3) ) {
plr[pnum]._pAnimFrame++;
}
animFrame = plr[pnum]._pAnimFrame;
if ( animFrame == plr[pnum]._pAFNum ) {
if ( plr[pnum]._pAnimFrame == plr[pnum]._pAFNum ) {
int mistype = MIS_ARROW;
if ( plr[pnum]._pIFlags & ISPL_FIRE_ARROWS ) {
mistype = MIS_FARROW;
@ -3742,7 +3740,8 @@ BOOL __fastcall PM_DoRangeAttack(int pnum)
StartStand(pnum, plr[pnum]._pdir);
ClearPlrPVars(pnum);
return TRUE;
} else {
}
else {
return FALSE;
}

Loading…
Cancel
Save