mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
fix network merge issues, fix #1785
This commit is contained in:
@@ -3831,9 +3831,8 @@ STR_5489 :{SMALLFONT}{BLACK}Show only tracked guests
|
|||||||
STR_5490 :Disable audio on focus loss
|
STR_5490 :Disable audio on focus loss
|
||||||
STR_5491 :Inventions list
|
STR_5491 :Inventions list
|
||||||
STR_5492 :Scenario options
|
STR_5492 :Scenario options
|
||||||
|
STR_5493 :Send Message
|
||||||
STR_6000 :Send Message
|
STR_5494 :Type the message you would like to send.
|
||||||
STR_6001 :Type the message you would like to send.
|
STR_5495 :Player List
|
||||||
STR_6002 :Player List
|
STR_5496 :Player:
|
||||||
STR_6003 :Player:
|
STR_5497 :Ping:
|
||||||
STR_6004 :Ping:
|
|
||||||
|
|||||||
@@ -347,7 +347,7 @@
|
|||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||||
@@ -378,7 +378,7 @@ xcopy /YS "$(SolutionDir)\..\Data" "$(TargetDir)\Data"</Command>
|
|||||||
<OmitFramePointers>
|
<OmitFramePointers>
|
||||||
</OmitFramePointers>
|
</OmitFramePointers>
|
||||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
@@ -418,7 +418,7 @@ xcopy /YS "$(SolutionDir)\..\Data" "$(TargetDir)\Data"</Command>
|
|||||||
<OmitFramePointers>
|
<OmitFramePointers>
|
||||||
</OmitFramePointers>
|
</OmitFramePointers>
|
||||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;CURL_STATICLIB;ENABLE_TESTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;ENABLE_TESTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|||||||
@@ -498,13 +498,6 @@
|
|||||||
<ClCompile Include="..\src\localisation\convert.c">
|
<ClCompile Include="..\src\localisation\convert.c">
|
||||||
<Filter>Source\Localisation</Filter>
|
<Filter>Source\Localisation</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\network\network.c">
|
|
||||||
<ClCompile Include="..\src\network\network.cpp">
|
|
||||||
<Filter>Source\Network</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\windows\network.c">
|
|
||||||
<Filter>Source\Windows</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\drawing\scrolling_text.c">
|
<ClCompile Include="..\src\drawing\scrolling_text.c">
|
||||||
<Filter>Source\Drawing</Filter>
|
<Filter>Source\Drawing</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@@ -514,6 +507,18 @@
|
|||||||
<ClCompile Include="..\src\localisation\utf8.c">
|
<ClCompile Include="..\src\localisation\utf8.c">
|
||||||
<Filter>Source\Localisation</Filter>
|
<Filter>Source\Localisation</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\network\network.cpp">
|
||||||
|
<Filter>Source\Network</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\windows\network_status.c">
|
||||||
|
<Filter>Source\Windows</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\windows\player_list.c">
|
||||||
|
<Filter>Source\Windows</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\interface\chat.c">
|
||||||
|
<Filter>Source\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\src\management\award.h">
|
<ClInclude Include="..\src\management\award.h">
|
||||||
@@ -750,5 +755,8 @@
|
|||||||
<ClInclude Include="..\src\network\network.h">
|
<ClInclude Include="..\src\network\network.h">
|
||||||
<Filter>Source\Network</Filter>
|
<Filter>Source\Network</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\interface\chat.h">
|
||||||
|
<Filter>Source\Interface</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -986,11 +986,11 @@ static const uint16 _defaultShortcutKeys[SHORTCUT_COUNT] = {
|
|||||||
SDL_SCANCODE_EQUALS, // SHORTCUT_INCREASE_GAME_SPEED,
|
SDL_SCANCODE_EQUALS, // SHORTCUT_INCREASE_GAME_SPEED,
|
||||||
CTRL | ALT | SDL_SCANCODE_C, // SHORTCUT_OPEN_CHEAT_WINDOW,
|
CTRL | ALT | SDL_SCANCODE_C, // SHORTCUT_OPEN_CHEAT_WINDOW,
|
||||||
SDL_SCANCODE_T, // SHORTCUT_REMOVE_TOP_BOTTOM_TOOLBAR_TOGGLE,
|
SDL_SCANCODE_T, // SHORTCUT_REMOVE_TOP_BOTTOM_TOOLBAR_TOGGLE,
|
||||||
SDL_SCANCODE_C, // SHORTCUT_OPEN_CHAT_WINDOW
|
|
||||||
SDL_SCANCODE_UP, // SHORTCUT_SCROLL_MAP_UP
|
SDL_SCANCODE_UP, // SHORTCUT_SCROLL_MAP_UP
|
||||||
SDL_SCANCODE_LEFT, // SHORTCUT_SCROLL_MAP_LEFT
|
SDL_SCANCODE_LEFT, // SHORTCUT_SCROLL_MAP_LEFT
|
||||||
SDL_SCANCODE_DOWN, // SHORTCUT_SCROLL_MAP_DOWN
|
SDL_SCANCODE_DOWN, // SHORTCUT_SCROLL_MAP_DOWN
|
||||||
SDL_SCANCODE_RIGHT, // SHORTCUT_SCROLL_MAP_RIGHT
|
SDL_SCANCODE_RIGHT, // SHORTCUT_SCROLL_MAP_RIGHT
|
||||||
|
SDL_SCANCODE_C, // SHORTCUT_OPEN_CHAT_WINDOW
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SHORTCUT_FILE_VERSION 1
|
#define SHORTCUT_FILE_VERSION 1
|
||||||
|
|||||||
@@ -72,11 +72,11 @@ enum {
|
|||||||
SHORTCUT_INCREASE_GAME_SPEED,
|
SHORTCUT_INCREASE_GAME_SPEED,
|
||||||
SHORTCUT_OPEN_CHEAT_WINDOW,
|
SHORTCUT_OPEN_CHEAT_WINDOW,
|
||||||
SHORTCUT_REMOVE_TOP_BOTTOM_TOOLBAR_TOGGLE,
|
SHORTCUT_REMOVE_TOP_BOTTOM_TOOLBAR_TOGGLE,
|
||||||
SHORTCUT_OPEN_CHAT_WINDOW,
|
|
||||||
SHORTCUT_SCROLL_MAP_UP,
|
SHORTCUT_SCROLL_MAP_UP,
|
||||||
SHORTCUT_SCROLL_MAP_LEFT,
|
SHORTCUT_SCROLL_MAP_LEFT,
|
||||||
SHORTCUT_SCROLL_MAP_DOWN,
|
SHORTCUT_SCROLL_MAP_DOWN,
|
||||||
SHORTCUT_SCROLL_MAP_RIGHT,
|
SHORTCUT_SCROLL_MAP_RIGHT,
|
||||||
|
SHORTCUT_OPEN_CHAT_WINDOW,
|
||||||
|
|
||||||
SHORTCUT_COUNT
|
SHORTCUT_COUNT
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -540,11 +540,11 @@ static const shortcut_action shortcut_table[SHORTCUT_COUNT] = {
|
|||||||
shortcut_increase_game_speed,
|
shortcut_increase_game_speed,
|
||||||
shortcut_open_cheat_window,
|
shortcut_open_cheat_window,
|
||||||
shortcut_remove_top_bottom_toolbar_toggle,
|
shortcut_remove_top_bottom_toolbar_toggle,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
shortcut_open_chat_window,
|
shortcut_open_chat_window,
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|||||||
@@ -2030,9 +2030,11 @@ enum {
|
|||||||
STR_DEBUG_DROPDOWN_INVENTIONS_LIST = 5491,
|
STR_DEBUG_DROPDOWN_INVENTIONS_LIST = 5491,
|
||||||
STR_DEBUG_DROPDOWN_SCENARIO_OPTIONS = 5492,
|
STR_DEBUG_DROPDOWN_SCENARIO_OPTIONS = 5492,
|
||||||
|
|
||||||
STR_PLAYER_LIST = 6002,
|
STR_SEND_MESSAGE = 5493,
|
||||||
STR_PLAYER = 6003,
|
STR_TYPE_THE_MESSAGE_YOU_WOULD_LIKE_TO_SEND = 5494,
|
||||||
STR_PING = 6004,
|
STR_PLAYER_LIST = 5495,
|
||||||
|
STR_PLAYER = 5496,
|
||||||
|
STR_PING = 5497,
|
||||||
|
|
||||||
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||||
STR_COUNT = 32768
|
STR_COUNT = 32768
|
||||||
|
|||||||
@@ -129,7 +129,8 @@ const rct_string_id ShortcutStringIds[] = {
|
|||||||
STR_SHORTCUT_SCROLL_MAP_UP,
|
STR_SHORTCUT_SCROLL_MAP_UP,
|
||||||
STR_SHORTCUT_SCROLL_MAP_LEFT,
|
STR_SHORTCUT_SCROLL_MAP_LEFT,
|
||||||
STR_SHORTCUT_SCROLL_MAP_DOWN,
|
STR_SHORTCUT_SCROLL_MAP_DOWN,
|
||||||
STR_SHORTCUT_SCROLL_MAP_RIGHT
|
STR_SHORTCUT_SCROLL_MAP_RIGHT,
|
||||||
|
STR_SEND_MESSAGE,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1389,7 +1389,7 @@ restart_from_beginning:
|
|||||||
int ebx = flags;
|
int ebx = flags;
|
||||||
int ecx = y * 32;
|
int ecx = y * 32;
|
||||||
int edx = mapElement->base_height;
|
int edx = mapElement->base_height;
|
||||||
int edi, ebp;
|
int edi = 0, ebp = 0;
|
||||||
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_PATH, edi, ebp);
|
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_PATH, edi, ebp);
|
||||||
|
|
||||||
if (cost == MONEY32_UNDEFINED)
|
if (cost == MONEY32_UNDEFINED)
|
||||||
@@ -1405,7 +1405,7 @@ restart_from_beginning:
|
|||||||
int ebx = (mapElement->type << 8) | flags;
|
int ebx = (mapElement->type << 8) | flags;
|
||||||
int ecx = y * 32;
|
int ecx = y * 32;
|
||||||
int edx = (mapElement->properties.scenery.type << 8) | (mapElement->base_height);
|
int edx = (mapElement->properties.scenery.type << 8) | (mapElement->base_height);
|
||||||
int edi, ebp;
|
int edi = 0, ebp = 0;
|
||||||
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_SCENERY, edi, ebp);
|
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_SCENERY, edi, ebp);
|
||||||
|
|
||||||
if (cost == MONEY32_UNDEFINED)
|
if (cost == MONEY32_UNDEFINED)
|
||||||
@@ -1422,7 +1422,7 @@ restart_from_beginning:
|
|||||||
int ebx = flags;
|
int ebx = flags;
|
||||||
int ecx = y * 32;
|
int ecx = y * 32;
|
||||||
int edx = (mapElement->base_height << 8) | (mapElement->type & MAP_ELEMENT_DIRECTION_MASK);
|
int edx = (mapElement->base_height << 8) | (mapElement->type & MAP_ELEMENT_DIRECTION_MASK);
|
||||||
int edi, ebp;
|
int edi = 0, ebp = 0;
|
||||||
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_FENCE, edi, ebp);
|
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_FENCE, edi, ebp);
|
||||||
|
|
||||||
if (cost == MONEY32_UNDEFINED)
|
if (cost == MONEY32_UNDEFINED)
|
||||||
@@ -1439,7 +1439,7 @@ restart_from_beginning:
|
|||||||
int ebx = flags | ((mapElement->type & MAP_ELEMENT_DIRECTION_MASK) << 8);
|
int ebx = flags | ((mapElement->type & MAP_ELEMENT_DIRECTION_MASK) << 8);
|
||||||
int ecx = y * 32;
|
int ecx = y * 32;
|
||||||
int edx = mapElement->base_height | ((mapElement->properties.scenerymultiple.type >> 10) << 8);
|
int edx = mapElement->base_height | ((mapElement->properties.scenerymultiple.type >> 10) << 8);
|
||||||
int edi, ebp;
|
int edi = 0, ebp = 0;
|
||||||
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_LARGE_SCENERY, edi, ebp);
|
cost = game_do_command(eax, ebx, ecx, edx, GAME_COMMAND_REMOVE_LARGE_SCENERY, edi, ebp);
|
||||||
|
|
||||||
if (cost == MONEY32_UNDEFINED)
|
if (cost == MONEY32_UNDEFINED)
|
||||||
|
|||||||
Reference in New Issue
Block a user