Disable terrain-graphics when NO_TERRAIN_GFX is defined.

Activated by TITLE_SCREEN (auto defined when starting title screen)
and now also by NO_GUI.
This commit is contained in:
Ali El Gariani 2010-07-29 20:21:37 +00:00
parent 54e933d55d
commit 0c59428b30
2 changed files with 13 additions and 2 deletions

View file

@ -55,9 +55,20 @@
name="wesnoth-anl"
[/textdomain]
# title screen and no_gui mode doens't need terrain_graphics
#ifdef TITLE_SCREEN
#define NO_TERRAIN_GFX
#enddef
#endif
#ifdef NO_GUI
#define NO_TERRAIN_GFX
#enddef
#endif
#ifndef NO_TERRAIN_GFX
# Include the terrain-graphics definitions after the campaigns so campaign specific
# terrains work properly.
#ifndef TITLE_SCREEN
{core/terrain-graphics.cfg}
#endif

View file

@ -3,7 +3,7 @@
# wmlscope: set export=yes
#ifndef TITLE_SCREEN
#ifndef NO_TERRAIN_GFX
{core/terrain-graphics/}
#endif