mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
Fix single player pre-designed rides not working.
Move ride_create_command into GameActionCompat Refactor GameActions to return the GA_FLAGS instead of using the const value. Refactor passing params to GameActions over constructor.
This commit is contained in:
committed by
Michał Janiszewski
parent
89c020d3fe
commit
ce54b41aba
@@ -137,7 +137,7 @@ namespace GameActions
|
||||
if (network_get_mode() == NETWORK_MODE_CLIENT)
|
||||
{
|
||||
// As a client we have to wait or send it first.
|
||||
if (!(actionFlags & GA_FLAGS::CLIENT_ONLY) && !(flags & GAME_COMMAND_FLAG_GHOST) && !(flags & GAME_COMMAND_FLAG_NETWORKED))
|
||||
if (!(actionFlags & GA_FLAGS::CLIENT_ONLY) && !(flags & GAME_COMMAND_FLAG_NETWORKED))
|
||||
{
|
||||
log_info("[%s] GameAction::Execute\n", "cl");
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace GameActions
|
||||
{
|
||||
// If player is the server it would execute right away as where clients execute the commands
|
||||
// at the beginning of the frame, so we have to put them into the queue.
|
||||
if (!(actionFlags & GA_FLAGS::CLIENT_ONLY) && !(flags & GAME_COMMAND_FLAG_GHOST) && !(flags & GAME_COMMAND_FLAG_NETWORKED))
|
||||
if (!(actionFlags & GA_FLAGS::CLIENT_ONLY) && !(flags & GAME_COMMAND_FLAG_NETWORKED))
|
||||
{
|
||||
log_info("[%s] GameAction::Execute\n", "sv-cl");
|
||||
network_enqueue_game_action(action);
|
||||
|
||||
Reference in New Issue
Block a user