Added custom theater palette support in Rules.ini. Fixed a crash bug in TS/RA2 SHP were referenced frames can exceed total SHP frames.

This commit is contained in:
Justin Marshall
2020-08-01 10:27:11 -07:00
parent 93a0819fe9
commit 8e4a9a019c
10 changed files with 44 additions and 5 deletions
+4
View File
@@ -4419,6 +4419,10 @@ void TechnoClass::Techno_Draw_Object(void const * shapefile, int shapenum, int x
void const * remap = Remap_Table();
void const * shadow = Map.UnitShadow;
if (shapenum >= Get_Build_Frame_Count(shapefile)) {
shapenum = 0;
}
#ifdef PARTIAL
/*
** Create a minimum shape rectangle if one hasn't already been