mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Level editor and resource loader fixups and refactors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user