From 6cdab73cdfa8c16309de4f21ffab45f70b205027 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 15 Feb 2016 11:20:07 +0100 Subject: [PATCH] Don't say there are track designs available in multiplayer --- src/localisation/string_ids.h | 4 ++++ src/windows/new_ride.c | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/localisation/string_ids.h b/src/localisation/string_ids.h index 372bf60f36..39a88fa6d7 100644 --- a/src/localisation/string_ids.h +++ b/src/localisation/string_ids.h @@ -1852,6 +1852,10 @@ enum { STR_ROLLER_COASTER_DESIGNER_SELECT_RIDE_TYPES_VEHICLES = 3335, STR_TRACK_DESIGNS_MANAGER_SELECT_RIDE_TYPE = 3336, + STR_CUSTOM_DESIGNED_LAYOUT = 3338, + STR_1_DESIGN_AVAILABLE = 3339, + STR_X_DESIGNS_AVAILABLE = 3340, + STR_GAME_TOOLS = 3341, STR_SCENARIO_EDITOR = 3342, STR_CONVERT_SAVED_GAME_TO_SCENARIO = 3343, diff --git a/src/windows/new_ride.c b/src/windows/new_ride.c index b037c4aecc..5f8c5f5bc8 100644 --- a/src/windows/new_ride.c +++ b/src/windows/new_ride.c @@ -883,7 +883,11 @@ static void window_new_ride_paint_ride_information(rct_window *w, rct_drawpixeli // Number of designs available if (ride_type_has_flag(item.type, RIDE_TYPE_FLAG_HAS_TRACK)) { - if (item.type != _lastTrackDesignCountRideType.type || item.entry_index != _lastTrackDesignCountRideType.entry_index) { + // Track designs are disabled in multiplayer, so don't say there are any designs available when in multiplayer + if (network_get_mode() != NETWORK_MODE_NONE) { + _lastTrackDesignCount = 0; + } + else if (item.type != _lastTrackDesignCountRideType.type || item.entry_index != _lastTrackDesignCountRideType.entry_index) { _lastTrackDesignCountRideType = item; _lastTrackDesignCount = get_num_track_designs(item); } @@ -891,13 +895,13 @@ static void window_new_ride_paint_ride_information(rct_window *w, rct_drawpixeli rct_string_id stringId; switch (_lastTrackDesignCount) { case 0: - stringId = 3338; + stringId = STR_CUSTOM_DESIGNED_LAYOUT; break; case 1: - stringId = 3339; + stringId = STR_1_DESIGN_AVAILABLE; break; default: - stringId = 3340; + stringId = STR_X_DESIGNS_AVAILABLE; break; } gfx_draw_string_left(dpi, stringId, &_lastTrackDesignCount, 0, x, y + 39);