From ee73811cfe4a938e572f12e5445f53ddc9d5d746 Mon Sep 17 00:00:00 2001 From: Flugente Date: Sat, 17 Feb 2018 19:32:10 +0000 Subject: [PATCH] If PRINTOUTTILESET is TRUE, also print out the room number when pressing 'f'. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8521 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Turn Based Input.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index e1cdc7cb..dac1f5b8 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -3420,6 +3420,15 @@ void GetKeyboardInput( UINT32 *puiNewEvent ) } } } + + extern BOOLEAN InARoom( INT32 sGridNo, UINT16 *pusRoomNo ); + + UINT16 usRoom; + if ( InARoom( usGridNo, &usRoom ) ) + { + swprintf( zOutputString, L"Room number: %d", usRoom ); + ScreenMsg( FONT_MCOLOR_LTGREEN, MSG_INTERFACE, zOutputString ); + } } } }