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

@@ -18,6 +18,7 @@
#include "Objects.h"
#include "Play.h"
#include "RectUtils.h"
#include "ResourceManager.h"
#include "Room.h"
@@ -2237,7 +2238,7 @@ void GetThisRoomsObjRects (void)
break;
case kCustomPict:
thePict = GetPicture(thisRoom->objects[i].data.g.height);
thePict = LoadHouseResource('PICT', thisRoom->objects[i].data.g.height).StaticCast<BitmapImage>();
if (thePict == nil)
{
thisRoom->objects[i].data.g.height = 10000;