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
|
// 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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user