This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ void ACrab::SetRightBGLeg(Leg *newLeg) {
576
576
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
577
577
578
578
BITMAP *ACrab::GetGraphicalIcon () const {
579
- return m_pTurret ? m_pTurret->GetSpriteFrame (0 ) : MOSprite::GetGraphicalIcon ( );
579
+ return m_GraphicalIcon ? m_GraphicalIcon : ( m_pTurret ? m_pTurret->GetSpriteFrame (0 ) : GetSpriteFrame ( 0 ) );
580
580
}
581
581
582
582
// ////////////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -436,9 +436,9 @@ int FirearmActivationDelay() const;
436
436
437
437
438
438
// / <summary>
439
- // / Gets the BITMAP representation of this ACrab's Turret, or its body if no Turret has been defined.
439
+ // / Gets the GUI representation of this ACrab, only defaulting to its Turret or body if no GraphicalIcon has been defined.
440
440
// / </summary>
441
- // / <returns>The Turret or body of this ACrab as a BITMAP.</returns>
441
+ // / <returns>The graphical representation of this ACrab as a BITMAP.</returns>
442
442
BITMAP *GetGraphicalIcon () const override ;
443
443
444
444
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ void AHuman::SetBGLeg(Leg *newLeg) {
631
631
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
632
632
633
633
BITMAP *AHuman::GetGraphicalIcon () const {
634
- return m_pHead ? m_pHead->GetSpriteFrame (0 ) : MOSprite::GetGraphicalIcon ( );
634
+ return m_GraphicalIcon ? m_GraphicalIcon : ( m_pHead ? m_pHead->GetSpriteFrame (0 ) : GetSpriteFrame ( 0 ) );
635
635
}
636
636
637
637
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -733,9 +733,9 @@ ClassInfoGetters;
733
733
734
734
735
735
// / <summary>
736
- // / Gets the BITMAP representation of this AHuman's Head, or its body if no Head has been defined.
736
+ // / Gets the GUI representation of this AHuman, only defaulting to its Head or body if no GraphicalIcon has been defined.
737
737
// / </summary>
738
- // / <returns>The Head or body of this AHuman as a BITMAP.</returns>
738
+ // / <returns>The graphical representation of this AHuman as a BITMAP.</returns>
739
739
BITMAP *GetGraphicalIcon () const override ;
740
740
741
741
You can’t perform that action at this time.
0 commit comments