SNOWCRAFT + Fix build
This commit is contained in:
parent
5137cfb690
commit
d31f8dfcb8
@ -13,8 +13,8 @@
|
||||
#if defined USE_CMAKE_CONFIG_H
|
||||
#include "cmake_config.h"
|
||||
#elif defined (__ANDROID__) || defined (ANDROID)
|
||||
#define PROJECT_NAME "MultiCraft"
|
||||
#define PROJECT_NAME_C "MultiCraft"
|
||||
#define PROJECT_NAME "SnowCraft"
|
||||
#define PROJECT_NAME_C "SnowCraft"
|
||||
#define STATIC_SHAREDIR ""
|
||||
#include "android_version.h"
|
||||
#ifdef NDEBUG
|
||||
|
@ -308,8 +308,8 @@ void set_default_settings(Settings *settings)
|
||||
settings->setDefault("liquid_update", "1.0");
|
||||
|
||||
//mapgen stuff
|
||||
//settings->setDefault("mg_name", "v7");
|
||||
settings->setDefault("mg_name", "v6");
|
||||
settings->setDefault("mg_name", "v7");
|
||||
//settings->setDefault("mg_name", "v6");
|
||||
settings->setDefault("water_level", "1");
|
||||
settings->setDefault("chunksize", "5");
|
||||
settings->setDefault("mg_flags", "dungeons");
|
||||
|
@ -431,12 +431,12 @@ void draw_scene(video::IVideoDriver *driver, scene::ISceneManager *smgr,
|
||||
bool draw_crosshair = ((player->hud_flags & HUD_FLAG_CROSSHAIR_VISIBLE) &&
|
||||
(camera.getCameraMode() != CAMERA_MODE_THIRD_FRONT));
|
||||
|
||||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
try {
|
||||
draw_crosshair = !g_settings->getBool("touchtarget");
|
||||
}
|
||||
catch(SettingNotFoundException) {}
|
||||
#endif
|
||||
//#ifdef HAVE_TOUCHSCREENGUI
|
||||
// try {
|
||||
// draw_crosshair = !g_settings->getBool("touchtarget");
|
||||
// }
|
||||
// catch(SettingNotFoundException) {}
|
||||
//#endif
|
||||
|
||||
std::string draw_mode = g_settings->get("3d_mode");
|
||||
|
||||
|
@ -1141,12 +1141,12 @@ static void show_pause_menu(GUIFormSpecMenu **cur_formspec,
|
||||
<< strgettext("Sound Volume") << "]";
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_key_config;"
|
||||
<< strgettext("Change Keys") << "]";
|
||||
#endif
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_exit_menu;"
|
||||
<< strgettext("Exit to Menu") << "]";
|
||||
//#endif
|
||||
#endif
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_exit_os;"
|
||||
<< strgettext("Exit to OS") << "]"
|
||||
<< strgettext("Exit") << "]"
|
||||
#ifndef __ANDROID__
|
||||
<< "textarea[7.5,0.25;3.9,6.25;;" << control_text << ";]"
|
||||
<< "textarea[0.4,0.25;3.5,6;;" << PROJECT_NAME_C "\n"
|
||||
<< g_build_info << "\n"
|
||||
@ -2636,6 +2636,7 @@ void Game::processKeyboardInput(VolatileRunFlags *flags,
|
||||
|
||||
if (input->wasKeyDown(keycache.key[KeyCache::KEYMAP_ID_DROP])) {
|
||||
dropSelectedItem();
|
||||
// Add WoW-style autorun by toggling continuous forward.
|
||||
} else if (input->wasKeyDown(keycache.key[KeyCache::KEYMAP_ID_AUTORUN])) {
|
||||
toggleAutorun(statustext_time);
|
||||
} else if (input->wasKeyDown(keycache.key[KeyCache::KEYMAP_ID_INVENTORY])) {
|
||||
@ -4477,4 +4478,4 @@ void the_game(bool *kill,
|
||||
error_message = e.what() + strgettext("\nCheck debug.txt for details.");
|
||||
errorstream << "ModError: " << error_message << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
@ -194,6 +194,3 @@ ScriptApiPlayer::~ScriptApiPlayer()
|
||||
{
|
||||
}
|
||||
|
||||
ScriptApiPlayer::~ScriptApiPlayer()
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user