mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include "EditorMapInfo.h"
|
||||
#endif
|
||||
|
||||
#include "LoadScreen.h"
|
||||
|
||||
extern SOLDIERINITNODE *gpSelected;
|
||||
extern SCHEDULENODE gCurrSchedule;
|
||||
extern void ExtractAndUpdateMercSchedule();
|
||||
@@ -648,8 +650,17 @@ void BtnChangeTilesetCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
{
|
||||
if(reason & MSYS_CALLBACK_REASON_LBUTTON_DWN)
|
||||
{
|
||||
btn->uiFlags |= BUTTON_CLICKED_ON;
|
||||
iEditorToolbarState = TBAR_MODE_CHANGE_TILESET;
|
||||
// WANNE: Check if map has been saved when we have a new map that has not been saved before!
|
||||
if (fNewMapSaved)
|
||||
{
|
||||
btn->uiFlags |= BUTTON_CLICKED_ON;
|
||||
iEditorToolbarState = TBAR_MODE_CHANGE_TILESET;
|
||||
}
|
||||
else
|
||||
{
|
||||
swprintf(gzErrorCatchString, L"Before changing tilesets you have to save the new map!");
|
||||
InitErrorCatchDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user