Use Point based object lookups in themes.cpp

Move bookstand lookup inside coinflip if statement, minimises the scope of that pointer.

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
This commit is contained in:
ephphatha 2021-10-29 00:37:02 +11:00 committed by Anders Jenbo
commit a0019d289d
3 changed files with 41 additions and 20 deletions

View file

@ -4357,6 +4357,11 @@ Object *ObjectAtPosition(Point position)
return nullptr;
}
bool IsObjectAtPosition(Point position)
{
return ObjectAtPosition(position) != nullptr;
}
void InitObjectGFX()
{
bool fileload[56] = {};