Radar dome will still render idle animation on low power.

This commit is contained in:
Justin Marshall
2020-08-04 14:55:33 -07:00
parent cfe934e8db
commit 2c445ae910
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ void BuildingClass::Draw_It(int x, int y, WindowNumberType window) const
// jmarshall idle/construction animation // jmarshall idle/construction animation
// Only play the idle animation if we have power! // Only play the idle animation if we have power!
if (!Class->IsPowered || (Class->IsPowered && House->Power_Fraction() >= 1)) { if (Class->IdleAnimIgnorePowerState || !Class->IsPowered || (Class->IsPowered && House->Power_Fraction() >= 1)) {
if (Class->IdleAnimShape != NULL) { if (Class->IdleAnimShape != NULL) {
int shapeNum = animFrameNum; int shapeNum = animFrameNum;
int maxframes = Get_Build_Frame_Count(Class->IdleAnimShape); int maxframes = Get_Build_Frame_Count(Class->IdleAnimShape);
+4 -1
View File
@@ -823,6 +823,7 @@ class BuildingTypeClass : public TechnoTypeClass {
const void* CustomTheatrePalette[3]; const void* CustomTheatrePalette[3];
const void* IdleAnimShape; const void* IdleAnimShape;
const void* ActiveAnimAnimShape; const void* ActiveAnimAnimShape;
int IdleAnimIgnorePowerState;
int IdleHasShadowFrames; int IdleHasShadowFrames;
int IdleAnimNonDamagedStart; int IdleAnimNonDamagedStart;
int IdleAnimNonDamagedFrames; int IdleAnimNonDamagedFrames;
@@ -831,8 +832,10 @@ class BuildingTypeClass : public TechnoTypeClass {
int ActiveAnimNonDamagedStart; int ActiveAnimNonDamagedStart;
int ActiveAnimNonDamagedFrames; int ActiveAnimNonDamagedFrames;
int ActiveAnimDamagedStart; int ActiveAnimDamagedStart;
int ActiveAnimDamagedFrames; int ActiveAnimDamagedFrames;
private: private:
int tileW;
int tileH;
/* /*
** This is a pointer to a list of offsets (from the upper left corner) that ** This is a pointer to a list of offsets (from the upper left corner) that
+1
View File
@@ -1545,6 +1545,7 @@ Temperate=eapal1tem.pal
Image=ngradr Image=ngradr
IdleAnim=ngradr_a.shp IdleAnim=ngradr_a.shp
IdleHasShadowFrames=1 IdleHasShadowFrames=1
IdleAnimIgnorePowerState=1
IdleAnimNonDamagedStart=0 IdleAnimNonDamagedStart=0
IdleAnimNonDamagedFrames=45 IdleAnimNonDamagedFrames=45
IdleAnimDamagedStart=45 IdleAnimDamagedStart=45