some smaller VC++ compiler corrections

fixes graphical glitch of replay buttons having the wrong background
This commit is contained in:
Jörg Hinrichs 2006-02-25 10:20:56 +00:00
parent c19761c336
commit f0474fbe44
5 changed files with 76 additions and 38 deletions

View file

@ -1,24 +1,24 @@
# Microsoft Developer Studio Project File - Name="Map Editor" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=Map Editor - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
!MESSAGE
!MESSAGE NMAKE /f "Map Editor.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "Map Editor.mak" CFG="Map Editor - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE
!MESSAGE "Map Editor - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "Map Editor - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "Map Editor - Win32 Release" (basierend auf "Win32 (x86) Application")
!MESSAGE "Map Editor - Win32 Debug" (basierend auf "Win32 (x86) Application")
!MESSAGE
# Begin Project
@ -43,7 +43,8 @@ RSC=rc.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_FRIBIDI" /FR /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /I "c:\entwicklung\wesnoth\wesnoth-1.1.1\src" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_FRIBIDI" /YX /FD /c
# SUBTRACT CPP /Fr
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x407 /d "NDEBUG"

View file

@ -41,6 +41,7 @@ LEVEL_RESULT play_replay_level(const game_data& gameinfo, const config& game_con
}
}
catch(end_level_exception&){
LOG_NG << "play_replay_level: end_level_exception\n";
}
return LEVEL_CONTINUE;

View file

