Hopefully fixed linking when the editor is disabled.
This commit is contained in:
parent
9e43ae7ff7
commit
fd0657aceb
1 changed files with 8 additions and 0 deletions
|
@ -36,9 +36,11 @@
|
|||
#include <iostream>
|
||||
#include <ctime>
|
||||
|
||||
#ifndef DISABLE_EDITOR
|
||||
namespace editor {
|
||||
extern std::string selected_terrain, left_button_function;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace reports {
|
||||
|
||||
|
@ -691,6 +693,11 @@ report generate_report(TYPE type,
|
|||
|
||||
return report("",game_config::observer_image,str.str());
|
||||
}
|
||||
#ifdef DISABLE_EDITOR
|
||||
case EDITOR_SELECTED_TERRAIN:
|
||||
case EDITOR_LEFT_BUTTON_FUNCTION:
|
||||
return report();
|
||||
#else
|
||||
case EDITOR_SELECTED_TERRAIN: {
|
||||
if (editor::selected_terrain.empty())
|
||||
return report();
|
||||
|
@ -703,6 +710,7 @@ report generate_report(TYPE type,
|
|||
else
|
||||
return report(editor::left_button_function);
|
||||
}
|
||||
#endif
|
||||
case REPORT_COUNTDOWN: {
|
||||
int min;
|
||||
int sec;
|
||||
|
|
Loading…
Add table
Reference in a new issue