Level editor and resource loader fixups and refactors

This commit is contained in:
elasota
2020-01-23 01:19:12 -05:00
parent 27a1f89c15
commit 5a3cedaa95
43 changed files with 310 additions and 367 deletions

View File

@@ -134,13 +134,13 @@ void LoadGraphicSpecial (DrawSurface *surface, short resID)
Rect bounds;
THandle<BitmapImage> thePicture;
thePicture = GetPicture(resID);
thePicture = LoadHouseResource('PICT', resID).StaticCast<BitmapImage>();
if (thePicture == nil)
{
thePicture = GetResource('Date', resID).StaticCast<BitmapImage>();
thePicture = LoadHouseResource('Date', resID).StaticCast<BitmapImage>();
if (thePicture == nil)
{
thePicture = GetPicture(2000);
thePicture = LoadHouseResource('PICT', 2000).StaticCast<BitmapImage>();
if (thePicture == nil)
RedAlert(kErrFailedGraphicLoad);
}