Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Tactical/Keys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,11 @@ BOOLEAN LoadDoorTableFromDoorTableTempFile( )



static auto ComplainAboutMissingDoorStructure(const INT32 GridNo) {
#if JA2TESTVERSION
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_BETAVERSION, L"Door structure data at %d was not found", GridNo);
#endif
}

// fOpen is True if the door is open, false if it is closed
BOOLEAN ModifyDoorStatus( INT32 sGridNo, BOOLEAN fOpen, BOOLEAN fPerceivedOpen )
Expand All @@ -1190,6 +1195,7 @@ BOOLEAN ModifyDoorStatus( INT32 sGridNo, BOOLEAN fOpen, BOOLEAN fPerceivedOpen )

if ( pBaseStructure == NULL )
{
ComplainAboutMissingDoorStructure(sGridNo);
return( FALSE );
}

Expand Down Expand Up @@ -1311,6 +1317,7 @@ BOOLEAN IsDoorOpen( INT32 sGridNo )

if ( pBaseStructure == NULL )
{
ComplainAboutMissingDoorStructure(sGridNo);
return( FALSE );
}

Expand Down Expand Up @@ -1361,6 +1368,7 @@ DOOR_STATUS *GetDoorStatus( INT32 sGridNo )

if ( pBaseStructure == NULL )
{
ComplainAboutMissingDoorStructure(sGridNo);
return( NULL );
}

Expand Down Expand Up @@ -1521,6 +1529,7 @@ void SyncronizeDoorStatusToStructureData( DOOR_STATUS *pDoorStatus )

if ( pBaseStructure == NULL )
{
ComplainAboutMissingDoorStructure(pDoorStatus->sGridNo);
return;
}

Expand Down Expand Up @@ -1602,6 +1611,7 @@ void InternalUpdateDoorGraphicFromStatus( DOOR_STATUS *pDoorStatus, BOOLEAN fUse

if ( pBaseStructure == NULL )
{
ComplainAboutMissingDoorStructure(pDoorStatus->sGridNo);
return;
}

Expand Down