@ -95,7 +95,7 @@ const std::string ability::description() const
/// heals_ability ///
heals_ability::heals_ability(const config* cfg)
: ability::ability(cfg)
: ability(cfg)
{
amount_=lexical_cast_default<int>((*cfg)["amount"],game_config::healer_heals_per_turn);
max_=lexical_cast_default<int>((*cfg)["max"],game_config::heal_amount);
@ -119,7 +119,7 @@ void heals_ability::set_heal(int amount, int max)
/// regenerates_ability ///
regenerates_ability::regenerates_ability(const config* cfg)
: ability::ability(cfg)
: ability(cfg)
{
regeneration_=lexical_cast_default<int>((*cfg)["amount"],game_config::cure_amount);
}
@ -136,7 +136,7 @@ void regenerates_ability::set_regeneration(int reg)
/// leadership_ability ///
leadership_ability::leadership_ability(const config* cfg)
: ability::ability(cfg)
: ability(cfg)
{
perlevel_bonus_=lexical_cast_default<int>((*cfg)["perlevel_bonus"],game_config::leadership_bonus);
}
@ -153,7 +153,7 @@ void leadership_ability::set_leadership(int perlevel_bonus)
/// illuminates_ability ///
illuminates_ability::illuminates_ability(const config* cfg)
: ability::ability(cfg)
: ability(cfg)
{
level_=lexical_cast_default<int>((*cfg)["level"],1);
}
@ -170,7 +170,7 @@ void illuminates_ability::set_illumination(int level)
/// steadfast_ability ///
steadfast_ability::steadfast_ability(const config* cfg)
: ability::ability(cfg)
: ability(cfg)
{
std::string bonus_string = (*cfg)["bonus"];
bonus_=lexical_cast_default<int>(bonus_string,100);

View file

@ -255,6 +255,10 @@ void button::mouse_motion(SDL_MouseMotionEvent const &event)
state_ = ACTIVE;
else if (state_ == PRESSED && type_ == TYPE_CHECK)
state_ = PRESSED_ACTIVE;
if (type_ == TYPE_CHECK){
bg_update();
draw();
}
} else {
// the cursor is not over the widget
if (state_ == PRESSED_ACTIVE)

View file

@ -1,24 +1,24 @@
# Microsoft Developer Studio Project File - Name="wesnoth" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=wesnoth - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
!MESSAGE
!MESSAGE NMAKE /f "wesnoth.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "wesnoth.mak" CFG="wesnoth - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE
!MESSAGE "wesnoth - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "wesnoth - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "wesnoth - Win32 Debug" (basierend auf "Win32 (x86) Application")
!MESSAGE "wesnoth - Win32 Release" (basierend auf "Win32 (x86) Application")
!MESSAGE
# Begin Project
@ -42,18 +42,18 @@ RSC=rc.exe
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_DEBUG" /YX /FD /GZ /c
# ADD CPP /nologo /MD /W3 /Gm /GR /GX /ZI /Od /Op /Oy /I "f:/projets/gpl/wesnoth/wesnoth-trunk/src" /I "f:/projets/include/sdl" /I "f:/projets/include" /I "f:/projets/gpl/wesnoth/wesnoth-trunk/src/sdl_ttf" /I "c:\program files\python 2.4\include" /I "f:/wesnoth/src" /I "f:/SDL-1.2.7/include" /I "f:/SDL_image-1.2.3/include" /I "f:/SDL_mixer-1.2.5/include" /I "f:/SDL_net-1.2.5/include" /I "src/sdl_ttf" /I "f:/libintl-devel/include" /I "f:/intl/include" /I "f:/projets/gpl/" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_PYTHON" /D "_DEBUG" /D "HAVE_FRIBIDI" /FR /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "NDEBUG" /D "_DEBUG" /mktyplib203 /win32 /win32
# ADD MTL /nologo /D "NDEBUG" /D "_DEBUG" /mktyplib203 /win32 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_DEBUG"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_DEBUG"
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MD /W3 /Gm /GR /GX /ZI /Od /I "f:/wesnoth/src" /I "f:/SDL-1.2.7/include" /I "f:/SDL_image-1.2.3/include" /I "f:/SDL_mixer-1.2.5/include" /I "f:/SDL_net-1.2.5/include" /I "src/sdl_ttf" /I "f:/libintl-devel/include" /I "f:/intl/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_FRIBIDI" /FR /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib python24.lib /nologo /subsystem:windows /debug /machine:I386 /out:"wesnoth.exe" /pdbtype:sept /libpath:"f:\projets\lib" /libpath:"c:\program files\python 2.4\libs"
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib python24.lib /nologo /subsystem:windows /debug /machine:I386 /out:"wesnoth.exe" /pdbtype:sept
!ELSEIF "$(CFG)" == "wesnoth - Win32 Release"
@ -69,8 +69,8 @@ LINK32=link.exe
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "f:/wesnoth/src" /I "f:/SDL-1.2.7/include" /I "f:/SDL_image-1.2.3/include" /I "f:/SDL_mixer-1.2.5/include" /I "f:/SDL_net-1.2.5/include" /I "src/sdl_ttf" /I "f:/libintl-devel/include" /I "f:/intl/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_FRIBIDI" /D "HAVE_PYTHON" /FR /YX /FD /GZ /GZ /c
# ADD CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "f:/projets/gpl/wesnoth/wesnoth-trunk/src" /I "f:/projets/include/sdl" /I "f:/projets/include" /I "f:/projets/gpl/wesnoth/wesnoth-trunk/src/sdl_ttf" /I "c:\program files\python 2.4\include" /I "f:/wesnoth/src" /I "f:/SDL-1.2.7/include" /I "f:/SDL_image-1.2.3/include" /I "f:/SDL_mixer-1.2.5/include" /I "f:/SDL_net-1.2.5/include" /I "src/sdl_ttf" /I "f:/libintl-devel/include" /I "f:/intl/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_PYTHON" /D "HAVE_FRIBIDI" /FR /YX /FD /GZ /GZ /c
# ADD BASE CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "f:/wesnoth/src" /I "f:/SDL-1.2.7/include" /I "f:/SDL_image-1.2.3/include" /I "f:/SDL_mixer-1.2.5/include" /I "f:/SDL_net-1.2.5/include" /I "src/sdl_ttf" /I "f:/libintl-devel/include" /I "f:/intl/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_FRIBIDI" /D "HAVE_PYTHON" /FR /YX /FD /GZ /c
# ADD CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "f:/wesnoth/src" /I "f:/SDL-1.2.7/include" /I "f:/SDL_image-1.2.3/include" /I "f:/SDL_mixer-1.2.5/include" /I "f:/SDL_net-1.2.5/include" /I "src/sdl_ttf" /I "f:/libintl-devel/include" /I "f:/intl/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_FRIBIDI" /D "HAVE_PYTHON" /FR /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
@ -79,8 +79,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib /nologo /subsystem:windows /debug /machine:I386 /out:"wesnoth.exe" /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib /nologo /subsystem:windows /debug /machine:I386 /out:"wesnoth.exe" /pdbtype:sept /libpath:"f:\projets\lib" /libpath:"c:\program files\python 2.4\libs"
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib /nologo /subsystem:windows /debug /machine:I386 /out:"wesnoth.exe" /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib SDL.lib SDLmain.lib SDL_mixer.lib SDL_net.lib SDL_image.lib libintl.lib freetype.lib Ws2_32.lib fribidi.lib /nologo /subsystem:windows /debug /machine:I386 /out:"wesnoth.exe" /pdbtype:sept
!ENDIF
@ -129,6 +129,10 @@ SOURCE=.\src\astarnode.cpp
# End Source File
# Begin Source File
SOURCE=.\src\attack_prediction.cpp
# End Source File
# Begin Source File
SOURCE=.\src\serialization\binary_or_text.cpp
# End Source File
# Begin Source File
@ -361,6 +365,10 @@ SOURCE=.\src\pathutils.cpp
# End Source File
# Begin Source File
SOURCE=.\src\play_controller.cpp
# End Source File
# Begin Source File
SOURCE=.\src\playcampaign.cpp
# End Source File
# Begin Source File
@ -461,6 +469,10 @@ SOURCE=.\src\terrain.cpp
# End Source File
# Begin Source File
SOURCE=.\src\test_log.cpp
# End Source File
# Begin Source File
SOURCE=.\src\widgets\textbox.cpp
# End Source File
# Begin Source File
@ -493,6 +505,14 @@ SOURCE=.\src\unit.cpp
# End Source File
# Begin Source File
SOURCE=.\src\unit_abilities.cpp
# End Source File
# Begin Source File
SOURCE=.\src\unit_animation.cpp
# End Source File
# Begin Source File
SOURCE=.\src\unit_display.cpp
# End Source File
# Begin Source File
@ -545,6 +565,10 @@ SOURCE=.\src\ai2.hpp
# End Source File
# Begin Source File
SOURCE=.\src\ai_dfool.hpp
# End Source File
# Begin Source File
SOURCE=.\src\ai_interface.hpp
# End Source File
# Begin Source File
@ -557,10 +581,6 @@ SOURCE=.\src\ai_python.hpp
# End Source File
# Begin Source File
SOURCE=.\src\ai_python.hpp
# End Source File
# Begin Source File
SOURCE=.\src\animated.hpp
# End Source File
# Begin Source File
@ -641,6 +661,10 @@ SOURCE=.\src\font.hpp
# End Source File
# Begin Source File
SOURCE=.\src\game.hpp
# End Source File
# Begin Source File
SOURCE=.\src\game_config.hpp
# End Source File
# Begin Source File
@ -937,6 +961,14 @@ SOURCE=.\src\unit.hpp
# End Source File
# Begin Source File
SOURCE=.\src\unit_abilities.hpp
# End Source File
# Begin Source File
SOURCE=.\src\unit_animation.hpp
# End Source File
# Begin Source File
SOURCE=.\src\unit_display.hpp
# End Source File
# Begin Source File