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:
parent
0b3c162ea7
commit
a0019d289d
3 changed files with 41 additions and 20 deletions
|
|
@ -4357,6 +4357,11 @@ Object *ObjectAtPosition(Point position)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
bool IsObjectAtPosition(Point position)
|
||||
{
|
||||
return ObjectAtPosition(position) != nullptr;
|
||||
}
|
||||
|
||||
void InitObjectGFX()
|
||||
{
|
||||
bool fileload[56] = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue