mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-15 15:51:01 +02:00
Revert "Merge branch 'Isometric-Dev' into master"
This reverts commitae0648fccc, reversing changes made tod7243e8265.
This commit is contained in:
@@ -419,7 +419,8 @@ void AircraftTypeClass::One_Time(void)
|
||||
*/
|
||||
char buffer[_MAX_FNAME];
|
||||
sprintf(buffer, "%sICON", uclass.Graphic_Name());
|
||||
((Image_t*&)uclass.CameoData) = LoadCameoImage(buffer);
|
||||
_makepath(fullname, NULL, NULL, buffer, ".SHP");
|
||||
((void const *&)uclass.CameoData) = MFCD::Retrieve(fullname);
|
||||
|
||||
/*
|
||||
** Generic shape for all houses load method.
|
||||
@@ -544,8 +545,12 @@ void AircraftTypeClass::Prep_For_Add(void)
|
||||
void AircraftTypeClass::Display(int x, int y, WindowNumberType window, HousesType ) const
|
||||
{
|
||||
int shape = 0;
|
||||
Image_t *ptr = Get_Cameo_Data();
|
||||
CC_DrawHD_Shape(ptr, shape, x, y, window, SHAPE_CENTER|SHAPE_WIN_REL);
|
||||
void const * ptr = Get_Cameo_Data();
|
||||
if (ptr == NULL) {
|
||||
ptr = Get_Image_Data();
|
||||
shape = 5;
|
||||
}
|
||||
CC_Draw_Shape(ptr, shape, x, y, window, SHAPE_CENTER|SHAPE_WIN_REL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user