Merge branch 'master' into jgrpp
# Conflicts: # src/debug.cpp
This commit is contained in:
@@ -440,6 +440,7 @@ void SQGSWindow_Register(Squirrel *engine)
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_CAPTION, "WID_SL_CAPTION");
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_SORT_BYNAME, "WID_SL_SORT_BYNAME");
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_SORT_BYDATE, "WID_SL_SORT_BYDATE");
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_FILTER, "WID_SL_FILTER");
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_BACKGROUND, "WID_SL_BACKGROUND");
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_FILE_BACKGROUND, "WID_SL_FILE_BACKGROUND");
|
||||
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_HOME_BUTTON, "WID_SL_HOME_BUTTON");
|
||||
|
@@ -10,6 +10,7 @@
|
||||
/** @file script_companymode.cpp Implementation of ScriptCompanyMode. */
|
||||
|
||||
#include "../../stdafx.h"
|
||||
#include "../../company_base.h"
|
||||
#include "script_companymode.hpp"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
@@ -17,6 +18,7 @@
|
||||
ScriptCompanyMode::ScriptCompanyMode(int company)
|
||||
{
|
||||
if (company < OWNER_BEGIN || company >= MAX_COMPANIES) company = INVALID_COMPANY;
|
||||
if (!::Company::IsValidID(company)) company = INVALID_COMPANY;
|
||||
|
||||
this->last_company = ScriptObject::GetCompany();
|
||||
ScriptObject::SetCompany((CompanyID)company);
|
||||
|
@@ -1025,7 +1025,7 @@ public:
|
||||
};
|
||||
|
||||
/* automatically generated from ../../widgets/cheat_widget.h */
|
||||
/** Widgets of the #CheatWindow class.. */
|
||||
/** Widgets of the #CheatWindow class. */
|
||||
enum CheatWidgets {
|
||||
WID_C_PANEL = ::WID_C_PANEL, ///< Panel where all cheats are shown in.
|
||||
};
|
||||
@@ -1296,6 +1296,7 @@ public:
|
||||
WID_SL_CAPTION = ::WID_SL_CAPTION, ///< Caption of the window.
|
||||
WID_SL_SORT_BYNAME = ::WID_SL_SORT_BYNAME, ///< Sort by name button.
|
||||
WID_SL_SORT_BYDATE = ::WID_SL_SORT_BYDATE, ///< Sort by date button.
|
||||
WID_SL_FILTER = ::WID_SL_FILTER, ///< Filter list of files
|
||||
WID_SL_BACKGROUND = ::WID_SL_BACKGROUND, ///< Background of window.
|
||||
WID_SL_FILE_BACKGROUND = ::WID_SL_FILE_BACKGROUND, ///< Background of file selection.
|
||||
WID_SL_HOME_BUTTON = ::WID_SL_HOME_BUTTON, ///< Home button.
|
||||
|
Reference in New Issue
Block a user