commit
a76bbe49ed
|
@ -204,7 +204,7 @@ option(DEV_BUILD "Enable development build (enables some debugging tools, local
|
|||
|
||||
# Official build - changes text on the crash screen
|
||||
# PLEASE DO NOT USE ON UNOFFICIAL BUILDS. Thanks.
|
||||
option(OFFICIAL_BUILD "Official build (changes crash screen text)" OFF)
|
||||
option(OFFICIAL_COLOBOT_BUILD "Official build (changes crash screen text)" OFF)
|
||||
|
||||
# Portable build - load all data from current directory
|
||||
option(PORTABLE "Portable build" OFF)
|
||||
|
|
|
@ -1871,7 +1871,12 @@ void CApplication::SetLanguage(Language language)
|
|||
// Update C++ locale
|
||||
try
|
||||
{
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
// Avoids failed assertion in VS debugger
|
||||
throw -1;
|
||||
#else
|
||||
std::locale::global(std::locale(systemLocale.c_str()));
|
||||
#endif
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
|
|
@ -133,7 +133,7 @@ void CSignalHandlers::ReportError(const std::string& errorMessage)
|
|||
msg << "including information on what you were doing before this happened and all the information below." << std::endl;
|
||||
msg << "==============================" << std::endl;
|
||||
#if BUILD_NUMBER == 0
|
||||
#ifdef OFFICIAL_BUILD
|
||||
#ifdef OFFICIAL_COLOBOT_BUILD
|
||||
msg << "You are running official " << COLOBOT_VERSION_DISPLAY << " build." << std::endl;
|
||||
#else
|
||||
// COLOBOT_VERSION_DISPLAY doesn't update if you don't run CMake after "git pull"
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
#define COLOBOT_VERSION_DISPLAY "@COLOBOT_VERSION_DISPLAY@"
|
||||
|
||||
#define BUILD_NUMBER @BUILD_NUMBER@
|
||||
#cmakedefine OFFICIAL_BUILD
|
||||
#cmakedefine OFFICIAL_COLOBOT_BUILD
|
||||
|
|
|
@ -433,7 +433,7 @@ bool CEngine::ProcessEvent(const Event &event)
|
|||
{
|
||||
auto data = event.GetData<KeyEventData>();
|
||||
|
||||
if (data->key == KEY(F12))
|
||||
if (data->key == KEY(F11) || data->key == KEY(F12))
|
||||
{
|
||||
m_showStats = !m_showStats;
|
||||
return false;
|
||||
|
|
|
@ -779,7 +779,7 @@ bool CRobotMain::ProcessEvent(Event &event)
|
|||
|
||||
if (IsPhaseWithWorld(m_phase))
|
||||
{
|
||||
if (data->key == KEY(F11))
|
||||
if (data->key == KEY(F10))
|
||||
{
|
||||
m_debugMenu->ToggleInterface();
|
||||
return false;
|
||||
|
|
|
@ -39,7 +39,7 @@ class CInterface;
|
|||
|
||||
/**
|
||||
* \class CDebugMenu
|
||||
* \brief Handles debug menu (F11)
|
||||
* \brief Handles debug menu (F10)
|
||||
*
|
||||
* There should always be only one instance of this class for each associated CRobotMain class.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue