mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Radar dome will still render idle animation on low power.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user