mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-11 23:50:51 +02:00
Fixed a bug were nonremappable buildings were getting team colors assigned.
This commit is contained in:
@@ -4842,6 +4842,11 @@ void const * BuildingClass::Remap_Table(void)
|
||||
{
|
||||
assert(Buildings.ID(this) == ID);
|
||||
assert(IsActive);
|
||||
// jmarshall
|
||||
if(!Class->IsRemappable) {
|
||||
return NULL;
|
||||
}
|
||||
// jmarshall end
|
||||
|
||||
return(House->Remap_Table(IsBlushing, Class->Remap));
|
||||
}
|
||||
|
||||
@@ -3684,9 +3684,9 @@ void CC_Draw_Shape(void const * shapefile, int shapenum, int x, int y, WindowNum
|
||||
if ((flags & SHAPE_GHOST) && (!ghostdata)) {
|
||||
ghostdata = DisplayClass::SpecialGhost;
|
||||
}
|
||||
if ((flags & SHAPE_FADING) && (!fadingdata)) {
|
||||
fadingdata = DisplayClass::FadingShade;
|
||||
}
|
||||
//if ((flags & SHAPE_FADING) && (!fadingdata)) {
|
||||
// fadingdata = DisplayClass::FadingShade;
|
||||
//}
|
||||
|
||||
static unsigned char * _xbuffer = 0;
|
||||
|
||||
|
||||
@@ -4683,7 +4683,7 @@ void const * TechnoClass::Remap_Table(void) const
|
||||
if (Techno_Type_Class()->IsRemappable) {
|
||||
return(House->Remap_Table(IsBlushing, Techno_Type_Class()->Remap));
|
||||
}
|
||||
return(ColorRemaps[PCOLOR_GOLD].RemapTable);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user