SAGA2: Fix MSVC compilation

This commit is contained in:
Eugene Sandulenko 2021-06-30 02:31:42 +02:00
parent 07153ec2cb
commit c14b9f9389
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
3 changed files with 4 additions and 5 deletions

View File

@ -49,6 +49,7 @@
#include "saga2/transit.h"
#include "saga2/contain.h"
#include "saga2/tile.h"
#include "saga2/tilemode.h"
void drawMainDisplay(void);
@ -3817,9 +3818,6 @@ int16 scriptTransportCenterBand(int16 *args) {
// void "c" lockUI( int locked )
int16 scriptLockUI(int16 *args) {
extern void LockUI(bool state);
extern void noStickyMap(void);
MONOLOG(lockUI);
noStickyMap();

View File

@ -37,6 +37,7 @@
#include "saga2/annoy.h"
#include "saga2/savefile.h"
#include "saga2/cmisc.h"
#include "saga2/tilemode.h"
namespace Saga2 {
@ -1096,8 +1097,6 @@ Speech *SpeechTaskList::newTask(ObjectID id, uint16 flags) {
void SpeechTaskList::SetLock(int newState) {
if (newState && lockFlag == false) {
extern void noStickyMap(void);
noStickyMap();
LockUI(true);
lockFlag = true;

View File

@ -60,6 +60,8 @@ inline void cleanupTileModeState(void) { /* do nothing */ }
void TileModeSetup(void); // alloc tile resources
void TileModeCleanup(void); // free tile resources
void noStickyMap(void);
} // end of namespace Saga2
#endif