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
// 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) {
int shapeNum = animFrameNum;
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* IdleAnimShape;
const void* ActiveAnimAnimShape;
int IdleAnimIgnorePowerState;
int IdleHasShadowFrames;
int IdleAnimNonDamagedStart;
int IdleAnimNonDamagedFrames;
@@ -831,8 +832,10 @@ class BuildingTypeClass : public TechnoTypeClass {
int ActiveAnimNonDamagedStart;
int ActiveAnimNonDamagedFrames;
int ActiveAnimDamagedStart;
int ActiveAnimDamagedFrames;
int ActiveAnimDamagedFrames;
private:
int tileW;
int tileH;
/*
** This is a pointer to a list of offsets (from the upper left corner) that