Skip to content

Commit

Permalink
Merge branch 'master' of http://github.com/wesnoth/wesnoth
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Oct 17, 2016
2 parents 202408f + 5296254 commit 5c86a1b
Show file tree
Hide file tree
Showing 40 changed files with 250 additions and 118 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -430,6 +430,8 @@ check_compiler_has_flag(
HAS_COMPILER_FLAG_WCONDITIONAL_INITIALIZED
)

set(CXX_FLAGS_PROJECT "${CXX_FLAGS_PROJECT} -include boost-patched/bind/arg.hpp")

### Set the final compiler flags.

set(COMPILER_FLAGS "${CXX_FLAGS_PROJECT}")
Expand Down
2 changes: 2 additions & 0 deletions projectfiles/CodeBlocks/wesnoth.cbp
Expand Up @@ -348,6 +348,8 @@
<Unit filename="../../src/font/pango/stream_ops.hpp" />
<Unit filename="../../src/font/sdl_ttf.cpp" />
<Unit filename="../../src/font/sdl_ttf.hpp" />
<Unit filename="../../src/font/standard_colors.cpp" />
<Unit filename="../../src/font/standard_colors.hpp" />
<Unit filename="../../src/font/text.cpp" />
<Unit filename="../../src/font/text.hpp" />
<Unit filename="../../src/font/text_cache.cpp" />
Expand Down
32 changes: 27 additions & 5 deletions projectfiles/VC12/wesnoth.vcxproj
Expand Up @@ -148,6 +148,7 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;4003;4068;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_MSC_VER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -184,6 +185,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_MSC_VER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -226,6 +228,7 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_MSC_VER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -258,6 +261,7 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_MSC_VER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -293,6 +297,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_MSC_VER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -338,6 +343,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_MSC_VER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -1141,15 +1147,15 @@
<ClCompile Include="..\..\src\filesystem_sdl.cpp" />
<ClCompile Include="..\..\src\floating_label.cpp" />
<ClCompile Include="..\..\src\floating_textbox.cpp" />
<ClCompile Include="..\..\src\font\constants.cpp">
<ClCompile Include="..\..\src\font\font_config.cpp">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='ReleaseDEBUG|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug_with_VLD|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Release|Win32'">$(IntDir)Font\</ObjectFileName>
</ClCompile>
<ClCompile Include="..\..\src\font\font_config.cpp">
<ClCompile Include="..\..\src\font\marked-up_text.cpp">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='ReleaseDEBUG|Win32'">$(IntDir)Font\</ObjectFileName>
Expand All @@ -1165,6 +1171,14 @@
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug_with_VLD|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Release|Win32'">$(IntDir)Font\</ObjectFileName>
</ClCompile>
<ClCompile Include="..\..\src\font\standard_colors.cpp">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='ReleaseDEBUG|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug_with_VLD|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Release|Win32'">$(IntDir)Font\</ObjectFileName>
</ClCompile>
<ClCompile Include="..\..\src\font\text.cpp">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Font\</ObjectFileName>
Expand All @@ -1181,6 +1195,14 @@
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug_with_VLD|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Release|Win32'">$(IntDir)Font\</ObjectFileName>
</ClCompile>
<ClCompile Include="..\..\src\font\text_formatting.cpp">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='ReleaseDEBUG|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug_with_VLD|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Release|Win32'">$(IntDir)Font\</ObjectFileName>
</ClCompile>
<ClCompile Include="..\..\src\font\text_surface.cpp">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)Font\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Font\</ObjectFileName>
Expand Down Expand Up @@ -2823,7 +2845,6 @@
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)Map\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Test_Release|Win32'">$(IntDir)Map\</ObjectFileName>
</ClCompile>
<ClCompile Include="..\..\src\marked-up_text.cpp" />
<ClCompile Include="..\..\src\md5.cpp" />
<ClCompile Include="..\..\src\menu_events.cpp" />
<ClCompile Include="..\..\src\minimap.cpp" />
Expand Down Expand Up @@ -4089,19 +4110,21 @@
<ClInclude Include="..\..\src\filesystem.hpp" />
<ClInclude Include="..\..\src\floating_label.hpp" />
<ClInclude Include="..\..\src\floating_textbox.hpp" />
<ClInclude Include="..\..\src\font\constants.hpp" />
<ClInclude Include="..\..\src\font\font_config.hpp" />
<ClInclude Include="..\..\src\font\font_description.hpp" />
<ClInclude Include="..\..\src\font\font_id.hpp" />
<ClInclude Include="..\..\src\font\font_options.hpp" />
<ClInclude Include="..\..\src\font\marked-up_text.hpp" />
<ClInclude Include="..\..\src\font\pango\escape.hpp" />
<ClInclude Include="..\..\src\font\pango\font.hpp" />
<ClInclude Include="..\..\src\font\pango\hyperlink.hpp" />
<ClInclude Include="..\..\src\font\pango\iter.hpp" />
<ClInclude Include="..\..\src\font\pango\stream_ops.hpp" />
<ClInclude Include="..\..\src\font\sdl_ttf.hpp" />
<ClInclude Include="..\..\src\font\standard_colors.hpp" />
<ClInclude Include="..\..\src\font\text.hpp" />
<ClInclude Include="..\..\src\font\text_cache.hpp" />
<ClInclude Include="..\..\src\font\text_formatting.hpp" />
<ClInclude Include="..\..\src\font\text_surface.hpp" />
<ClInclude Include="..\..\src\formatter.hpp" />
<ClInclude Include="..\..\src\format_time_summary.hpp" />
Expand Down Expand Up @@ -4363,7 +4386,6 @@
<ClInclude Include="..\..\src\map\location.hpp" />
<ClInclude Include="..\..\src\map\map.hpp" />
<ClInclude Include="..\..\src\map_command_handler.hpp" />
<ClInclude Include="..\..\src\marked-up_text.hpp" />
<ClInclude Include="..\..\src\md5.hpp" />
<ClInclude Include="..\..\src\menu_events.hpp" />
<ClInclude Include="..\..\src\minimap.hpp" />
Expand Down
26 changes: 18 additions & 8 deletions projectfiles/VC12/wesnoth.vcxproj.filters
Expand Up @@ -1470,7 +1470,6 @@
<ClCompile Include="..\..\src\language.cpp" />
<ClCompile Include="..\..\src\lobby_preferences.cpp" />
<ClCompile Include="..\..\src\lua_jailbreak_exception.cpp" />
<ClCompile Include="..\..\src\marked-up_text.cpp" />
<ClCompile Include="..\..\src\md5.cpp" />
<ClCompile Include="..\..\src\menu_events.cpp" />
<ClCompile Include="..\..\src\minimap.cpp" />
Expand Down Expand Up @@ -1535,9 +1534,6 @@
<ClCompile Include="..\..\src\wesnoth.cpp" />
<ClCompile Include="..\..\src\wesnothd_connection.cpp" />
<ClCompile Include="..\..\src\wml_exception.cpp" />
<ClCompile Include="..\..\src\font\constants.cpp">
<Filter>Font</Filter>
</ClCompile>
<ClCompile Include="..\..\src\font\font_config.cpp">
<Filter>Font</Filter>
</ClCompile>
Expand All @@ -1553,6 +1549,15 @@
<ClCompile Include="..\..\src\font\text_surface.cpp">
<Filter>Font</Filter>
</ClCompile>
<ClCompile Include="..\..\src\font\marked-up_text.cpp">
<Filter>Font</Filter>
</ClCompile>
<ClCompile Include="..\..\src\font\standard_colors.cpp">
<Filter>Font</Filter>
</ClCompile>
<ClCompile Include="..\..\src\font\text_formatting.cpp">
<Filter>Font</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\addon\client.hpp">
Expand Down Expand Up @@ -2887,7 +2892,6 @@
<ClInclude Include="..\..\src\log.hpp" />
<ClInclude Include="..\..\src\lua_jailbreak_exception.hpp" />
<ClInclude Include="..\..\src\map_command_handler.hpp" />
<ClInclude Include="..\..\src\marked-up_text.hpp" />
<ClInclude Include="..\..\src\md5.hpp" />
<ClInclude Include="..\..\src\menu_events.hpp" />
<ClInclude Include="..\..\src\minimap.hpp" />
Expand Down Expand Up @@ -2977,9 +2981,6 @@
<ClInclude Include="..\..\src\font\pango\stream_ops.hpp">
<Filter>Font\Pango</Filter>
</ClInclude>
<ClInclude Include="..\..\src\font\constants.hpp">
<Filter>Font</Filter>
</ClInclude>
<ClInclude Include="..\..\src\font\font_config.hpp">
<Filter>Font</Filter>
</ClInclude>
Expand All @@ -3004,6 +3005,15 @@
<ClInclude Include="..\..\src\font\text_surface.hpp">
<Filter>Font</Filter>
</ClInclude>
<ClInclude Include="..\..\src\font\marked-up_text.hpp">
<Filter>Font</Filter>
</ClInclude>
<ClInclude Include="..\..\src\font\standard_colors.hpp">
<Filter>Font</Filter>
</ClInclude>
<ClInclude Include="..\..\src\font\text_formatting.hpp">
<Filter>Font</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\..\src\tests\test_sdl_utils.hpp">
Expand Down
4 changes: 4 additions & 0 deletions projectfiles/VC12/wesnothd.vcxproj
Expand Up @@ -113,6 +113,7 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;4003;4068;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Link>
<AdditionalOptions>/SAFESEH:NO %(AdditionalOptions)</AdditionalOptions>
Expand All @@ -138,6 +139,7 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Link>
<AdditionalDependencies>SDL2main.lib;SDL2.lib;SDL2_net.lib;winmm.lib;ws2_32.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -165,6 +167,7 @@
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Link>
<AdditionalDependencies>SDL2main.lib;SDL2.lib;SDL2_net.lib;winmm.lib;ws2_32.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand All @@ -189,6 +192,7 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Link>
<AdditionalDependencies>SDL2main.lib;SDL2.lib;SDL2_net.lib;winmm.lib;ws2_32.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
6 changes: 6 additions & 0 deletions projectfiles/VC12/wesnothlib.vcxproj
Expand Up @@ -95,6 +95,7 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;4003;4068;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>..\..\..\external\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Expand All @@ -116,6 +117,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>..\..\..\external\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Expand All @@ -136,6 +138,7 @@
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4503;4127;4512;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>..\..\..\external\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Expand All @@ -157,6 +160,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<ForcedIncludeFiles>boost-patched/bind/arg.hpp;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>..\..\..\external\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Expand All @@ -167,6 +171,7 @@
<ClCompile Include="..\..\src\config.cpp" />
<ClCompile Include="..\..\src\filesystem_boost.cpp" />
<ClCompile Include="..\..\src\filesystem_common.cpp" />
<ClCompile Include="..\..\src\font\constants.cpp" />
<ClCompile Include="..\..\src\game_config.cpp" />
<ClCompile Include="..\..\src\gettext_boost.cpp" />
<ClCompile Include="..\..\src\log.cpp" />
Expand All @@ -192,6 +197,7 @@
<ClInclude Include="..\..\src\config.hpp" />
<ClInclude Include="..\..\src\config_assign.hpp" />
<ClInclude Include="..\..\src\filesystem.hpp" />
<ClInclude Include="..\..\src\font\constants.hpp" />
<ClInclude Include="..\..\src\game_config.hpp" />
<ClInclude Include="..\..\src\gettext.hpp" />
<ClInclude Include="..\..\src\global.hpp" />
Expand Down
9 changes: 9 additions & 0 deletions projectfiles/VC12/wesnothlib.vcxproj.filters
Expand Up @@ -8,6 +8,9 @@
<Filter Include="Serialization">
<UniqueIdentifier>{6dc90a51-9e0e-481d-aecb-1504d6f9a21b}</UniqueIdentifier>
</Filter>
<Filter Include="Font">
<UniqueIdentifier>{2ce5a818-4bb3-4502-8751-f2d8f3f36527}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\serialization\binary_or_text.cpp">
Expand Down Expand Up @@ -45,6 +48,9 @@
<ClCompile Include="..\..\src\thread.cpp" />
<ClCompile Include="..\..\src\tstring.cpp" />
<ClCompile Include="..\..\src\version.cpp" />
<ClCompile Include="..\..\src\font\constants.cpp">
<Filter>Font</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\serialization\binary_or_text.hpp">
Expand Down Expand Up @@ -85,5 +91,8 @@
<ClInclude Include="..\..\src\tstring.hpp" />
<ClInclude Include="..\..\src\version.hpp" />
<ClInclude Include="..\..\src\wesconfig.h" />
<ClInclude Include="..\..\src\font\constants.hpp">
<Filter>Font</Filter>
</ClInclude>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/SConscript
Expand Up @@ -6,6 +6,10 @@ from glob import glob

Import("*")

# Inject boost::bind patch everywhere
for env in [test_env, client_env, env]:
env.Append(CCFLAGS = Split("-include boost-patched/bind/arg.hpp"))

for env in [test_env, client_env, env]:
env.Append(CPPDEFINES = "$EXTRA_DEFINE")

Expand Down
4 changes: 2 additions & 2 deletions src/actions/undo_action.cpp
Expand Up @@ -113,11 +113,11 @@ namespace {

if(u1) {
unit_ptr who = get_unit(e.uid1, e.id1);
who->set_location(map_location(real1));
who->set_location(real1);
}
if(u2) {
unit_ptr who = get_unit(e.uid2, e.id2);
who->set_location(map_location(real2));
who->set_location(real2);
}

x1 = oldx1; y1 = oldy1;
Expand Down

0 comments on commit 5c86a1b

Please sign in to comment.