MantisBT - Zandronum
View Issue Details
0001900Zandronum[All Projects] Suggestionpublic2014-07-29 00:272014-07-29 00:27
ZzZombo 
 
lowminorN/A
newopen 
 
 
0001900: Redudant check in A_CustomFireBullets()
src/thingdef/thingdef_codeptr.cpp contains the following code
void A_CustomFireBullets( AActor *self,
                          angle_t Spread_XY,
                          angle_t Spread_Z,
                          int NumberOfBullets,
                          int DamagePerBullet,
                          const PClass * PuffType,
                          int Flags,
                          fixed_t Range,
                          const bool pPlayAttacking = true ){
      if ( self->player == NULL)
        return;

    if (!self->player) return;
...
I guess the line "if (!self->player) return;" isn't needed there.
Not sure if this counts as a bug since the code isn't faulty.
No tags attached.
Issue History
2014-07-29 00:27ZzZomboNew Issue

There are no notes attached to this issue.