diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 854488efb8..0e84ff1e7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: CI on: [push, pull_request] +defaults: + run: + shell: bash env: OPENRCT2_BUILD_SERVER: GitHub OPENRCT2_ORG_TOKEN: ${{ secrets.OPENRCT2_ORG_TOKEN }} @@ -18,7 +21,7 @@ jobs: with: fetch-depth: 0 - name: Lint Commit Messages - uses: wagoid/commitlint-github-action@v1 + uses: wagoid/commitlint-github-action@v3 with: configFile: .commitlint.json check-code-formatting: @@ -28,14 +31,14 @@ jobs: image: openrct2/openrct2-build:0.3.1-format steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Run clang-format shell: sh run: scripts/check-code-formatting windows: name: Windows runs-on: windows-latest - needs: [check-code-formatting] + needs: check-code-formatting strategy: fail-fast: false matrix: @@ -45,27 +48,24 @@ jobs: PLATFORM: ${{ matrix.platform }} steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Build OpenRCT2 - shell: bash run: . scripts/setenv && build - name: Build artifacts - shell: bash run: | . scripts/setenv -q build-portable build-symbols build-installer -i - name: Upload artifacts (CI) - uses: actions/upload-artifact@v2-preview + uses: actions/upload-artifact@v2 with: - name: "OpenRCT2-Windows-${{ matrix.platform }}" - path: artifacts/* + name: OpenRCT2-${{ runner.os }}-${{ matrix.platform }} + path: artifacts + if-no-files-found: error - name: Run Tests - shell: bash run: . scripts/setenv -q && run-tests - name: Upload artifacts (openrct2.org) - shell: bash run: | . scripts/setenv -q if [[ "$OPENRCT2_PUSH" == "true" ]]; then @@ -77,55 +77,51 @@ jobs: echo 'Not going to push build' fi windows-mingw: - name: Windows (win32) using mingw + name: Windows (${{ matrix.platform_name }}) using mingw runs-on: ubuntu-latest - needs: [check-code-formatting] + needs: check-code-formatting container: image: openrct2/openrct2-build:0.3.1-mingw + strategy: + fail-fast: false + matrix: + platform: [win32, NT5.1] + include: + - platform: win32 + platform_name: win32 + cache_key: windows-mingw + build_flags: -DBUILD_SHARED_LIBS=ON -DENABLE_SCRIPTING=OFF + - platform: NT5.1 + platform_name: win32, NT5.1 + cache_key: windows-mingw-nt51 + build_flags: -DDISABLE_HTTP=Off -DENABLE_SCRIPTING=ON -DCMAKE_CXX_FLAGS="-Wno-error=cast-function-type -Wno-error=unused-function" -DSTATIC=on -DMINGW_TARGET_NT5_1=ON steps: - name: Checkout uses: actions/checkout@v2 - name: ccache uses: hendrikmuhs/ccache-action@v1 with: - key: windows-mingw + key: ${{ matrix.cache_key }} - name: Build OpenRCT2 run: | sudo su mkdir bin && cd bin - cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=MinSizeRel -DDISABLE_IPO=on -DFORCE32=on -DBUILD_SHARED_LIBS=ON -DENABLE_SCRIPTING=OFF - ninja -k0 - windows-mingw-nt51: - name: Windows (win32, WinNT5.1) using mingw - runs-on: ubuntu-latest - needs: [check-code-formatting] - container: - image: openrct2/openrct2-build:0.3.1-mingw - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: ccache - uses: hendrikmuhs/ccache-action@v1 - with: - key: windows-mingw-nt51 - - name: Build OpenRCT2 - run: | - sudo su - mkdir bin && cd bin - cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=MinSizeRel -DDISABLE_IPO=on -DDISABLE_HTTP=Off -DFORCE32=on -DENABLE_SCRIPTING=ON -DCMAKE_CXX_FLAGS="-Wno-error=cast-function-type -Wno-error=unused-function" -DSTATIC=on -DMINGW_TARGET_NT5_1=ON + cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=Release -DDISABLE_IPO=on -DFORCE32=on ${{ matrix.build_flags }} ninja -k0 - name: Upload artifacts (CI) - uses: actions/upload-artifact@v2-preview + if: matrix.platform == 'NT5.1' + uses: actions/upload-artifact@v2 with: - name: "OpenRCT2-NT5.1" + name: OpenRCT2-${{ matrix.platform }} path: bin/openrct2.exe + if-no-files-found: error macos-xcode: name: macOS (x64) using Xcode runs-on: macos-latest - needs: [check-code-formatting] + needs: check-code-formatting steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Build OpenRCT2 run: | . scripts/setenv @@ -136,10 +132,11 @@ jobs: cd artifacts zip -rq openrct2-macos.zip OpenRCT2.app - name: Upload artifacts (CI) - uses: actions/upload-artifact@v2-preview + uses: actions/upload-artifact@v2 with: - name: "OpenRCT2-macOS" + name: OpenRCT2-${{ runner.os }}-xcode path: artifacts/openrct2-macos.zip + if-no-files-found: error - name: Upload artifacts (openrct2.org) run: | . scripts/setenv @@ -151,140 +148,107 @@ jobs: macos-cmake: name: macOS (x64) using CMake runs-on: macos-latest - needs: [check-code-formatting] + needs: check-code-formatting steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: ccache uses: hendrikmuhs/ccache-action@v1 with: key: macos - name: Build OpenRCT2 run: | - brew install ninja - . scripts/setenv -q && build -DWITH_TESTS=on -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=on + HOMEBREW_NO_ANALYTICS=1 brew install ninja + . scripts/setenv -q && build -DWITH_TESTS=on -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=on - name: Run Tests - shell: bash run: . scripts/setenv -q && run-tests - name: Build artifacts - shell: bash - run: . scripts/setenv -q && build-portable artifacts/OpenRCT2-MacOS-x64-cmake.tar.gz bin/install/usr + run: | + . scripts/setenv + mkdir -p artifacts + mv bin/OpenRCT2.app artifacts + echo -e "\033[0;36mCompressing OpenRCT2.app...\033[0m" + cd artifacts + zip -rqy openrct2-macos.zip OpenRCT2.app - name: Upload artifacts (CI) - uses: actions/upload-artifact@v2-preview + uses: actions/upload-artifact@v2 with: - name: "OpenRCT2-macOS-cmake" - path: artifacts - + name: OpenRCT2-${{ runner.os }}-cmake + path: artifacts/openrct2-macos.zip + if-no-files-found: error linux-portable: - name: Linux (x64, portable) + name: Linux (${{ matrix.platform }}, portable) runs-on: ubuntu-latest - needs: [check-code-formatting] + needs: check-code-formatting container: - image: openrct2/openrct2-build:0.3.1-bionic + image: ${{ matrix.image }} + strategy: + fail-fast: false + matrix: + platform: [x86_64, i686] + include: + - platform: x86_64 + image: openrct2/openrct2-build:0.3.1-bionic + cache_key: linux-portable + build_flags: -DCMAKE_POSITION_INDEPENDENT_CODE=on -DCMAKE_CXX_FLAGS="-g -gz" + - platform: i686 + image: openrct2/openrct2-build:0.3.1-bionic32 + cache_key: linux-portable-32 + build_flags: -DFORCE32=ON -DENABLE_SCRIPTING=OFF -DCMAKE_CXX_FLAGS="-m32 -gz" steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: ccache uses: hendrikmuhs/ccache-action@v1 with: - key: linux-portable + key: ${{ matrix.cache_key }} - name: Get pre-reqs - shell: bash run: . scripts/setenv && get-discord-rpc - name: Build OpenRCT2 - shell: bash - run: . scripts/setenv -q && build -DWITH_TESTS=on -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=ON -DPORTABLE=ON -DCMAKE_POSITION_INDEPENDENT_CODE=on -DCMAKE_CXX_FLAGS="-g -gz" + run: . scripts/setenv -q && build -DWITH_TESTS=on -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DPORTABLE=ON ${{ matrix.build_flags }} - name: Build artifacts - shell: bash - run: . scripts/setenv -q && build-portable artifacts/OpenRCT2-Linux-x86_64.tar.gz bin/install/usr + run: . scripts/setenv -q && build-portable artifacts/OpenRCT2-${{ runner.os }}-${{ matrix.platform }}.tar.gz bin/install/usr - name: Upload artifacts (CI) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: - name: "OpenRCT2-Linux-x86_64" + name: OpenRCT2-${{ runner.os }}-${{ matrix.platform }} path: artifacts + if-no-files-found: error - name: Run Tests - shell: bash run: . scripts/setenv -q && run-tests - name: Upload artifacts (openrct2.org) - shell: bash run: | . scripts/setenv -q if [[ "$OPENRCT2_PUSH" == "true" ]]; then - upload-build artifacts/OpenRCT2-Linux-x86_64.tar.gz linux-x86_64 $OPENRCT2_VERSION $OPENRCT2_SHA1 $OPENRCT2_BRANCH - else - echo 'Not going to push build' - fi - linux-portable-32: - name: Linux (i686, portable) - runs-on: ubuntu-latest - needs: [check-code-formatting] - container: - image: openrct2/openrct2-build:0.3.1-bionic32 - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: ccache - uses: hendrikmuhs/ccache-action@v1 - with: - key: linux-portable-32 - - name: Get pre-reqs - shell: bash - run: . scripts/setenv && get-discord-rpc - - name: Build OpenRCT2 - shell: bash - env: - TESTPAINT: true - run: . scripts/setenv -q && build -DWITH_TESTS=on -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=ON -DPORTABLE=ON -DFORCE32=ON -DENABLE_SCRIPTING=OFF -DCMAKE_CXX_FLAGS="-m32 -gz" - - name: Build artifacts - shell: bash - run: . scripts/setenv -q && build-portable artifacts/OpenRCT2-Linux-i686.tar.gz bin/install/usr - - name: Upload artifacts (CI) - uses: actions/upload-artifact@v1 - with: - name: "OpenRCT2-Linux-i686" - path: artifacts - - name: Run Tests - shell: bash - run: . scripts/setenv -q && run-tests - - name: Run testpaint - shell: bash - run: . scripts/setenv -q && run-testpaint - - name: Upload artifacts (openrct2.org) - shell: bash - run: | - . scripts/setenv -q - if [[ "$OPENRCT2_PUSH" == "true" ]]; then - upload-build artifacts/OpenRCT2-Linux-i686.tar.gz linux-i686 $OPENRCT2_VERSION $OPENRCT2_SHA1 $OPENRCT2_BRANCH + upload-build artifacts/OpenRCT2-${{ runner.os }}-${{ matrix.platform }}.tar.gz linux-${{ matrix.platform }} $OPENRCT2_VERSION $OPENRCT2_SHA1 $OPENRCT2_BRANCH else echo 'Not going to push build' fi linux-appimage: name: Linux (x64, AppImage) runs-on: ubuntu-latest - needs: [check-code-formatting] + needs: check-code-formatting container: image: openrct2/openrct2-build:0.3.1-bionic steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: ccache uses: hendrikmuhs/ccache-action@v1 with: key: linux-appimage - name: Get pre-reqs - shell: bash run: . scripts/setenv -q && get-discord-rpc - name: Build OpenRCT2 - shell: bash run: . scripts/setenv -q && build -DCMAKE_BUILD_TYPE=Release -DAPPIMAGE=ON -DOPENRCT2_USE_CCACHE=on - name: Build AppImage - shell: bash run: . scripts/setenv -q && build-appimage - name: Upload artifacts (CI) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: OpenRCT2-AppImage path: artifacts + if-no-files-found: error linux-flathub-beta: name: Linux (Flathub beta channel) if: github.repository == 'OpenRCT2/OpenRCT2' && github.ref == 'refs/heads/develop' && github.event_name == 'push' @@ -299,14 +263,16 @@ jobs: client-payload: '{ "commit": "${{ github.sha }}" }' linux-docker: name: Linux (docker) - needs: [check-code-formatting] + needs: check-code-formatting if: github.repository == 'OpenRCT2/OpenRCT2' runs-on: ubuntu-latest steps: + - name: Checkout image + uses: actions/checkout@v2 + with: + repository: OpenRCT2/openrct2-docker - name: Build image - run: | - git clone --depth 1 https://github.com/OpenRCT2/openrct2-docker . - docker build -t openrct2/openrct2-cli:develop develop/cli + run: docker build -t openrct2/openrct2-cli:develop develop/cli - name: Push image env: OPENRCT2_DOCKER_USER: ${{ secrets.OPENRCT2_DOCKER_USER }} @@ -323,34 +289,32 @@ jobs: linux-clang: name: Linux (Debug, [http, network, OpenGL] disabled) using clang runs-on: ubuntu-latest - needs: [check-code-formatting] + needs: check-code-formatting container: image: openrct2/openrct2-build:0.3.1-bionic steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: ccache uses: hendrikmuhs/ccache-action@v1 with: key: linux-clang - name: Build OpenRCT2 - shell: bash run: . scripts/setenv && build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DDISABLE_NETWORK=ON -DDISABLE_HTTP=ON -DDISABLE_OPENGL=ON android: name: Android runs-on: ubuntu-latest - needs: [check-code-formatting] + needs: check-code-formatting container: image: openrct2/openrct2-build:0.3.1-android steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: ccache uses: hendrikmuhs/ccache-action@v1 with: key: android - name: Build OpenRCT2 - shell: bash run: | . scripts/setenv pushd src/openrct2-android @@ -359,12 +323,12 @@ jobs: mkdir -p artifacts mv src/openrct2-android/app/build/outputs/apk/arm/pr/app-arm-pr.apk artifacts/openrct2-arm.apk - name: Upload artifacts (CI) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: - name: "OpenRCT2-Android" + name: OpenRCT2-Android path: artifacts + if-no-files-found: error - name: Upload artifacts (openrct2.org) - shell: bash run: | . scripts/setenv -q if [[ "$OPENRCT2_PUSH" == "true" ]]; then diff --git a/.github/workflows/localisation.yml b/.github/workflows/localisation.yml index 99b47d587e..6efae26592 100644 --- a/.github/workflows/localisation.yml +++ b/.github/workflows/localisation.yml @@ -1,7 +1,7 @@ name: Localisation Merge on: schedule: - - cron: '0 4 * * *' + - cron: '0 4 * * *' jobs: merge-localisation: name: Merge Localisation @@ -18,7 +18,7 @@ jobs: - name: Clone repositories run: | echo "Cloning repositories..." - git clone -b master git@github.com:OpenRCT2/Localisation.git Localisation + git clone -b master --depth 1 git@github.com:OpenRCT2/Localisation.git Localisation git clone -b develop git@github.com:OpenRCT2/OpenRCT2.git OpenRCT2 - name: Copy over language files run: | @@ -29,8 +29,8 @@ jobs: cp $f "./OpenRCT2/data/language/$filename" done - name: Commit and push + working-directory: OpenRCT2 run: | - pushd ./OpenRCT2 if [[ $(git status -s) ]]; then echo "Committing and pushing..." git add . @@ -42,4 +42,3 @@ jobs: else echo "No changes to merge." fi - popd diff --git a/CMakeLists.txt b/CMakeLists.txt index dfa149cd0f..2c49933f6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,14 +42,17 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}") -set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v0.1.2c/title-sequences.zip") +set(TITLE_SEQUENCE_VERSION "0.1.2c") +set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v${TITLE_SEQUENCE_VERSION}/title-sequences.zip") set(TITLE_SEQUENCE_SHA1 "304d13a126c15bf2c86ff13b81a2f2cc1856ac8d") -set(OBJECTS_URL "https://github.com/OpenRCT2/objects/releases/download/v1.0.21/objects.zip") +set(OBJECTS_VERSION "1.0.21") +set(OBJECTS_URL "https://github.com/OpenRCT2/objects/releases/download/v${OBJECTS_VERSION}/objects.zip") set(OBJECTS_SHA1 "c38af45d51a6e440386180feacf76c64720b6ac5") -set(REPLAYS_URL "https://github.com/OpenRCT2/replays/releases/download/v0.0.31/replays.zip") -set(REPLAYS_SHA1 "693BDD6F4B7C3B312AABEBCAEA4800FE97B33527") +set(REPLAYS_VERSION "0.0.43") +set(REPLAYS_URL "https://github.com/OpenRCT2/replays/releases/download/v${REPLAYS_VERSION}/replays.zip") +set(REPLAYS_SHA1 "269E4FC432A73AE9A5D601EC2A1C882F3D9BDF3C") option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") option(WITH_TESTS "Build tests") @@ -59,7 +62,10 @@ option(DOWNLOAD_TITLE_SEQUENCES "Download title sequences during installation." option(DOWNLOAD_OBJECTS "Download objects during installation." ON) CMAKE_DEPENDENT_OPTION(DOWNLOAD_REPLAYS "Download replays during installation." ON "WITH_TESTS" OFF) -option(MACOS_USE_DEPENDENCIES "Use OpenRCT2 dependencies instead of system libraries" ON) +CMAKE_DEPENDENT_OPTION(MACOS_USE_DEPENDENCIES "Use OpenRCT2 dependencies instead of system libraries" ON + "APPLE" OFF) +CMAKE_DEPENDENT_OPTION(MACOS_BUNDLE "Build macOS application bundle (OpenRCT2.app)" ON + "MACOS_USE_DEPENDENCIES; NOT DISABLE_GUI" OFF) # Options option(STATIC "Create a static build.") @@ -100,52 +106,41 @@ if (APPIMAGE) set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib") endif () -if (APPLE AND MACOS_USE_DEPENDENCIES) +if (MACOS_USE_DEPENDENCIES) # if we're building on macOS, then we need the dependencies - # update dylibs + include(cmake/download.cmake) + set(MACOS_DYLIBS_VERSION "28") set(MACOS_DYLIBS_ZIPFILE "openrct2-libs-v${MACOS_DYLIBS_VERSION}-x64-macos-dylibs.zip") + set(MACOS_DYLIBS_SHA1 "29e5480376cf4ac5943f114387e32685204c8b78") set(MACOS_DYLIBS_DIR "${ROOT_DIR}/lib/macos") set(MACOS_DYLIBS_URL "https://github.com/OpenRCT2/Dependencies/releases/download/v${MACOS_DYLIBS_VERSION}/${MACOS_DYLIBS_ZIPFILE}") - if (NOT EXISTS ${MACOS_DYLIBS_DIR}) - set(DOWNLOAD_DYLIBS 1) - else () - file(READ "${MACOS_DYLIBS_DIR}/libversion" MACOS_DYLIBS_CACHED_VERSION) - if (NOT ${MACOS_DYLIBS_CACHED_VERSION} STREQUAL ${MACOS_DYLIBS_VERSION}) - message("Cached macOS dylibs out of date") - set(DOWNLOAD_DYLIBS 1) - endif () - endif () - if (DOWNLOAD_DYLIBS) - message("Downloading macOS dylibs") - file(DOWNLOAD "${MACOS_DYLIBS_URL}" "${MACOS_DYLIBS_DIR}/${MACOS_DYLIBS_ZIPFILE}") - file(ARCHIVE_EXTRACT - INPUT "${MACOS_DYLIBS_DIR}/${MACOS_DYLIBS_ZIPFILE}" - DESTINATION "${MACOS_DYLIBS_DIR}" - ) - file(WRITE - "${MACOS_DYLIBS_DIR}/libversion" - "${MACOS_DYLIBS_VERSION}" - ) - file(REMOVE "${MACOS_DYLIBS_DIR}/${MACOS_DYLIBS_ZIPFILE}") - endif () - # TODO: make the above routine a function, use it for objects, title sequences, and languages + download_openrct2_zip( + ZIP_VERSION ${MACOS_DYLIBS_VERSION} + DOWNLOAD_DIR ${MACOS_DYLIBS_DIR} + ZIP_URL ${MACOS_DYLIBS_URL} + SHA1 ${MACOS_DYLIBS_SHA1} + ) set(CMAKE_MACOSX_RPATH 1) list(APPEND CMAKE_PREFIX_PATH "${MACOS_DYLIBS_DIR}") - # the RPATH to be used when installing, but only if it's not a system directory - list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) - if("${isSystemDir}" STREQUAL "-1") - set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") - endif("${isSystemDir}" STREQUAL "-1") + # if we're making the OpenRCT2.app bundle, rpath will be handled by fixup_bundle + # if we're building the CLI executable, we need to do it ourselves + if (NOT MACOS_BUNDLE) + # the RPATH to be used when installing, but only if it's not a system directory + list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) + if("${isSystemDir}" STREQUAL "-1") + set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + endif("${isSystemDir}" STREQUAL "-1") - # if the DESTDIR env var is defined, use it in the install RPATH - if(DEFINED ENV{DESTDIR}) - get_filename_component(destdirRealPath "$ENV{DESTDIR}" REALPATH BASE_DIR "${CMAKE_BINARY_DIR}") - set(CMAKE_INSTALL_RPATH "${destdirRealPath}${CMAKE_INSTALL_PREFIX}/lib") - endif() + # if the DESTDIR env var is defined, use it in the install RPATH + if(DEFINED ENV{DESTDIR}) + get_filename_component(destdirRealPath "$ENV{DESTDIR}" REALPATH BASE_DIR "${CMAKE_BINARY_DIR}") + set(CMAKE_INSTALL_RPATH "${destdirRealPath}${CMAKE_INSTALL_PREFIX}/lib") + endif() + endif () endif () # LIST of supported flags, use SET_CHECK_CXX_FLAGS() to apply to target. @@ -185,26 +180,6 @@ execute_process( ) -# Defines -if (USE_MMAP) - add_definitions(-DUSE_MMAP) -endif () -if (DISABLE_NETWORK) - add_definitions(-DDISABLE_NETWORK) -endif () -if (DISABLE_HTTP) - add_definitions(-DDISABLE_HTTP) -endif () -if (DISABLE_TTF) - add_definitions(-DNO_TTF) -endif () -if (ENABLE_LIGHTFX) - add_definitions(-D__ENABLE_LIGHTFX__) -endif () -if (ENABLE_SCRIPTING) - add_definitions(-DENABLE_SCRIPTING) -endif () - if (NOT DISABLE_DISCORD_RPC) if (UNIX AND NOT APPLE) find_package(DiscordRPC) @@ -213,7 +188,7 @@ if (NOT DISABLE_DISCORD_RPC) add_definitions(-D__ENABLE_DISCORD__) include_directories(DISCORDRPC_PROCESS_INCLUDES) endif() - elseif (APPLE AND MACOS_USE_DEPENDENCIES) + elseif (MACOS_USE_DEPENDENCIES) find_package(discordrpc CONFIG REQUIRED) if(${DISCORDRPC_FOUND}) add_definitions(-D__ENABLE_DISCORD__) @@ -371,6 +346,27 @@ if(NOT DISABLE_GUI) include("${ROOT_DIR}/src/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) endif() +# Defines +if (USE_MMAP) + target_compile_options(libopenrct2 PUBLIC -DUSE_MMAP) +endif () +if (DISABLE_NETWORK) + target_compile_options(libopenrct2 PUBLIC -DDISABLE_NETWORK) +endif () +if (DISABLE_HTTP) + target_compile_options(libopenrct2 PUBLIC -DDISABLE_HTTP) +endif () +if (DISABLE_TTF) + target_compile_options(libopenrct2 PUBLIC -DNO_TTF) +endif () +if (ENABLE_LIGHTFX) + target_compile_options(libopenrct2 PUBLIC -D__ENABLE_LIGHTFX__) +endif () +if (ENABLE_SCRIPTING) + target_compile_options(libopenrct2 PUBLIC -DENABLE_SCRIPTING) +endif () + + # g2 add_custom_command( OUTPUT g2.dat @@ -390,80 +386,95 @@ if (WITH_TESTS) include("${ROOT_DIR}/test/tests/CMakeLists.txt" NO_POLICY_SCOPE) endif () -# Install -# Don't recurse, grab all *.txt and *.md files -file(GLOB DOC_FILES "${ROOT_DIR}/distribution/*.txt") -list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md" - "${ROOT_DIR}/licence.txt" - "${ROOT_DIR}/distribution/scripting.md" - "${ROOT_DIR}/distribution/openrct2.d.ts") +# macOS bundle "install" is handled in src/openrct2-ui/CMakeLists.txt +# This is because the openrct2 target is modified (and that is where that target is defined) +if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS)) + # Install + # Don't recurse, grab all *.txt and *.md files + file(GLOB DOC_FILES "${ROOT_DIR}/distribution/*.txt") + list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md" + "${ROOT_DIR}/licence.txt" + "${ROOT_DIR}/distribution/scripting.md" + "${ROOT_DIR}/distribution/openrct2.d.ts") -# CMake does not allow specifying a dependency chain which includes built-in -# targets, like `install`, so we have to trick it and execute dependency ourselves. -install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_CURRENT_BINARY_DIR}\" --target g2)") -if (DOWNLOAD_TITLE_SEQUENCES) - # If openrct2.parkseq or data/sequence/ exists, assume all the title sequences are already present - install(CODE - "if (EXISTS \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/sequence/openrct2.parkseq\" OR EXISTS ${CMAKE_SOURCE_DIR}/data/sequence/)\n\ - message(\"Using cached title sequences\")\n\ - else () \n\ - file(DOWNLOAD ${TITLE_SEQUENCE_URL} \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/sequence/title-sequences.zip EXPECTED_HASH SHA1=${TITLE_SEQUENCE_SHA1} SHOW_PROGRESS)\n\ - execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/sequence/ \"${CMAKE_COMMAND}\" -E tar xf title-sequences.zip)\n\ - file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/sequence/title-sequences.zip)\n\ - endif ()") -endif () -if (DOWNLOAD_OBJECTS) - # If rct2.wtrcyan.json or data/object/ exists, assume all the objects are already present - install(CODE - "if (EXISTS \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/object/rct2/water/rct2.wtrcyan.json\" OR EXISTS ${CMAKE_SOURCE_DIR}/data/object/)\n\ - message(\"Using cached objects\")\n\ - else () \n\ - file(DOWNLOAD ${OBJECTS_URL} \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/object/objects.zip EXPECTED_HASH SHA1=${OBJECTS_SHA1} SHOW_PROGRESS)\n\ - execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/object/ \"${CMAKE_COMMAND}\" -E tar xf objects.zip)\n\ - file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/object/objects.zip)\n\ - endif ()") -endif () -if (DOWNLOAD_REPLAYS) - install(CODE - "if (EXISTS \${CMAKE_CURRENT_BINARY_DIR}/testdata/replays/)\n\ - message(\"Using cached replays\")\n\ - else () \n\ - file(DOWNLOAD ${REPLAYS_URL} \${CMAKE_CURRENT_BINARY_DIR}/testdata/replays/replays.zip EXPECTED_HASH SHA1=${REPLAYS_SHA1} SHOW_PROGRESS)\n\ - execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \${CMAKE_CURRENT_BINARY_DIR}/testdata/replays/ \"${CMAKE_COMMAND}\" -E tar xf replays.zip)\n\ - file(REMOVE \${CMAKE_CURRENT_BINARY_DIR}/testdata/replays/replays.zip)\n\ - endif ()") -endif () -install(TARGETS "libopenrct2" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" - ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") -if(NOT DISABLE_GUI) - install(TARGETS "openrct2" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") -endif() -install(TARGETS "openrct2-cli" OPTIONAL RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "${CMAKE_INSTALL_DATADIR}/openrct2") -install(DIRECTORY "data/" DESTINATION "${CMAKE_INSTALL_DATADIR}/openrct2") -install(FILES ${DOC_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}") -install(FILES "distribution/linux/openrct2.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo") -if (NOT DISABLE_GUI) - install(FILES "resources/logo/icon_x16.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x24.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/24x24/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x32.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x48.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x64.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x96.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x128.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_x256.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME "openrct2.png") - install(FILES "resources/logo/icon_flag.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" RENAME "openrct2.svg") - install(FILES "distribution/linux/openrct2.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") - install(FILES "distribution/linux/openrct2-savegame.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") - install(FILES "distribution/linux/openrct2-scenario.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") - install(FILES "distribution/linux/openrct2-uri.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") -endif() -install(FILES "distribution/linux/openrct2-mimeinfo.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages/" RENAME "openrct2.xml") -install(DIRECTORY "distribution/man/" DESTINATION "${CMAKE_INSTALL_MANDIR}/man6" FILES_MATCHING PATTERN "*.6") + # CMake does not allow specifying a dependency chain which includes built-in + # targets, like `install`, so we have to trick it and execute dependency ourselves. + install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_CURRENT_BINARY_DIR}\" --target g2)") + if (DOWNLOAD_TITLE_SEQUENCES) + # Checks if this version of the title sequences are already installed, updates if necessary + # if /data/sequence exists, it will overwrite this anyways (see `install(DIRECTORY "data/" ...)` below) + # therefore, the existence of that directory will skip this download + install(CODE " + include(${ROOT_DIR}/cmake/download.cmake) + download_openrct2_zip( + ZIP_VERSION ${TITLE_SEQUENCE_VERSION} + DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/sequence/ + SKIP_IF_EXISTS ${CMAKE_SOURCE_DIR}/data/sequence/ + ZIP_URL ${TITLE_SEQUENCE_URL} + SHA1 ${TITLE_SEQUENCE_SHA1} + )") + endif () + if (DOWNLOAD_OBJECTS) + # Checks if this version of the objects are already installed, updates if necessary + # if /data/object exists, it will overwrite this anyways (see `install(DIRECTORY "data/" ...)` below) + # therefore, the existence of that directory will skip this download + install(CODE " + include(${ROOT_DIR}/cmake/download.cmake) + download_openrct2_zip( + ZIP_VERSION ${OBJECTS_VERSION} + DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/object/ + SKIP_IF_EXISTS ${CMAKE_SOURCE_DIR}/data/object/ + ZIP_URL ${OBJECTS_URL} + SHA1 ${OBJECTS_SHA1} + )") + endif () + if (DOWNLOAD_REPLAYS) + # Checks if this version of the replays are already installed, updates if necessary + install(CODE " + include(${ROOT_DIR}/cmake/download.cmake) + download_openrct2_zip( + ZIP_VERSION ${REPLAYS_VERSION} + DOWNLOAD_DIR \${CMAKE_CURRENT_BINARY_DIR}/testdata/replays/ + ZIP_URL ${REPLAYS_URL} + SHA1 ${REPLAYS_SHA1} + )") + endif () + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "${CMAKE_INSTALL_DATADIR}/openrct2") + install(DIRECTORY "data/" DESTINATION "${CMAKE_INSTALL_DATADIR}/openrct2") -if (APPLE AND MACOS_USE_DEPENDENCIES) - # Note: dependencies may have the same names as system installed libraries - # (via homebrew). A local CMAKE_INSTALL_PREFIX is recommended to avoid issues - file(GLOB DYLIB_FILES "${MACOS_DYLIBS_DIR}/lib/*.dylib") - install(FILES ${DYLIB_FILES} DESTINATION "${CMAKE_INSTALL_LIBDIR}") + # even when building WITH_TESTS, none of the below install steps are required for OpenRCT2.app + if (NOT MACOS_BUNDLE) + install(TARGETS "libopenrct2" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") + if(NOT DISABLE_GUI) + install(TARGETS "openrct2" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") + endif() + install(TARGETS "openrct2-cli" OPTIONAL RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") + install(FILES ${DOC_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}") + install(FILES "distribution/linux/openrct2.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo") + if (NOT DISABLE_GUI) + install(FILES "resources/logo/icon_x16.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x24.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/24x24/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x32.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x48.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x64.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x96.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x128.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_x256.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME "openrct2.png") + install(FILES "resources/logo/icon_flag.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" RENAME "openrct2.svg") + install(FILES "distribution/linux/openrct2.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + install(FILES "distribution/linux/openrct2-savegame.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + install(FILES "distribution/linux/openrct2-scenario.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + install(FILES "distribution/linux/openrct2-uri.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + endif() + install(FILES "distribution/linux/openrct2-mimeinfo.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages/" RENAME "openrct2.xml") + install(DIRECTORY "distribution/man/" DESTINATION "${CMAKE_INSTALL_MANDIR}/man6" FILES_MATCHING PATTERN "*.6") + + if (MACOS_USE_DEPENDENCIES) + # Note: dependencies may have the same names as system installed libraries + # (via homebrew). A local CMAKE_INSTALL_PREFIX is recommended to avoid issues + file(GLOB DYLIB_FILES "${MACOS_DYLIBS_DIR}/lib/*.dylib") + install(FILES ${DYLIB_FILES} DESTINATION "${CMAKE_INSTALL_LIBDIR}") + endif() + endif() endif() diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 6660cb8c30..b6e6699cb4 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -51,6 +51,7 @@ 4C3B4236205914F7000C5BB7 /* InGameConsole.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C3B4234205914F7000C5BB7 /* InGameConsole.cpp */; }; 4C724B2221F0AD790012ADD0 /* BenchSpriteSort.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C724B2121F0AD790012ADD0 /* BenchSpriteSort.cpp */; }; 4C81F7E124672C4D000E61BF /* CustomListView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C81F7DF24672C4D000E61BF /* CustomListView.cpp */; }; + 4C882FBA25FEA80E0039D1C4 /* TrainManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C882FB825FEA80D0039D1C4 /* TrainManager.cpp */; }; 4C8A6FF323EB5326001A8255 /* Http.cURL.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C8A6FF223EB5326001A8255 /* Http.cURL.cpp */; }; 4C8BB67925533D4C005C8830 /* FileStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BB67825533D4C005C8830 /* FileStream.cpp */; }; 4C8BB67C25533D59005C8830 /* JobPool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BB67B25533D59005C8830 /* JobPool.cpp */; }; @@ -59,6 +60,8 @@ 4C8BB68525533DB9005C8830 /* ZoomLevel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BB68425533DB9005C8830 /* ZoomLevel.cpp */; }; 4C91FD5F25AE476700CA5DA4 /* MusicObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C91FD5D25AE476700CA5DA4 /* MusicObject.cpp */; }; 4C91FD6225AE483700CA5DA4 /* RideAudio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C91FD6025AE483600CA5DA4 /* RideAudio.cpp */; }; + 4CA23D64263C91D800077AA1 /* ChecksumStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CA23D62263C91D700077AA1 /* ChecksumStream.cpp */; }; + 4CA23DB2263C920900077AA1 /* Entity.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CA23DB1263C920900077AA1 /* Entity.cpp */; }; 4CA39E512513F8A00094066B /* RTL.ICU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CA39E4E2513F8A00094066B /* RTL.ICU.cpp */; }; 4CA39E522513F8A00094066B /* RTL.FriBidi.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CA39E502513F8A00094066B /* RTL.FriBidi.cpp */; }; 4CB1375621C2E9F80029FCDA /* SimulateCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CB1375521C2E9F80029FCDA /* SimulateCommands.cpp */; }; @@ -73,9 +76,56 @@ 631D7A3625F590A100EA2B45 /* openrct2.icns in Resources */ = {isa = PBXBuildFile; fileRef = 631D7A3525F590A100EA2B45 /* openrct2.icns */; }; 6341F4E12400AA0F0052902B /* Drawing.Sprite.RLE.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6341F4DF2400AA0E0052902B /* Drawing.Sprite.RLE.cpp */; }; 6341F4E22400AA0F0052902B /* Drawing.Sprite.BMP.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6341F4E02400AA0F0052902B /* Drawing.Sprite.BMP.cpp */; }; - 662578A625803AA90002C77E /* discord_rpc.h in Headers */ = {isa = PBXBuildFile; fileRef = 662578A525803AA90002C77E /* discord_rpc.h */; }; - 662578AD25803CE50002C77E /* libdiscord-rpc.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 662578A325803A6C0002C77E /* libdiscord-rpc.a */; }; - 662578AE25803D040002C77E /* libdiscord-rpc.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 662578A325803A6C0002C77E /* libdiscord-rpc.a */; settings = {ATTRIBUTES = (Required, ); }; }; + 6691257925FD2C4900B038E1 /* libbrotlicommon.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254625FD2C1300B038E1 /* libbrotlicommon.1.dylib */; }; + 6691257A25FD2C4900B038E1 /* libbrotlidec.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254125FD2C1300B038E1 /* libbrotlidec.1.dylib */; }; + 6691257B25FD2C4900B038E1 /* libbrotlienc.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254825FD2C1300B038E1 /* libbrotlienc.1.dylib */; }; + 6691257C25FD2C4900B038E1 /* libbz2.1.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254525FD2C1300B038E1 /* libbz2.1.0.dylib */; }; + 6691257E25FD2C4900B038E1 /* libdiscord-rpc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254925FD2C1300B038E1 /* libdiscord-rpc.dylib */; }; + 6691257F25FD2C4900B038E1 /* libduktape.2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254225FD2C1300B038E1 /* libduktape.2.dylib */; }; + 6691258025FD2C4900B038E1 /* libfreetype.6.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254F25FD2C1400B038E1 /* libfreetype.6.dylib */; }; + 6691258125FD2C4900B038E1 /* libicudata.67.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254725FD2C1300B038E1 /* libicudata.67.dylib */; }; + 6691258225FD2C4900B038E1 /* libicui18n.67.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254425FD2C1300B038E1 /* libicui18n.67.dylib */; }; + 6691258325FD2C4900B038E1 /* libicuio.67.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254A25FD2C1300B038E1 /* libicuio.67.dylib */; }; + 6691258425FD2C4900B038E1 /* libicutu.67.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255125FD2C1400B038E1 /* libicutu.67.dylib */; }; + 6691258525FD2C4900B038E1 /* libicuuc.67.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254025FD2C1300B038E1 /* libicuuc.67.dylib */; }; + 6691258625FD2C4900B038E1 /* libpng16.16.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254B25FD2C1400B038E1 /* libpng16.16.dylib */; }; + 6691258825FD2C4900B038E1 /* libspeexdsp.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254D25FD2C1400B038E1 /* libspeexdsp.1.dylib */; }; + 6691258925FD2C4900B038E1 /* libssl.1.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254E25FD2C1400B038E1 /* libssl.1.1.dylib */; }; + 6691258A25FD2C4900B038E1 /* libz.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255025FD2C1400B038E1 /* libz.1.dylib */; }; + 6691258B25FD2C4900B038E1 /* libzip.5.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255225FD2C1400B038E1 /* libzip.5.dylib */; }; + 6691258C25FD2C5200B038E1 /* libbrotlicommon.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254625FD2C1300B038E1 /* libbrotlicommon.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691258D25FD2C5200B038E1 /* libbrotlidec.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254125FD2C1300B038E1 /* libbrotlidec.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691258E25FD2C5200B038E1 /* libbrotlienc.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254825FD2C1300B038E1 /* libbrotlienc.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691258F25FD2C5200B038E1 /* libbz2.1.0.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254525FD2C1300B038E1 /* libbz2.1.0.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259125FD2C5200B038E1 /* libdiscord-rpc.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254925FD2C1300B038E1 /* libdiscord-rpc.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259225FD2C5200B038E1 /* libduktape.2.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254225FD2C1300B038E1 /* libduktape.2.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259325FD2C5200B038E1 /* libfreetype.6.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254F25FD2C1400B038E1 /* libfreetype.6.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259425FD2C5200B038E1 /* libicudata.67.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254725FD2C1300B038E1 /* libicudata.67.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259525FD2C5200B038E1 /* libicui18n.67.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254425FD2C1300B038E1 /* libicui18n.67.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259625FD2C5200B038E1 /* libicuio.67.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254A25FD2C1300B038E1 /* libicuio.67.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259725FD2C5200B038E1 /* libicutu.67.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255125FD2C1400B038E1 /* libicutu.67.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259825FD2C5200B038E1 /* libicuuc.67.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254025FD2C1300B038E1 /* libicuuc.67.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259925FD2C5200B038E1 /* libpng16.16.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254B25FD2C1400B038E1 /* libpng16.16.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259B25FD2C5200B038E1 /* libspeexdsp.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254D25FD2C1400B038E1 /* libspeexdsp.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259C25FD2C5200B038E1 /* libssl.1.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254E25FD2C1400B038E1 /* libssl.1.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259D25FD2C5200B038E1 /* libz.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255025FD2C1400B038E1 /* libz.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6691259E25FD2C5200B038E1 /* libzip.5.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255225FD2C1400B038E1 /* libzip.5.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125A225FD2C7C00B038E1 /* libcrypto.1.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 669125A125FD2C7C00B038E1 /* libcrypto.1.1.dylib */; }; + 669125A325FD2C9100B038E1 /* libcrypto.1.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 669125A125FD2C7C00B038E1 /* libcrypto.1.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125A725FD2CBF00B038E1 /* libSDL2-2.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 669125A625FD2CBF00B038E1 /* libSDL2-2.0.dylib */; }; + 669125A825FD2CD200B038E1 /* libSDL2-2.0.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 669125A625FD2CBF00B038E1 /* libSDL2-2.0.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125AB25FD2DF400B038E1 /* libdiscord-rpc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254925FD2C1300B038E1 /* libdiscord-rpc.dylib */; }; + 669125AC25FD2DFD00B038E1 /* libcrypto.1.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 669125A125FD2C7C00B038E1 /* libcrypto.1.1.dylib */; }; + 669125AD25FD2E0400B038E1 /* libfreetype.6.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254F25FD2C1400B038E1 /* libfreetype.6.dylib */; }; + 669125AE25FD2E0800B038E1 /* libpng16.16.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254B25FD2C1400B038E1 /* libpng16.16.dylib */; }; + 669125AF25FD2E1000B038E1 /* libspeexdsp.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254D25FD2C1400B038E1 /* libspeexdsp.1.dylib */; }; + 669125B025FD2E1500B038E1 /* libzip.5.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255225FD2C1400B038E1 /* libzip.5.dylib */; }; + 669125B125FD2E4200B038E1 /* libcrypto.1.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 669125A125FD2C7C00B038E1 /* libcrypto.1.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125B225FD2E4200B038E1 /* libdiscord-rpc.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254925FD2C1300B038E1 /* libdiscord-rpc.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125B325FD2E4200B038E1 /* libfreetype.6.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254F25FD2C1400B038E1 /* libfreetype.6.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125B425FD2E4200B038E1 /* libpng16.16.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254B25FD2C1400B038E1 /* libpng16.16.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125B525FD2E4200B038E1 /* libspeexdsp.1.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691254D25FD2C1400B038E1 /* libspeexdsp.1.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 669125B625FD2E4200B038E1 /* libzip.5.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6691255225FD2C1400B038E1 /* libzip.5.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 66A10EA2257F1DE100DD651A /* BalloonPressAction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 66A10EA0257F1DE000DD651A /* BalloonPressAction.cpp */; }; 66A10EA3257F1DE100DD651A /* BalloonPressAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 66A10EA1257F1DE000DD651A /* BalloonPressAction.h */; }; 66A10EC0257F1DF800DD651A /* BannerPlaceAction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 66A10EA6257F1DF600DD651A /* BannerPlaceAction.cpp */; }; @@ -248,7 +298,6 @@ 932A211F22D73CFA00C57EDB /* GameActionRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 932A20D322D73CEF00C57EDB /* GameActionRegistration.cpp */; }; 932A212022D73CFA00C57EDB /* GameAction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 932A211C22D73CFA00C57EDB /* GameAction.cpp */; }; 93378D01252B4F550077D2D8 /* JsonFwd.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 93378D00252B4F550077D2D8 /* JsonFwd.hpp */; }; - 93378D03252B54140077D2D8 /* json_fwd.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 93378D02252B54140077D2D8 /* json_fwd.hpp */; }; 933C55B524B858490057E64B /* SeaDecrypt.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 933C55B424B858490057E64B /* SeaDecrypt.cpp */; }; 933CBDB520CB1ACD00134678 /* Widget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 933CBDB120CB1ACC00134678 /* Widget.cpp */; }; 933CBDB620CB1ACD00134678 /* Theme.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 933CBDB220CB1ACD00134678 /* Theme.cpp */; }; @@ -259,10 +308,6 @@ 933F2CB820935653001B33FD /* LocalisationService.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 933F2CB620935653001B33FD /* LocalisationService.cpp */; }; 933F2CB920935653001B33FD /* LocalisationService.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 933F2CB620935653001B33FD /* LocalisationService.cpp */; }; 933F2CBB20935668001B33FD /* LocalisationService.h in Headers */ = {isa = PBXBuildFile; fileRef = 933F2CBA20935668001B33FD /* LocalisationService.h */; }; - 933F32EA24183CBB008376CE /* libicuuc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 933F32E824183CBB008376CE /* libicuuc.dylib */; }; - 933F32EB24183CBB008376CE /* libicuuc.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 933F32E824183CBB008376CE /* libicuuc.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - 933F32EC24183CBB008376CE /* libicudata.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 933F32E924183CBB008376CE /* libicudata.dylib */; }; - 933F32ED24183CBB008376CE /* libicudata.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 933F32E924183CBB008376CE /* libicudata.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 9344BEF920C1E6180047D165 /* Crypt.h in Headers */ = {isa = PBXBuildFile; fileRef = 9344BEF720C1E6180047D165 /* Crypt.h */; }; 9344BEFA20C1E6180047D165 /* Crypt.OpenSSL.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9344BEF820C1E6180047D165 /* Crypt.OpenSSL.cpp */; }; 9346F9D8208A191900C77D91 /* Guest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9346F9D6208A191900C77D91 /* Guest.cpp */; }; @@ -337,12 +382,7 @@ 93F9DA3820B46F9D00D1BE92 /* ShopItem.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CDCB0BC20A9902E00321367 /* ShopItem.cpp */; }; 93F9DA3A20B46FCA00D1BE92 /* SceneryObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C1A53EC205FD19F000F8EF5 /* SceneryObject.cpp */; }; 93F9DA3B20B4701100D1BE92 /* StdInOutConsole.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C3B423720591513000C5BB7 /* StdInOutConsole.cpp */; }; - 93FB271F24ED32B7008241C9 /* json.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 93FB271E24ED32B7008241C9 /* json.hpp */; }; 93FB272124ED3601008241C9 /* Cursors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93FB272024ED3601008241C9 /* Cursors.cpp */; }; - 93FC08FF2418F3ED00CA3054 /* duktape.h in Headers */ = {isa = PBXBuildFile; fileRef = 93FC08FD2418F3ED00CA3054 /* duktape.h */; }; - 93FC09002418F3ED00CA3054 /* duk_config.h in Headers */ = {isa = PBXBuildFile; fileRef = 93FC08FE2418F3ED00CA3054 /* duk_config.h */; }; - 93FC09022418F3F500CA3054 /* libduktape.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 93FC09012418F3F500CA3054 /* libduktape.dylib */; }; - 93FC09032418F41700CA3054 /* libduktape.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 93FC09012418F3F500CA3054 /* libduktape.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; C61ADB1F1FB6A0A70024F2EF /* TopToolbar.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C61ADB1E1FB6A0A60024F2EF /* TopToolbar.cpp */; }; C61ADB211FB7DC060024F2EF /* Scenery.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C61ADB201FB7DC060024F2EF /* Scenery.cpp */; }; C61ADB231FBBCB8B0024F2EF /* GameBottomToolbar.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C61ADB221FBBCB8A0024F2EF /* GameBottomToolbar.cpp */; }; @@ -607,30 +647,18 @@ C688793420289B9B0084B384 /* WaterCoaster.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4C93F1A41F8B748900A9330D /* WaterCoaster.cpp */; }; C68879A420289C060084B384 /* Platform.macOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = F7B20489201E91BF0000AD7E /* Platform.macOS.mm */; }; C68D98BC1FC6B8AB008E8378 /* TileInspector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C68D98BB1FC6B8AB008E8378 /* TileInspector.cpp */; }; - C6CB94F21EFFBF860065888F /* libfreetype.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B41CF3006400659A24 /* libfreetype.dylib */; }; C6D2BEE21F9BAA6C008B557C /* Ride.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D2BEE11F9BAA6C008B557C /* Ride.cpp */; }; C6D2BEE61F9BAACE008B557C /* TrackList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D2BEE31F9BAACC008B557C /* TrackList.cpp */; }; C6D2BEE71F9BAACE008B557C /* MapTooltip.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D2BEE41F9BAACD008B557C /* MapTooltip.cpp */; }; C6D2BEE81F9BAACE008B557C /* MazeConstruction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D2BEE51F9BAACD008B557C /* MazeConstruction.cpp */; }; C6D2BEEA1F9BB83C008B557C /* NetworkStatus.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D2BEE91F9BB83B008B557C /* NetworkStatus.cpp */; }; C6E415511FAFD6DC00D4A52A /* RideConstruction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E415501FAFD6DB00D4A52A /* RideConstruction.cpp */; }; - C6E96E361E0408B40076A04F /* libzip.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; }; - C6E96E371E040E040076A04F /* libzip.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; C9C630B62235A22D009AD16E /* GameStateSnapshots.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C9C630B52235A22C009AD16E /* GameStateSnapshots.cpp */; }; D41B73EF1C2101890080A7B9 /* libcurl.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B73EE1C2101890080A7B9 /* libcurl.tbd */; }; D41B741D1C210A7A0080A7B9 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B741C1C210A7A0080A7B9 /* libiconv.tbd */; }; D43407E21D0E14CE00C2B3D4 /* shaders in Resources */ = {isa = PBXBuildFile; fileRef = D43407E11D0E14CE00C2B3D4 /* shaders */; }; - D45A38BC1CF3006400659A24 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; }; - D45A38C11CF3006400659A24 /* libSDL2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B81CF3006400659A24 /* libSDL2.dylib */; }; - D45A38C21CF3006400659A24 /* libspeexdsp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; }; - D45A39591CF300AF00659A24 /* libcrypto.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - D45A395A1CF300AF00659A24 /* libfreetype.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B41CF3006400659A24 /* libfreetype.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - D45A395E1CF300AF00659A24 /* libSDL2.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B81CF3006400659A24 /* libSDL2.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - D45A395F1CF300AF00659A24 /* libspeexdsp.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; D47304D51C4FF8250015C0EA /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D47304D41C4FF8250015C0EA /* libz.tbd */; }; D48AFDB71EF78DBF0081C644 /* BenchGfxCommmands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D48AFDB61EF78DBF0081C644 /* BenchGfxCommmands.cpp */; }; - D4A8B4B41DB41873007A2F29 /* libpng16.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; }; - D4A8B4B51DB4188D007A2F29 /* libpng16.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; D4EC48E61C2637710024B507 /* g2.dat in Resources */ = {isa = PBXBuildFile; fileRef = D4EC48E31C2637710024B507 /* g2.dat */; }; D4EC48E71C2637710024B507 /* language in Resources */ = {isa = PBXBuildFile; fileRef = D4EC48E41C2637710024B507 /* language */; }; D4EC48E81C2637710024B507 /* sequence in Resources */ = {isa = PBXBuildFile; fileRef = D4EC48E51C2637710024B507 /* sequence */; }; @@ -732,21 +760,13 @@ F7D7748E1EC66FA000BE6EBC /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B741C1C210A7A0080A7B9 /* libiconv.tbd */; }; F7D7748F1EC66FA900BE6EBC /* libcurl.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B73EE1C2101890080A7B9 /* libcurl.tbd */; }; F7D774901EC66FB000BE6EBC /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D47304D41C4FF8250015C0EA /* libz.tbd */; }; - F7D774911EC66FBA00BE6EBC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; }; - F7D774921EC66FBA00BE6EBC /* libfreetype.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B41CF3006400659A24 /* libfreetype.dylib */; }; - F7D774941EC66FBA00BE6EBC /* libpng16.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; }; - F7D774951EC66FBA00BE6EBC /* libspeexdsp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; }; - F7D774961EC66FBA00BE6EBC /* libzip.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; }; - F7D774971EC6705F00BE6EBC /* libcrypto.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - F7D774981EC6705F00BE6EBC /* libfreetype.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B41CF3006400659A24 /* libfreetype.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - F7D7749A1EC6705F00BE6EBC /* libpng16.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - F7D7749B1EC6705F00BE6EBC /* libspeexdsp.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - F7D7749C1EC6705F00BE6EBC /* libzip.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; F7D7749E1EC6713200BE6EBC /* Cli.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C857D1EC4E80E00FA49E2 /* Cli.cpp */; }; - F7D774A21EC6715C00BE6EBC /* libSDL2.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B81CF3006400659A24 /* libSDL2.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; F7D774AC1EC6741D00BE6EBC /* language in CopyFiles */ = {isa = PBXBuildFile; fileRef = D4EC48E41C2637710024B507 /* language */; }; F7D774AD1EC6741D00BE6EBC /* shaders in CopyFiles */ = {isa = PBXBuildFile; fileRef = D43407E11D0E14CE00C2B3D4 /* shaders */; }; F7D774AE1EC6741D00BE6EBC /* sequence in CopyFiles */ = {isa = PBXBuildFile; fileRef = D4EC48E51C2637710024B507 /* sequence */; }; + E73A781EBC3C440A99D59821 /* EntityTweener.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0EB0D1DF6CC74E4190301D84 /* EntityTweener.cpp */; }; + F42186C5840D4196981ADD16 /* EntityTweener.h in Headers */ = {isa = PBXBuildFile; fileRef = 091352A950004312BAB18717 /* EntityTweener.h */; }; + 0746674FA0794ABF86E406A1 /* Litter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9D3DD6CD73F5421880280D9D /* Litter.cpp */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -787,15 +807,25 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 933F32EB24183CBB008376CE /* libicuuc.dylib in Embed Frameworks */, - C6E96E371E040E040076A04F /* libzip.dylib in Embed Frameworks */, - D45A39591CF300AF00659A24 /* libcrypto.dylib in Embed Frameworks */, - 93FC09032418F41700CA3054 /* libduktape.dylib in Embed Frameworks */, - D45A395A1CF300AF00659A24 /* libfreetype.dylib in Embed Frameworks */, - D4A8B4B51DB4188D007A2F29 /* libpng16.dylib in Embed Frameworks */, - D45A395E1CF300AF00659A24 /* libSDL2.dylib in Embed Frameworks */, - 933F32ED24183CBB008376CE /* libicudata.dylib in Embed Frameworks */, - D45A395F1CF300AF00659A24 /* libspeexdsp.dylib in Embed Frameworks */, + 669125A825FD2CD200B038E1 /* libSDL2-2.0.dylib in Embed Frameworks */, + 669125A325FD2C9100B038E1 /* libcrypto.1.1.dylib in Embed Frameworks */, + 6691258C25FD2C5200B038E1 /* libbrotlicommon.1.dylib in Embed Frameworks */, + 6691258D25FD2C5200B038E1 /* libbrotlidec.1.dylib in Embed Frameworks */, + 6691258E25FD2C5200B038E1 /* libbrotlienc.1.dylib in Embed Frameworks */, + 6691258F25FD2C5200B038E1 /* libbz2.1.0.dylib in Embed Frameworks */, + 6691259125FD2C5200B038E1 /* libdiscord-rpc.dylib in Embed Frameworks */, + 6691259225FD2C5200B038E1 /* libduktape.2.dylib in Embed Frameworks */, + 6691259325FD2C5200B038E1 /* libfreetype.6.dylib in Embed Frameworks */, + 6691259425FD2C5200B038E1 /* libicudata.67.dylib in Embed Frameworks */, + 6691259525FD2C5200B038E1 /* libicui18n.67.dylib in Embed Frameworks */, + 6691259625FD2C5200B038E1 /* libicuio.67.dylib in Embed Frameworks */, + 6691259725FD2C5200B038E1 /* libicutu.67.dylib in Embed Frameworks */, + 6691259825FD2C5200B038E1 /* libicuuc.67.dylib in Embed Frameworks */, + 6691259925FD2C5200B038E1 /* libpng16.16.dylib in Embed Frameworks */, + 6691259B25FD2C5200B038E1 /* libspeexdsp.1.dylib in Embed Frameworks */, + 6691259C25FD2C5200B038E1 /* libssl.1.1.dylib in Embed Frameworks */, + 6691259D25FD2C5200B038E1 /* libz.1.dylib in Embed Frameworks */, + 6691259E25FD2C5200B038E1 /* libzip.5.dylib in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -806,12 +836,12 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - F7D774A21EC6715C00BE6EBC /* libSDL2.dylib in Embed Frameworks */, - F7D774971EC6705F00BE6EBC /* libcrypto.dylib in Embed Frameworks */, - F7D774981EC6705F00BE6EBC /* libfreetype.dylib in Embed Frameworks */, - F7D7749A1EC6705F00BE6EBC /* libpng16.dylib in Embed Frameworks */, - F7D7749B1EC6705F00BE6EBC /* libspeexdsp.dylib in Embed Frameworks */, - F7D7749C1EC6705F00BE6EBC /* libzip.dylib in Embed Frameworks */, + 669125B125FD2E4200B038E1 /* libcrypto.1.1.dylib in Embed Frameworks */, + 669125B225FD2E4200B038E1 /* libdiscord-rpc.dylib in Embed Frameworks */, + 669125B325FD2E4200B038E1 /* libfreetype.6.dylib in Embed Frameworks */, + 669125B425FD2E4200B038E1 /* libpng16.16.dylib in Embed Frameworks */, + 669125B525FD2E4200B038E1 /* libspeexdsp.1.dylib in Embed Frameworks */, + 669125B625FD2E4200B038E1 /* libzip.5.dylib in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -1017,6 +1047,10 @@ 4C81F7DF24672C4D000E61BF /* CustomListView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CustomListView.cpp; path = scripting/CustomListView.cpp; sourceTree = ""; }; 4C81F7E024672C4D000E61BF /* CustomListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomListView.h; path = scripting/CustomListView.h; sourceTree = ""; }; 4C81F7E224672C58000E61BF /* ScTileSelection.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = ScTileSelection.hpp; path = scripting/ScTileSelection.hpp; sourceTree = ""; }; + 4C882FB825FEA80D0039D1C4 /* TrainManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TrainManager.cpp; sourceTree = ""; }; + 4C882FB925FEA80E0039D1C4 /* TrainManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TrainManager.h; sourceTree = ""; }; + 4C882FBB25FEA8260039D1C4 /* VehicleColour.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VehicleColour.h; sourceTree = ""; }; + 4C882FBC25FEA8270039D1C4 /* VehicleEntry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VehicleEntry.h; sourceTree = ""; }; 4C8A6FF123EB5325001A8255 /* Http.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Http.h; sourceTree = ""; }; 4C8A6FF223EB5326001A8255 /* Http.cURL.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Http.cURL.cpp; sourceTree = ""; }; 4C8B426E1EEB1ABD00F015CA /* X8DrawingEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = X8DrawingEngine.cpp; sourceTree = ""; }; @@ -1123,6 +1157,11 @@ 4C93F1B71F8E185600A9330D /* NewsItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NewsItem.h; sourceTree = ""; }; 4C93F1B81F8E185600A9330D /* Research.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Research.cpp; sourceTree = ""; }; 4C93F1B91F8E185600A9330D /* Research.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Research.h; sourceTree = ""; }; + 4CA23D62263C91D700077AA1 /* ChecksumStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ChecksumStream.cpp; sourceTree = ""; }; + 4CA23D63263C91D700077AA1 /* ChecksumStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ChecksumStream.h; sourceTree = ""; }; + 4CA23DAF263C920900077AA1 /* Entity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Entity.h; sourceTree = ""; }; + 4CA23DB0263C920900077AA1 /* EntityList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntityList.h; sourceTree = ""; }; + 4CA23DB1263C920900077AA1 /* Entity.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Entity.cpp; sourceTree = ""; }; 4CA39E4E2513F8A00094066B /* RTL.ICU.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTL.ICU.cpp; sourceTree = ""; }; 4CA39E4F2513F8A00094066B /* RTL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTL.h; sourceTree = ""; }; 4CA39E502513F8A00094066B /* RTL.FriBidi.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTL.FriBidi.cpp; sourceTree = ""; }; @@ -1172,8 +1211,47 @@ 631D7A3525F590A100EA2B45 /* openrct2.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = openrct2.icns; path = resources/mac/openrct2.icns; sourceTree = SOURCE_ROOT; }; 6341F4DF2400AA0E0052902B /* Drawing.Sprite.RLE.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Drawing.Sprite.RLE.cpp; sourceTree = ""; }; 6341F4E02400AA0F0052902B /* Drawing.Sprite.BMP.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Drawing.Sprite.BMP.cpp; sourceTree = ""; }; - 662578A325803A6C0002C77E /* libdiscord-rpc.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libdiscord-rpc.a"; path = "discord-rpc/build/src/libdiscord-rpc.a"; sourceTree = ""; }; - 662578A525803AA90002C77E /* discord_rpc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = discord_rpc.h; path = "discord-rpc/include/discord_rpc.h"; sourceTree = ""; }; + 666B99B025FD29C70081509F /* speex */ = {isa = PBXFileReference; lastKnownFileType = folder; path = speex; sourceTree = ""; }; + 666B99B125FD29C70081509F /* unicode */ = {isa = PBXFileReference; lastKnownFileType = folder; path = unicode; sourceTree = ""; }; + 666B99B225FD29C70081509F /* ft2build.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ft2build.h; sourceTree = ""; }; + 666B99B325FD29C70081509F /* zconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zconf.h; sourceTree = ""; }; + 666B99B425FD29C70081509F /* openssl */ = {isa = PBXFileReference; lastKnownFileType = folder; path = openssl; sourceTree = ""; }; + 666B99B525FD29C70081509F /* pnglibconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pnglibconf.h; sourceTree = ""; }; + 666B99B625FD29C70081509F /* zlib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zlib.h; sourceTree = ""; }; + 666B99B725FD29C70081509F /* zip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zip.h; sourceTree = ""; }; + 666B99B825FD29C70081509F /* discord_rpc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = discord_rpc.h; sourceTree = ""; }; + 666B99B925FD29C70081509F /* duktape.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = duktape.h; sourceTree = ""; }; + 666B99BA25FD29C70081509F /* discord_register.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = discord_register.h; sourceTree = ""; }; + 666B99BB25FD29C70081509F /* rapidjson */ = {isa = PBXFileReference; lastKnownFileType = folder; path = rapidjson; sourceTree = ""; }; + 666B99BC25FD29C80081509F /* bzlib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bzlib.h; sourceTree = ""; }; + 666B99BD25FD29C80081509F /* libpng16 */ = {isa = PBXFileReference; lastKnownFileType = folder; path = libpng16; sourceTree = ""; }; + 666B99BE25FD29C80081509F /* duk_config.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = duk_config.h; sourceTree = ""; }; + 666B99BF25FD29C80081509F /* zipconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zipconf.h; sourceTree = ""; }; + 666B99C025FD29C80081509F /* pngconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pngconf.h; sourceTree = ""; }; + 666B99C125FD29C80081509F /* freetype */ = {isa = PBXFileReference; lastKnownFileType = folder; path = freetype; sourceTree = ""; }; + 666B99C225FD29C80081509F /* png.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = png.h; sourceTree = ""; }; + 666B99C325FD29C80081509F /* SDL2 */ = {isa = PBXFileReference; lastKnownFileType = folder; path = SDL2; sourceTree = ""; }; + 666B99C425FD29C80081509F /* brotli */ = {isa = PBXFileReference; lastKnownFileType = folder; path = brotli; sourceTree = ""; }; + 666B99C525FD29C80081509F /* nlohmann */ = {isa = PBXFileReference; lastKnownFileType = folder; path = nlohmann; sourceTree = ""; }; + 6691254025FD2C1300B038E1 /* libicuuc.67.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicuuc.67.dylib; path = libxc/lib/libicuuc.67.dylib; sourceTree = ""; }; + 6691254125FD2C1300B038E1 /* libbrotlidec.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbrotlidec.1.dylib; path = libxc/lib/libbrotlidec.1.dylib; sourceTree = ""; }; + 6691254225FD2C1300B038E1 /* libduktape.2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libduktape.2.dylib; path = libxc/lib/libduktape.2.dylib; sourceTree = ""; }; + 6691254425FD2C1300B038E1 /* libicui18n.67.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicui18n.67.dylib; path = libxc/lib/libicui18n.67.dylib; sourceTree = ""; }; + 6691254525FD2C1300B038E1 /* libbz2.1.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.1.0.dylib; path = libxc/lib/libbz2.1.0.dylib; sourceTree = ""; }; + 6691254625FD2C1300B038E1 /* libbrotlicommon.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbrotlicommon.1.dylib; path = libxc/lib/libbrotlicommon.1.dylib; sourceTree = ""; }; + 6691254725FD2C1300B038E1 /* libicudata.67.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicudata.67.dylib; path = libxc/lib/libicudata.67.dylib; sourceTree = ""; }; + 6691254825FD2C1300B038E1 /* libbrotlienc.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbrotlienc.1.dylib; path = libxc/lib/libbrotlienc.1.dylib; sourceTree = ""; }; + 6691254925FD2C1300B038E1 /* libdiscord-rpc.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libdiscord-rpc.dylib"; path = "libxc/lib/libdiscord-rpc.dylib"; sourceTree = ""; }; + 6691254A25FD2C1300B038E1 /* libicuio.67.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicuio.67.dylib; path = libxc/lib/libicuio.67.dylib; sourceTree = ""; }; + 6691254B25FD2C1400B038E1 /* libpng16.16.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpng16.16.dylib; path = libxc/lib/libpng16.16.dylib; sourceTree = ""; }; + 6691254D25FD2C1400B038E1 /* libspeexdsp.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libspeexdsp.1.dylib; path = libxc/lib/libspeexdsp.1.dylib; sourceTree = ""; }; + 6691254E25FD2C1400B038E1 /* libssl.1.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libssl.1.1.dylib; path = libxc/lib/libssl.1.1.dylib; sourceTree = ""; }; + 6691254F25FD2C1400B038E1 /* libfreetype.6.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libfreetype.6.dylib; path = libxc/lib/libfreetype.6.dylib; sourceTree = ""; }; + 6691255025FD2C1400B038E1 /* libz.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.1.dylib; path = libxc/lib/libz.1.dylib; sourceTree = ""; }; + 6691255125FD2C1400B038E1 /* libicutu.67.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicutu.67.dylib; path = libxc/lib/libicutu.67.dylib; sourceTree = ""; }; + 6691255225FD2C1400B038E1 /* libzip.5.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libzip.5.dylib; path = libxc/lib/libzip.5.dylib; sourceTree = ""; }; + 669125A125FD2C7C00B038E1 /* libcrypto.1.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcrypto.1.1.dylib; path = libxc/lib/libcrypto.1.1.dylib; sourceTree = ""; }; + 669125A625FD2CBF00B038E1 /* libSDL2-2.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libSDL2-2.0.dylib"; path = "libxc/lib/libSDL2-2.0.dylib"; sourceTree = ""; }; 66A10EA0257F1DE000DD651A /* BalloonPressAction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BalloonPressAction.cpp; sourceTree = ""; }; 66A10EA1257F1DE000DD651A /* BalloonPressAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BalloonPressAction.h; sourceTree = ""; }; 66A10EA6257F1DF600DD651A /* BannerPlaceAction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BannerPlaceAction.cpp; sourceTree = ""; }; @@ -1343,7 +1421,6 @@ 932A20F522D73CF300C57EDB /* GameAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameAction.h; sourceTree = ""; }; 932A211C22D73CFA00C57EDB /* GameAction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GameAction.cpp; sourceTree = ""; }; 93378D00252B4F550077D2D8 /* JsonFwd.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = JsonFwd.hpp; sourceTree = ""; }; - 93378D02252B54140077D2D8 /* json_fwd.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = json_fwd.hpp; path = "build/json-3.9.1/include/nlohmann/json_fwd.hpp"; sourceTree = SOURCE_ROOT; }; 933C55B424B858490057E64B /* SeaDecrypt.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SeaDecrypt.cpp; sourceTree = ""; }; 933CBDB120CB1ACC00134678 /* Widget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Widget.cpp; sourceTree = ""; }; 933CBDB220CB1ACD00134678 /* Theme.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Theme.cpp; sourceTree = ""; }; @@ -1354,239 +1431,10 @@ 933CBDBE20CB1BCA00134678 /* Window.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Window.cpp; sourceTree = ""; }; 933F2CB620935653001B33FD /* LocalisationService.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalisationService.cpp; sourceTree = ""; }; 933F2CBA20935668001B33FD /* LocalisationService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalisationService.h; sourceTree = ""; }; - 933F32E824183CBB008376CE /* libicuuc.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libicuuc.dylib; sourceTree = ""; }; - 933F32E924183CBB008376CE /* libicudata.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libicudata.dylib; sourceTree = ""; }; 9344BEF720C1E6180047D165 /* Crypt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Crypt.h; sourceTree = ""; }; 9344BEF820C1E6180047D165 /* Crypt.OpenSSL.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Crypt.OpenSSL.cpp; sourceTree = ""; }; 9346F9D6208A191900C77D91 /* Guest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Guest.cpp; sourceTree = ""; }; 9346F9D7208A191900C77D91 /* GuestPathfinding.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GuestPathfinding.cpp; sourceTree = ""; }; - 9350B44420B46E0800897BC5 /* translit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = translit.h; sourceTree = ""; }; - 9350B44520B46E0800897BC5 /* ustdio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ustdio.h; sourceTree = ""; }; - 9350B44620B46E0800897BC5 /* utf_old.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utf_old.h; sourceTree = ""; }; - 9350B44720B46E0800897BC5 /* ucsdet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucsdet.h; sourceTree = ""; }; - 9350B44820B46E0800897BC5 /* tzfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tzfmt.h; sourceTree = ""; }; - 9350B44920B46E0800897BC5 /* ubrk.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ubrk.h; sourceTree = ""; }; - 9350B44A20B46E0800897BC5 /* ufieldpositer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ufieldpositer.h; sourceTree = ""; }; - 9350B44B20B46E0800897BC5 /* stringpiece.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stringpiece.h; sourceTree = ""; }; - 9350B44C20B46E0800897BC5 /* ucat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucat.h; sourceTree = ""; }; - 9350B44D20B46E0800897BC5 /* tblcoll.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tblcoll.h; sourceTree = ""; }; - 9350B44E20B46E0800897BC5 /* stringoptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stringoptions.h; sourceTree = ""; }; - 9350B44F20B46E0800897BC5 /* dtfmtsym.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dtfmtsym.h; sourceTree = ""; }; - 9350B45020B46E0800897BC5 /* unirepl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unirepl.h; sourceTree = ""; }; - 9350B45120B46E0800897BC5 /* ptypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ptypes.h; sourceTree = ""; }; - 9350B45220B46E0800897BC5 /* fmtable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fmtable.h; sourceTree = ""; }; - 9350B45320B46E0800897BC5 /* dtitvfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dtitvfmt.h; sourceTree = ""; }; - 9350B45420B46E0800897BC5 /* choicfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = choicfmt.h; sourceTree = ""; }; - 9350B45520B46E0800897BC5 /* usetiter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = usetiter.h; sourceTree = ""; }; - 9350B45620B46E0800897BC5 /* errorcode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = errorcode.h; sourceTree = ""; }; - 9350B45720B46E0800897BC5 /* tznames.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tznames.h; sourceTree = ""; }; - 9350B45820B46E0800897BC5 /* dtintrv.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dtintrv.h; sourceTree = ""; }; - 9350B45920B46E0800897BC5 /* ucurr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucurr.h; sourceTree = ""; }; - 9350B45A20B46E0800897BC5 /* icuplug.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = icuplug.h; sourceTree = ""; }; - 9350B45B20B46E0800897BC5 /* uregion.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uregion.h; sourceTree = ""; }; - 9350B45C20B46E0800897BC5 /* utext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utext.h; sourceTree = ""; }; - 9350B45D20B46E0800897BC5 /* edits.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = edits.h; sourceTree = ""; }; - 9350B45E20B46E0800897BC5 /* parsepos.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = parsepos.h; sourceTree = ""; }; - 9350B45F20B46E0800897BC5 /* ucal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucal.h; sourceTree = ""; }; - 9350B46020B46E0800897BC5 /* fpositer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fpositer.h; sourceTree = ""; }; - 9350B46120B46E0800897BC5 /* dtitvinf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dtitvinf.h; sourceTree = ""; }; - 9350B46220B46E0800897BC5 /* rbnf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rbnf.h; sourceTree = ""; }; - 9350B46320B46E0800897BC5 /* udat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = udat.h; sourceTree = ""; }; - 9350B46420B46E0800897BC5 /* urep.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = urep.h; sourceTree = ""; }; - 9350B46520B46E0800897BC5 /* utf32.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utf32.h; sourceTree = ""; }; - 9350B46620B46E0800897BC5 /* vtzone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = vtzone.h; sourceTree = ""; }; - 9350B46720B46E0800897BC5 /* ustring.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ustring.h; sourceTree = ""; }; - 9350B46820B46E0800897BC5 /* ubiditransform.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ubiditransform.h; sourceTree = ""; }; - 9350B46920B46E0800897BC5 /* uenum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uenum.h; sourceTree = ""; }; - 9350B46A20B46E0800897BC5 /* appendable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = appendable.h; sourceTree = ""; }; - 9350B46B20B46E0800897BC5 /* usearch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = usearch.h; sourceTree = ""; }; - 9350B46C20B46E0800897BC5 /* numsys.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = numsys.h; sourceTree = ""; }; - 9350B46D20B46E0800897BC5 /* timezone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = timezone.h; sourceTree = ""; }; - 9350B46E20B46E0800897BC5 /* uset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uset.h; sourceTree = ""; }; - 9350B46F20B46E0800897BC5 /* casemap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = casemap.h; sourceTree = ""; }; - 9350B47020B46E0800897BC5 /* coleitr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = coleitr.h; sourceTree = ""; }; - 9350B47120B46E0800897BC5 /* schriter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = schriter.h; sourceTree = ""; }; - 9350B47220B46E0800897BC5 /* msgfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = msgfmt.h; sourceTree = ""; }; - 9350B47320B46E0800897BC5 /* fieldpos.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fieldpos.h; sourceTree = ""; }; - 9350B47420B46E0800897BC5 /* simpletz.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = simpletz.h; sourceTree = ""; }; - 9350B47520B46E0800897BC5 /* uldnames.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uldnames.h; sourceTree = ""; }; - 9350B47620B46E0800897BC5 /* uiter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uiter.h; sourceTree = ""; }; - 9350B47720B46E0800897BC5 /* umsg.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = umsg.h; sourceTree = ""; }; - 9350B47820B46E0800897BC5 /* sortkey.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sortkey.h; sourceTree = ""; }; - 9350B47920B46E0800897BC5 /* docmain.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = docmain.h; sourceTree = ""; }; - 9350B47A20B46E0800897BC5 /* uniset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uniset.h; sourceTree = ""; }; - 9350B47B20B46E0800897BC5 /* basictz.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = basictz.h; sourceTree = ""; }; - 9350B47C20B46E0800897BC5 /* udata.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = udata.h; sourceTree = ""; }; - 9350B47D20B46E0800897BC5 /* stringtriebuilder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stringtriebuilder.h; sourceTree = ""; }; - 9350B47E20B46E0800897BC5 /* chariter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = chariter.h; sourceTree = ""; }; - 9350B47F20B46E0800897BC5 /* umisc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = umisc.h; sourceTree = ""; }; - 9350B48020B46E0800897BC5 /* reldatefmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = reldatefmt.h; sourceTree = ""; }; - 9350B48120B46E0800897BC5 /* uloc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uloc.h; sourceTree = ""; }; - 9350B48220B46E0800897BC5 /* plurrule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = plurrule.h; sourceTree = ""; }; - 9350B48320B46E0800897BC5 /* bytestriebuilder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bytestriebuilder.h; sourceTree = ""; }; - 9350B48420B46E0800897BC5 /* measunit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = measunit.h; sourceTree = ""; }; - 9350B48520B46E0800897BC5 /* utrace.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utrace.h; sourceTree = ""; }; - 9350B48620B46E0800897BC5 /* locdspnm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = locdspnm.h; sourceTree = ""; }; - 9350B48720B46E0800897BC5 /* gregocal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = gregocal.h; sourceTree = ""; }; - 9350B48820B46E0800897BC5 /* uchriter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uchriter.h; sourceTree = ""; }; - 9350B48920B46E0800897BC5 /* enumset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enumset.h; sourceTree = ""; }; - 9350B48A20B46E0800897BC5 /* nounit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = nounit.h; sourceTree = ""; }; - 9350B48B20B46E0800897BC5 /* utf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utf.h; sourceTree = ""; }; - 9350B48C20B46E0800897BC5 /* measure.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = measure.h; sourceTree = ""; }; - 9350B48D20B46E0800897BC5 /* tzrule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tzrule.h; sourceTree = ""; }; - 9350B48E20B46E0800897BC5 /* strenum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = strenum.h; sourceTree = ""; }; - 9350B48F20B46E0800897BC5 /* regex.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = regex.h; sourceTree = ""; }; - 9350B49020B46E0800897BC5 /* gender.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = gender.h; sourceTree = ""; }; - 9350B49120B46E0800897BC5 /* dcfmtsym.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dcfmtsym.h; sourceTree = ""; }; - 9350B49220B46E0800897BC5 /* ucnv_err.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucnv_err.h; sourceTree = ""; }; - 9350B49320B46E0800897BC5 /* decimfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = decimfmt.h; sourceTree = ""; }; - 9350B49420B46E0800897BC5 /* bytestrie.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bytestrie.h; sourceTree = ""; }; - 9350B49520B46E0800897BC5 /* udatpg.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = udatpg.h; sourceTree = ""; }; - 9350B49620B46E0800897BC5 /* listformatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = listformatter.h; sourceTree = ""; }; - 9350B49720B46E0800897BC5 /* uobject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uobject.h; sourceTree = ""; }; - 9350B49820B46E0800897BC5 /* calendar.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = calendar.h; sourceTree = ""; }; - 9350B49920B46E0800897BC5 /* ures.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ures.h; sourceTree = ""; }; - 9350B49A20B46E0800897BC5 /* normlzr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = normlzr.h; sourceTree = ""; }; - 9350B49B20B46E0800897BC5 /* usprep.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = usprep.h; sourceTree = ""; }; - 9350B49C20B46E0800897BC5 /* urename.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = urename.h; sourceTree = ""; }; - 9350B49D20B46E0800897BC5 /* caniter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = caniter.h; sourceTree = ""; }; - 9350B49E20B46E0800897BC5 /* ucol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucol.h; sourceTree = ""; }; - 9350B49F20B46E0800897BC5 /* upluralrules.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = upluralrules.h; sourceTree = ""; }; - 9350B4A020B46E0800897BC5 /* ucharstrie.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucharstrie.h; sourceTree = ""; }; - 9350B4A120B46E0800897BC5 /* tmunit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tmunit.h; sourceTree = ""; }; - 9350B4A220B46E0800897BC5 /* unistr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unistr.h; sourceTree = ""; }; - 9350B4A320B46E0800897BC5 /* rbbi.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rbbi.h; sourceTree = ""; }; - 9350B4A420B46E0800897BC5 /* ulocdata.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ulocdata.h; sourceTree = ""; }; - 9350B4A520B46E0800897BC5 /* idna.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = idna.h; sourceTree = ""; }; - 9350B4A620B46E0800897BC5 /* unorm2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unorm2.h; sourceTree = ""; }; - 9350B4A720B46E0800897BC5 /* dtptngen.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dtptngen.h; sourceTree = ""; }; - 9350B4A820B46E0800897BC5 /* dbbi.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dbbi.h; sourceTree = ""; }; - 9350B4A920B46E0800897BC5 /* bytestream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bytestream.h; sourceTree = ""; }; - 9350B4AA20B46E0800897BC5 /* uversion.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uversion.h; sourceTree = ""; }; - 9350B4AB20B46E0800897BC5 /* messagepattern.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = messagepattern.h; sourceTree = ""; }; - 9350B4AC20B46E0800897BC5 /* uidna.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uidna.h; sourceTree = ""; }; - 9350B4AD20B46E0800897BC5 /* filteredbrk.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = filteredbrk.h; sourceTree = ""; }; - 9350B4AE20B46E0800897BC5 /* tmutamt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tmutamt.h; sourceTree = ""; }; - 9350B4AF20B46E0800897BC5 /* char16ptr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = char16ptr.h; sourceTree = ""; }; - 9350B4B020B46E0800897BC5 /* symtable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = symtable.h; sourceTree = ""; }; - 9350B4B120B46E0800897BC5 /* ucasemap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucasemap.h; sourceTree = ""; }; - 9350B4B220B46E0800897BC5 /* ucoleitr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucoleitr.h; sourceTree = ""; }; - 9350B4B320B46E0800897BC5 /* compactdecimalformat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = compactdecimalformat.h; sourceTree = ""; }; - 9350B4B420B46E0800897BC5 /* unum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unum.h; sourceTree = ""; }; - 9350B4B520B46E0800897BC5 /* udisplaycontext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = udisplaycontext.h; sourceTree = ""; }; - 9350B4B620B46E0800897BC5 /* tztrans.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tztrans.h; sourceTree = ""; }; - 9350B4B720B46E0800897BC5 /* umachine.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = umachine.h; sourceTree = ""; }; - 9350B4B820B46E0800897BC5 /* numberformatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = numberformatter.h; sourceTree = ""; }; - 9350B4B920B46E0800897BC5 /* datefmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = datefmt.h; sourceTree = ""; }; - 9350B4BA20B46E0800897BC5 /* utmscale.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utmscale.h; sourceTree = ""; }; - 9350B4BB20B46E0800897BC5 /* coll.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = coll.h; sourceTree = ""; }; - 9350B4BC20B46E0800897BC5 /* currpinf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = currpinf.h; sourceTree = ""; }; - 9350B4BD20B46E0800897BC5 /* uregex.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uregex.h; sourceTree = ""; }; - 9350B4BE20B46E0800897BC5 /* tmutfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tmutfmt.h; sourceTree = ""; }; - 9350B4BF20B46E0800897BC5 /* plurfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = plurfmt.h; sourceTree = ""; }; - 9350B4C020B46E0800897BC5 /* ustringtrie.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ustringtrie.h; sourceTree = ""; }; - 9350B4C120B46E0800897BC5 /* smpdtfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = smpdtfmt.h; sourceTree = ""; }; - 9350B4C220B46E0800897BC5 /* icudataver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = icudataver.h; sourceTree = ""; }; - 9350B4C320B46E0800897BC5 /* uchar.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uchar.h; sourceTree = ""; }; - 9350B4C420B46E0800897BC5 /* unorm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unorm.h; sourceTree = ""; }; - 9350B4C520B46E0800897BC5 /* ushape.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ushape.h; sourceTree = ""; }; - 9350B4C620B46E0800897BC5 /* unifunct.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unifunct.h; sourceTree = ""; }; - 9350B4C720B46E0800897BC5 /* ugender.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ugender.h; sourceTree = ""; }; - 9350B4C820B46E0800897BC5 /* selfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = selfmt.h; sourceTree = ""; }; - 9350B4C920B46E0800897BC5 /* uformattable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uformattable.h; sourceTree = ""; }; - 9350B4CA20B46E0800897BC5 /* ustream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ustream.h; sourceTree = ""; }; - 9350B4CB20B46E0800897BC5 /* simpleformatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = simpleformatter.h; sourceTree = ""; }; - 9350B4CC20B46E0800897BC5 /* ucnv_cb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucnv_cb.h; sourceTree = ""; }; - 9350B4CD20B46E0800897BC5 /* curramt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = curramt.h; sourceTree = ""; }; - 9350B4CE20B46E0800897BC5 /* locid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = locid.h; sourceTree = ""; }; - 9350B4CF20B46E0800897BC5 /* udateintervalformat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = udateintervalformat.h; sourceTree = ""; }; - 9350B4D020B46E0800897BC5 /* resbund.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = resbund.h; sourceTree = ""; }; - 9350B4D120B46E0800897BC5 /* ubidi.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ubidi.h; sourceTree = ""; }; - 9350B4D220B46E0800897BC5 /* stsearch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stsearch.h; sourceTree = ""; }; - 9350B4D320B46E0800897BC5 /* alphaindex.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = alphaindex.h; sourceTree = ""; }; - 9350B4D420B46E0800897BC5 /* uvernum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uvernum.h; sourceTree = ""; }; - 9350B4D520B46E0800897BC5 /* unimatch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unimatch.h; sourceTree = ""; }; - 9350B4D620B46E0800897BC5 /* rbtz.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rbtz.h; sourceTree = ""; }; - 9350B4D720B46E0800897BC5 /* ucnvsel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucnvsel.h; sourceTree = ""; }; - 9350B4D820B46E0800897BC5 /* uspoof.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uspoof.h; sourceTree = ""; }; - 9350B4D920B46E0800897BC5 /* region.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = region.h; sourceTree = ""; }; - 9350B4DA20B46E0800897BC5 /* ureldatefmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ureldatefmt.h; sourceTree = ""; }; - 9350B4DB20B46E0800897BC5 /* utrans.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utrans.h; sourceTree = ""; }; - 9350B4DC20B46E0800897BC5 /* parseerr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = parseerr.h; sourceTree = ""; }; - 9350B4DD20B46E0800897BC5 /* putil.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = putil.h; sourceTree = ""; }; - 9350B4DE20B46E0800897BC5 /* format.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = format.h; sourceTree = ""; }; - 9350B4DF20B46E0800897BC5 /* scientificnumberformatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = scientificnumberformatter.h; sourceTree = ""; }; - 9350B4E020B46E0800897BC5 /* normalizer2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = normalizer2.h; sourceTree = ""; }; - 9350B4E120B46E0800897BC5 /* dtrule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dtrule.h; sourceTree = ""; }; - 9350B4E220B46E0800897BC5 /* ucnv.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucnv.h; sourceTree = ""; }; - 9350B4E320B46E0800897BC5 /* ucharstriebuilder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ucharstriebuilder.h; sourceTree = ""; }; - 9350B4E420B46E0800897BC5 /* search.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = search.h; sourceTree = ""; }; - 9350B4E520B46E0800897BC5 /* unumsys.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unumsys.h; sourceTree = ""; }; - 9350B4E620B46E0800897BC5 /* uconfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uconfig.h; sourceTree = ""; }; - 9350B4E720B46E0800897BC5 /* utf16.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utf16.h; sourceTree = ""; }; - 9350B4E820B46E0800897BC5 /* brkiter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = brkiter.h; sourceTree = ""; }; - 9350B4E920B46E0800897BC5 /* platform.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = platform.h; sourceTree = ""; }; - 9350B4EA20B46E0800897BC5 /* rep.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rep.h; sourceTree = ""; }; - 9350B4EB20B46E0800897BC5 /* std_string.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = std_string.h; sourceTree = ""; }; - 9350B4EC20B46E0800897BC5 /* utf8.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utf8.h; sourceTree = ""; }; - 9350B4ED20B46E0800897BC5 /* localpointer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = localpointer.h; sourceTree = ""; }; - 9350B4EE20B46E0800897BC5 /* uclean.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uclean.h; sourceTree = ""; }; - 9350B4EF20B46E0800897BC5 /* uscript.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uscript.h; sourceTree = ""; }; - 9350B4F020B46E0800897BC5 /* numfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = numfmt.h; sourceTree = ""; }; - 9350B4F120B46E0800897BC5 /* currunit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = currunit.h; sourceTree = ""; }; - 9350B4F220B46E0800897BC5 /* utypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utypes.h; sourceTree = ""; }; - 9350B4F320B46E0800897BC5 /* ulistformatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ulistformatter.h; sourceTree = ""; }; - 9350B4F420B46E0800897BC5 /* measfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = measfmt.h; sourceTree = ""; }; - 9350B4F520B46E0800897BC5 /* unifilt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unifilt.h; sourceTree = ""; }; - 9350B4F820B46E0900897BC5 /* ftsnames.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftsnames.h; sourceTree = ""; }; - 9350B4F920B46E0900897BC5 /* ftwinfnt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftwinfnt.h; sourceTree = ""; }; - 9350B4FA20B46E0900897BC5 /* ftsizes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftsizes.h; sourceTree = ""; }; - 9350B4FB20B46E0900897BC5 /* fttypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fttypes.h; sourceTree = ""; }; - 9350B4FC20B46E0900897BC5 /* ftparams.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftparams.h; sourceTree = ""; }; - 9350B4FD20B46E0900897BC5 /* ftmm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftmm.h; sourceTree = ""; }; - 9350B4FF20B46E0900897BC5 /* ftstdlib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftstdlib.h; sourceTree = ""; }; - 9350B50020B46E0900897BC5 /* ftheader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftheader.h; sourceTree = ""; }; - 9350B50120B46E0900897BC5 /* ftconfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftconfig.h; sourceTree = ""; }; - 9350B50220B46E0900897BC5 /* ftoption.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftoption.h; sourceTree = ""; }; - 9350B50320B46E0900897BC5 /* ftmodule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftmodule.h; sourceTree = ""; }; - 9350B50420B46E0900897BC5 /* ftmodapi.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftmodapi.h; sourceTree = ""; }; - 9350B50520B46E0900897BC5 /* ftbzip2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftbzip2.h; sourceTree = ""; }; - 9350B50620B46E0900897BC5 /* fttrigon.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fttrigon.h; sourceTree = ""; }; - 9350B50720B46E0900897BC5 /* ftbbox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftbbox.h; sourceTree = ""; }; - 9350B50820B46E0900897BC5 /* ftgzip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftgzip.h; sourceTree = ""; }; - 9350B50920B46E0900897BC5 /* ftdriver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftdriver.h; sourceTree = ""; }; - 9350B50A20B46E0900897BC5 /* ftoutln.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftoutln.h; sourceTree = ""; }; - 9350B50B20B46E0900897BC5 /* ftadvanc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftadvanc.h; sourceTree = ""; }; - 9350B50C20B46E0900897BC5 /* ftsynth.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftsynth.h; sourceTree = ""; }; - 9350B50D20B46E0900897BC5 /* fterrors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fterrors.h; sourceTree = ""; }; - 9350B50E20B46E0900897BC5 /* ftgasp.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftgasp.h; sourceTree = ""; }; - 9350B50F20B46E0900897BC5 /* ftstroke.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftstroke.h; sourceTree = ""; }; - 9350B51020B46E0900897BC5 /* ftcache.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftcache.h; sourceTree = ""; }; - 9350B51120B46E0900897BC5 /* ftotval.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftotval.h; sourceTree = ""; }; - 9350B51220B46E0900897BC5 /* freetype.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = freetype.h; sourceTree = ""; }; - 9350B51320B46E0900897BC5 /* ftincrem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftincrem.h; sourceTree = ""; }; - 9350B51420B46E0900897BC5 /* ftfntfmt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftfntfmt.h; sourceTree = ""; }; - 9350B51520B46E0900897BC5 /* fterrdef.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fterrdef.h; sourceTree = ""; }; - 9350B51620B46E0900897BC5 /* ttnameid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ttnameid.h; sourceTree = ""; }; - 9350B51720B46E0900897BC5 /* ftpfr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftpfr.h; sourceTree = ""; }; - 9350B51820B46E0900897BC5 /* ftgxval.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftgxval.h; sourceTree = ""; }; - 9350B51920B46E0900897BC5 /* ftchapters.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftchapters.h; sourceTree = ""; }; - 9350B51A20B46E0900897BC5 /* tttags.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tttags.h; sourceTree = ""; }; - 9350B51B20B46E0900897BC5 /* ftlzw.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftlzw.h; sourceTree = ""; }; - 9350B51C20B46E0900897BC5 /* ftsystem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftsystem.h; sourceTree = ""; }; - 9350B51D20B46E0900897BC5 /* t1tables.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = t1tables.h; sourceTree = ""; }; - 9350B51E20B46E0900897BC5 /* ftimage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftimage.h; sourceTree = ""; }; - 9350B51F20B46E0900897BC5 /* tttables.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tttables.h; sourceTree = ""; }; - 9350B52020B46E0900897BC5 /* ftcid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftcid.h; sourceTree = ""; }; - 9350B52120B46E0900897BC5 /* ftglyph.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftglyph.h; sourceTree = ""; }; - 9350B52220B46E0900897BC5 /* ftmoderr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftmoderr.h; sourceTree = ""; }; - 9350B52320B46E0900897BC5 /* ftbitmap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftbitmap.h; sourceTree = ""; }; - 9350B52420B46E0900897BC5 /* ftlist.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftlist.h; sourceTree = ""; }; - 9350B52520B46E0900897BC5 /* ftmac.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftmac.h; sourceTree = ""; }; - 9350B52620B46E0900897BC5 /* ftlcdfil.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftlcdfil.h; sourceTree = ""; }; - 9350B52720B46E0900897BC5 /* ftbdf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftbdf.h; sourceTree = ""; }; - 9350B52820B46E0900897BC5 /* ftrender.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ftrender.h; sourceTree = ""; }; - 9350B52920B46E0900897BC5 /* ft2build.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ft2build.h; sourceTree = ""; }; 936F412424CE030E00E07BCF /* NetworkClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetworkClient.h; sourceTree = ""; }; 936F412524CE030F00E07BCF /* NetworkBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkBase.cpp; sourceTree = ""; }; 936F412624CE030F00E07BCF /* NetworkClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkClient.cpp; sourceTree = ""; }; @@ -1651,11 +1499,7 @@ 93F76EFC20BFF77A00D4512C /* Paint.Banner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Paint.Banner.cpp; sourceTree = ""; }; 93F76EFD20BFF77A00D4512C /* Paint.TileElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Paint.TileElement.cpp; sourceTree = ""; }; 93F76EFE20BFF77A00D4512C /* Paint.Entrance.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Paint.Entrance.cpp; sourceTree = ""; }; - 93FB271E24ED32B7008241C9 /* json.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = json.hpp; sourceTree = ""; }; 93FB272024ED3601008241C9 /* Cursors.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Cursors.cpp; sourceTree = ""; }; - 93FC08FD2418F3ED00CA3054 /* duktape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = duktape.h; sourceTree = ""; }; - 93FC08FE2418F3ED00CA3054 /* duk_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = duk_config.h; sourceTree = ""; }; - 93FC09012418F3F500CA3054 /* libduktape.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libduktape.dylib; sourceTree = ""; }; C61ADB1E1FB6A0A60024F2EF /* TopToolbar.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TopToolbar.cpp; sourceTree = ""; }; C61ADB201FB7DC060024F2EF /* Scenery.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Scenery.cpp; sourceTree = ""; }; C61ADB221FBBCB8A0024F2EF /* GameBottomToolbar.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GameBottomToolbar.cpp; sourceTree = ""; }; @@ -1750,161 +1594,12 @@ C6D2BEE51F9BAACD008B557C /* MazeConstruction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MazeConstruction.cpp; sourceTree = ""; }; C6D2BEE91F9BB83B008B557C /* NetworkStatus.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkStatus.cpp; sourceTree = ""; }; C6E415501FAFD6DB00D4A52A /* RideConstruction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RideConstruction.cpp; sourceTree = ""; }; - C6E96E331E0408A80076A04F /* zip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zip.h; sourceTree = ""; }; - C6E96E341E0408A80076A04F /* zipconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zipconf.h; sourceTree = ""; }; - C6E96E351E0408B40076A04F /* libzip.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libzip.dylib; sourceTree = ""; }; C9C630B42235A22C009AD16E /* GameStateSnapshots.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameStateSnapshots.h; sourceTree = ""; }; C9C630B52235A22C009AD16E /* GameStateSnapshots.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GameStateSnapshots.cpp; sourceTree = ""; }; D41B73EE1C2101890080A7B9 /* libcurl.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libcurl.tbd; path = usr/lib/libcurl.tbd; sourceTree = SDKROOT; }; D41B741C1C210A7A0080A7B9 /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; }; D43407E11D0E14CE00C2B3D4 /* shaders */ = {isa = PBXFileReference; lastKnownFileType = folder; name = shaders; path = data/shaders; sourceTree = SOURCE_ROOT; }; D43BAB921F8C2B2B00A9E362 /* OpenGLAPIProc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenGLAPIProc.h; sourceTree = ""; }; - D45A38B31CF3006400659A24 /* libcrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libcrypto.dylib; sourceTree = ""; }; - D45A38B41CF3006400659A24 /* libfreetype.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libfreetype.dylib; sourceTree = ""; }; - D45A38B81CF3006400659A24 /* libSDL2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libSDL2.dylib; sourceTree = ""; }; - D45A38B91CF3006400659A24 /* libspeexdsp.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libspeexdsp.dylib; sourceTree = ""; }; - D45A38C71CF3007A00659A24 /* png.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = png.h; sourceTree = ""; }; - D45A38C81CF3007A00659A24 /* pngconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pngconf.h; sourceTree = ""; }; - D45A38C91CF3007A00659A24 /* pnglibconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pnglibconf.h; sourceTree = ""; }; - D45A38CB1CF3007A00659A24 /* aes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = aes.h; sourceTree = ""; }; - D45A38CC1CF3007A00659A24 /* asn1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = asn1.h; sourceTree = ""; }; - D45A38CD1CF3007A00659A24 /* asn1_mac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = asn1_mac.h; sourceTree = ""; }; - D45A38CE1CF3007A00659A24 /* asn1t.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = asn1t.h; sourceTree = ""; }; - D45A38CF1CF3007A00659A24 /* bio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bio.h; sourceTree = ""; }; - D45A38D01CF3007A00659A24 /* blowfish.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = blowfish.h; sourceTree = ""; }; - D45A38D11CF3007A00659A24 /* bn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bn.h; sourceTree = ""; }; - D45A38D21CF3007A00659A24 /* buffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = buffer.h; sourceTree = ""; }; - D45A38D31CF3007A00659A24 /* camellia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = camellia.h; sourceTree = ""; }; - D45A38D41CF3007A00659A24 /* cast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cast.h; sourceTree = ""; }; - D45A38D51CF3007A00659A24 /* cmac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cmac.h; sourceTree = ""; }; - D45A38D61CF3007A00659A24 /* cms.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cms.h; sourceTree = ""; }; - D45A38D71CF3007A00659A24 /* comp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = comp.h; sourceTree = ""; }; - D45A38D81CF3007A00659A24 /* conf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = conf.h; sourceTree = ""; }; - D45A38D91CF3007A00659A24 /* conf_api.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = conf_api.h; sourceTree = ""; }; - D45A38DA1CF3007A00659A24 /* crypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = crypto.h; sourceTree = ""; }; - D45A38DB1CF3007A00659A24 /* des.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = des.h; sourceTree = ""; }; - D45A38DC1CF3007A00659A24 /* des_old.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = des_old.h; sourceTree = ""; }; - D45A38DD1CF3007A00659A24 /* dh.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dh.h; sourceTree = ""; }; - D45A38DE1CF3007A00659A24 /* dsa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dsa.h; sourceTree = ""; }; - D45A38DF1CF3007A00659A24 /* dso.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dso.h; sourceTree = ""; }; - D45A38E01CF3007A00659A24 /* dtls1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dtls1.h; sourceTree = ""; }; - D45A38E11CF3007A00659A24 /* e_os2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = e_os2.h; sourceTree = ""; }; - D45A38E21CF3007A00659A24 /* ebcdic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ebcdic.h; sourceTree = ""; }; - D45A38E31CF3007A00659A24 /* ec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ec.h; sourceTree = ""; }; - D45A38E41CF3007A00659A24 /* ecdh.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ecdh.h; sourceTree = ""; }; - D45A38E51CF3007A00659A24 /* ecdsa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ecdsa.h; sourceTree = ""; }; - D45A38E61CF3007A00659A24 /* engine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = engine.h; sourceTree = ""; }; - D45A38E71CF3007A00659A24 /* err.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = err.h; sourceTree = ""; }; - D45A38E81CF3007A00659A24 /* evp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = evp.h; sourceTree = ""; }; - D45A38E91CF3007A00659A24 /* hmac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = hmac.h; sourceTree = ""; }; - D45A38EA1CF3007A00659A24 /* idea.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = idea.h; sourceTree = ""; }; - D45A38EB1CF3007A00659A24 /* krb5_asn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = krb5_asn.h; sourceTree = ""; }; - D45A38EC1CF3007A00659A24 /* kssl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = kssl.h; sourceTree = ""; }; - D45A38ED1CF3007A00659A24 /* lhash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lhash.h; sourceTree = ""; }; - D45A38EE1CF3007A00659A24 /* md4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = md4.h; sourceTree = ""; }; - D45A38EF1CF3007A00659A24 /* md5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = md5.h; sourceTree = ""; }; - D45A38F01CF3007A00659A24 /* mdc2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mdc2.h; sourceTree = ""; }; - D45A38F11CF3007A00659A24 /* modes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = modes.h; sourceTree = ""; }; - D45A38F21CF3007A00659A24 /* obj_mac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = obj_mac.h; sourceTree = ""; }; - D45A38F31CF3007A00659A24 /* objects.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = objects.h; sourceTree = ""; }; - D45A38F41CF3007A00659A24 /* ocsp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ocsp.h; sourceTree = ""; }; - D45A38F51CF3007A00659A24 /* opensslconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = opensslconf.h; sourceTree = ""; }; - D45A38F61CF3007A00659A24 /* opensslv.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = opensslv.h; sourceTree = ""; }; - D45A38F71CF3007A00659A24 /* ossl_typ.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ossl_typ.h; sourceTree = ""; }; - D45A38F81CF3007A00659A24 /* pem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pem.h; sourceTree = ""; }; - D45A38F91CF3007A00659A24 /* pem2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pem2.h; sourceTree = ""; }; - D45A38FA1CF3007A00659A24 /* pkcs12.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pkcs12.h; sourceTree = ""; }; - D45A38FB1CF3007A00659A24 /* pkcs7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pkcs7.h; sourceTree = ""; }; - D45A38FC1CF3007A00659A24 /* pqueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pqueue.h; sourceTree = ""; }; - D45A38FD1CF3007A00659A24 /* rand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rand.h; sourceTree = ""; }; - D45A38FE1CF3007A00659A24 /* rc2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rc2.h; sourceTree = ""; }; - D45A38FF1CF3007A00659A24 /* rc4.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rc4.h; sourceTree = ""; }; - D45A39001CF3007A00659A24 /* ripemd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ripemd.h; sourceTree = ""; }; - D45A39011CF3007A00659A24 /* rsa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rsa.h; sourceTree = ""; }; - D45A39021CF3007A00659A24 /* safestack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = safestack.h; sourceTree = ""; }; - D45A39031CF3007A00659A24 /* seed.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = seed.h; sourceTree = ""; }; - D45A39041CF3007A00659A24 /* sha.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sha.h; sourceTree = ""; }; - D45A39051CF3007A00659A24 /* srp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = srp.h; sourceTree = ""; }; - D45A39061CF3007A00659A24 /* srtp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = srtp.h; sourceTree = ""; }; - D45A39071CF3007A00659A24 /* ssl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ssl.h; sourceTree = ""; }; - D45A39081CF3007A00659A24 /* ssl2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ssl2.h; sourceTree = ""; }; - D45A39091CF3007A00659A24 /* ssl23.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ssl23.h; sourceTree = ""; }; - D45A390A1CF3007A00659A24 /* ssl3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ssl3.h; sourceTree = ""; }; - D45A390B1CF3007A00659A24 /* stack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = stack.h; sourceTree = ""; }; - D45A390C1CF3007A00659A24 /* symhacks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = symhacks.h; sourceTree = ""; }; - D45A390D1CF3007A00659A24 /* tls1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tls1.h; sourceTree = ""; }; - D45A390E1CF3007A00659A24 /* ts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ts.h; sourceTree = ""; }; - D45A390F1CF3007A00659A24 /* txt_db.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = txt_db.h; sourceTree = ""; }; - D45A39101CF3007A00659A24 /* ui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ui.h; sourceTree = ""; }; - D45A39111CF3007A00659A24 /* ui_compat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ui_compat.h; sourceTree = ""; }; - D45A39121CF3007A00659A24 /* whrlpool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = whrlpool.h; sourceTree = ""; }; - D45A39131CF3007A00659A24 /* x509.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = x509.h; sourceTree = ""; }; - D45A39141CF3007A00659A24 /* x509_vfy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = x509_vfy.h; sourceTree = ""; }; - D45A39151CF3007A00659A24 /* x509v3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = x509v3.h; sourceTree = ""; }; - D45A39171CF3007A00659A24 /* begin_code.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = begin_code.h; sourceTree = ""; }; - D45A39181CF3007A00659A24 /* close_code.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = close_code.h; sourceTree = ""; }; - D45A39191CF3007A00659A24 /* SDL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL.h; sourceTree = ""; }; - D45A391A1CF3007A00659A24 /* SDL_assert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_assert.h; sourceTree = ""; }; - D45A391B1CF3007A00659A24 /* SDL_atomic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_atomic.h; sourceTree = ""; }; - D45A391C1CF3007A00659A24 /* SDL_audio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_audio.h; sourceTree = ""; }; - D45A391D1CF3007A00659A24 /* SDL_bits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_bits.h; sourceTree = ""; }; - D45A391E1CF3007A00659A24 /* SDL_blendmode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_blendmode.h; sourceTree = ""; }; - D45A391F1CF3007A00659A24 /* SDL_clipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_clipboard.h; sourceTree = ""; }; - D45A39201CF3007A00659A24 /* SDL_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config.h; sourceTree = ""; }; - D45A39211CF3007A00659A24 /* SDL_cpuinfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cpuinfo.h; sourceTree = ""; }; - D45A39221CF3007A00659A24 /* SDL_egl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_egl.h; sourceTree = ""; }; - D45A39231CF3007A00659A24 /* SDL_endian.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_endian.h; sourceTree = ""; }; - D45A39241CF3007A00659A24 /* SDL_error.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_error.h; sourceTree = ""; }; - D45A39251CF3007A00659A24 /* SDL_events.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_events.h; sourceTree = ""; }; - D45A39261CF3007A00659A24 /* SDL_filesystem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_filesystem.h; sourceTree = ""; }; - D45A39271CF3007A00659A24 /* SDL_gamecontroller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_gamecontroller.h; sourceTree = ""; }; - D45A39281CF3007A00659A24 /* SDL_gesture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_gesture.h; sourceTree = ""; }; - D45A39291CF3007A00659A24 /* SDL_haptic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_haptic.h; sourceTree = ""; }; - D45A392A1CF3007A00659A24 /* SDL_hints.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_hints.h; sourceTree = ""; }; - D45A392B1CF3007A00659A24 /* SDL_joystick.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_joystick.h; sourceTree = ""; }; - D45A392C1CF3007A00659A24 /* SDL_keyboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_keyboard.h; sourceTree = ""; }; - D45A392D1CF3007A00659A24 /* SDL_keycode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_keycode.h; sourceTree = ""; }; - D45A392E1CF3007A00659A24 /* SDL_loadso.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_loadso.h; sourceTree = ""; }; - D45A392F1CF3007A00659A24 /* SDL_log.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_log.h; sourceTree = ""; }; - D45A39301CF3007A00659A24 /* SDL_main.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_main.h; sourceTree = ""; }; - D45A39311CF3007A00659A24 /* SDL_messagebox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_messagebox.h; sourceTree = ""; }; - D45A39321CF3007A00659A24 /* SDL_mouse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_mouse.h; sourceTree = ""; }; - D45A39331CF3007A00659A24 /* SDL_mutex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_mutex.h; sourceTree = ""; }; - D45A39341CF3007A00659A24 /* SDL_name.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_name.h; sourceTree = ""; }; - D45A39351CF3007A00659A24 /* SDL_opengl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengl.h; sourceTree = ""; }; - D45A39361CF3007A00659A24 /* SDL_opengl_glext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengl_glext.h; sourceTree = ""; }; - D45A39371CF3007A00659A24 /* SDL_opengles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles.h; sourceTree = ""; }; - D45A39381CF3007A00659A24 /* SDL_opengles2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2.h; sourceTree = ""; }; - D45A39391CF3007A00659A24 /* SDL_opengles2_gl2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2_gl2.h; sourceTree = ""; }; - D45A393A1CF3007A00659A24 /* SDL_opengles2_gl2ext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2_gl2ext.h; sourceTree = ""; }; - D45A393B1CF3007A00659A24 /* SDL_opengles2_gl2platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2_gl2platform.h; sourceTree = ""; }; - D45A393C1CF3007A00659A24 /* SDL_opengles2_khrplatform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2_khrplatform.h; sourceTree = ""; }; - D45A393D1CF3007A00659A24 /* SDL_pixels.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_pixels.h; sourceTree = ""; }; - D45A393E1CF3007A00659A24 /* SDL_platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_platform.h; sourceTree = ""; }; - D45A393F1CF3007A00659A24 /* SDL_power.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_power.h; sourceTree = ""; }; - D45A39401CF3007A00659A24 /* SDL_quit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_quit.h; sourceTree = ""; }; - D45A39411CF3007A00659A24 /* SDL_rect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rect.h; sourceTree = ""; }; - D45A39421CF3007A00659A24 /* SDL_render.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_render.h; sourceTree = ""; }; - D45A39431CF3007A00659A24 /* SDL_revision.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_revision.h; sourceTree = ""; }; - D45A39441CF3007A00659A24 /* SDL_rwops.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rwops.h; sourceTree = ""; }; - D45A39451CF3007A00659A24 /* SDL_scancode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_scancode.h; sourceTree = ""; }; - D45A39461CF3007A00659A24 /* SDL_shape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shape.h; sourceTree = ""; }; - D45A39471CF3007A00659A24 /* SDL_stdinc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_stdinc.h; sourceTree = ""; }; - D45A39481CF3007A00659A24 /* SDL_surface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_surface.h; sourceTree = ""; }; - D45A39491CF3007A00659A24 /* SDL_system.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_system.h; sourceTree = ""; }; - D45A394A1CF3007A00659A24 /* SDL_syswm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_syswm.h; sourceTree = ""; }; - D45A394B1CF3007A00659A24 /* SDL_thread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_thread.h; sourceTree = ""; }; - D45A394C1CF3007A00659A24 /* SDL_timer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_timer.h; sourceTree = ""; }; - D45A394D1CF3007A00659A24 /* SDL_touch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_touch.h; sourceTree = ""; }; - D45A394F1CF3007A00659A24 /* SDL_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_types.h; sourceTree = ""; }; - D45A39501CF3007A00659A24 /* SDL_version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_version.h; sourceTree = ""; }; - D45A39511CF3007A00659A24 /* SDL_video.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_video.h; sourceTree = ""; }; - D45A39531CF3007A00659A24 /* speex_echo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speex_echo.h; sourceTree = ""; }; - D45A39541CF3007A00659A24 /* speex_jitter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speex_jitter.h; sourceTree = ""; }; - D45A39551CF3007A00659A24 /* speex_preprocess.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speex_preprocess.h; sourceTree = ""; }; - D45A39561CF3007A00659A24 /* speex_resampler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speex_resampler.h; sourceTree = ""; }; - D45A39571CF3007A00659A24 /* speexdsp_config_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speexdsp_config_types.h; sourceTree = ""; }; - D45A39581CF3007A00659A24 /* speexdsp_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speexdsp_types.h; sourceTree = ""; }; D45E09151F99CF2F00854B2B /* ApplyTransparencyShader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ApplyTransparencyShader.h; sourceTree = ""; }; D45E09161F99CF2F00854B2B /* ApplyTransparencyShader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ApplyTransparencyShader.cpp; sourceTree = ""; }; D47304D41C4FF8250015C0EA /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; @@ -1913,7 +1608,6 @@ D4974F1A1FA04A1900F7FD7F /* TransparencyDepth.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TransparencyDepth.cpp; sourceTree = ""; }; D4974F1B1FA04A1900F7FD7F /* TransparencyDepth.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TransparencyDepth.h; sourceTree = ""; }; D497D0781C20FD52002BF46A /* OpenRCT2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenRCT2.app; sourceTree = BUILT_PRODUCTS_DIR; }; - D4A8B4B31DB41873007A2F29 /* libpng16.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libpng16.dylib; sourceTree = ""; }; D4EC48E31C2637710024B507 /* g2.dat */ = {isa = PBXFileReference; lastKnownFileType = file; name = g2.dat; path = data/g2.dat; sourceTree = SOURCE_ROOT; }; D4EC48E41C2637710024B507 /* language */ = {isa = PBXFileReference; lastKnownFileType = folder; name = language; path = data/language; sourceTree = SOURCE_ROOT; }; D4EC48E51C2637710024B507 /* sequence */ = {isa = PBXFileReference; lastKnownFileType = folder; name = sequence; path = data/sequence; sourceTree = SOURCE_ROOT; }; @@ -2139,6 +1833,9 @@ F7CB864C1EEDA1A80030C877 /* WindowManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WindowManager.h; sourceTree = ""; }; F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; usesTabs = 0; }; F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "OpenRCT2-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; + 0EB0D1DF6CC74E4190301D84 /* EntityTweener.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = EntityTweener.cpp; path = src/openrct2/world/EntityTweener.cpp; sourceTree = SOURCE_ROOT; }; + 091352A950004312BAB18717 /* EntityTweener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EntityTweener.h; path = src/openrct2/world/EntityTweener.h; sourceTree = SOURCE_ROOT; }; + 9D3DD6CD73F5421880280D9D /* Litter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Litter.cpp; path = src/openrct2/world/Litter.cpp; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -2152,16 +1849,25 @@ D47304D51C4FF8250015C0EA /* libz.tbd in Frameworks */, D41B73EF1C2101890080A7B9 /* libcurl.tbd in Frameworks */, D41B741D1C210A7A0080A7B9 /* libiconv.tbd in Frameworks */, - D45A38BC1CF3006400659A24 /* libcrypto.dylib in Frameworks */, - 93FC09022418F3F500CA3054 /* libduktape.dylib in Frameworks */, - 933F32EC24183CBB008376CE /* libicudata.dylib in Frameworks */, - 933F32EA24183CBB008376CE /* libicuuc.dylib in Frameworks */, - D4A8B4B41DB41873007A2F29 /* libpng16.dylib in Frameworks */, - D45A38C11CF3006400659A24 /* libSDL2.dylib in Frameworks */, - C6CB94F21EFFBF860065888F /* libfreetype.dylib in Frameworks */, - D45A38C21CF3006400659A24 /* libspeexdsp.dylib in Frameworks */, - C6E96E361E0408B40076A04F /* libzip.dylib in Frameworks */, - 662578AE25803D040002C77E /* libdiscord-rpc.a in Frameworks */, + 669125A725FD2CBF00B038E1 /* libSDL2-2.0.dylib in Frameworks */, + 6691257925FD2C4900B038E1 /* libbrotlicommon.1.dylib in Frameworks */, + 6691257A25FD2C4900B038E1 /* libbrotlidec.1.dylib in Frameworks */, + 6691257B25FD2C4900B038E1 /* libbrotlienc.1.dylib in Frameworks */, + 6691257C25FD2C4900B038E1 /* libbz2.1.0.dylib in Frameworks */, + 6691257E25FD2C4900B038E1 /* libdiscord-rpc.dylib in Frameworks */, + 6691257F25FD2C4900B038E1 /* libduktape.2.dylib in Frameworks */, + 6691258025FD2C4900B038E1 /* libfreetype.6.dylib in Frameworks */, + 669125A225FD2C7C00B038E1 /* libcrypto.1.1.dylib in Frameworks */, + 6691258125FD2C4900B038E1 /* libicudata.67.dylib in Frameworks */, + 6691258225FD2C4900B038E1 /* libicui18n.67.dylib in Frameworks */, + 6691258325FD2C4900B038E1 /* libicuio.67.dylib in Frameworks */, + 6691258425FD2C4900B038E1 /* libicutu.67.dylib in Frameworks */, + 6691258525FD2C4900B038E1 /* libicuuc.67.dylib in Frameworks */, + 6691258625FD2C4900B038E1 /* libpng16.16.dylib in Frameworks */, + 6691258825FD2C4900B038E1 /* libspeexdsp.1.dylib in Frameworks */, + 6691258925FD2C4900B038E1 /* libssl.1.1.dylib in Frameworks */, + 6691258A25FD2C4900B038E1 /* libz.1.dylib in Frameworks */, + 6691258B25FD2C4900B038E1 /* libzip.5.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2169,18 +1875,18 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 662578AD25803CE50002C77E /* libdiscord-rpc.a in Frameworks */, + 669125AB25FD2DF400B038E1 /* libdiscord-rpc.dylib in Frameworks */, + 669125B025FD2E1500B038E1 /* libzip.5.dylib in Frameworks */, C68878492028982B0084B384 /* Cocoa.framework in Frameworks */, C6887848202897D10084B384 /* Foundation.framework in Frameworks */, + 669125AD25FD2E0400B038E1 /* libfreetype.6.dylib in Frameworks */, + 669125AC25FD2DFD00B038E1 /* libcrypto.1.1.dylib in Frameworks */, + 669125AE25FD2E0800B038E1 /* libpng16.16.dylib in Frameworks */, F7D7748D1EC66F8600BE6EBC /* libopenrct2.a in Frameworks */, + 669125AF25FD2E1000B038E1 /* libspeexdsp.1.dylib in Frameworks */, F7D774901EC66FB000BE6EBC /* libz.tbd in Frameworks */, F7D7748F1EC66FA900BE6EBC /* libcurl.tbd in Frameworks */, F7D7748E1EC66FA000BE6EBC /* libiconv.tbd in Frameworks */, - F7D774911EC66FBA00BE6EBC /* libcrypto.dylib in Frameworks */, - F7D774921EC66FBA00BE6EBC /* libfreetype.dylib in Frameworks */, - F7D774941EC66FBA00BE6EBC /* libpng16.dylib in Frameworks */, - F7D774951EC66FBA00BE6EBC /* libspeexdsp.dylib in Frameworks */, - F7D774961EC66FBA00BE6EBC /* libzip.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2252,263 +1958,6 @@ path = "src/openrct2-ui/title"; sourceTree = SOURCE_ROOT; }; - 9350B44320B46E0800897BC5 /* unicode */ = { - isa = PBXGroup; - children = ( - 9350B44420B46E0800897BC5 /* translit.h */, - 9350B44520B46E0800897BC5 /* ustdio.h */, - 9350B44620B46E0800897BC5 /* utf_old.h */, - 9350B44720B46E0800897BC5 /* ucsdet.h */, - 9350B44820B46E0800897BC5 /* tzfmt.h */, - 9350B44920B46E0800897BC5 /* ubrk.h */, - 9350B44A20B46E0800897BC5 /* ufieldpositer.h */, - 9350B44B20B46E0800897BC5 /* stringpiece.h */, - 9350B44C20B46E0800897BC5 /* ucat.h */, - 9350B44D20B46E0800897BC5 /* tblcoll.h */, - 9350B44E20B46E0800897BC5 /* stringoptions.h */, - 9350B44F20B46E0800897BC5 /* dtfmtsym.h */, - 9350B45020B46E0800897BC5 /* unirepl.h */, - 9350B45120B46E0800897BC5 /* ptypes.h */, - 9350B45220B46E0800897BC5 /* fmtable.h */, - 9350B45320B46E0800897BC5 /* dtitvfmt.h */, - 9350B45420B46E0800897BC5 /* choicfmt.h */, - 9350B45520B46E0800897BC5 /* usetiter.h */, - 9350B45620B46E0800897BC5 /* errorcode.h */, - 9350B45720B46E0800897BC5 /* tznames.h */, - 9350B45820B46E0800897BC5 /* dtintrv.h */, - 9350B45920B46E0800897BC5 /* ucurr.h */, - 9350B45A20B46E0800897BC5 /* icuplug.h */, - 9350B45B20B46E0800897BC5 /* uregion.h */, - 9350B45C20B46E0800897BC5 /* utext.h */, - 9350B45D20B46E0800897BC5 /* edits.h */, - 9350B45E20B46E0800897BC5 /* parsepos.h */, - 9350B45F20B46E0800897BC5 /* ucal.h */, - 9350B46020B46E0800897BC5 /* fpositer.h */, - 9350B46120B46E0800897BC5 /* dtitvinf.h */, - 9350B46220B46E0800897BC5 /* rbnf.h */, - 9350B46320B46E0800897BC5 /* udat.h */, - 9350B46420B46E0800897BC5 /* urep.h */, - 9350B46520B46E0800897BC5 /* utf32.h */, - 9350B46620B46E0800897BC5 /* vtzone.h */, - 9350B46720B46E0800897BC5 /* ustring.h */, - 9350B46820B46E0800897BC5 /* ubiditransform.h */, - 9350B46920B46E0800897BC5 /* uenum.h */, - 9350B46A20B46E0800897BC5 /* appendable.h */, - 9350B46B20B46E0800897BC5 /* usearch.h */, - 9350B46C20B46E0800897BC5 /* numsys.h */, - 9350B46D20B46E0800897BC5 /* timezone.h */, - 9350B46E20B46E0800897BC5 /* uset.h */, - 9350B46F20B46E0800897BC5 /* casemap.h */, - 9350B47020B46E0800897BC5 /* coleitr.h */, - 9350B47120B46E0800897BC5 /* schriter.h */, - 9350B47220B46E0800897BC5 /* msgfmt.h */, - 9350B47320B46E0800897BC5 /* fieldpos.h */, - 9350B47420B46E0800897BC5 /* simpletz.h */, - 9350B47520B46E0800897BC5 /* uldnames.h */, - 9350B47620B46E0800897BC5 /* uiter.h */, - 9350B47720B46E0800897BC5 /* umsg.h */, - 9350B47820B46E0800897BC5 /* sortkey.h */, - 9350B47920B46E0800897BC5 /* docmain.h */, - 9350B47A20B46E0800897BC5 /* uniset.h */, - 9350B47B20B46E0800897BC5 /* basictz.h */, - 9350B47C20B46E0800897BC5 /* udata.h */, - 9350B47D20B46E0800897BC5 /* stringtriebuilder.h */, - 9350B47E20B46E0800897BC5 /* chariter.h */, - 9350B47F20B46E0800897BC5 /* umisc.h */, - 9350B48020B46E0800897BC5 /* reldatefmt.h */, - 9350B48120B46E0800897BC5 /* uloc.h */, - 9350B48220B46E0800897BC5 /* plurrule.h */, - 9350B48320B46E0800897BC5 /* bytestriebuilder.h */, - 9350B48420B46E0800897BC5 /* measunit.h */, - 9350B48520B46E0800897BC5 /* utrace.h */, - 9350B48620B46E0800897BC5 /* locdspnm.h */, - 9350B48720B46E0800897BC5 /* gregocal.h */, - 9350B48820B46E0800897BC5 /* uchriter.h */, - 9350B48920B46E0800897BC5 /* enumset.h */, - 9350B48A20B46E0800897BC5 /* nounit.h */, - 9350B48B20B46E0800897BC5 /* utf.h */, - 9350B48C20B46E0800897BC5 /* measure.h */, - 9350B48D20B46E0800897BC5 /* tzrule.h */, - 9350B48E20B46E0800897BC5 /* strenum.h */, - 9350B48F20B46E0800897BC5 /* regex.h */, - 9350B49020B46E0800897BC5 /* gender.h */, - 9350B49120B46E0800897BC5 /* dcfmtsym.h */, - 9350B49220B46E0800897BC5 /* ucnv_err.h */, - 9350B49320B46E0800897BC5 /* decimfmt.h */, - 9350B49420B46E0800897BC5 /* bytestrie.h */, - 9350B49520B46E0800897BC5 /* udatpg.h */, - 9350B49620B46E0800897BC5 /* listformatter.h */, - 9350B49720B46E0800897BC5 /* uobject.h */, - 9350B49820B46E0800897BC5 /* calendar.h */, - 9350B49920B46E0800897BC5 /* ures.h */, - 9350B49A20B46E0800897BC5 /* normlzr.h */, - 9350B49B20B46E0800897BC5 /* usprep.h */, - 9350B49C20B46E0800897BC5 /* urename.h */, - 9350B49D20B46E0800897BC5 /* caniter.h */, - 9350B49E20B46E0800897BC5 /* ucol.h */, - 9350B49F20B46E0800897BC5 /* upluralrules.h */, - 9350B4A020B46E0800897BC5 /* ucharstrie.h */, - 9350B4A120B46E0800897BC5 /* tmunit.h */, - 9350B4A220B46E0800897BC5 /* unistr.h */, - 9350B4A320B46E0800897BC5 /* rbbi.h */, - 9350B4A420B46E0800897BC5 /* ulocdata.h */, - 9350B4A520B46E0800897BC5 /* idna.h */, - 9350B4A620B46E0800897BC5 /* unorm2.h */, - 9350B4A720B46E0800897BC5 /* dtptngen.h */, - 9350B4A820B46E0800897BC5 /* dbbi.h */, - 9350B4A920B46E0800897BC5 /* bytestream.h */, - 9350B4AA20B46E0800897BC5 /* uversion.h */, - 9350B4AB20B46E0800897BC5 /* messagepattern.h */, - 9350B4AC20B46E0800897BC5 /* uidna.h */, - 9350B4AD20B46E0800897BC5 /* filteredbrk.h */, - 9350B4AE20B46E0800897BC5 /* tmutamt.h */, - 9350B4AF20B46E0800897BC5 /* char16ptr.h */, - 9350B4B020B46E0800897BC5 /* symtable.h */, - 9350B4B120B46E0800897BC5 /* ucasemap.h */, - 9350B4B220B46E0800897BC5 /* ucoleitr.h */, - 9350B4B320B46E0800897BC5 /* compactdecimalformat.h */, - 9350B4B420B46E0800897BC5 /* unum.h */, - 9350B4B520B46E0800897BC5 /* udisplaycontext.h */, - 9350B4B620B46E0800897BC5 /* tztrans.h */, - 9350B4B720B46E0800897BC5 /* umachine.h */, - 9350B4B820B46E0800897BC5 /* numberformatter.h */, - 9350B4B920B46E0800897BC5 /* datefmt.h */, - 9350B4BA20B46E0800897BC5 /* utmscale.h */, - 9350B4BB20B46E0800897BC5 /* coll.h */, - 9350B4BC20B46E0800897BC5 /* currpinf.h */, - 9350B4BD20B46E0800897BC5 /* uregex.h */, - 9350B4BE20B46E0800897BC5 /* tmutfmt.h */, - 9350B4BF20B46E0800897BC5 /* plurfmt.h */, - 9350B4C020B46E0800897BC5 /* ustringtrie.h */, - 9350B4C120B46E0800897BC5 /* smpdtfmt.h */, - 9350B4C220B46E0800897BC5 /* icudataver.h */, - 9350B4C320B46E0800897BC5 /* uchar.h */, - 9350B4C420B46E0800897BC5 /* unorm.h */, - 9350B4C520B46E0800897BC5 /* ushape.h */, - 9350B4C620B46E0800897BC5 /* unifunct.h */, - 9350B4C720B46E0800897BC5 /* ugender.h */, - 9350B4C820B46E0800897BC5 /* selfmt.h */, - 9350B4C920B46E0800897BC5 /* uformattable.h */, - 9350B4CA20B46E0800897BC5 /* ustream.h */, - 9350B4CB20B46E0800897BC5 /* simpleformatter.h */, - 9350B4CC20B46E0800897BC5 /* ucnv_cb.h */, - 9350B4CD20B46E0800897BC5 /* curramt.h */, - 9350B4CE20B46E0800897BC5 /* locid.h */, - 9350B4CF20B46E0800897BC5 /* udateintervalformat.h */, - 9350B4D020B46E0800897BC5 /* resbund.h */, - 9350B4D120B46E0800897BC5 /* ubidi.h */, - 9350B4D220B46E0800897BC5 /* stsearch.h */, - 9350B4D320B46E0800897BC5 /* alphaindex.h */, - 9350B4D420B46E0800897BC5 /* uvernum.h */, - 9350B4D520B46E0800897BC5 /* unimatch.h */, - 9350B4D620B46E0800897BC5 /* rbtz.h */, - 9350B4D720B46E0800897BC5 /* ucnvsel.h */, - 9350B4D820B46E0800897BC5 /* uspoof.h */, - 9350B4D920B46E0800897BC5 /* region.h */, - 9350B4DA20B46E0800897BC5 /* ureldatefmt.h */, - 9350B4DB20B46E0800897BC5 /* utrans.h */, - 9350B4DC20B46E0800897BC5 /* parseerr.h */, - 9350B4DD20B46E0800897BC5 /* putil.h */, - 9350B4DE20B46E0800897BC5 /* format.h */, - 9350B4DF20B46E0800897BC5 /* scientificnumberformatter.h */, - 9350B4E020B46E0800897BC5 /* normalizer2.h */, - 9350B4E120B46E0800897BC5 /* dtrule.h */, - 9350B4E220B46E0800897BC5 /* ucnv.h */, - 9350B4E320B46E0800897BC5 /* ucharstriebuilder.h */, - 9350B4E420B46E0800897BC5 /* search.h */, - 9350B4E520B46E0800897BC5 /* unumsys.h */, - 9350B4E620B46E0800897BC5 /* uconfig.h */, - 9350B4E720B46E0800897BC5 /* utf16.h */, - 9350B4E820B46E0800897BC5 /* brkiter.h */, - 9350B4E920B46E0800897BC5 /* platform.h */, - 9350B4EA20B46E0800897BC5 /* rep.h */, - 9350B4EB20B46E0800897BC5 /* std_string.h */, - 9350B4EC20B46E0800897BC5 /* utf8.h */, - 9350B4ED20B46E0800897BC5 /* localpointer.h */, - 9350B4EE20B46E0800897BC5 /* uclean.h */, - 9350B4EF20B46E0800897BC5 /* uscript.h */, - 9350B4F020B46E0800897BC5 /* numfmt.h */, - 9350B4F120B46E0800897BC5 /* currunit.h */, - 9350B4F220B46E0800897BC5 /* utypes.h */, - 9350B4F320B46E0800897BC5 /* ulistformatter.h */, - 9350B4F420B46E0800897BC5 /* measfmt.h */, - 9350B4F520B46E0800897BC5 /* unifilt.h */, - ); - path = unicode; - sourceTree = ""; - }; - 9350B4F620B46E0900897BC5 /* freetype2 */ = { - isa = PBXGroup; - children = ( - 9350B4F720B46E0900897BC5 /* freetype */, - 9350B52920B46E0900897BC5 /* ft2build.h */, - ); - path = freetype2; - sourceTree = ""; - }; - 9350B4F720B46E0900897BC5 /* freetype */ = { - isa = PBXGroup; - children = ( - 9350B4F820B46E0900897BC5 /* ftsnames.h */, - 9350B4F920B46E0900897BC5 /* ftwinfnt.h */, - 9350B4FA20B46E0900897BC5 /* ftsizes.h */, - 9350B4FB20B46E0900897BC5 /* fttypes.h */, - 9350B4FC20B46E0900897BC5 /* ftparams.h */, - 9350B4FD20B46E0900897BC5 /* ftmm.h */, - 9350B4FE20B46E0900897BC5 /* config */, - 9350B50420B46E0900897BC5 /* ftmodapi.h */, - 9350B50520B46E0900897BC5 /* ftbzip2.h */, - 9350B50620B46E0900897BC5 /* fttrigon.h */, - 9350B50720B46E0900897BC5 /* ftbbox.h */, - 9350B50820B46E0900897BC5 /* ftgzip.h */, - 9350B50920B46E0900897BC5 /* ftdriver.h */, - 9350B50A20B46E0900897BC5 /* ftoutln.h */, - 9350B50B20B46E0900897BC5 /* ftadvanc.h */, - 9350B50C20B46E0900897BC5 /* ftsynth.h */, - 9350B50D20B46E0900897BC5 /* fterrors.h */, - 9350B50E20B46E0900897BC5 /* ftgasp.h */, - 9350B50F20B46E0900897BC5 /* ftstroke.h */, - 9350B51020B46E0900897BC5 /* ftcache.h */, - 9350B51120B46E0900897BC5 /* ftotval.h */, - 9350B51220B46E0900897BC5 /* freetype.h */, - 9350B51320B46E0900897BC5 /* ftincrem.h */, - 9350B51420B46E0900897BC5 /* ftfntfmt.h */, - 9350B51520B46E0900897BC5 /* fterrdef.h */, - 9350B51620B46E0900897BC5 /* ttnameid.h */, - 9350B51720B46E0900897BC5 /* ftpfr.h */, - 9350B51820B46E0900897BC5 /* ftgxval.h */, - 9350B51920B46E0900897BC5 /* ftchapters.h */, - 9350B51A20B46E0900897BC5 /* tttags.h */, - 9350B51B20B46E0900897BC5 /* ftlzw.h */, - 9350B51C20B46E0900897BC5 /* ftsystem.h */, - 9350B51D20B46E0900897BC5 /* t1tables.h */, - 9350B51E20B46E0900897BC5 /* ftimage.h */, - 9350B51F20B46E0900897BC5 /* tttables.h */, - 9350B52020B46E0900897BC5 /* ftcid.h */, - 9350B52120B46E0900897BC5 /* ftglyph.h */, - 9350B52220B46E0900897BC5 /* ftmoderr.h */, - 9350B52320B46E0900897BC5 /* ftbitmap.h */, - 9350B52420B46E0900897BC5 /* ftlist.h */, - 9350B52520B46E0900897BC5 /* ftmac.h */, - 9350B52620B46E0900897BC5 /* ftlcdfil.h */, - 9350B52720B46E0900897BC5 /* ftbdf.h */, - 9350B52820B46E0900897BC5 /* ftrender.h */, - ); - path = freetype; - sourceTree = ""; - }; - 9350B4FE20B46E0900897BC5 /* config */ = { - isa = PBXGroup; - children = ( - 9350B4FF20B46E0900897BC5 /* ftstdlib.h */, - 9350B50020B46E0900897BC5 /* ftheader.h */, - 9350B50120B46E0900897BC5 /* ftconfig.h */, - 9350B50220B46E0900897BC5 /* ftoption.h */, - 9350B50320B46E0900897BC5 /* ftmodule.h */, - ); - path = config; - sourceTree = ""; - }; 93DFD03024521C19001FCBAF /* scripting */ = { isa = PBXGroup; children = ( @@ -2535,16 +1984,6 @@ path = scripting; sourceTree = ""; }; - 93FB271D24ED32B7008241C9 /* nlohmann */ = { - isa = PBXGroup; - children = ( - 93FB271E24ED32B7008241C9 /* json.hpp */, - 93378D02252B54140077D2D8 /* json_fwd.hpp */, - ); - name = nlohmann; - path = libxc/include/nlohmann; - sourceTree = SOURCE_ROOT; - }; C6352B871F477032006CCEE3 /* actions */ = { isa = PBXGroup; children = ( @@ -2743,6 +2182,25 @@ children = ( C688783F202893600084B384 /* Cocoa.framework */, C688783D202893590084B384 /* Foundation.framework */, + 6691254625FD2C1300B038E1 /* libbrotlicommon.1.dylib */, + 6691254125FD2C1300B038E1 /* libbrotlidec.1.dylib */, + 6691254825FD2C1300B038E1 /* libbrotlienc.1.dylib */, + 6691254525FD2C1300B038E1 /* libbz2.1.0.dylib */, + 669125A125FD2C7C00B038E1 /* libcrypto.1.1.dylib */, + 6691254925FD2C1300B038E1 /* libdiscord-rpc.dylib */, + 6691254225FD2C1300B038E1 /* libduktape.2.dylib */, + 6691254F25FD2C1400B038E1 /* libfreetype.6.dylib */, + 6691254725FD2C1300B038E1 /* libicudata.67.dylib */, + 6691254425FD2C1300B038E1 /* libicui18n.67.dylib */, + 6691254A25FD2C1300B038E1 /* libicuio.67.dylib */, + 6691255125FD2C1400B038E1 /* libicutu.67.dylib */, + 6691254025FD2C1300B038E1 /* libicuuc.67.dylib */, + 6691254B25FD2C1400B038E1 /* libpng16.16.dylib */, + 669125A625FD2CBF00B038E1 /* libSDL2-2.0.dylib */, + 6691254D25FD2C1400B038E1 /* libspeexdsp.1.dylib */, + 6691254E25FD2C1400B038E1 /* libssl.1.1.dylib */, + 6691255025FD2C1400B038E1 /* libz.1.dylib */, + 6691255225FD2C1400B038E1 /* libzip.5.dylib */, ); name = Frameworks; sourceTree = ""; @@ -2770,181 +2228,9 @@ path = libxc; sourceTree = ""; }; - D45A38C61CF3007A00659A24 /* libpng16 */ = { - isa = PBXGroup; - children = ( - D45A38C71CF3007A00659A24 /* png.h */, - D45A38C81CF3007A00659A24 /* pngconf.h */, - D45A38C91CF3007A00659A24 /* pnglibconf.h */, - ); - path = libpng16; - sourceTree = ""; - }; - D45A38CA1CF3007A00659A24 /* openssl */ = { - isa = PBXGroup; - children = ( - D45A38CB1CF3007A00659A24 /* aes.h */, - D45A38CD1CF3007A00659A24 /* asn1_mac.h */, - D45A38CC1CF3007A00659A24 /* asn1.h */, - D45A38CE1CF3007A00659A24 /* asn1t.h */, - D45A38CF1CF3007A00659A24 /* bio.h */, - D45A38D01CF3007A00659A24 /* blowfish.h */, - D45A38D11CF3007A00659A24 /* bn.h */, - D45A38D21CF3007A00659A24 /* buffer.h */, - D45A38D31CF3007A00659A24 /* camellia.h */, - D45A38D41CF3007A00659A24 /* cast.h */, - D45A38D51CF3007A00659A24 /* cmac.h */, - D45A38D61CF3007A00659A24 /* cms.h */, - D45A38D71CF3007A00659A24 /* comp.h */, - D45A38D91CF3007A00659A24 /* conf_api.h */, - D45A38D81CF3007A00659A24 /* conf.h */, - D45A38DA1CF3007A00659A24 /* crypto.h */, - D45A38DC1CF3007A00659A24 /* des_old.h */, - D45A38DB1CF3007A00659A24 /* des.h */, - D45A38DD1CF3007A00659A24 /* dh.h */, - D45A38DE1CF3007A00659A24 /* dsa.h */, - D45A38DF1CF3007A00659A24 /* dso.h */, - D45A38E01CF3007A00659A24 /* dtls1.h */, - D45A38E11CF3007A00659A24 /* e_os2.h */, - D45A38E21CF3007A00659A24 /* ebcdic.h */, - D45A38E31CF3007A00659A24 /* ec.h */, - D45A38E41CF3007A00659A24 /* ecdh.h */, - D45A38E51CF3007A00659A24 /* ecdsa.h */, - D45A38E61CF3007A00659A24 /* engine.h */, - D45A38E71CF3007A00659A24 /* err.h */, - D45A38E81CF3007A00659A24 /* evp.h */, - D45A38E91CF3007A00659A24 /* hmac.h */, - D45A38EA1CF3007A00659A24 /* idea.h */, - D45A38EB1CF3007A00659A24 /* krb5_asn.h */, - D45A38EC1CF3007A00659A24 /* kssl.h */, - D45A38ED1CF3007A00659A24 /* lhash.h */, - D45A38EE1CF3007A00659A24 /* md4.h */, - D45A38EF1CF3007A00659A24 /* md5.h */, - D45A38F01CF3007A00659A24 /* mdc2.h */, - D45A38F11CF3007A00659A24 /* modes.h */, - D45A38F21CF3007A00659A24 /* obj_mac.h */, - D45A38F31CF3007A00659A24 /* objects.h */, - D45A38F41CF3007A00659A24 /* ocsp.h */, - D45A38F51CF3007A00659A24 /* opensslconf.h */, - D45A38F61CF3007A00659A24 /* opensslv.h */, - D45A38F71CF3007A00659A24 /* ossl_typ.h */, - D45A38F81CF3007A00659A24 /* pem.h */, - D45A38F91CF3007A00659A24 /* pem2.h */, - D45A38FB1CF3007A00659A24 /* pkcs7.h */, - D45A38FA1CF3007A00659A24 /* pkcs12.h */, - D45A38FC1CF3007A00659A24 /* pqueue.h */, - D45A38FD1CF3007A00659A24 /* rand.h */, - D45A38FE1CF3007A00659A24 /* rc2.h */, - D45A38FF1CF3007A00659A24 /* rc4.h */, - D45A39001CF3007A00659A24 /* ripemd.h */, - D45A39011CF3007A00659A24 /* rsa.h */, - D45A39021CF3007A00659A24 /* safestack.h */, - D45A39031CF3007A00659A24 /* seed.h */, - D45A39041CF3007A00659A24 /* sha.h */, - D45A39051CF3007A00659A24 /* srp.h */, - D45A39061CF3007A00659A24 /* srtp.h */, - D45A39071CF3007A00659A24 /* ssl.h */, - D45A39081CF3007A00659A24 /* ssl2.h */, - D45A390A1CF3007A00659A24 /* ssl3.h */, - D45A39091CF3007A00659A24 /* ssl23.h */, - D45A390B1CF3007A00659A24 /* stack.h */, - D45A390C1CF3007A00659A24 /* symhacks.h */, - D45A390D1CF3007A00659A24 /* tls1.h */, - D45A390E1CF3007A00659A24 /* ts.h */, - D45A390F1CF3007A00659A24 /* txt_db.h */, - D45A39111CF3007A00659A24 /* ui_compat.h */, - D45A39101CF3007A00659A24 /* ui.h */, - D45A39121CF3007A00659A24 /* whrlpool.h */, - D45A39141CF3007A00659A24 /* x509_vfy.h */, - D45A39131CF3007A00659A24 /* x509.h */, - D45A39151CF3007A00659A24 /* x509v3.h */, - ); - path = openssl; - sourceTree = ""; - }; - D45A39161CF3007A00659A24 /* SDL2 */ = { - isa = PBXGroup; - children = ( - D45A39171CF3007A00659A24 /* begin_code.h */, - D45A39181CF3007A00659A24 /* close_code.h */, - D45A391A1CF3007A00659A24 /* SDL_assert.h */, - D45A391B1CF3007A00659A24 /* SDL_atomic.h */, - D45A391C1CF3007A00659A24 /* SDL_audio.h */, - D45A391D1CF3007A00659A24 /* SDL_bits.h */, - D45A391E1CF3007A00659A24 /* SDL_blendmode.h */, - D45A391F1CF3007A00659A24 /* SDL_clipboard.h */, - D45A39201CF3007A00659A24 /* SDL_config.h */, - D45A39211CF3007A00659A24 /* SDL_cpuinfo.h */, - D45A39221CF3007A00659A24 /* SDL_egl.h */, - D45A39231CF3007A00659A24 /* SDL_endian.h */, - D45A39241CF3007A00659A24 /* SDL_error.h */, - D45A39251CF3007A00659A24 /* SDL_events.h */, - D45A39261CF3007A00659A24 /* SDL_filesystem.h */, - D45A39271CF3007A00659A24 /* SDL_gamecontroller.h */, - D45A39281CF3007A00659A24 /* SDL_gesture.h */, - D45A39291CF3007A00659A24 /* SDL_haptic.h */, - D45A392A1CF3007A00659A24 /* SDL_hints.h */, - D45A392B1CF3007A00659A24 /* SDL_joystick.h */, - D45A392C1CF3007A00659A24 /* SDL_keyboard.h */, - D45A392D1CF3007A00659A24 /* SDL_keycode.h */, - D45A392E1CF3007A00659A24 /* SDL_loadso.h */, - D45A392F1CF3007A00659A24 /* SDL_log.h */, - D45A39301CF3007A00659A24 /* SDL_main.h */, - D45A39311CF3007A00659A24 /* SDL_messagebox.h */, - D45A39321CF3007A00659A24 /* SDL_mouse.h */, - D45A39331CF3007A00659A24 /* SDL_mutex.h */, - D45A39341CF3007A00659A24 /* SDL_name.h */, - D45A39361CF3007A00659A24 /* SDL_opengl_glext.h */, - D45A39351CF3007A00659A24 /* SDL_opengl.h */, - D45A39371CF3007A00659A24 /* SDL_opengles.h */, - D45A39391CF3007A00659A24 /* SDL_opengles2_gl2.h */, - D45A393A1CF3007A00659A24 /* SDL_opengles2_gl2ext.h */, - D45A393B1CF3007A00659A24 /* SDL_opengles2_gl2platform.h */, - D45A393C1CF3007A00659A24 /* SDL_opengles2_khrplatform.h */, - D45A39381CF3007A00659A24 /* SDL_opengles2.h */, - D45A393D1CF3007A00659A24 /* SDL_pixels.h */, - D45A393E1CF3007A00659A24 /* SDL_platform.h */, - D45A393F1CF3007A00659A24 /* SDL_power.h */, - D45A39401CF3007A00659A24 /* SDL_quit.h */, - D45A39411CF3007A00659A24 /* SDL_rect.h */, - D45A39421CF3007A00659A24 /* SDL_render.h */, - D45A39431CF3007A00659A24 /* SDL_revision.h */, - D45A39441CF3007A00659A24 /* SDL_rwops.h */, - D45A39451CF3007A00659A24 /* SDL_scancode.h */, - D45A39461CF3007A00659A24 /* SDL_shape.h */, - D45A39471CF3007A00659A24 /* SDL_stdinc.h */, - D45A39481CF3007A00659A24 /* SDL_surface.h */, - D45A39491CF3007A00659A24 /* SDL_system.h */, - D45A394A1CF3007A00659A24 /* SDL_syswm.h */, - D45A394B1CF3007A00659A24 /* SDL_thread.h */, - D45A394C1CF3007A00659A24 /* SDL_timer.h */, - D45A394D1CF3007A00659A24 /* SDL_touch.h */, - D45A394F1CF3007A00659A24 /* SDL_types.h */, - D45A39501CF3007A00659A24 /* SDL_version.h */, - D45A39511CF3007A00659A24 /* SDL_video.h */, - D45A39191CF3007A00659A24 /* SDL.h */, - ); - path = SDL2; - sourceTree = ""; - }; - D45A39521CF3007A00659A24 /* speex */ = { - isa = PBXGroup; - children = ( - D45A39531CF3007A00659A24 /* speex_echo.h */, - D45A39541CF3007A00659A24 /* speex_jitter.h */, - D45A39551CF3007A00659A24 /* speex_preprocess.h */, - D45A39561CF3007A00659A24 /* speex_resampler.h */, - D45A39571CF3007A00659A24 /* speexdsp_config_types.h */, - D45A39581CF3007A00659A24 /* speexdsp_types.h */, - ); - path = speex; - sourceTree = ""; - }; D497D06F1C20FD52002BF46A = { isa = PBXGroup; children = ( - 662578A525803AA90002C77E /* discord_rpc.h */, - 662578A325803A6C0002C77E /* libdiscord-rpc.a */, 9391535A22D74359008E0780 /* OpenRCT2.entitlements */, 4CF67196206B7E720034ADDD /* object */, D41B72431C21015A0080A7B9 /* Sources */, @@ -2992,17 +2278,28 @@ D4EC48811C2634870024B507 /* include */ = { isa = PBXGroup; children = ( - 9350B4F620B46E0900897BC5 /* freetype2 */, - D45A38C61CF3007A00659A24 /* libpng16 */, - 93FB271D24ED32B7008241C9 /* nlohmann */, - D45A38CA1CF3007A00659A24 /* openssl */, - D45A39161CF3007A00659A24 /* SDL2 */, - D45A39521CF3007A00659A24 /* speex */, - 9350B44320B46E0800897BC5 /* unicode */, - 93FC08FE2418F3ED00CA3054 /* duk_config.h */, - 93FC08FD2418F3ED00CA3054 /* duktape.h */, - C6E96E331E0408A80076A04F /* zip.h */, - C6E96E341E0408A80076A04F /* zipconf.h */, + 666B99C425FD29C80081509F /* brotli */, + 666B99BC25FD29C80081509F /* bzlib.h */, + 666B99BA25FD29C70081509F /* discord_register.h */, + 666B99B825FD29C70081509F /* discord_rpc.h */, + 666B99BE25FD29C80081509F /* duk_config.h */, + 666B99B925FD29C70081509F /* duktape.h */, + 666B99C125FD29C80081509F /* freetype */, + 666B99B225FD29C70081509F /* ft2build.h */, + 666B99BD25FD29C80081509F /* libpng16 */, + 666B99C525FD29C80081509F /* nlohmann */, + 666B99B425FD29C70081509F /* openssl */, + 666B99C225FD29C80081509F /* png.h */, + 666B99C025FD29C80081509F /* pngconf.h */, + 666B99B525FD29C70081509F /* pnglibconf.h */, + 666B99BB25FD29C70081509F /* rapidjson */, + 666B99C325FD29C80081509F /* SDL2 */, + 666B99B025FD29C70081509F /* speex */, + 666B99B125FD29C70081509F /* unicode */, + 666B99B325FD29C70081509F /* zconf.h */, + 666B99B725FD29C70081509F /* zip.h */, + 666B99BF25FD29C80081509F /* zipconf.h */, + 666B99B625FD29C70081509F /* zlib.h */, ); path = include; sourceTree = ""; @@ -3010,15 +2307,6 @@ D4EC48C31C2634870024B507 /* lib */ = { isa = PBXGroup; children = ( - D45A38B31CF3006400659A24 /* libcrypto.dylib */, - 93FC09012418F3F500CA3054 /* libduktape.dylib */, - D45A38B41CF3006400659A24 /* libfreetype.dylib */, - 933F32E924183CBB008376CE /* libicudata.dylib */, - 933F32E824183CBB008376CE /* libicuuc.dylib */, - D4A8B4B31DB41873007A2F29 /* libpng16.dylib */, - D45A38B81CF3006400659A24 /* libSDL2.dylib */, - D45A38B91CF3006400659A24 /* libspeexdsp.dylib */, - C6E96E351E0408B40076A04F /* libzip.dylib */, ); path = lib; sourceTree = ""; @@ -3158,6 +2446,8 @@ F76C83781EC4E7CC00FA49E2 /* core */ = { isa = PBXGroup; children = ( + 4CA23D62263C91D700077AA1 /* ChecksumStream.cpp */, + 4CA23D63263C91D700077AA1 /* ChecksumStream.h */, 2A5354EA22099C7200A5440F /* CircularBuffer.h */, F76C83791EC4E7CC00FA49E2 /* Collections.hpp */, F76C837A1EC4E7CC00FA49E2 /* Console.cpp */, @@ -3587,10 +2877,14 @@ F73E320E2011589F00C4D975 /* TrackDesignSave.cpp */, 4C7B540B20060D8100A52E21 /* TrackPaint.cpp */, 4C7B540C20060D8100A52E21 /* TrackPaint.h */, + 4C882FB825FEA80D0039D1C4 /* TrainManager.cpp */, + 4C882FB925FEA80E0039D1C4 /* TrainManager.h */, 4CFE4E831F90AF41005243C2 /* Vehicle.cpp */, 4CFE4E841F90AF41005243C2 /* Vehicle.h */, + 4C882FBB25FEA8260039D1C4 /* VehicleColour.h */, 4C7B54052005735F00A52E21 /* VehicleData.cpp */, 4C7B540920060D7000A52E21 /* VehicleData.h */, + 4C882FBC25FEA8270039D1C4 /* VehicleEntry.h */, 4C7B54072005736700A52E21 /* VehiclePaint.cpp */, 4C7B540A20060D7900A52E21 /* VehiclePaint.h */, 4CB2716824195B45000CF9EE /* VehicleSubpositionData.cpp */, @@ -3787,6 +3081,9 @@ 4C7B54202007646A00A52E21 /* Climate.cpp */, 4C7B54212007646A00A52E21 /* Climate.h */, 4C7B54222007646A00A52E21 /* Duck.cpp */, + 4CA23DB1263C920900077AA1 /* Entity.cpp */, + 4CA23DAF263C920900077AA1 /* Entity.h */, + 4CA23DB0263C920900077AA1 /* EntityList.h */, 4C7B54232007646A00A52E21 /* Entrance.cpp */, 4C7B54242007646A00A52E21 /* Entrance.h */, 4C7B54252007646A00A52E21 /* Footpath.cpp */, @@ -3825,6 +3122,9 @@ 4C7B54402007646A00A52E21 /* Wall.cpp */, 4C7B54412007646A00A52E21 /* Wall.h */, 4C7B54422007646A00A52E21 /* Water.h */, + 0EB0D1DF6CC74E4190301D84 /* EntityTweener.cpp */, + 091352A950004312BAB18717 /* EntityTweener.h */, + 9D3DD6CD73F5421880280D9D /* Litter.cpp */, ); path = world; sourceTree = ""; @@ -4037,7 +3337,6 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 662578A625803AA90002C77E /* discord_rpc.h in Headers */, 93DFD05624521C1A001FCBAF /* ScriptEngine.h in Headers */, 66A10ED0257F1DF800DD651A /* BannerSetColourAction.h in Headers */, 66A10EC6257F1DF800DD651A /* FootpathPlaceAction.h in Headers */, @@ -4078,7 +3377,6 @@ 66A10F5D257F1E1700DD651A /* RideSetStatusAction.h in Headers */, 93DFD05024521C1A001FCBAF /* ScPark.hpp in Headers */, 93B4DC1625487CDF008D63FF /* Formatting.h in Headers */, - 93FB271F24ED32B7008241C9 /* json.hpp in Headers */, 66A10F86257F1E1800DD651A /* LoadOrQuitAction.h in Headers */, 93DFD02E24521BA0001FCBAF /* FileWatcher.h in Headers */, 2ADE2F28224418B2002598AF /* DataSerialiserTag.h in Headers */, @@ -4106,7 +3404,6 @@ 66A10F4C257F1E1700DD651A /* PlaceParkEntranceAction.h in Headers */, 66A10F96257F1E1800DD651A /* SignSetStyleAction.h in Headers */, 2ADE2F29224418B2002598AF /* Numerics.hpp in Headers */, - 93378D03252B54140077D2D8 /* json_fwd.hpp in Headers */, 66A10FD5257F1E3000DD651A /* WaterRaiseAction.h in Headers */, 93DFD04924521C1A001FCBAF /* ScTile.hpp in Headers */, 936F412B24CE030F00E07BCF /* NetworkBase.h in Headers */, @@ -4132,7 +3429,6 @@ 66A10F88257F1E1800DD651A /* SignSetNameAction.h in Headers */, 93AE2389252F948A00CD03C3 /* Formatter.h in Headers */, 93DFD05424521C1A001FCBAF /* ScDate.hpp in Headers */, - 93FC08FF2418F3ED00CA3054 /* duktape.h in Headers */, 93DFD04F24521C1A001FCBAF /* ScConsole.hpp in Headers */, 66A10F91257F1E1800DD651A /* StaffHireNewAction.h in Headers */, 9308DA05209908090079EE96 /* Surface.h in Headers */, @@ -4145,7 +3441,6 @@ 66A10F81257F1E1800DD651A /* RideSetVehicleAction.h in Headers */, 66A10F83257F1E1800DD651A /* PlayerSetGroupAction.h in Headers */, 66A10F8E257F1E1800DD651A /* LandSetRightsAction.h in Headers */, - 93FC09002418F3ED00CA3054 /* duk_config.h in Headers */, 66A10FDA257F1E3000DD651A /* WaterSetHeightAction.h in Headers */, 66A10F51257F1E1700DD651A /* RideDemolishAction.h in Headers */, 66A10F73257F1E1800DD651A /* LandSetHeightAction.h in Headers */, @@ -4172,6 +3467,7 @@ 66A10ECE257F1DF800DD651A /* BannerSetNameAction.h in Headers */, 2ADE2F342244191E002598AF /* VirtualFloor.h in Headers */, 66A10F8B257F1E1800DD651A /* LandSmoothAction.h in Headers */, + F42186C5840D4196981ADD16 /* EntityTweener.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4207,7 +3503,6 @@ buildConfigurationList = F76C809D1EC4D9FA00FA49E2 /* Build configuration list for PBXNativeTarget "libopenrct2" */; buildPhases = ( F76C809F1EC4DB0300FA49E2 /* Get Git Variables */, - 66257898258032500002C77E /* Get discord-rpc */, F76C80961EC4D9FA00FA49E2 /* Sources */, F76C88381EC4EB5900FA49E2 /* Resources */, F76C80981EC4D9FA00FA49E2 /* Headers */, @@ -4332,25 +3627,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "version=\"1.0.20\"\nzipname=\"objects.zip\"\nliburl=\"https://github.com/OpenRCT2/objects/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/data/object\" || ! -e \"${SRCROOT}/objectsversion\" || $(head -n 1 \"${SRCROOT}/objectsversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/data/object\" ]]; then rm -r \"${SRCROOT}/data/object\"; fi\nmkdir -p \"${SRCROOT}/data/object\"\n\ncurl -L -o \"${SRCROOT}/data/object/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/data/object\" \"${SRCROOT}/data/object/$zipname\"\nrm \"${SRCROOT}/data/object/$zipname\"\n\necho $version > \"${SRCROOT}/objectsversion\"\nfi\n"; - }; - 66257898258032500002C77E /* Get discord-rpc */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - name = "Get discord-rpc"; - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "if [[ ! -d \"${SRCROOT}/discord-rpc\" ]]; then\n . ${SRCROOT}/scripts/get-discord-rpc\nfi\n\nif [[ -d \"${SRCROOT}/discord-rpc\" ]]; then\n cd ${SRCROOT}/discord-rpc\n mkdir build\n cd build\n cmake ..\n cmake --build . --config Release\nfi\n"; + shellScript = "version=\"1.0.20\"\nzipname=\"objects.zip\"\nliburl=\"https://github.com/OpenRCT2/objects/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/data/object\" || ! -e \"${SRCROOT}/objectsversion\" || $(head -n 1 \"${SRCROOT}/objectsversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/data/object\" ]]; then rm -r \"${SRCROOT}/data/object\"; fi\nmkdir -p \"${SRCROOT}/data/object\"\n\ncurl -fLo \"${SRCROOT}/data/object/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/data/object\" \"${SRCROOT}/data/object/$zipname\"\nrm \"${SRCROOT}/data/object/$zipname\"\n\necho $version > \"${SRCROOT}/objectsversion\"\nfi\n"; }; C68B2D471EC790710020651C /* Download Libraries */ = { isa = PBXShellScriptBuildPhase; @@ -4364,7 +3641,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "version=\"26\"\nzipname=\"openrct2-libs-v26-x64-macos-dylibs.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi\n"; + shellScript = "version=\"28\"\nzipname=\"openrct2-libs-v28-x64-macos-dylibs.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -fLo \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi\n"; }; D42C09D21C254F4E00309751 /* Build g2.dat */ = { isa = PBXShellScriptBuildPhase; @@ -4411,7 +3688,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "version=\"0.1.2c\"\nzipname=\"title-sequences.zip\"\nliburl=\"https://github.com/OpenRCT2/title-sequences/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/data/sequence\" || ! -e \"${SRCROOT}/sequencesversion\" || $(head -n 1 \"${SRCROOT}/sequencesversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/data/sequence\" ]]; then rm -r \"${SRCROOT}/data/sequence\"; fi\nmkdir -p \"${SRCROOT}/data/sequence\"\n\ncurl -L -o \"${SRCROOT}/data/sequence/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/data/sequence\" \"${SRCROOT}/data/sequence/$zipname\"\nrm \"${SRCROOT}/data/sequence/$zipname\"\n\necho $version > \"${SRCROOT}/sequencesversion\"\nfi\n"; + shellScript = "version=\"0.1.2c\"\nzipname=\"title-sequences.zip\"\nliburl=\"https://github.com/OpenRCT2/title-sequences/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/data/sequence\" || ! -e \"${SRCROOT}/sequencesversion\" || $(head -n 1 \"${SRCROOT}/sequencesversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/data/sequence\" ]]; then rm -r \"${SRCROOT}/data/sequence\"; fi\nmkdir -p \"${SRCROOT}/data/sequence\"\n\ncurl -fLo \"${SRCROOT}/data/sequence/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/data/sequence\" \"${SRCROOT}/data/sequence/$zipname\"\nrm \"${SRCROOT}/data/sequence/$zipname\"\n\necho $version > \"${SRCROOT}/sequencesversion\"\nfi\n"; }; F76C809F1EC4DB0300FA49E2 /* Get Git Variables */ = { isa = PBXShellScriptBuildPhase; @@ -4444,7 +3721,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "echo \"#define\" OPENRCT2_VERSION_TAG \\\"$(git describe HEAD | sed -E 's/-g.+$//')\\\" > \"${DERIVED_FILE_DIR}/gitversion.h\"\n\nbranch=$(git rev-parse --abbrev-ref HEAD)\nif [ \"$branch\" != \"master\" ]; then\necho \"#define\" OPENRCT2_BRANCH \\\"$branch\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\nfi\n\nshortsha1=$(git rev-parse --short HEAD)\nif [ \"$shortsha1\" != \"HEAD\" ]; then\necho \"#define\" OPENRCT2_COMMIT_SHA1_SHORT \\\"$shortsha1\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\nfi\n\ncp \"${SRCROOT}/distribution/macos/Info.plist\" \"${DERIVED_FILE_DIR}/Info.plist\"\nplutil -replace CFBundleVersion -string \"$(git rev-parse --short HEAD)\" \"${DERIVED_FILE_DIR}/Info.plist\""; + shellScript = "echo \"#define\" OPENRCT2_VERSION_TAG \\\"$(git describe HEAD | sed -E 's/-g.+$//')\\\" > \"${DERIVED_FILE_DIR}/gitversion.h\"\n\nbranch=$(git rev-parse --abbrev-ref HEAD)\nif [ \"$branch\" != \"master\" ]; then\necho \"#define\" OPENRCT2_BRANCH \\\"$branch\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\nfi\n\nshortsha1=$(git rev-parse --short HEAD)\nif [ \"$shortsha1\" != \"HEAD\" ]; then\necho \"#define\" OPENRCT2_COMMIT_SHA1_SHORT \\\"$shortsha1\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\nfi\n\ncp \"${SRCROOT}/distribution/macos/Info.plist\" \"${DERIVED_FILE_DIR}/Info.plist\"\nplutil -replace CFBundleVersion -string \"$(git rev-parse --short HEAD)\" \"${DERIVED_FILE_DIR}/Info.plist\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -4502,6 +3779,7 @@ 6341F4E12400AA0F0052902B /* Drawing.Sprite.RLE.cpp in Sources */, C666EE6C1F37ACB10061AA04 /* Changelog.cpp in Sources */, C64644FC1F3FA4120026AC2D /* Footpath.cpp in Sources */, + 4C882FBA25FEA80E0039D1C4 /* TrainManager.cpp in Sources */, F76C887C1EC5324E00FA49E2 /* MemoryAudioSource.cpp in Sources */, C654DF3D1F69C0430040F43D /* TrackDesignPlace.cpp in Sources */, C666EE721F37ACB10061AA04 /* Multiplayer.cpp in Sources */, @@ -4518,6 +3796,7 @@ 4C8BB67925533D4C005C8830 /* FileStream.cpp in Sources */, 933CBDBD20CB1BA900134678 /* ViewportInteraction.cpp in Sources */, C685E51B1F8907850090598F /* Guest.cpp in Sources */, + 4CA23DB2263C920900077AA1 /* Entity.cpp in Sources */, C64644F91F3FA4120026AC2D /* EditorInventionsList.cpp in Sources */, C68878C720289B710084B384 /* OpenGLShaderProgram.cpp in Sources */, 4CA39E512513F8A00094066B /* RTL.ICU.cpp in Sources */, @@ -4583,6 +3862,7 @@ 4C8BB67C25533D59005C8830 /* JobPool.cpp in Sources */, 01C6F0C222FD519E0057E2F7 /* TrackImporter.cpp in Sources */, 4C8BB68125533D65005C8830 /* StringBuilder.cpp in Sources */, + 4CA23D64263C91D800077AA1 /* ChecksumStream.cpp in Sources */, C666EE761F37ACB10061AA04 /* Options.cpp in Sources */, 4CB991CC25CEE54500C692B4 /* Shortcuts.cpp in Sources */, C666EE6E1F37ACB10061AA04 /* CustomCurrency.cpp in Sources */, @@ -4991,6 +4271,8 @@ C68878F020289B9B0084B384 /* CorkscrewRollerCoaster.cpp in Sources */, 66A10FD1257F1E3000DD651A /* WaterRaiseAction.cpp in Sources */, C688791820289B9B0084B384 /* MonorailCycles.cpp in Sources */, + E73A781EBC3C440A99D59821 /* EntityTweener.cpp in Sources */, + 0746674FA0794ABF86E406A1 /* Litter.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/cmake/download.cmake b/cmake/download.cmake new file mode 100644 index 0000000000..de9d44b135 --- /dev/null +++ b/cmake/download.cmake @@ -0,0 +1,51 @@ +function(download_openrct2_zip) + set(oneValueArgs ZIP_VERSION DOWNLOAD_DIR ZIP_URL SHA1) + set(multiValueArgs SKIP_IF_EXISTS) + cmake_parse_arguments(DOWNLOAD_OPENRCT2 "${options}" "${oneValueArgs}" + "${multiValueArgs}" ${ARGN} ) + + get_filename_component(ZIP_FILE_NAME ${DOWNLOAD_OPENRCT2_ZIP_URL} NAME) + + if (NOT EXISTS ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}) + set(DOWNLOAD_ZIP 1) + else () + if (EXISTS "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/zipversion") + file(READ "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/zipversion" DOWNLOAD_OPENRCT2_CACHED_VERSION) + if (NOT ${DOWNLOAD_OPENRCT2_CACHED_VERSION} STREQUAL ${DOWNLOAD_OPENRCT2_ZIP_VERSION}) + message("Cache ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR} not up to date") + set(DOWNLOAD_ZIP 1) + endif () + else () + set(DOWNLOAD_ZIP 1) + endif () + endif () + + foreach(check_exist_dir ${DOWNLOAD_OPENRCT2_SKIP_IF_EXISTS}) + if (EXISTS ${check_exist_dir}) + message("${check_exist_dir} exists, skipping download") + set(DOWNLOAD_ZIP 0) + break() + endif () + endforeach(check_exist_dir) + + if (DOWNLOAD_ZIP) + message("Downloading ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}") + file(DOWNLOAD + "${DOWNLOAD_OPENRCT2_ZIP_URL}" "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}" + EXPECTED_HASH SHA1=${DOWNLOAD_OPENRCT2_SHA1} SHOW_PROGRESS) + if(${CMAKE_VERSION} VERSION_LESS "3.18.0") + execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR} ${CMAKE_COMMAND} -E tar xf ${ZIP_FILE_NAME}) + else() + file(ARCHIVE_EXTRACT + INPUT "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}" + DESTINATION "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}" + ) + endif() + file(WRITE + "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/zipversion" + "${DOWNLOAD_OPENRCT2_ZIP_VERSION}" + ) + file(REMOVE "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}") + endif () + +endfunction () diff --git a/contributors.md b/contributors.md index 6540ce149b..94aa5b8ea4 100644 --- a/contributors.md +++ b/contributors.md @@ -91,8 +91,11 @@ The following people are not part of the development team, but have been contrib * Jim Verheijde (Jimver) - Make handymen less likely to get stuck in queue lines, misc. * Helio Batimarqui (batimarqui) - Misc. * Keith Stellyes (keithstellyes) - Misc. +* Bas Cantrijn (Basssiiie) - Misc. +* Adrian Zdanowicz (CookiePLMonster) - Misc. ## Bug fixes +* (KirilAngelov) * (halfbro) * (Myrtle) * (nean) @@ -164,6 +167,10 @@ The following people are not part of the development team, but have been contrib * (evilclownattack) * Adam Bloom (adam-bloom) * Geoff B. (geoff-B) +* Ryan D. (rctdude2) +* (zrowny) +* Emre Aydin (aemreaydin) +* Daniel Karandikar (DKarandikar) ## Toolchain * (Balletie) - macOS diff --git a/data/language/ar-EG.txt b/data/language/ar-EG.txt index 739ddf760f..d38d4004eb 100644 --- a/data/language/ar-EG.txt +++ b/data/language/ar-EG.txt @@ -236,8 +236,8 @@ STR_0831 :تصغير المشهد للخارج STR_0832 :تدوير المشهد 90 ° بإتجاه عقارب الساعة STR_0833 :إيقاف اللعبة مؤقتاً STR_0834 :إعدادات اللعبة والهارد -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :‘OpenRCT2’ عن STR_0850 :{WINDOW_COLOUR_2}حقوق النشر © 2002 كريس سوير، كل الحقوق محفوظة @@ -795,14 +795,14 @@ STR_1410 :برج أفقي STR_1411 :في الطريق{STRINGID} STR_1412 :{WINDOW_COLOUR_3}Data logging not available for this type of ride STR_1413 :{WINDOW_COLOUR_3}Data logging will start when next {STRINGID} leaves {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}السرعة STR_1416 :{WINDOW_COLOUR_2}الإرتفاع STR_1417 :{WINDOW_COLOUR_2}Vert.Gs STR_1418 :{WINDOW_COLOUR_2}Lat.Gs -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Logging data from {POP16}{STRINGID} STR_1423 :Queue line path STR_1424 :Footpath @@ -861,131 +861,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensity rating: {BLACK}Not yet available STR_1477 :{WINDOW_COLOUR_2}Intensity rating: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}Not yet available -STR_1480 :{SMALLFONT}“لا يمكنني تحمل كلفة {STRINGID}” -STR_1481 :{SMALLFONT}“لقد أنفقت كل مالي” -STR_1482 :{SMALLFONT}“أنا أشعر بالتعب” -STR_1483 :{SMALLFONT}“أنا أشعر بالتنعب الشديد” -STR_1484 :{SMALLFONT}“I want to go on something more thrilling than {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} looks too intense for me” -STR_1486 :{SMALLFONT}“لقد إنتهيت من {STRINGID} yet” -STR_1487 :{SMALLFONT}“Just looking at {STRINGID} makes me feel sick” -STR_1488 :{SMALLFONT}“I’m not paying that much to go on {STRINGID}” -STR_1489 :{SMALLFONT}“أنا أود الذهاب للمنزل” -STR_1490 :{SMALLFONT}“{STRINGID} is really good value” -STR_1491 :{SMALLFONT}“I’ve already got {STRINGID}” -STR_1492 :{SMALLFONT}“I can’t afford {STRINGID}” -STR_1493 :{SMALLFONT}“I’m not hungry” -STR_1494 :{SMALLFONT}“I’m not thirsty” -STR_1495 :{SMALLFONT}“النجدة! أنا أغرق!” -STR_1496 :{SMALLFONT}“أنا تائه!” -STR_1497 :{SMALLFONT}“{STRINGID} was great” -STR_1498 :{SMALLFONT}“I’ve been queuing for {STRINGID} for ages” -STR_1499 :{SMALLFONT}“أنا مرهق” -STR_1500 :{SMALLFONT}“أنا جائع” -STR_1501 :{SMALLFONT}“أنا عطشان” -STR_1502 :{SMALLFONT}“أنا سوف أذهب إلي الحمام” -STR_1503 :{SMALLFONT}“I can’t find {STRINGID}” -STR_1504 :{SMALLFONT}“I’m not paying that much to use {STRINGID}” -STR_1505 :{SMALLFONT}“I’m not going on {STRINGID} while it’s raining” -STR_1506 :{SMALLFONT}“The litter here is really bad” -STR_1507 :{SMALLFONT}“لا يمكنني إيجاد مخرج الحديقة” -STR_1508 :{SMALLFONT}“I want to get off {STRINGID}” -STR_1509 :{SMALLFONT}“I want to get out of {STRINGID}” -STR_1510 :{SMALLFONT}“I’m not going on {STRINGID} - It isn’t safe” -STR_1511 :{SMALLFONT}“This path is disgusting” -STR_1512 :{SMALLFONT}“It’s too crowded here” -STR_1513 :{SMALLFONT}“The vandalism here is really bad” -STR_1514 :{SMALLFONT}“Great scenery!” -STR_1515 :{SMALLFONT}“This park is really clean and tidy” -STR_1516 :{SMALLFONT}“The jumping fountains are great” -STR_1517 :{SMALLFONT}“The music is nice here” -STR_1518 :{SMALLFONT}“This balloon from {STRINGID} is really good value” -STR_1519 :{SMALLFONT}“This cuddly toy from {STRINGID} is really good value” -STR_1520 :{SMALLFONT}“This park map from {STRINGID} is really good value” -STR_1521 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1522 :{SMALLFONT}“This umbrella from {STRINGID} is really good value” -STR_1523 :{SMALLFONT}“This drink from {STRINGID} is really good value” -STR_1524 :{SMALLFONT}“This burger from {STRINGID} is really good value” -STR_1525 :{SMALLFONT}“These chips from {STRINGID} are really good value” -STR_1526 :{SMALLFONT}“This ice cream from {STRINGID} is really good value” -STR_1527 :{SMALLFONT}“This candyfloss from {STRINGID} is really good value” +STR_1480 :“لا يمكنني تحمل كلفة {STRINGID}” +STR_1481 :“لقد أنفقت كل مالي” +STR_1482 :“أنا أشعر بالتعب” +STR_1483 :“أنا أشعر بالتنعب الشديد” +STR_1484 :“I want to go on something more thrilling than {STRINGID}” +STR_1485 :“{STRINGID} looks too intense for me” +STR_1486 :“لقد إنتهيت من {STRINGID} yet” +STR_1487 :“Just looking at {STRINGID} makes me feel sick” +STR_1488 :“I’m not paying that much to go on {STRINGID}” +STR_1489 :“أنا أود الذهاب للمنزل” +STR_1490 :“{STRINGID} is really good value” +STR_1491 :“I’ve already got {STRINGID}” +STR_1492 :“I can’t afford {STRINGID}” +STR_1493 :“I’m not hungry” +STR_1494 :“I’m not thirsty” +STR_1495 :“النجدة! أنا أغرق!” +STR_1496 :“أنا تائه!” +STR_1497 :“{STRINGID} was great” +STR_1498 :“I’ve been queuing for {STRINGID} for ages” +STR_1499 :“أنا مرهق” +STR_1500 :“أنا جائع” +STR_1501 :“أنا عطشان” +STR_1502 :“أنا سوف أذهب إلي الحمام” +STR_1503 :“I can’t find {STRINGID}” +STR_1504 :“I’m not paying that much to use {STRINGID}” +STR_1505 :“I’m not going on {STRINGID} while it’s raining” +STR_1506 :“The litter here is really bad” +STR_1507 :“لا يمكنني إيجاد مخرج الحديقة” +STR_1508 :“I want to get off {STRINGID}” +STR_1509 :“I want to get out of {STRINGID}” +STR_1510 :“I’m not going on {STRINGID} - It isn’t safe” +STR_1511 :“This path is disgusting” +STR_1512 :“It’s too crowded here” +STR_1513 :“The vandalism here is really bad” +STR_1514 :“Great scenery!” +STR_1515 :“This park is really clean and tidy” +STR_1516 :“The jumping fountains are great” +STR_1517 :“The music is nice here” +STR_1518 :“This balloon from {STRINGID} is really good value” +STR_1519 :“This cuddly toy from {STRINGID} is really good value” +STR_1520 :“This park map from {STRINGID} is really good value” +STR_1521 :“This on-ride photo from {STRINGID} is really good value” +STR_1522 :“This umbrella from {STRINGID} is really good value” +STR_1523 :“This drink from {STRINGID} is really good value” +STR_1524 :“This burger from {STRINGID} is really good value” +STR_1525 :“These chips from {STRINGID} are really good value” +STR_1526 :“This ice cream from {STRINGID} is really good value” +STR_1527 :“This candyfloss from {STRINGID} is really good value” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“This pizza from {STRINGID} is really good value” +STR_1531 :“This pizza from {STRINGID} is really good value” STR_1532 : -STR_1533 :{SMALLFONT}“This popcorn from {STRINGID} is really good value” -STR_1534 :{SMALLFONT}“This hot dog from {STRINGID} is really good value” -STR_1535 :{SMALLFONT}“This tentacle from {STRINGID} is really good value” -STR_1536 :{SMALLFONT}“This hat from {STRINGID} is really good value” -STR_1537 :{SMALLFONT}“This toffee apple from {STRINGID} is really good value” -STR_1538 :{SMALLFONT}“This T-shirt from {STRINGID} is really good value” -STR_1539 :{SMALLFONT}“This doughnut from {STRINGID} is really good value” -STR_1540 :{SMALLFONT}“This coffee from {STRINGID} is really good value” +STR_1533 :“This popcorn from {STRINGID} is really good value” +STR_1534 :“This hot dog from {STRINGID} is really good value” +STR_1535 :“This tentacle from {STRINGID} is really good value” +STR_1536 :“This hat from {STRINGID} is really good value” +STR_1537 :“This toffee apple from {STRINGID} is really good value” +STR_1538 :“This T-shirt from {STRINGID} is really good value” +STR_1539 :“This doughnut from {STRINGID} is really good value” +STR_1540 :“This coffee from {STRINGID} is really good value” STR_1541 : -STR_1542 :{SMALLFONT}“This fried chicken from {STRINGID} is really good value” -STR_1543 :{SMALLFONT}“This lemonade from {STRINGID} is really good value” +STR_1542 :“This fried chicken from {STRINGID} is really good value” +STR_1543 :“This lemonade from {STRINGID} is really good value” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“واو!” -STR_1551 :{SMALLFONT}“I have the strangest feeling someone is watching me” -STR_1552 :{SMALLFONT}“I’m not paying that much for a balloon from {STRINGID}” -STR_1553 :{SMALLFONT}“I’m not paying that much for a cuddly toy from {STRINGID}” -STR_1554 :{SMALLFONT}“I’m not paying that much for a park map from {STRINGID}” -STR_1555 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1556 :{SMALLFONT}“I’m not paying that much for an umbrella from {STRINGID}” -STR_1557 :{SMALLFONT}“I’m not paying that much for a drink from {STRINGID}” -STR_1558 :{SMALLFONT}“I’m not paying that much for a burger from {STRINGID}” -STR_1559 :{SMALLFONT}“I’m not paying that much for chips from {STRINGID}” -STR_1560 :{SMALLFONT}“I’m not paying that much for an ice cream from {STRINGID}” -STR_1561 :{SMALLFONT}“I’m not paying that much for candyfloss from {STRINGID}” +STR_1550 :“واو!” +STR_1551 :“I have the strangest feeling someone is watching me” +STR_1552 :“I’m not paying that much for a balloon from {STRINGID}” +STR_1553 :“I’m not paying that much for a cuddly toy from {STRINGID}” +STR_1554 :“I’m not paying that much for a park map from {STRINGID}” +STR_1555 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1556 :“I’m not paying that much for an umbrella from {STRINGID}” +STR_1557 :“I’m not paying that much for a drink from {STRINGID}” +STR_1558 :“I’m not paying that much for a burger from {STRINGID}” +STR_1559 :“I’m not paying that much for chips from {STRINGID}” +STR_1560 :“I’m not paying that much for an ice cream from {STRINGID}” +STR_1561 :“I’m not paying that much for candyfloss from {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“I’m not paying that much for pizza from {STRINGID}” +STR_1565 :“I’m not paying that much for pizza from {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“I’m not paying that much for popcorn from {STRINGID}” -STR_1568 :{SMALLFONT}“I’m not paying that much for a hot dog from {STRINGID}” -STR_1569 :{SMALLFONT}“I’m not paying that much for tentacle from {STRINGID}” -STR_1570 :{SMALLFONT}“I’m not paying that much for a hat from {STRINGID}” -STR_1571 :{SMALLFONT}“I’m not paying that much for a toffee apple from {STRINGID}” -STR_1572 :{SMALLFONT}“I’m not paying that much for a T-shirt from {STRINGID}” -STR_1573 :{SMALLFONT}“I’m not paying that much for a doughnut from {STRINGID}” -STR_1574 :{SMALLFONT}“I’m not paying that much for coffee from {STRINGID}” +STR_1567 :“I’m not paying that much for popcorn from {STRINGID}” +STR_1568 :“I’m not paying that much for a hot dog from {STRINGID}” +STR_1569 :“I’m not paying that much for tentacle from {STRINGID}” +STR_1570 :“I’m not paying that much for a hat from {STRINGID}” +STR_1571 :“I’m not paying that much for a toffee apple from {STRINGID}” +STR_1572 :“I’m not paying that much for a T-shirt from {STRINGID}” +STR_1573 :“I’m not paying that much for a doughnut from {STRINGID}” +STR_1574 :“I’m not paying that much for coffee from {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“I’m not paying that much for fried chicken from {STRINGID}” -STR_1577 :{SMALLFONT}“I’m not paying that much for lemonade from {STRINGID}” +STR_1576 :“I’m not paying that much for fried chicken from {STRINGID}” +STR_1577 :“I’m not paying that much for lemonade from {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1585 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1586 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1587 :{SMALLFONT}“This pretzel from {STRINGID} is really good value” -STR_1588 :{SMALLFONT}“This hot chocolate from {STRINGID} is really good value” -STR_1589 :{SMALLFONT}“This iced tea from {STRINGID} is really good value” -STR_1590 :{SMALLFONT}“This funnel cake from {STRINGID} is really good value” -STR_1591 :{SMALLFONT}“These sunglasses from {STRINGID} are really good value” -STR_1592 :{SMALLFONT}“These beef noodles from {STRINGID} are really good value” -STR_1593 :{SMALLFONT}“These fried rice noodles from {STRINGID} are really good value” -STR_1594 :{SMALLFONT}“This wonton soup from {STRINGID} is really good value” -STR_1595 :{SMALLFONT}“This meatball soup from {STRINGID} is really good value” -STR_1596 :{SMALLFONT}“This fruit juice from {STRINGID} is really good value” -STR_1597 :{SMALLFONT}“This soybean milk from {STRINGID} is really good value” -STR_1598 :{SMALLFONT}“This sujongkwa from {STRINGID} is really good value” -STR_1599 :{SMALLFONT}“This sub sandwich from {STRINGID} is really good value” -STR_1600 :{SMALLFONT}“This cookie from {STRINGID} is really good value” +STR_1584 :“This on-ride photo from {STRINGID} is really good value” +STR_1585 :“This on-ride photo from {STRINGID} is really good value” +STR_1586 :“This on-ride photo from {STRINGID} is really good value” +STR_1587 :“This pretzel from {STRINGID} is really good value” +STR_1588 :“This hot chocolate from {STRINGID} is really good value” +STR_1589 :“This iced tea from {STRINGID} is really good value” +STR_1590 :“This funnel cake from {STRINGID} is really good value” +STR_1591 :“These sunglasses from {STRINGID} are really good value” +STR_1592 :“These beef noodles from {STRINGID} are really good value” +STR_1593 :“These fried rice noodles from {STRINGID} are really good value” +STR_1594 :“This wonton soup from {STRINGID} is really good value” +STR_1595 :“This meatball soup from {STRINGID} is really good value” +STR_1596 :“This fruit juice from {STRINGID} is really good value” +STR_1597 :“This soybean milk from {STRINGID} is really good value” +STR_1598 :“This sujongkwa from {STRINGID} is really good value” +STR_1599 :“This sub sandwich from {STRINGID} is really good value” +STR_1600 :“This cookie from {STRINGID} is really good value” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“This roast sausage from {STRINGID} are really good value” +STR_1604 :“This roast sausage from {STRINGID} are really good value” STR_1605 : STR_1606 : STR_1607 : @@ -997,27 +997,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1617 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1618 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1619 :{SMALLFONT}“I’m not paying that much for a pretzel from {STRINGID}” -STR_1620 :{SMALLFONT}“I’m not paying that much for hot chocolate from {STRINGID}” -STR_1621 :{SMALLFONT}“I’m not paying that much for iced tea from {STRINGID}” -STR_1622 :{SMALLFONT}“I’m not paying that much for a funnel cake from {STRINGID}” -STR_1623 :{SMALLFONT}“I’m not paying that much for sunglasses from {STRINGID}” -STR_1624 :{SMALLFONT}“I’m not paying that much for beef noodles from {STRINGID}” -STR_1625 :{SMALLFONT}“I’m not paying that much for fried rice noodles from {STRINGID}” -STR_1626 :{SMALLFONT}“I’m not paying that much for wonton soup from {STRINGID}” -STR_1627 :{SMALLFONT}“I’m not paying that much for meatball soup from {STRINGID}” -STR_1628 :{SMALLFONT}“I’m not paying that much for fruit juice from {STRINGID}” -STR_1629 :{SMALLFONT}“I’m not paying that much for soybean milk from {STRINGID}” -STR_1630 :{SMALLFONT}“I’m not paying that much for sujongkwa from {STRINGID}” -STR_1631 :{SMALLFONT}“I’m not paying that much for a sub sandwich from {STRINGID}” -STR_1632 :{SMALLFONT}“I’m not paying that much for a cookie from {STRINGID}” +STR_1616 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1617 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1618 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1619 :“I’m not paying that much for a pretzel from {STRINGID}” +STR_1620 :“I’m not paying that much for hot chocolate from {STRINGID}” +STR_1621 :“I’m not paying that much for iced tea from {STRINGID}” +STR_1622 :“I’m not paying that much for a funnel cake from {STRINGID}” +STR_1623 :“I’m not paying that much for sunglasses from {STRINGID}” +STR_1624 :“I’m not paying that much for beef noodles from {STRINGID}” +STR_1625 :“I’m not paying that much for fried rice noodles from {STRINGID}” +STR_1626 :“I’m not paying that much for wonton soup from {STRINGID}” +STR_1627 :“I’m not paying that much for meatball soup from {STRINGID}” +STR_1628 :“I’m not paying that much for fruit juice from {STRINGID}” +STR_1629 :“I’m not paying that much for soybean milk from {STRINGID}” +STR_1630 :“I’m not paying that much for sujongkwa from {STRINGID}” +STR_1631 :“I’m not paying that much for a sub sandwich from {STRINGID}” +STR_1632 :“I’m not paying that much for a cookie from {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“I’m not paying that much for a roast sausage from {STRINGID}” +STR_1636 :“I’m not paying that much for a roast sausage from {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1029,10 +1029,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Help! Put me down!” -STR_1649 :{SMALLFONT}“I’m running out of cash!” -STR_1650 :{SMALLFONT}“Wow! A new ride being built!” -STR_1653 :{SMALLFONT}“…and here we are on {STRINGID}!” +STR_1648 :“Help! Put me down!” +STR_1649 :“I’m running out of cash!” +STR_1650 :“Wow! A new ride being built!” +STR_1653 :“…and here we are on {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Recent thoughts: STR_1655 :Construct footpath on land STR_1656 :Construct bridge or tunnel footpath @@ -1062,12 +1062,12 @@ STR_1679 :Helix up (left) STR_1680 :Helix up (right) STR_1681 :Helix down (left) STR_1682 :Helix down (right) -STR_1683 :Base size 2 x 2 -STR_1684 :Base size 4 x 4 -STR_1685 :Base size 2 x 4 -STR_1686 :Base size 5 x 1 +STR_1683 :Base size 2 × 2 +STR_1684 :Base size 4 × 4 +STR_1685 :Base size 2 × 4 +STR_1686 :Base size 5 × 1 STR_1687 :Water splash -STR_1688 :Base size 4 x 1 +STR_1688 :Base size 4 × 1 STR_1689 :Block brakes STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} السعر: {BLACK}{CURRENCY} @@ -1184,7 +1184,7 @@ STR_1808 :{WINDOW_COLOUR_2}Last breakdown: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Current breakdown: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Carrying: STR_1811 :Can’t build this here… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Miscellaneous Objects STR_1814 :Actions STR_1815 :Thoughts @@ -1193,7 +1193,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}All guests STR_1819 :{WINDOW_COLOUR_2}All guests (summarised) STR_1820 :{WINDOW_COLOUR_2}Guests {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Guests thinking {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Guests thinking {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Guests thinking about {POP16}{STRINGID} STR_1823 :Show guests’ thoughts about this ride/attraction STR_1824 :Show guests on this ride/attraction @@ -1296,7 +1296,6 @@ STR_1921 :Start a new game STR_1922 :Continue playing a saved game STR_1924 :Exit STR_1925 :Can’t place person here… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} has broken down STR_1928 :{RED}{STRINGID} has crashed! STR_1929 :{RED}{STRINGID} still hasn’t been fixed{NEWLINE}Check where your mechanics are and consider organizing them better @@ -1577,7 +1576,7 @@ STR_2218 :{RED}{STRINGID} on {STRINGID} hasn’t returned to the {STRINGID} y STR_2219 :{RED}{COMMA16} people have died in an accident on {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Park Rating: {BLACK}{COMMA16} STR_2221 :Park Rating: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Guests in park: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Cash: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Cash: {RED}{CURRENCY2DP} @@ -1590,7 +1589,7 @@ STR_2231 :Holding brake for drop STR_2232 :Cable lift hill STR_2233 :Park information STR_2234 :Recent Messages -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :January STR_2237 :February STR_2238 :March @@ -1670,7 +1669,7 @@ STR_2312 :{WINDOW_COLOUR_2}Intensity rating: {BLACK}{COMMA2DP32} (approx.) STR_2313 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}{COMMA2DP32} (approx.) STR_2314 :{WINDOW_COLOUR_2}Ride length: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Cost: {BLACK}around {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} x {COMMA16} blocks +STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} × {COMMA16} blocks STR_2321 :{WINDOW_COLOUR_2}Number of rides/attractions: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Staff: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}m² @@ -1794,7 +1793,7 @@ STR_2450 :{YELLOW}Your advertising campaign for the park has finished STR_2451 :{YELLOW}Your advertising campaign for {STRINGID} has finished STR_2452 :{WINDOW_COLOUR_2}Cash (less loan): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Cash (less loan): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Show financial accounts STR_2458 :Show graph of cash (less loan) over time STR_2459 :Show graph of park value over time @@ -1904,7 +1903,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :All research complete -STR_2681 :{MEDIUMFONT}{BLACK}Increases your money by {CURRENCY} STR_2684 :Large group of guests arrive STR_2685 :Simplex Noise Parameters STR_2686 :Low: @@ -1991,7 +1989,7 @@ STR_2789 :{WINDOW_COLOUR_2}You have failed your objective ! STR_2790 :Enter name into scenario chart STR_2791 :ادخل أسمًا STR_2792 :Please enter your name for the scenario chart: -STR_2793 :{SMALLFONT}(Completed by {STRINGID}) +STR_2793 :(Completed by {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Completed by: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} with a company value of: {BLACK}{CURRENCY} STR_2795 :ترتيب STR_2796 :Sort the ride list into order using the information type displayed @@ -2305,7 +2303,7 @@ STR_3208 :Track Designs Manager STR_3209 :Back to Previous Step: STR_3210 :Forward to Next Step: STR_3211 :حجم الخريطة: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Can’t decrease map size any further STR_3214 :Can’t increase map size any further STR_3215 :Too close to edge of map @@ -2500,7 +2498,7 @@ STR_5134 :Adjust larger area of land rights STR_5135 :Buy land rights and construction rights STR_5136 :Land rights STR_5137 :Unlock operating limits -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Disable brakes failure STR_5141 :Disable all breakdowns @@ -2646,7 +2644,7 @@ STR_5297 :فتح الحديقة STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Quick fire staff -STR_5301 :{MEDIUMFONT}{BLACK}Clear your loan +STR_5301 :Clear your loan STR_5302 :Clear loan STR_5303 :Allow building in pause mode STR_5304 :Title Sequence: @@ -2805,7 +2803,7 @@ STR_5481 :الثيمات STR_5482 :{WINDOW_COLOUR_2}Time since last inspection: {BLACK}1 minute STR_5483 :{BLACK}({COMMA16} أسابيع باقية) STR_5484 :{BLACK}({COMMA16} أسبوع باقً) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :أظهر الرسائل الحالية STR_5489 :Show only tracked guests @@ -3310,7 +3308,7 @@ STR_6030 :Scenery picker. Click any scenery on the map to select the same pie STR_6031 ::وصف السرفر STR_6032 :ترحيب السرفر: STR_6033 :Path to RCT1 installation: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Please select your RCT1 directory STR_6036 :Clear STR_6037 :Please select a valid RCT1 directory @@ -3385,7 +3383,7 @@ STR_6107 :شاحنات الوحش STR_6109 :Hyper-Twister STR_6111 :Classic Mini Roller Coaster STR_6113 :A tall non-inverting roller coaster with large drops, high speed, and comfortable trains with only lap bar restraints -STR_6115 :Powered giant 4 x 4 trucks which can climb steep slopes +STR_6115 :Powered giant 4 × 4 trucks which can climb steep slopes STR_6116 :Wide roller coaster trains glide along smooth steel track, travelling through a variety of inversions STR_6119 :A cheap and easy to build roller coaster, but with a limited height STR_6120 :{BABYBLUE}New vehicle now available for {STRINGID}:{NEWLINE}{STRINGID} @@ -3455,7 +3453,7 @@ STR_6183 :مابعة{MOVE_X}{87}لا نقطة محددة STR_6184 :متابعة النقطة STR_6185 :تحديد النقطة STR_6186 :لا نقطة متابعة -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :إخراج STR_6189 :إدخال STR_6190 :لا يمكنك تحديد نقطة في حين أن القائمة الرئيسية مفعلة. @@ -3478,7 +3476,7 @@ STR_6217 :توافرية المسار \الرحلة STR_6218 :محاكاة الأفعوانيات المفتوحة 2 الرسمية STR_6219 :تعليم مشاكل المسار STR_6220 :أجعله مُستخدم -STR_6221 :{SMALLFONT}{BLACK هذا سوف يحدد المدخل والمخرج المعروف للرحلة للمنطقة هذه. فقط مدخل ومخرج واحد يمكن إسخدامة لكل محطة. +STR_6221 :{BLACK هذا سوف يحدد المدخل والمخرج المعروف للرحلة للمنطقة هذه. فقط مدخل ومخرج واحد يمكن إسخدامة لكل محطة. STR_6222 :لا يمكن وضع نقطة دخول الزوار هنا… STR_6223 :يجب أن يكون خارج حدود الحديقة! STR_6224 :{STRING} تم وضع نقطة دخول الزوار. @@ -3569,7 +3567,7 @@ STR_6325 :حاكي الرحلة/المزار STR_6326 :…{POP16}{POP16}{POP16}{STRINGID} لا يمكن محاكاة STR_6327 :خلفية شفافة للقطات الشاشة العملاقة STR_6328 :.مع هذا الإعداد، صور لقطة الشاشة العملاقة ستحصل علي خلفية شفافة بدلاً من الخلفية السوداء الإفتراضية -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} ############# # Scenarios # diff --git a/data/language/ca-ES.txt b/data/language/ca-ES.txt index 49dd6f3a09..681184493a 100644 --- a/data/language/ca-ES.txt +++ b/data/language/ca-ES.txt @@ -238,8 +238,8 @@ STR_0831 :Allunya la vista. STR_0832 :Gira la càmera 90° en sentit horari. STR_0833 :Posa la partida en pausa. STR_0834 :Opcions del joc i de la partida -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :Quant a l'«OpenRCT2» STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer. Tots els drets reservats. @@ -797,14 +797,14 @@ STR_1410 :Torre vertical STR_1411 :{STRINGID} pel mig STR_1412 :{WINDOW_COLOUR_3}No es disposa de les dades estadístiques d'aquesta atracció. STR_1413 :{WINDOW_COLOUR_3}Les dades estadístiques s'enregistraran quan el proper {STRINGID} surti de {STRINGID}. -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Velocitat STR_1416 :{WINDOW_COLOUR_2}Altitud STR_1417 :{WINDOW_COLOUR_2}Acceleracions verticals STR_1418 :{WINDOW_COLOUR_2}Acceleracions laterals -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :S'estan desant les dades de {POP16}{STRINGID} STR_1423 :Camí de la cua STR_1424 :Camí @@ -863,131 +863,131 @@ STR_1476 :{WINDOW_COLOUR_2}Nivell d'intensitat: {BLACK}Encara no se sap STR_1477 :{WINDOW_COLOUR_2}Nivell d'intensitat: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Nivell de nàusea: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Nivell de nàusea: {BLACK}Encara no se sap -STR_1480 :{SMALLFONT}«No puc pagar {STRINGID}». -STR_1481 :{SMALLFONT}«He gastat tots els diners». -STR_1482 :{SMALLFONT}«Estic marejat». -STR_1483 :{SMALLFONT}«Estic molt marejat». -STR_1484 :{SMALLFONT}«Vull provar alguna atracció més intensa que {STRINGID}». -STR_1485 :{SMALLFONT}«{STRINGID} sembla massa intensa per mi». -STR_1486 :{SMALLFONT}«Encara no m'he acabat {STRINGID}». -STR_1487 :{SMALLFONT}«Em marejo només veure {STRINGID}». -STR_1488 :{SMALLFONT}«No penso pagar tant per pujar a {STRINGID}». -STR_1489 :{SMALLFONT}«Vull anar-me'n a casa». -STR_1490 :{SMALLFONT}«{STRINGID} està bé de preu». -STR_1491 :{SMALLFONT}«Ja tinc {STRINGID}». -STR_1492 :{SMALLFONT}«No em puc permetre {STRINGID}». -STR_1493 :{SMALLFONT}«No tinc gana». -STR_1494 :{SMALLFONT}«No tinc set». -STR_1495 :{SMALLFONT}«Ajuda! M'ofego!» -STR_1496 :{SMALLFONT}«M'he perdut!» -STR_1497 :{SMALLFONT}«{STRINGID} ha estat bé». -STR_1498 :{SMALLFONT}«He fet cua per {STRINGID} durant una eternitat». -STR_1499 :{SMALLFONT}«Estic cansat». -STR_1500 :{SMALLFONT}«Tinc gana». -STR_1501 :{SMALLFONT}«Tinc set». -STR_1502 :{SMALLFONT}«He d'anar al lavabo». -STR_1503 :{SMALLFONT}«No puc trobar {STRINGID}». -STR_1504 :{SMALLFONT}«No penso pagar tant per {STRINGID}». -STR_1505 :{SMALLFONT}«No vull pujar a {STRINGID} mentre plou». -STR_1506 :{SMALLFONT}«Això està molt brut». -STR_1507 :{SMALLFONT}«No puc trobar la sortida». -STR_1508 :{SMALLFONT}«Vull baixar de {STRINGID}». -STR_1509 :{SMALLFONT}«Vull sortir de {STRINGID}» -STR_1510 :{SMALLFONT}«No pujaré a {STRINGID} - No és gens segur». -STR_1511 :{SMALLFONT}«Aquest camí és repugnant». -STR_1512 :{SMALLFONT}«Això és angoixant. Hi ha massa gent». -STR_1513 :{SMALLFONT}«Aquí hi ha molt vandalisme». -STR_1514 :{SMALLFONT}«Aquestes vistes són impressionants!» -STR_1515 :{SMALLFONT}«Aquest parc està molt net i força endreçat». -STR_1516 :{SMALLFONT}«Aquests salts de les fonts són magnífics». -STR_1517 :{SMALLFONT}«La música és agradable». -STR_1518 :{SMALLFONT}«Aquest globus de {STRINGID} està bé de preu». -STR_1519 :{SMALLFONT}«Aquesta joguina de peluix de {STRINGID} està bé de preu». -STR_1520 :{SMALLFONT}«Aquest parc del mapa de {STRINGID} està bé de preu». -STR_1521 :{SMALLFONT}«Aquesta foto de record de l'atracció {STRINGID} està bé de preu». -STR_1522 :{SMALLFONT}«Aquest paraigües de {STRINGID} està bé de preu». -STR_1523 :{SMALLFONT}«Aquesta beguda de {STRINGID} està bé de preu». -STR_1524 :{SMALLFONT}«Aquesta hamburguesa de {STRINGID} està bé de preu». -STR_1525 :{SMALLFONT}«Aquestes patates fregides de {STRINGID} estan bé de preu». -STR_1526 :{SMALLFONT}«Aquest gelat de {STRINGID} està bé de preu». -STR_1527 :{SMALLFONT}«Aquest cotó fluix de sucre{STRINGID} està bé de preu». +STR_1480 :«No puc pagar {STRINGID}». +STR_1481 :«He gastat tots els diners». +STR_1482 :«Estic marejat». +STR_1483 :«Estic molt marejat». +STR_1484 :«Vull provar alguna atracció més intensa que {STRINGID}». +STR_1485 :«{STRINGID} sembla massa intensa per mi». +STR_1486 :«Encara no m'he acabat {STRINGID}». +STR_1487 :«Em marejo només veure {STRINGID}». +STR_1488 :«No penso pagar tant per pujar a {STRINGID}». +STR_1489 :«Vull anar-me'n a casa». +STR_1490 :«{STRINGID} està bé de preu». +STR_1491 :«Ja tinc {STRINGID}». +STR_1492 :«No em puc permetre {STRINGID}». +STR_1493 :«No tinc gana». +STR_1494 :«No tinc set». +STR_1495 :«Ajuda! M'ofego!» +STR_1496 :«M'he perdut!» +STR_1497 :«{STRINGID} ha estat bé». +STR_1498 :«He fet cua per {STRINGID} durant una eternitat». +STR_1499 :«Estic cansat». +STR_1500 :«Tinc gana». +STR_1501 :«Tinc set». +STR_1502 :«He d'anar al lavabo». +STR_1503 :«No puc trobar {STRINGID}». +STR_1504 :«No penso pagar tant per {STRINGID}». +STR_1505 :«No vull pujar a {STRINGID} mentre plou». +STR_1506 :«Això està molt brut». +STR_1507 :«No puc trobar la sortida». +STR_1508 :«Vull baixar de {STRINGID}». +STR_1509 :«Vull sortir de {STRINGID}» +STR_1510 :«No pujaré a {STRINGID} - No és gens segur». +STR_1511 :«Aquest camí és repugnant». +STR_1512 :«Això és angoixant. Hi ha massa gent». +STR_1513 :«Aquí hi ha molt vandalisme». +STR_1514 :«Aquestes vistes són impressionants!» +STR_1515 :«Aquest parc està molt net i força endreçat». +STR_1516 :«Aquests salts de les fonts són magnífics». +STR_1517 :«La música és agradable». +STR_1518 :«Aquest globus de {STRINGID} està bé de preu». +STR_1519 :«Aquesta joguina de peluix de {STRINGID} està bé de preu». +STR_1520 :«Aquest parc del mapa de {STRINGID} està bé de preu». +STR_1521 :«Aquesta foto de record de l'atracció {STRINGID} està bé de preu». +STR_1522 :«Aquest paraigües de {STRINGID} està bé de preu». +STR_1523 :«Aquesta beguda de {STRINGID} està bé de preu». +STR_1524 :«Aquesta hamburguesa de {STRINGID} està bé de preu». +STR_1525 :«Aquestes patates fregides de {STRINGID} estan bé de preu». +STR_1526 :«Aquest gelat de {STRINGID} està bé de preu». +STR_1527 :«Aquest cotó fluix de sucre{STRINGID} està bé de preu». STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}«Aquest tros de pizza de {STRINGID} està bé de preu». +STR_1531 :«Aquest tros de pizza de {STRINGID} està bé de preu». STR_1532 : -STR_1533 :{SMALLFONT}«Aquestes crispetes de {STRINGID} estan bé de preu». -STR_1534 :{SMALLFONT}«Aquest entrepà de salsitxa de Frankfurt {STRINGID} està bé de preu». -STR_1535 :{SMALLFONT}«Aquest tentacle de {STRINGID} està bé de preu». -STR_1536 :{SMALLFONT}«Aquesta gorra de {STRINGID} està bé de preu». -STR_1537 :{SMALLFONT}«Aquesta poma de caramel {STRINGID} està bé de preu». -STR_1538 :{SMALLFONT}«Aquesta samarreta de {STRINGID} està bé de preu». -STR_1539 :{SMALLFONT}«Aquest dònut de {STRINGID} està bé de preu». -STR_1540 :{SMALLFONT}«Aquest cafè de {STRINGID} està bé de preu». +STR_1533 :«Aquestes crispetes de {STRINGID} estan bé de preu». +STR_1534 :«Aquest entrepà de salsitxa de Frankfurt {STRINGID} està bé de preu». +STR_1535 :«Aquest tentacle de {STRINGID} està bé de preu». +STR_1536 :«Aquesta gorra de {STRINGID} està bé de preu». +STR_1537 :«Aquesta poma de caramel {STRINGID} està bé de preu». +STR_1538 :«Aquesta samarreta de {STRINGID} està bé de preu». +STR_1539 :«Aquest dònut de {STRINGID} està bé de preu». +STR_1540 :«Aquest cafè de {STRINGID} està bé de preu». STR_1541 : -STR_1542 :{SMALLFONT}«Aquest pollastre fregit de {STRINGID} està bé de preu». -STR_1543 :{SMALLFONT}«Aquesta llimonada {STRINGID} està bé de preu». +STR_1542 :«Aquest pollastre fregit de {STRINGID} està bé de preu». +STR_1543 :«Aquesta llimonada {STRINGID} està bé de preu». STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}«Vaja!» -STR_1551 :{SMALLFONT}«Tinc l'estranya sensació que algú m'està vigilant». -STR_1552 :{SMALLFONT}«No penso pagar tant per un globus de {STRINGID}». -STR_1553 :{SMALLFONT}«No penso pagar tant per una joguina de peluix {STRINGID}». -STR_1554 :{SMALLFONT}«No penso pagar tant per un mapa del parc de {STRINGID}». -STR_1555 :{SMALLFONT}«No penso pagar tant per una foto de record de {STRINGID}». -STR_1556 :{SMALLFONT}«No penso pagar tant per un paraigües de {STRINGID}». -STR_1557 :{SMALLFONT}«No penso pagar tant per una beguda de {STRINGID}». -STR_1558 :{SMALLFONT}«No penso pagar tant per una hamburguesa de {STRINGID}». -STR_1559 :{SMALLFONT}«No penso pagar tant per unes patates fregides {STRINGID}». -STR_1560 :{SMALLFONT}«No penso pagar tant per un gelat de {STRINGID}». -STR_1561 :{SMALLFONT}«No penso pagar tant pel cotó fluix de caramel de {STRINGID}». +STR_1550 :«Vaja!» +STR_1551 :«Tinc l'estranya sensació que algú m'està vigilant». +STR_1552 :«No penso pagar tant per un globus de {STRINGID}». +STR_1553 :«No penso pagar tant per una joguina de peluix {STRINGID}». +STR_1554 :«No penso pagar tant per un mapa del parc de {STRINGID}». +STR_1555 :«No penso pagar tant per una foto de record de {STRINGID}». +STR_1556 :«No penso pagar tant per un paraigües de {STRINGID}». +STR_1557 :«No penso pagar tant per una beguda de {STRINGID}». +STR_1558 :«No penso pagar tant per una hamburguesa de {STRINGID}». +STR_1559 :«No penso pagar tant per unes patates fregides {STRINGID}». +STR_1560 :«No penso pagar tant per un gelat de {STRINGID}». +STR_1561 :«No penso pagar tant pel cotó fluix de caramel de {STRINGID}». STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}«No penso pagar tant per un tros de pizza de {STRINGID}». +STR_1565 :«No penso pagar tant per un tros de pizza de {STRINGID}». STR_1566 : -STR_1567 :{SMALLFONT}«No penso pagar tant per unes crispetes de {STRINGID}». -STR_1568 :{SMALLFONT}«No penso pagar tant per un entrepà de salsitxa de Frankfurt de {STRINGID}». -STR_1569 :{SMALLFONT}«No penso pagar tant per un tentacle de {STRINGID}». -STR_1570 :{SMALLFONT}«No penso pagar tant per una gorra de {STRINGID}». -STR_1571 :{SMALLFONT}«No penso pagar tant per una poma de caramel de {STRINGID}». -STR_1572 :{SMALLFONT}«No penso pagar tant per una samarreta de {STRINGID}». -STR_1573 :{SMALLFONT}«No penso pagar tant per un dònut de {STRINGID}». -STR_1574 :{SMALLFONT}«No penso pagar tant pel cafè de {STRINGID}». +STR_1567 :«No penso pagar tant per unes crispetes de {STRINGID}». +STR_1568 :«No penso pagar tant per un entrepà de salsitxa de Frankfurt de {STRINGID}». +STR_1569 :«No penso pagar tant per un tentacle de {STRINGID}». +STR_1570 :«No penso pagar tant per una gorra de {STRINGID}». +STR_1571 :«No penso pagar tant per una poma de caramel de {STRINGID}». +STR_1572 :«No penso pagar tant per una samarreta de {STRINGID}». +STR_1573 :«No penso pagar tant per un dònut de {STRINGID}». +STR_1574 :«No penso pagar tant pel cafè de {STRINGID}». STR_1575 : -STR_1576 :{SMALLFONT}«No penso pagar tant pel pollastre fregit de {STRINGID}». -STR_1577 :{SMALLFONT}«No penso pagar tant per una llimonada de {STRINGID}». +STR_1576 :«No penso pagar tant pel pollastre fregit de {STRINGID}». +STR_1577 :«No penso pagar tant per una llimonada de {STRINGID}». STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}«Aquesta foto de record de {STRINGID} està bé de preu». -STR_1585 :{SMALLFONT}«Aquesta foto de record de {STRINGID} està bé de preu». -STR_1586 :{SMALLFONT}«Aquesta foto de record de {STRINGID} està bé de preu». -STR_1587 :{SMALLFONT}«Aquesta galeta pretzel de {STRINGID} està bé de preu». -STR_1588 :{SMALLFONT}«Aquesta xocolata calenta de {STRINGID} està bé de preu». -STR_1589 :{SMALLFONT}«Aquest te gelat de {STRINGID} està bé de preu». -STR_1590 :{SMALLFONT}«Aquest xurro de {STRINGID} està bé de preu». -STR_1591 :{SMALLFONT}«Aquestes ulleres de sol de {STRINGID} estan bé de preu». -STR_1592 :{SMALLFONT}«Aquests fideus xinesos amb vedella de {STRINGID} estan bé de preu». -STR_1593 :{SMALLFONT}«Aquests fideus xinesos d'arròs fregits de {STRINGID} estan bé de preu». -STR_1594 :{SMALLFONT}«Aquesta sopa de wonton de {STRINGID} està bé de preu». -STR_1595 :{SMALLFONT}«Aquesta sopa de mandonguilles de {STRINGID} està bé de preu». -STR_1596 :{SMALLFONT}«Aquest suc de fruita de {STRINGID} està bé de preu». -STR_1597 :{SMALLFONT}«Aquesta llet de soia de {STRINGID} està bé de preu». -STR_1598 :{SMALLFONT}«Aquest sujeonggwa de {STRINGID} està bé de preu». -STR_1599 :{SMALLFONT}«Aquest sandvitx submarí de {STRINGID} està bé de preu». -STR_1600 :{SMALLFONT}«Aquesta galeta de {STRINGID} està bé de preu». +STR_1584 :«Aquesta foto de record de {STRINGID} està bé de preu». +STR_1585 :«Aquesta foto de record de {STRINGID} està bé de preu». +STR_1586 :«Aquesta foto de record de {STRINGID} està bé de preu». +STR_1587 :«Aquesta galeta pretzel de {STRINGID} està bé de preu». +STR_1588 :«Aquesta xocolata calenta de {STRINGID} està bé de preu». +STR_1589 :«Aquest te gelat de {STRINGID} està bé de preu». +STR_1590 :«Aquest xurro de {STRINGID} està bé de preu». +STR_1591 :«Aquestes ulleres de sol de {STRINGID} estan bé de preu». +STR_1592 :«Aquests fideus xinesos amb vedella de {STRINGID} estan bé de preu». +STR_1593 :«Aquests fideus xinesos d'arròs fregits de {STRINGID} estan bé de preu». +STR_1594 :«Aquesta sopa de wonton de {STRINGID} està bé de preu». +STR_1595 :«Aquesta sopa de mandonguilles de {STRINGID} està bé de preu». +STR_1596 :«Aquest suc de fruita de {STRINGID} està bé de preu». +STR_1597 :«Aquesta llet de soia de {STRINGID} està bé de preu». +STR_1598 :«Aquest sujeonggwa de {STRINGID} està bé de preu». +STR_1599 :«Aquest sandvitx submarí de {STRINGID} està bé de preu». +STR_1600 :«Aquesta galeta de {STRINGID} està bé de preu». STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}«Aquesta salsitxa rostida de {STRINGID} està bé de preu». +STR_1604 :«Aquesta salsitxa rostida de {STRINGID} està bé de preu». STR_1605 : STR_1606 : STR_1607 : @@ -999,27 +999,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}«No penso pagar tant per una foto de record de {STRINGID}». -STR_1617 :{SMALLFONT}«No penso pagar tant per una foto de record de {STRINGID}». -STR_1618 :{SMALLFONT}«No penso pagar tant per una foto de record de {STRINGID}». -STR_1619 :{SMALLFONT}«No penso pagar tant per una galeta pretzel de {STRINGID}». -STR_1620 :{SMALLFONT}«No penso pagar tant per una xocolata calenta de {STRINGID}». -STR_1621 :{SMALLFONT}«No penso pagar tant per un te gelat de {STRINGID}». -STR_1622 :{SMALLFONT}«No penso pagar tant per un xurro de {STRINGID}». -STR_1623 :{SMALLFONT}«No penso pagar tant per unes ulleres de sol {STRINGID}». -STR_1624 :{SMALLFONT}«No penso pagar tant per uns fideus xinesos amb vedella de {STRINGID}». -STR_1625 :{SMALLFONT}«No penso pagar tant per uns fideus xinesos d'arròs fregits de {STRINGID}». -STR_1626 :{SMALLFONT}«No penso pagar tant per una sopa wonton de {STRINGID}». -STR_1627 :{SMALLFONT}«No penso pagar tant per una sopa de mandonguilles de {STRINGID}». -STR_1628 :{SMALLFONT}«No penso pagar tant per un suc de fruita de {STRINGID}». -STR_1629 :{SMALLFONT}«No penso pagar tant per la llet de soia de {STRINGID}». -STR_1630 :{SMALLFONT}«No penso pagar tant per un sujeonggwa de {STRINGID}». -STR_1631 :{SMALLFONT}«No penso pagar tant per un sandvitx submarí de {STRINGID}». -STR_1632 :{SMALLFONT}«No penso pagar tant per una galeta de {STRINGID}» +STR_1616 :«No penso pagar tant per una foto de record de {STRINGID}». +STR_1617 :«No penso pagar tant per una foto de record de {STRINGID}». +STR_1618 :«No penso pagar tant per una foto de record de {STRINGID}». +STR_1619 :«No penso pagar tant per una galeta pretzel de {STRINGID}». +STR_1620 :«No penso pagar tant per una xocolata calenta de {STRINGID}». +STR_1621 :«No penso pagar tant per un te gelat de {STRINGID}». +STR_1622 :«No penso pagar tant per un xurro de {STRINGID}». +STR_1623 :«No penso pagar tant per unes ulleres de sol {STRINGID}». +STR_1624 :«No penso pagar tant per uns fideus xinesos amb vedella de {STRINGID}». +STR_1625 :«No penso pagar tant per uns fideus xinesos d'arròs fregits de {STRINGID}». +STR_1626 :«No penso pagar tant per una sopa wonton de {STRINGID}». +STR_1627 :«No penso pagar tant per una sopa de mandonguilles de {STRINGID}». +STR_1628 :«No penso pagar tant per un suc de fruita de {STRINGID}». +STR_1629 :«No penso pagar tant per la llet de soia de {STRINGID}». +STR_1630 :«No penso pagar tant per un sujeonggwa de {STRINGID}». +STR_1631 :«No penso pagar tant per un sandvitx submarí de {STRINGID}». +STR_1632 :«No penso pagar tant per una galeta de {STRINGID}» STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}«No penso pagar tant per una salsitxa rostida de {STRINGID}». +STR_1636 :«No penso pagar tant per una salsitxa rostida de {STRINGID}». STR_1637 : STR_1638 : STR_1639 : @@ -1031,10 +1031,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}«Ajuda! Baixeu-me!» -STR_1649 :{SMALLFONT}«M'estic quedant sense diners!» -STR_1650 :{SMALLFONT}«Ostres! Estan construint una atracció nova!» -STR_1653 :{SMALLFONT}«…i aquí estem en {STRINGID}!» +STR_1648 :«Ajuda! Baixeu-me!» +STR_1649 :«M'estic quedant sense diners!» +STR_1650 :«Ostres! Estan construint una atracció nova!» +STR_1653 :«…i aquí estem en {STRINGID}!» STR_1654 :{WINDOW_COLOUR_2}Pensaments recents: STR_1655 :Construeix camí al terra STR_1656 :Construeix camí al pont o al túnel @@ -1064,12 +1064,12 @@ STR_1679 :Hèlix cap amunt (a l'esquerra) STR_1680 :Hèlix cap amunt (a la dreta) STR_1681 :Hèlix cap avall (a l'esquerra) STR_1682 :Hèlix cap avall (a la dreta) -STR_1683 :Mida de base 2 x 2 -STR_1684 :Mida de base 4 x 4 -STR_1685 :Mida de base 2 x 4 -STR_1686 :Mida de base 5 x 1 +STR_1683 :Mida de base 2 × 2 +STR_1684 :Mida de base 4 × 4 +STR_1685 :Mida de base 2 × 4 +STR_1686 :Mida de base 5 × 1 STR_1687 :Esquitxada d'aigua -STR_1688 :Mida de base 4 x 1 +STR_1688 :Mida de base 4 × 1 STR_1689 :Bloc de frenat STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Cost: {BLACK}{CURRENCY} @@ -1186,7 +1186,7 @@ STR_1808 :{WINDOW_COLOUR_2}Última avaria: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Avaria actual: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Càrrega: STR_1811 :No es pot construir aquí… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Altres objectes STR_1814 :Accions STR_1815 :Pensaments @@ -1195,7 +1195,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tots els visitants STR_1819 :{WINDOW_COLOUR_2}Tots els visitants (resum) STR_1820 :{WINDOW_COLOUR_2}Visitants {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Visitants que pensen {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Visitants que pensen {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitants pensant en {POP16}{STRINGID} STR_1823 :Mostra els pensaments dels visitants sobre aquesta atracció STR_1824 :Mostra els visitants en aquesta atracció @@ -1298,7 +1298,6 @@ STR_1921 :Comença una nova partida STR_1922 :Continua una partida desada STR_1924 :Surt STR_1925 :Aquesta persona aquí no es pot col·locar… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} s'ha avariat STR_1928 :{RED}{STRINGID} sinistrada! STR_1929 :{RED}{STRINGID} encara no s'ha arreglat.{NEWLINE}Comproveu on estan els mecànics i penseu si cal organitzar-los millor. @@ -1579,7 +1578,7 @@ STR_2218 :{RED}{STRINGID} de {STRINGID} encara no ha tornat a {STRINGID}!{NEW STR_2219 :{RED}{COMMA16} persones han mort en l'accident de {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Valoració del parc: {BLACK}{COMMA16} STR_2221 :Valoració del parc: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Visitants del parc: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Efectiu: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Efectiu: {RED}{CURRENCY2DP} @@ -1592,7 +1591,7 @@ STR_2231 :Frens de caiguda lliure STR_2232 :Cable d'elevació STR_2233 :Informació del parc STR_2234 :Missatges recents -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Gener STR_2237 :Febrer STR_2238 :Març @@ -1672,7 +1671,7 @@ STR_2312 :{WINDOW_COLOUR_2}Nivell d'intensitat: {BLACK}{COMMA2DP32} (aprox.) STR_2313 :{WINDOW_COLOUR_2}Nivell de nàusea: {BLACK}{COMMA2DP32} (aprox.) STR_2314 :{WINDOW_COLOUR_2}Longitud del recorregut: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Cost: {BLACK}al voltant de {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Espai necessari: {BLACK}{COMMA16} x {COMMA16} blocs +STR_2316 :{WINDOW_COLOUR_2}Espai necessari: {BLACK}{COMMA16} × {COMMA16} blocs STR_2321 :{WINDOW_COLOUR_2}Nombre d'atraccions: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Empleats: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Extensió del parc: {BLACK}{COMMA32} m² @@ -1796,7 +1795,7 @@ STR_2450 :{YELLOW}Ha acabat la campanya de màrqueting del parc. STR_2451 :{YELLOW}Ha acabat la campanya de màrqueting de {STRINGID}. STR_2452 :{WINDOW_COLOUR_2}Efectiu (excloent préstec): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Efectiu (excloent préstec): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Mostra les finances STR_2458 :Mostra el gràfic de l'efectiu disponible (excloent el préstec) al llarg del temps. STR_2459 :Mostra el gràfic de la valoració del parc al llarg del temps. @@ -1906,7 +1905,6 @@ STR_2636 :/ (bloc numèric) STR_2669 :Bloq Núm STR_2670 :Bloq Despl STR_2680 :S'han completat totes les recerques. -STR_2681 :{MEDIUMFONT}{BLACK}Incrementa els diners de l'empresa en {CURRENCY}. STR_2684 :Arriba un grup gran de visitants. STR_2685 :Paràmetres de soroll del símplex STR_2686 :Baix: @@ -1993,7 +1991,7 @@ STR_2789 :{WINDOW_COLOUR_2}No heu aconseguit els vostres objectius! STR_2790 :Introduïu el vostre nom a la taula de l'escenari. STR_2791 :Introduïu el vostre nom STR_2792 :Si voleu, podeu introduir el vostre nom a la taula de l'escenari: -STR_2793 :{SMALLFONT}(Superat per {STRINGID}) +STR_2793 :(Superat per {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Superat per: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} amb un valor d'empresa de: {BLACK}{CURRENCY} STR_2795 :Ordena STR_2796 :Ordena la llista d'atraccions segons el criteri seleccionat @@ -2307,7 +2305,7 @@ STR_3208 :Gestor dels dissenys de via STR_3209 :Torna al pas anterior: STR_3210 :Avança al pas següent: STR_3211 :Mida del mapa: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :La mida del mapa no es pot baixar més. STR_3214 :La mida del mapa no es pot augmentar més. STR_3215 :Massa prop de la vora del mapa. @@ -2502,7 +2500,7 @@ STR_5134 :Ajusta el propietari d'una àrea més gran. STR_5135 :Propietaris i drets de construcció STR_5136 :Drets de construcció STR_5137 :Desactiva límits de funcionament -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Desactiva fallades dels frens STR_5141 :Desactiva totes les avaries @@ -2648,7 +2646,7 @@ STR_5297 :Obre el parc STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Acomiada empleats ràpidament -STR_5301 :{MEDIUMFONT}{BLACK}Elimina el deute del préstec. +STR_5301 :Elimina el deute del préstec. STR_5302 :Esborra el préstec STR_5303 :Permet construir en pausa STR_5304 :Seqüència del menú principal: @@ -2807,7 +2805,7 @@ STR_5481 :Temes STR_5482 :{WINDOW_COLOUR_2}Temps des de l'última revisió: {BLACK}1 minut STR_5483 :{BLACK}(queden {COMMA16} setmanes) STR_5484 :{BLACK}(queden {COMMA16} setmanes) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Mostra els missatges recents. STR_5489 :Mostra només els visitants amb seguiment. @@ -3312,7 +3310,7 @@ STR_6030 :Seleccionador de decoracions. Seleccioneu una decoració del mapa p STR_6031 :Descripció del servidor: STR_6032 :Missatge de benvinguda: STR_6033 :Camí de la instal·lació del RCT1: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Seleccioneu el camí d'instal·lació del RCT1 STR_6036 :Esborra STR_6037 :La carpeta seleccionada no conté una instal·lació del RCT1 vàlida. @@ -3457,7 +3455,7 @@ STR_6183 :Segueix{MOVE_X}{87}No s'ha seleccionat cap sprite STR_6184 :Segueix sprite STR_6185 :Selecciona sprite STR_6186 :No s'ha seleccionat cap sprite -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vòmit STR_6189 :Ànec STR_6190 :No podeu seleccionar cap sprite mentre la pantalla del menú de presentació estigui activa. @@ -3607,7 +3605,7 @@ STR_6356 :Apareixeran ànecs si el parc té aigua. STR_6357 :Treu tots els ànecs del mapa. STR_6358 :Pàgina {UINT16} STR_6359 :{POP16}{POP16}Pàgina {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Activa els efectes d'enllumenat de les atraccions (experimental) STR_6362 :Si s'activa, els vehicles de les atraccions amb vies s'encendran durant la nit. STR_6363 :S'ha copiat el text al porta-retalls. diff --git a/data/language/cs-CZ.txt b/data/language/cs-CZ.txt index 071912982e..06aeafb10d 100644 --- a/data/language/cs-CZ.txt +++ b/data/language/cs-CZ.txt @@ -236,8 +236,8 @@ STR_0831 :Oddálit pohled STR_0832 :Otočit o 90° po směru hod. ruč. STR_0833 :Pozastavit hru STR_0834 :Uložení a nastavení hry -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :O hře OpenRCT2 STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, všechna práva vyhrazena @@ -796,14 +796,14 @@ STR_1410 :Svislá věž STR_1411 :{STRINGID} v cestě STR_1412 :{WINDOW_COLOUR_3}Měření dat není pro tento typ atrakcí dostupné STR_1413 :{WINDOW_COLOUR_3}Měření dat začne, až další {STRINGID} vyrazí z {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Rychlost STR_1416 :{WINDOW_COLOUR_2}Výška STR_1417 :{WINDOW_COLOUR_2}Vert.zrych. STR_1418 :{WINDOW_COLOUR_2}Late.zrych. -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Měření dat z {POP16}{STRINGID} STR_1423 :Fronta STR_1424 :Cesta @@ -862,131 +862,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intenzita: {BLACK}Zatím neznámá STR_1477 :{WINDOW_COLOUR_2}Intenzita: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Nevolnost: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Nevolnost: {BLACK}Zatím neznámá -STR_1480 :{SMALLFONT}„Nemohu si dovolit {STRINGID}“ -STR_1481 :{SMALLFONT}„Utratil jsem všechny své peníze“ -STR_1482 :{SMALLFONT}„Je mi špatně“ -STR_1483 :{SMALLFONT}„Je mi hrozně špatně“ -STR_1484 :{SMALLFONT}„Chci na něco víc adrenalinového, než {STRINGID}“ -STR_1485 :{SMALLFONT}„{STRINGID} na mě vypadá moc intenzivně“ -STR_1486 :{SMALLFONT}„Ještě jsem nevypil/nedojedl {STRINGID}“ -STR_1487 :{SMALLFONT}„Jen ze pohledu na {STRINGID} se mi dělá zle“ -STR_1488 :{SMALLFONT}„Nezaplatím tak moc za vstup na {STRINGID}“ -STR_1489 :{SMALLFONT}„Chci jít domů“ -STR_1490 :{SMALLFONT}„{STRINGID} se opravdu vyplatí“ -STR_1491 :{SMALLFONT}„Už mám {STRINGID}“ -STR_1492 :{SMALLFONT}„Nemohu si dovolit {STRINGID}“ -STR_1493 :{SMALLFONT}„Nemám hlad“ -STR_1494 :{SMALLFONT}„Nemám žízeň“ -STR_1495 :{SMALLFONT}„Pomoc! Topím se!“ -STR_1496 :{SMALLFONT}„Ztratil jsem se!“ -STR_1497 :{SMALLFONT}„Na {STRINGID} to bylo super“ -STR_1498 :{SMALLFONT}„Čekám v řadě na {STRINGID} už věky“ -STR_1499 :{SMALLFONT}„Jsem unavený“ -STR_1500 :{SMALLFONT}„Mám hlad“ -STR_1501 :{SMALLFONT}„Mám žízeň“ -STR_1502 :{SMALLFONT}„Potřebuji jít na toaletu“ -STR_1503 :{SMALLFONT}„Nemůžu najít {STRINGID}“ -STR_1504 :{SMALLFONT}„Nezaplatím tak moc, jen abych mohl na {STRINGID}“ -STR_1505 :{SMALLFONT}„Nepůjdu na {STRINGID} když prší“ -STR_1506 :{SMALLFONT}„Je tu hrozný nepořádek“ -STR_1507 :{SMALLFONT}„Nemůžu najít východ z praku“ -STR_1508 :{SMALLFONT}„Chci pryč z {STRINGID}“ -STR_1509 :{SMALLFONT}„Chci se dostat pryč z {STRINGID}“ -STR_1510 :{SMALLFONT}„Nepůjdu na {STRINGID} - není to bezpečné“ -STR_1511 :{SMALLFONT}„Tahle cesta je odporná“ -STR_1512 :{SMALLFONT}„Je to tady hrozně přelidněné“ -STR_1513 :{SMALLFONT}„Je tu spousta vandalů“ -STR_1514 :{SMALLFONT}„Krásné kulisy!“ -STR_1515 :{SMALLFONT}„Tenhle park je opravdu čistý“ -STR_1516 :{SMALLFONT}„Ty fontány jsou opravdu pěkné“ -STR_1517 :{SMALLFONT}„Hraje tu hezká hudba“ -STR_1518 :{SMALLFONT}„Tenhle balónek z {STRINGID} je skutečně výhodný“ -STR_1519 :{SMALLFONT}„Tenhle plyšák z {STRINGID} se opravdu vyplatí“ -STR_1520 :{SMALLFONT}„Tahle mapa parku z {STRINGID} se opravdu vyplatí“ -STR_1521 :{SMALLFONT}„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ -STR_1522 :{SMALLFONT}„Tenhle deštník z {STRINGID} se opravdu vyplatí“ -STR_1523 :{SMALLFONT}„Tohle pití od {STRINGID} se opravdu vyplatí“ -STR_1524 :{SMALLFONT}„Tenhle burgr od {STRINGID} se opravdu vyplatí“ -STR_1525 :{SMALLFONT}„Tyhle hranolky od {STRINGID} se opravdu vyplatí“ -STR_1526 :{SMALLFONT}„Ta zmrzlina od {STRINGID} se opravdu vyplatí“ -STR_1527 :{SMALLFONT}„Tahle cukrová vata od {STRINGID} se opravdu vyplatí“ +STR_1480 :„Nemohu si dovolit {STRINGID}“ +STR_1481 :„Utratil jsem všechny své peníze“ +STR_1482 :„Je mi špatně“ +STR_1483 :„Je mi hrozně špatně“ +STR_1484 :„Chci na něco víc adrenalinového, než {STRINGID}“ +STR_1485 :„{STRINGID} na mě vypadá moc intenzivně“ +STR_1486 :„Ještě jsem nevypil/nedojedl {STRINGID}“ +STR_1487 :„Jen ze pohledu na {STRINGID} se mi dělá zle“ +STR_1488 :„Nezaplatím tak moc za vstup na {STRINGID}“ +STR_1489 :„Chci jít domů“ +STR_1490 :„{STRINGID} se opravdu vyplatí“ +STR_1491 :„Už mám {STRINGID}“ +STR_1492 :„Nemohu si dovolit {STRINGID}“ +STR_1493 :„Nemám hlad“ +STR_1494 :„Nemám žízeň“ +STR_1495 :„Pomoc! Topím se!“ +STR_1496 :„Ztratil jsem se!“ +STR_1497 :„Na {STRINGID} to bylo super“ +STR_1498 :„Čekám v řadě na {STRINGID} už věky“ +STR_1499 :„Jsem unavený“ +STR_1500 :„Mám hlad“ +STR_1501 :„Mám žízeň“ +STR_1502 :„Potřebuji jít na toaletu“ +STR_1503 :„Nemůžu najít {STRINGID}“ +STR_1504 :„Nezaplatím tak moc, jen abych mohl na {STRINGID}“ +STR_1505 :„Nepůjdu na {STRINGID} když prší“ +STR_1506 :„Je tu hrozný nepořádek“ +STR_1507 :„Nemůžu najít východ z praku“ +STR_1508 :„Chci pryč z {STRINGID}“ +STR_1509 :„Chci se dostat pryč z {STRINGID}“ +STR_1510 :„Nepůjdu na {STRINGID} - není to bezpečné“ +STR_1511 :„Tahle cesta je odporná“ +STR_1512 :„Je to tady hrozně přelidněné“ +STR_1513 :„Je tu spousta vandalů“ +STR_1514 :„Krásné kulisy!“ +STR_1515 :„Tenhle park je opravdu čistý“ +STR_1516 :„Ty fontány jsou opravdu pěkné“ +STR_1517 :„Hraje tu hezká hudba“ +STR_1518 :„Tenhle balónek z {STRINGID} je skutečně výhodný“ +STR_1519 :„Tenhle plyšák z {STRINGID} se opravdu vyplatí“ +STR_1520 :„Tahle mapa parku z {STRINGID} se opravdu vyplatí“ +STR_1521 :„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ +STR_1522 :„Tenhle deštník z {STRINGID} se opravdu vyplatí“ +STR_1523 :„Tohle pití od {STRINGID} se opravdu vyplatí“ +STR_1524 :„Tenhle burgr od {STRINGID} se opravdu vyplatí“ +STR_1525 :„Tyhle hranolky od {STRINGID} se opravdu vyplatí“ +STR_1526 :„Ta zmrzlina od {STRINGID} se opravdu vyplatí“ +STR_1527 :„Tahle cukrová vata od {STRINGID} se opravdu vyplatí“ STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}„Tenhle kus pizzy od {STRINGID} se opravdu vyplatí“ +STR_1531 :„Tenhle kus pizzy od {STRINGID} se opravdu vyplatí“ STR_1532 : -STR_1533 :{SMALLFONT}„Tenhle popcorn od {STRINGID} se opravdu vyplatí“ -STR_1534 :{SMALLFONT}„Tenhle párek v rohlíku od {STRINGID} se opravdu vyplatí“ -STR_1535 :{SMALLFONT}„Tohle chapadlo od {STRINGID} se opravdu vyplatí“ -STR_1536 :{SMALLFONT}„Tahle čepice z {STRINGID} se opravdu vyplatí“ -STR_1537 :{SMALLFONT}„Tohle jablko v županu od {STRINGID} se opravdu vyplatí“ -STR_1538 :{SMALLFONT}„Tohle tričko od {STRINGID} se opravdu vyplatí“ -STR_1539 :{SMALLFONT}„Tenhle koblížek od {STRINGID} se opravdu vyplatí“ -STR_1540 :{SMALLFONT}„Tohle kafe od {STRINGID} se opravdu vyplatí“ +STR_1533 :„Tenhle popcorn od {STRINGID} se opravdu vyplatí“ +STR_1534 :„Tenhle párek v rohlíku od {STRINGID} se opravdu vyplatí“ +STR_1535 :„Tohle chapadlo od {STRINGID} se opravdu vyplatí“ +STR_1536 :„Tahle čepice z {STRINGID} se opravdu vyplatí“ +STR_1537 :„Tohle jablko v županu od {STRINGID} se opravdu vyplatí“ +STR_1538 :„Tohle tričko od {STRINGID} se opravdu vyplatí“ +STR_1539 :„Tenhle koblížek od {STRINGID} se opravdu vyplatí“ +STR_1540 :„Tohle kafe od {STRINGID} se opravdu vyplatí“ STR_1541 : -STR_1542 :{SMALLFONT}„Tohle smažené kuře od {STRINGID} se opravdu vyplatí“ -STR_1543 :{SMALLFONT}„Tahle limonáda od {STRINGID} se opravdu vyplatí“ +STR_1542 :„Tohle smažené kuře od {STRINGID} se opravdu vyplatí“ +STR_1543 :„Tahle limonáda od {STRINGID} se opravdu vyplatí“ STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}„Wow!“ -STR_1551 :{SMALLFONT}„Mám takový divný pocit, jako by mě někdo pozoroval“ -STR_1552 :{SMALLFONT}„Nezaplatím tak moc za balónek od {STRINGID}“ -STR_1553 :{SMALLFONT}„Nezaplatím tak moc za plyšáka od {STRINGID}“ -STR_1554 :{SMALLFONT}„Nezaplatím tak moc za mapu parku z {STRINGID}“ -STR_1555 :{SMALLFONT}„Nezaplatím tak moc za fotku z atrakce {STRINGID}“ -STR_1556 :{SMALLFONT}„Nezaplatím tak moc za deštník z {STRINGID}“ -STR_1557 :{SMALLFONT}„Nezaplatím tak moc za pití od {STRINGID}“ -STR_1558 :{SMALLFONT}„Nezaplatím tak moc za burgr od {STRINGID}“ -STR_1559 :{SMALLFONT}„Nezaplatím tak moc za hranolky od {STRINGID}“ -STR_1560 :{SMALLFONT}„Nezaplatím tak moc za zmrzlinu od {STRINGID}“ -STR_1561 :{SMALLFONT}„Nezaplatím tak moc za cukrovou vatu od {STRINGID}“ +STR_1550 :„Wow!“ +STR_1551 :„Mám takový divný pocit, jako by mě někdo pozoroval“ +STR_1552 :„Nezaplatím tak moc za balónek od {STRINGID}“ +STR_1553 :„Nezaplatím tak moc za plyšáka od {STRINGID}“ +STR_1554 :„Nezaplatím tak moc za mapu parku z {STRINGID}“ +STR_1555 :„Nezaplatím tak moc za fotku z atrakce {STRINGID}“ +STR_1556 :„Nezaplatím tak moc za deštník z {STRINGID}“ +STR_1557 :„Nezaplatím tak moc za pití od {STRINGID}“ +STR_1558 :„Nezaplatím tak moc za burgr od {STRINGID}“ +STR_1559 :„Nezaplatím tak moc za hranolky od {STRINGID}“ +STR_1560 :„Nezaplatím tak moc za zmrzlinu od {STRINGID}“ +STR_1561 :„Nezaplatím tak moc za cukrovou vatu od {STRINGID}“ STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}„Nezaplatím tak moc za kus pizzy od {STRINGID}“ +STR_1565 :„Nezaplatím tak moc za kus pizzy od {STRINGID}“ STR_1566 : -STR_1567 :{SMALLFONT}„Nezaplatím tak moc za popcorn od {STRINGID}“ -STR_1568 :{SMALLFONT}„Nezaplatím tak moc za párek v rohlíku od {STRINGID}“ -STR_1569 :{SMALLFONT}„Nezaplatím tak moc za chapadlo od {STRINGID}“ -STR_1570 :{SMALLFONT}„Nezaplatím tak moc za čepici z {STRINGID}“ -STR_1571 :{SMALLFONT}„Nezaplatím tak moc za jablko v županu od {STRINGID}“ -STR_1572 :{SMALLFONT}„Nezaplatím tak moc za tričko z {STRINGID}“ -STR_1573 :{SMALLFONT}„Nezaplatím tak moc za koblížek od {STRINGID}“ -STR_1574 :{SMALLFONT}„Nezaplatím tak moc za kafe od {STRINGID}“ +STR_1567 :„Nezaplatím tak moc za popcorn od {STRINGID}“ +STR_1568 :„Nezaplatím tak moc za párek v rohlíku od {STRINGID}“ +STR_1569 :„Nezaplatím tak moc za chapadlo od {STRINGID}“ +STR_1570 :„Nezaplatím tak moc za čepici z {STRINGID}“ +STR_1571 :„Nezaplatím tak moc za jablko v županu od {STRINGID}“ +STR_1572 :„Nezaplatím tak moc za tričko z {STRINGID}“ +STR_1573 :„Nezaplatím tak moc za koblížek od {STRINGID}“ +STR_1574 :„Nezaplatím tak moc za kafe od {STRINGID}“ STR_1575 : -STR_1576 :{SMALLFONT}„Nezaplatím tak moc za smažené kuře od {STRINGID}“ -STR_1577 :{SMALLFONT}„Nezaplatím tak moc za limonádu od {STRINGID}“ +STR_1576 :„Nezaplatím tak moc za smažené kuře od {STRINGID}“ +STR_1577 :„Nezaplatím tak moc za limonádu od {STRINGID}“ STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ -STR_1585 :{SMALLFONT}„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ -STR_1586 :{SMALLFONT}„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ -STR_1587 :{SMALLFONT}„Tenhle preclík od {STRINGID} se opravdu vyplatí“ -STR_1588 :{SMALLFONT}„Tahle horká čokoláda od {STRINGID} se opravdu vyplatí“ -STR_1589 :{SMALLFONT}„Tenhle ledový čaj od {STRINGID} se opravdu vyplatí“ -STR_1590 :{SMALLFONT}„Tahle palačinka od {STRINGID} se opravdu vyplatí“ -STR_1591 :{SMALLFONT}„Tyhle sluneční brýle z {STRINGID} se opravdu vyplatí“ -STR_1592 :{SMALLFONT}„Tahle nudlová polívka od {STRINGID} se opravdu vyplatí“ -STR_1593 :{SMALLFONT}„Tyhle smažené nudle od {STRINGID} se opravdu vyplatí“ -STR_1594 :{SMALLFONT}„Tahle čínská knedlíčková polévka od {STRINGID} se opravdu vyplatí“ -STR_1595 :{SMALLFONT}„Tahle knedlíčková polévka od {STRINGID} se opravdu vyplatí“ -STR_1596 :{SMALLFONT}„Tenhle ovocný džus od {STRINGID} se opravdu vyplatí“ -STR_1597 :{SMALLFONT}„Tohle sojové mléko od {STRINGID} se opravdu vyplatí“ -STR_1598 :{SMALLFONT}„Tahle suzungkwa od {STRINGID} se opravdu vyplatí“ -STR_1599 :{SMALLFONT}„Tenhle sendvič od {STRINGID} se opravdu vyplatí“ -STR_1600 :{SMALLFONT}„Tahle sušenka od {STRINGID} se opravdu vyplatí“ +STR_1584 :„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ +STR_1585 :„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ +STR_1586 :„Tahle fotka z atrakce {STRINGID} se opravdu vyplatí“ +STR_1587 :„Tenhle preclík od {STRINGID} se opravdu vyplatí“ +STR_1588 :„Tahle horká čokoláda od {STRINGID} se opravdu vyplatí“ +STR_1589 :„Tenhle ledový čaj od {STRINGID} se opravdu vyplatí“ +STR_1590 :„Tahle palačinka od {STRINGID} se opravdu vyplatí“ +STR_1591 :„Tyhle sluneční brýle z {STRINGID} se opravdu vyplatí“ +STR_1592 :„Tahle nudlová polívka od {STRINGID} se opravdu vyplatí“ +STR_1593 :„Tyhle smažené nudle od {STRINGID} se opravdu vyplatí“ +STR_1594 :„Tahle čínská knedlíčková polévka od {STRINGID} se opravdu vyplatí“ +STR_1595 :„Tahle knedlíčková polévka od {STRINGID} se opravdu vyplatí“ +STR_1596 :„Tenhle ovocný džus od {STRINGID} se opravdu vyplatí“ +STR_1597 :„Tohle sojové mléko od {STRINGID} se opravdu vyplatí“ +STR_1598 :„Tahle suzungkwa od {STRINGID} se opravdu vyplatí“ +STR_1599 :„Tenhle sendvič od {STRINGID} se opravdu vyplatí“ +STR_1600 :„Tahle sušenka od {STRINGID} se opravdu vyplatí“ STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}„Tahle grilovaná klobása od {STRINGID} se opravdu vyplatí“ +STR_1604 :„Tahle grilovaná klobása od {STRINGID} se opravdu vyplatí“ STR_1605 : STR_1606 : STR_1607 : @@ -998,27 +998,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}„Nezaplatím tak moc za fotku z {STRINGID}“ -STR_1617 :{SMALLFONT}„Nezaplatím tak moc za fotku z {STRINGID}“ -STR_1618 :{SMALLFONT}„Nezaplatím tak moc za fotku z {STRINGID}“ -STR_1619 :{SMALLFONT}„Nezaplatím tak moc za preclík od {STRINGID}“ -STR_1620 :{SMALLFONT}„Nezaplatím tak moc za horkou čokoládu od {STRINGID}“ -STR_1621 :{SMALLFONT}„Nezaplatím tak moc za ledový čaj od {STRINGID}“ -STR_1622 :{SMALLFONT}„Nezaplatím tak moc za palačinku od {STRINGID}“ -STR_1623 :{SMALLFONT}„Nezaplatím tak moc za slunečná brýle od {STRINGID}“ -STR_1624 :{SMALLFONT}„Nezaplatím tak moc za nudlovou polévku od {STRINGID}“ -STR_1625 :{SMALLFONT}„Nezaplatím tak moc za smažené nudle od {STRINGID}“ -STR_1626 :{SMALLFONT}„Nezaplatím tak moc za čínskou knedlíčkovou polívku od {STRINGID}“ -STR_1627 :{SMALLFONT}„Nezaplatím tak moc za knedlíčkovou polívku od {STRINGID}“ -STR_1628 :{SMALLFONT}„Nezaplatím tak moc za ovocný džus od {STRINGID}“ -STR_1629 :{SMALLFONT}„Nezaplatím tak moc za sojové mléko od {STRINGID}“ -STR_1630 :{SMALLFONT}„Nezaplatím tak moc za suzungkwu od {STRINGID}“ -STR_1631 :{SMALLFONT}„Nezaplatím tak moc za sendvič od {STRINGID}“ -STR_1632 :{SMALLFONT}„Nezaplatím tak moc za sušenku od {STRINGID}“ +STR_1616 :„Nezaplatím tak moc za fotku z {STRINGID}“ +STR_1617 :„Nezaplatím tak moc za fotku z {STRINGID}“ +STR_1618 :„Nezaplatím tak moc za fotku z {STRINGID}“ +STR_1619 :„Nezaplatím tak moc za preclík od {STRINGID}“ +STR_1620 :„Nezaplatím tak moc za horkou čokoládu od {STRINGID}“ +STR_1621 :„Nezaplatím tak moc za ledový čaj od {STRINGID}“ +STR_1622 :„Nezaplatím tak moc za palačinku od {STRINGID}“ +STR_1623 :„Nezaplatím tak moc za slunečná brýle od {STRINGID}“ +STR_1624 :„Nezaplatím tak moc za nudlovou polévku od {STRINGID}“ +STR_1625 :„Nezaplatím tak moc za smažené nudle od {STRINGID}“ +STR_1626 :„Nezaplatím tak moc za čínskou knedlíčkovou polívku od {STRINGID}“ +STR_1627 :„Nezaplatím tak moc za knedlíčkovou polívku od {STRINGID}“ +STR_1628 :„Nezaplatím tak moc za ovocný džus od {STRINGID}“ +STR_1629 :„Nezaplatím tak moc za sojové mléko od {STRINGID}“ +STR_1630 :„Nezaplatím tak moc za suzungkwu od {STRINGID}“ +STR_1631 :„Nezaplatím tak moc za sendvič od {STRINGID}“ +STR_1632 :„Nezaplatím tak moc za sušenku od {STRINGID}“ STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}„Nezaplatím tak moc za grilovanou klobásu od {STRINGID}“ +STR_1636 :„Nezaplatím tak moc za grilovanou klobásu od {STRINGID}“ STR_1637 : STR_1638 : STR_1639 : @@ -1030,11 +1030,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}„Pomoc! Polož mě dolů!“ -STR_1649 :{SMALLFONT}„Dochází mi hotovost!“ -STR_1650 :{SMALLFONT}„Wow! Tady se staví nová atrakce!“ +STR_1648 :„Pomoc! Polož mě dolů!“ +STR_1649 :„Dochází mi hotovost!“ +STR_1650 :„Wow! Tady se staví nová atrakce!“ # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}„…a teď jsme na {STRINGID}!“ +STR_1653 :„…a teď jsme na {STRINGID}!“ STR_1654 :{WINDOW_COLOUR_2}Poslední myšlenky: STR_1655 :Stavět cestu na povrchu STR_1656 :Stavět most nebo tunel @@ -1064,12 +1064,12 @@ STR_1679 :Spirála nahoru (levá) STR_1680 :Spirála nahoru (pravá) STR_1681 :Spirála dolů (levá) STR_1682 :Spirála dolů (pravá) -STR_1683 :Velikost podstavy 2 x 2 -STR_1684 :Velikost podstavy 4 x 4 -STR_1685 :Velikost podstavy 2 x 4 -STR_1686 :Velikost podstavy 5 x 1 +STR_1683 :Velikost podstavy 2 × 2 +STR_1684 :Velikost podstavy 4 × 4 +STR_1685 :Velikost podstavy 2 × 4 +STR_1686 :Velikost podstavy 5 × 1 STR_1687 :Průjezd vodou -STR_1688 :Velikost podstavy 4 x 1 +STR_1688 :Velikost podstavy 4 × 1 STR_1689 :Brzdící blok STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Cena: {BLACK}{CURRENCY} @@ -1186,7 +1186,7 @@ STR_1808 :{WINDOW_COLOUR_2}Poslední porucha: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Současná porucha: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Návštěvník nese: STR_1811 :Tohle zde nelze postavit… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Ostatní objekty STR_1814 :Dle aktivity STR_1815 :Dle myšlenek @@ -1195,7 +1195,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Všichni návštěvníci STR_1819 :{WINDOW_COLOUR_2}Všichni návštěvníci (sumarizace) STR_1820 :{WINDOW_COLOUR_2}Návštěvníci {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Návštěvníci myslící si {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Návštěvníci myslící si {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Návštěvníci myslící na {POP16}{STRINGID} STR_1823 :Zobrazit myšlenky návštěvníků o této atrakci STR_1824 :Zobrazit návštěvníky na této atrakci @@ -1298,7 +1298,6 @@ STR_1921 :Začít novou hru STR_1922 :Nahrát uloženou hru STR_1924 :Ukončit hru STR_1925 :Sem tuto osobu nelze umístit… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} má poruchu STR_1928 :{RED}{STRINGID} havaroval! STR_1929 :{RED}{STRINGID} má stále poruchu!{NEWLINE}Zkontrolujte, kde jsou vaši mechanici a zkuste je lépe organizovat @@ -1579,7 +1578,7 @@ STR_2218 :{RED}{STRINGID} na {STRINGID} se stále nevrátil do {STRINGID}!{NE STR_2219 :{RED}{COMMA16} lidí zemřelo při nehodě na {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Hodnocení parku: {BLACK}{COMMA16} STR_2221 :Hodnocení parku: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Návštěvníci v parku: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Hotovost: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Hotovost: {RED}{CURRENCY2DP} @@ -1592,7 +1591,7 @@ STR_2231 :Držení brzd pro pád STR_2232 :Řetězový výtah STR_2233 :Informace o zábavním parku STR_2234 :Poslední zprávy -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :leden STR_2237 :únor STR_2238 :březen @@ -1672,7 +1671,7 @@ STR_2312 :{WINDOW_COLOUR_2}Intenzita: asi {BLACK}{COMMA2DP32} STR_2313 :{WINDOW_COLOUR_2}Nevolnost: asi {BLACK}{COMMA2DP32} STR_2314 :{WINDOW_COLOUR_2}Délka jízdy: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Cena: {BLACK}okolo {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Vyžadovaný prostor: {BLACK}{COMMA16} x {COMMA16} dlaždic +STR_2316 :{WINDOW_COLOUR_2}Vyžadovaný prostor: {BLACK}{COMMA16} × {COMMA16} dlaždic STR_2321 :{WINDOW_COLOUR_2}Celkem atrakcí: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Personál: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Velikost parku: {BLACK}{COMMA32}m² @@ -1796,7 +1795,7 @@ STR_2450 :{YELLOW}Reklamní kampaň pro park skončila STR_2451 :{YELLOW}Reklamní kampaň pro {STRINGID} skončila STR_2452 :{WINDOW_COLOUR_2}Hotovost (bez půjčky): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Hotovost (bez půjčky): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Zobrazit účet STR_2458 :Zobrazit graf hotovosti STR_2459 :Zobrazit graf hodnoty parku @@ -1906,7 +1905,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Všechen výzkum byl dokončen -STR_2681 :{MEDIUMFONT}{BLACK}Přidat {CURRENCY} hotovosti STR_2684 :Dorazí velká skupina návštěvníků STR_2685 :Parametry simplex noise STR_2686 :Hloubky: @@ -1993,7 +1991,7 @@ STR_2789 :{WINDOW_COLOUR_2}Nepodařilo se dosáhnout cíle scénáře! STR_2790 :Zadejte jméno do žebříčku scénáře STR_2791 :Zadejte jméno STR_2792 :Zadejte prosím vaše jméno do žebříčku scénáře: -STR_2793 :{SMALLFONT}(Dosáhl: {STRINGID}) +STR_2793 :(Dosáhl: {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Dosáhl: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2}s hodnotou společnosti: {BLACK}{CURRENCY} STR_2795 :Seřadit STR_2796 :Seřadit seznam podle zobrazené informace @@ -2307,7 +2305,7 @@ STR_3208 :Správa návrhů tratí STR_3209 :Zpět k předchozímu kroku: STR_3210 :Jít na následující krok: STR_3211 :Velikost mapy: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Mapu nelze více zmenšit STR_3214 :Mapu nelze více zvětšit STR_3215 :Příliš blízko u kraje mapy @@ -2500,7 +2498,7 @@ STR_5134 :Změnit větší oblast pozemkových práv STR_5135 :Koupit pozemková a konstrukční práva STR_5136 :Pozemková práva STR_5137 :Povolit rychlost výtahů drah až do {VELOCITY} -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Vypnout poruchy brzd STR_5141 :Vypnout rozbíjení atrakcí @@ -2646,7 +2644,7 @@ STR_5297 :Otevřít zábavní park STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Propustit zaměstnance -STR_5301 :{MEDIUMFONT}{BLACK}Vyrovnání dluhů +STR_5301 :Vyrovnání dluhů STR_5302 :Vyrovnat dluh STR_5303 :Povolit stavění, když je hra pozastavená STR_5304 :Úvodní herní sekvence: @@ -2805,7 +2803,7 @@ STR_5481 :Motivy STR_5482 :{WINDOW_COLOUR_2}Doba od poslední inspekce: {BLACK}1 minuta STR_5483 :{BLACK}(zbývá {COMMA16} týdnů) STR_5484 :{BLACK}(zbývá {COMMA16} týden) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Zobrazit poslední zprávy STR_5489 :Zobrazit pouze sledované návštěvníky @@ -3308,7 +3306,7 @@ STR_6030 :Výběr kulis. Klikněte na jakoukoliv kulisu na mapě pro postaven STR_6031 :Popis serveru: STR_6032 :Uvítací zpráva serveru: STR_6033 :Cesta k RCT1 instalaci: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Prosím vyberte složku s RCT1 STR_6036 :Zrušit STR_6037 :Vybraná složka neobsahuje instalaci RollerCoaster Tycoon 1. @@ -3453,7 +3451,7 @@ STR_6183 :Následovat{MOVE_X}{87}Zvolte sprite STR_6184 :Následovat sprite STR_6185 :Zvolit sprite STR_6186 :Nezvolen žádný sprite -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Zvratky STR_6189 :Kachna STR_6190 :Nelze zvolit sprite, když je aktivní hlavní obrazovka. @@ -3603,7 +3601,7 @@ STR_6356 :Přivolat kachny (pokud park má vodní plochu) STR_6357 :Zmizet kachny z mapy STR_6358 :Strana {UINT16} STR_6359 :{POP16}{POP16}Strana {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Povolit světelné efekty na atrakcích (experimentální) STR_6362 :Zapne noční osvětlené atrakcí na kolejích. STR_6363 :Text zkopírován do schránky diff --git a/data/language/da-DK.txt b/data/language/da-DK.txt index 3296baed25..2b0bdcce0b 100644 --- a/data/language/da-DK.txt +++ b/data/language/da-DK.txt @@ -95,6 +95,7 @@ STR_0090 :Mine Forlystelse STR_0091 :Ukendt Forlystelse (59) STR_0092 :LIM Accelereret Rutschebane STR_0093 :Hybrid Rutschebane +STR_0094 :Enkelt skinde rutchebane STR_0512 :En kompakt rutschebane med en spiral stigning og bløde, snoede fald. STR_0513 :En loopende rutschebane hvor passagerne er i en stående position STR_0514 :Vogne suspenderet under rutschebane sporet, svinger ud til siden i svingene @@ -175,6 +176,7 @@ STR_0599 :En kompakt rutschebane med individuelle vogne og rolige snoede fald STR_0600 :Selvkørende togvogne kører igennem en sen snoet bane af spor STR_0602 :Rutsjebanetog accelereres ud af stationen af lineære induktionsmotorer for at suse gennem snoede inversioner STR_0603 :En rutsjebane i træ stil, med stål spor, Med stejle fald og hurtige sving. +STR_0604 :Gæster sider i en enkelt række, på et smalt monorail spor, imens de suser igennem skarpe sving ,snoninger og hurtige vridninger. STR_0767 :Gæst {INT32} STR_0768 :Handymand {INT32} STR_0769 :Mekaniker {INT32} @@ -796,14 +798,14 @@ STR_1410 :Vertikal Tårn STR_1411 :{STRINGID} i vejen STR_1412 :{WINDOW_COLOUR_3}Data logning er ikke tilgængelig for denne forlystelse STR_1413 :{WINDOW_COLOUR_3}Data logning starter når den næste {STRINGID} forlader {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Hastighed STR_1416 :{WINDOW_COLOUR_2}Højde STR_1417 :{WINDOW_COLOUR_2}Vert.G STR_1418 :{WINDOW_COLOUR_2}Hor.G -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Logger data fra {POP16}{STRINGID} STR_1423 :Kø linje sti STR_1424 :Gangsti @@ -862,131 +864,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensitet bedømmelse: {BLACK}Ikke tilgængelig e STR_1477 :{WINDOW_COLOUR_2}Intensitet bedømmelse: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Kvalme bedømmelse: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Kvalme bedømmelse: {BLACK}Ikke tilgængelig endnu -STR_1480 :{SMALLFONT}“Jeg har ikke råd til {STRINGID}” -STR_1481 :{SMALLFONT}“Jeg har brugt alle min penge” -STR_1482 :{SMALLFONT}“Jeg har det dårligt” -STR_1483 :{SMALLFONT}“Jeg har det virkelig dårligt” -STR_1484 :{SMALLFONT}“Jeg vil gerne prøve noget vildere end {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} ser for intens ud til mig ” -STR_1486 :{SMALLFONT}“Jeg er ikke færdig med min {STRINGID} endnu” -STR_1487 :{SMALLFONT}“Bare jeg kigge på {STRINGID} får jeg det dårligt” -STR_1488 :{SMALLFONT}“Jeg vil ikke betale så meget for at komme op i {STRINGID}” -STR_1489 :{SMALLFONT}“Jeg vil gerne hjem” -STR_1490 :{SMALLFONT}“{STRINGID} er rigtig god” -STR_1491 :{SMALLFONT}“Jeg har allerede {STRINGID}” -STR_1492 :{SMALLFONT}“Jeg har ikke råd til {STRINGID}” -STR_1493 :{SMALLFONT}“Jeg er ikke sulten” -STR_1494 :{SMALLFONT}“Jeg er ikke tørstig” -STR_1495 :{SMALLFONT}“Hjælp! jeg drukner!” -STR_1496 :{SMALLFONT}“JEg er faret vild!” -STR_1497 :{SMALLFONT}“{STRINGID} var fantastisk” -STR_1498 :{SMALLFONT}“Jeg har stået i kø til {STRINGID}, i en evighed” -STR_1499 :{SMALLFONT}“Jeg er træt” -STR_1500 :{SMALLFONT}“Jeg er sulten” -STR_1501 :{SMALLFONT}“Jeg er tørstig” -STR_1502 :{SMALLFONT}“Jeg skal på toilet” -STR_1503 :{SMALLFONT}“Jeg kan ikke finde {STRINGID}” -STR_1504 :{SMALLFONT}“Jeg vil ikke betale så meget, for at bruge {STRINGID}” -STR_1505 :{SMALLFONT}“Jeg vil ikke have en tur i {STRINGID} imens det regner” -STR_1506 :{SMALLFONT}“Der er alt for meget affald her” -STR_1507 :{SMALLFONT}“Jeg kan ikke finde park udgangen” -STR_1508 :{SMALLFONT}“Jeg vil gerne af {STRINGID}” -STR_1509 :{SMALLFONT}“Jeg vil gerne ud af {STRINGID}” -STR_1510 :{SMALLFONT}“Jeg vil ikke have en tur i {STRINGID} - Den er ikke sikker” -STR_1511 :{SMALLFONT}“Gangstien her er virkelig ulækker” -STR_1512 :{SMALLFONT}“Der er alt for overfyldt af folk her” -STR_1513 :{SMALLFONT}“Der er for mange ødelagte ting her” -STR_1514 :{SMALLFONT}“Fantastisk sceneri!” -STR_1515 :{SMALLFONT}“Denne park er virkelig flot og veldholdt” -STR_1516 :{SMALLFONT}“De hoppende fontæner er flotte” -STR_1517 :{SMALLFONT}“Musikken er god her” -STR_1518 :{SMALLFONT}“Ballonen fra {STRINGID} er et godt køb” -STR_1519 :{SMALLFONT}“Krammedyret fra {STRINGID} er et godt køb” -STR_1520 :{SMALLFONT}“Park kortet fra {STRINGID} er et godt køb” -STR_1521 :{SMALLFONT}“On-ride billedet fra {STRINGID} er et godt køb” -STR_1522 :{SMALLFONT}“Paraplyen fra {STRINGID} er et godt køb” -STR_1523 :{SMALLFONT}“Drikken fra {STRINGID} er et godt køb” -STR_1524 :{SMALLFONT}“Burgeren {STRINGID} er et godt køb” -STR_1525 :{SMALLFONT}“Pommes fritterne fra {STRINGID} er et godt køb” -STR_1526 :{SMALLFONT}“Isen fra {STRINGID} er et godt køb” -STR_1527 :{SMALLFONT}“Candyfloss'en fra {STRINGID} er et godt køb” +STR_1480 :“Jeg har ikke råd til {STRINGID}” +STR_1481 :“Jeg har brugt alle min penge” +STR_1482 :“Jeg har det dårligt” +STR_1483 :“Jeg har det virkelig dårligt” +STR_1484 :“Jeg vil gerne prøve noget vildere end {STRINGID}” +STR_1485 :“{STRINGID} ser for intens ud til mig ” +STR_1486 :“Jeg er ikke færdig med min {STRINGID} endnu” +STR_1487 :“Bare jeg kigge på {STRINGID} får jeg det dårligt” +STR_1488 :“Jeg vil ikke betale så meget for at komme op i {STRINGID}” +STR_1489 :“Jeg vil gerne hjem” +STR_1490 :“{STRINGID} er rigtig god” +STR_1491 :“Jeg har allerede {STRINGID}” +STR_1492 :“Jeg har ikke råd til {STRINGID}” +STR_1493 :“Jeg er ikke sulten” +STR_1494 :“Jeg er ikke tørstig” +STR_1495 :“Hjælp! jeg drukner!” +STR_1496 :“JEg er faret vild!” +STR_1497 :“{STRINGID} var fantastisk” +STR_1498 :“Jeg har stået i kø til {STRINGID}, i en evighed” +STR_1499 :“Jeg er træt” +STR_1500 :“Jeg er sulten” +STR_1501 :“Jeg er tørstig” +STR_1502 :“Jeg skal på toilet” +STR_1503 :“Jeg kan ikke finde {STRINGID}” +STR_1504 :“Jeg vil ikke betale så meget, for at bruge {STRINGID}” +STR_1505 :“Jeg vil ikke have en tur i {STRINGID} imens det regner” +STR_1506 :“Der er alt for meget affald her” +STR_1507 :“Jeg kan ikke finde park udgangen” +STR_1508 :“Jeg vil gerne af {STRINGID}” +STR_1509 :“Jeg vil gerne ud af {STRINGID}” +STR_1510 :“Jeg vil ikke have en tur i {STRINGID} - Den er ikke sikker” +STR_1511 :“Gangstien her er virkelig ulækker” +STR_1512 :“Der er alt for overfyldt af folk her” +STR_1513 :“Der er for mange ødelagte ting her” +STR_1514 :“Fantastisk sceneri!” +STR_1515 :“Denne park er virkelig flot og veldholdt” +STR_1516 :“De hoppende fontæner er flotte” +STR_1517 :“Musikken er god her” +STR_1518 :“Ballonen fra {STRINGID} er et godt køb” +STR_1519 :“Krammedyret fra {STRINGID} er et godt køb” +STR_1520 :“Park kortet fra {STRINGID} er et godt køb” +STR_1521 :“On-ride billedet fra {STRINGID} er et godt køb” +STR_1522 :“Paraplyen fra {STRINGID} er et godt køb” +STR_1523 :“Drikken fra {STRINGID} er et godt køb” +STR_1524 :“Burgeren {STRINGID} er et godt køb” +STR_1525 :“Pommes fritterne fra {STRINGID} er et godt køb” +STR_1526 :“Isen fra {STRINGID} er et godt køb” +STR_1527 :“Candyfloss'en fra {STRINGID} er et godt køb” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Pizza'en fra {STRINGID} er et godt køb” +STR_1531 :“Pizza'en fra {STRINGID} er et godt køb” STR_1532 : -STR_1533 :{SMALLFONT}“Popcorn'ene fra {STRINGID} er et godt køb” -STR_1534 :{SMALLFONT}“Denne Hot dog fra {STRINGID} er et godt køb” -STR_1535 :{SMALLFONT}“Denne tentakel fra {STRINGID} er et godt køb” -STR_1536 :{SMALLFONT}“Hatten fra {STRINGID} er et godt køb” -STR_1537 :{SMALLFONT}“Det kandiserede æble fra {STRINGID} er et godt køb” -STR_1538 :{SMALLFONT}“T-shirt'en fra {STRINGID} er et godt køb” -STR_1539 :{SMALLFONT}“Doughnut'en fra {STRINGID} er et godt køb” -STR_1540 :{SMALLFONT}“Kaffen fra {STRINGID} er et godt køb” +STR_1533 :“Popcorn'ene fra {STRINGID} er et godt køb” +STR_1534 :“Denne Hot dog fra {STRINGID} er et godt køb” +STR_1535 :“Denne tentakel fra {STRINGID} er et godt køb” +STR_1536 :“Hatten fra {STRINGID} er et godt køb” +STR_1537 :“Det kandiserede æble fra {STRINGID} er et godt køb” +STR_1538 :“T-shirt'en fra {STRINGID} er et godt køb” +STR_1539 :“Doughnut'en fra {STRINGID} er et godt køb” +STR_1540 :“Kaffen fra {STRINGID} er et godt køb” STR_1541 : -STR_1542 :{SMALLFONT}“Grill kyllingen fra {STRINGID} er et godt køb” -STR_1543 :{SMALLFONT}“Lemonaden fra {STRINGID} er et godt køb” +STR_1542 :“Grill kyllingen fra {STRINGID} er et godt køb” +STR_1543 :“Lemonaden fra {STRINGID} er et godt køb” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Wow!” -STR_1551 :{SMALLFONT}“Jeg har en under fornemmelse, af at der er nogen, der holder øje med mig” -STR_1552 :{SMALLFONT}“Jeg vil ikke betale så meget for en ballon fra {STRINGID}” -STR_1553 :{SMALLFONT}“Jeg vil ikke betale så meget for et krammedyr fra {STRINGID}” -STR_1554 :{SMALLFONT}“Jeg vil ikke betale så meget for et park kort fra {STRINGID}” -STR_1555 :{SMALLFONT}“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” -STR_1556 :{SMALLFONT}“Jeg vil ikke betale så meget for en paraply fra{STRINGID}” -STR_1557 :{SMALLFONT}“Jeg vil ikke betale så meget for en drik fra {STRINGID}” -STR_1558 :{SMALLFONT}“Jeg vil ikke betale så meget for en burger fra {STRINGID}” -STR_1559 :{SMALLFONT}“Jeg vil ikke betale så meget for pommes fritter fra {STRINGID}” -STR_1560 :{SMALLFONT}“Jeg vil ikke betale så meget for an is fra {STRINGID}” -STR_1561 :{SMALLFONT}“Jeg vil ikke betale så meget for candyfloss fra {STRINGID}” +STR_1550 :“Wow!” +STR_1551 :“Jeg har en under fornemmelse, af at der er nogen, der holder øje med mig” +STR_1552 :“Jeg vil ikke betale så meget for en ballon fra {STRINGID}” +STR_1553 :“Jeg vil ikke betale så meget for et krammedyr fra {STRINGID}” +STR_1554 :“Jeg vil ikke betale så meget for et park kort fra {STRINGID}” +STR_1555 :“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” +STR_1556 :“Jeg vil ikke betale så meget for en paraply fra{STRINGID}” +STR_1557 :“Jeg vil ikke betale så meget for en drik fra {STRINGID}” +STR_1558 :“Jeg vil ikke betale så meget for en burger fra {STRINGID}” +STR_1559 :“Jeg vil ikke betale så meget for pommes fritter fra {STRINGID}” +STR_1560 :“Jeg vil ikke betale så meget for an is fra {STRINGID}” +STR_1561 :“Jeg vil ikke betale så meget for candyfloss fra {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Jeg vil ikke betale så meget for pizza fra {STRINGID}” +STR_1565 :“Jeg vil ikke betale så meget for pizza fra {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Jeg vil ikke betale så meget for popcorn fra {STRINGID}” -STR_1568 :{SMALLFONT}“Jeg vil ikke betale så meget for en hot dog fra {STRINGID}” -STR_1569 :{SMALLFONT}“Jeg vil ikke betale så meget for en tentakel fra {STRINGID}” -STR_1570 :{SMALLFONT}“Jeg vil ikke betale så meget for en hat fra {STRINGID}” -STR_1571 :{SMALLFONT}“Jeg vil ikke betale så meget for et kandiseret æble fra {STRINGID}” -STR_1572 :{SMALLFONT}“Jeg vil ikke betale så meget for en T-shirt fra {STRINGID}” -STR_1573 :{SMALLFONT}“Jeg vil ikke betale så meget for en doughnut fra {STRINGID}” -STR_1574 :{SMALLFONT}“Jeg vil ikke betale så meget kaffe fra {STRINGID}” +STR_1567 :“Jeg vil ikke betale så meget for popcorn fra {STRINGID}” +STR_1568 :“Jeg vil ikke betale så meget for en hot dog fra {STRINGID}” +STR_1569 :“Jeg vil ikke betale så meget for en tentakel fra {STRINGID}” +STR_1570 :“Jeg vil ikke betale så meget for en hat fra {STRINGID}” +STR_1571 :“Jeg vil ikke betale så meget for et kandiseret æble fra {STRINGID}” +STR_1572 :“Jeg vil ikke betale så meget for en T-shirt fra {STRINGID}” +STR_1573 :“Jeg vil ikke betale så meget for en doughnut fra {STRINGID}” +STR_1574 :“Jeg vil ikke betale så meget kaffe fra {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Jeg vil ikke betale så meget for grill kylling fra {STRINGID}” -STR_1577 :{SMALLFONT}“Jeg vil ikke betale så meget for lemonade fra {STRINGID}” +STR_1576 :“Jeg vil ikke betale så meget for grill kylling fra {STRINGID}” +STR_1577 :“Jeg vil ikke betale så meget for lemonade fra {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Dette on-ride billede fra {STRINGID} er et godt køb” -STR_1585 :{SMALLFONT}“Dette on-ride billede fra {STRINGID} er et godt køb” -STR_1586 :{SMALLFONT}“Dette on-ride billede fra {STRINGID} er et godt køb” -STR_1587 :{SMALLFONT}“Denne pretzel fra {STRINGID} er et godt køb” -STR_1588 :{SMALLFONT}“Den varme chokolade fra {STRINGID} er et godt køb” -STR_1589 :{SMALLFONT}“Is the'en fra {STRINGID} er et godt køb” -STR_1590 :{SMALLFONT}“Churrios'ene fra {STRINGID} er et godt køb” -STR_1591 :{SMALLFONT}“Solbrillerne fra {STRINGID} er et godt køb” -STR_1592 :{SMALLFONT}“Nudlerne fra {STRINGID} er et godt køb” -STR_1593 :{SMALLFONT}“De ristede ris nuddler fra {STRINGID} er et godt køb” -STR_1594 :{SMALLFONT}“Wonton suppen fra {STRINGID} er et godt køb” -STR_1595 :{SMALLFONT}“Kødbolle suppen fra {STRINGID} er et godt køb” -STR_1596 :{SMALLFONT}“Frugt juicen fra {STRINGID} er et godt køb” -STR_1597 :{SMALLFONT}“Soya mælken fra {STRINGID} er et godt køb” -STR_1598 :{SMALLFONT}“Sujeonggwa'en fra {STRINGID} er et godt køb” -STR_1599 :{SMALLFONT}“Sandwich'en fra {STRINGID} er et godt køb” -STR_1600 :{SMALLFONT}“Småkagen fra {STRINGID} er et godt køb” +STR_1584 :“Dette on-ride billede fra {STRINGID} er et godt køb” +STR_1585 :“Dette on-ride billede fra {STRINGID} er et godt køb” +STR_1586 :“Dette on-ride billede fra {STRINGID} er et godt køb” +STR_1587 :“Denne pretzel fra {STRINGID} er et godt køb” +STR_1588 :“Den varme chokolade fra {STRINGID} er et godt køb” +STR_1589 :“Is the'en fra {STRINGID} er et godt køb” +STR_1590 :“Churrios'ene fra {STRINGID} er et godt køb” +STR_1591 :“Solbrillerne fra {STRINGID} er et godt køb” +STR_1592 :“Nudlerne fra {STRINGID} er et godt køb” +STR_1593 :“De ristede ris nuddler fra {STRINGID} er et godt køb” +STR_1594 :“Wonton suppen fra {STRINGID} er et godt køb” +STR_1595 :“Kødbolle suppen fra {STRINGID} er et godt køb” +STR_1596 :“Frugt juicen fra {STRINGID} er et godt køb” +STR_1597 :“Soya mælken fra {STRINGID} er et godt køb” +STR_1598 :“Sujeonggwa'en fra {STRINGID} er et godt køb” +STR_1599 :“Sandwich'en fra {STRINGID} er et godt køb” +STR_1600 :“Småkagen fra {STRINGID} er et godt køb” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Den ristede pølse fra {STRINGID} er et godt køb” +STR_1604 :“Den ristede pølse fra {STRINGID} er et godt køb” STR_1605 : STR_1606 : STR_1607 : @@ -998,27 +1000,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” -STR_1617 :{SMALLFONT}“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” -STR_1618 :{SMALLFONT}“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” -STR_1619 :{SMALLFONT}“Jeg vil ikke betale så meget for en pretzel fra {STRINGID}” -STR_1620 :{SMALLFONT}“Jeg vil ikke betale så meget for varm chokolade fra {STRINGID}” -STR_1621 :{SMALLFONT}“Jeg vil ikke betale så meget for is the fra {STRINGID}” -STR_1622 :{SMALLFONT}“Jeg vil ikke betale så meget for en churrio fra {STRINGID}” -STR_1623 :{SMALLFONT}“Jeg vil ikke betale så meget for solbriller fra {STRINGID}” -STR_1624 :{SMALLFONT}“Jeg vil ikke betale så meget for nudler fra {STRINGID}” -STR_1625 :{SMALLFONT}“Jeg vil ikke betale så meget for ristede ris nudler fra {STRINGID}” -STR_1626 :{SMALLFONT}“Jeg vil ikke betale så meget for wonton suppe fra {STRINGID}” -STR_1627 :{SMALLFONT}“Jeg vil ikke betale så meget for kødbolle suppe fra {STRINGID}” -STR_1628 :{SMALLFONT}“Jeg vil ikke betale så meget for frugt juice fra {STRINGID}” -STR_1629 :{SMALLFONT}“Jeg vil ikke betale så meget for soya mælk fra {STRINGID}” -STR_1630 :{SMALLFONT}“Jeg vil ikke betale så meget for sujeonggwa fra {STRINGID}” -STR_1631 :{SMALLFONT}“Jeg vil ikke betale så meget for en sandwich fra {STRINGID}” -STR_1632 :{SMALLFONT}“Jeg vil ikke betale så meget for en småkage fra {STRINGID}” +STR_1616 :“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” +STR_1617 :“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” +STR_1618 :“Jeg vil ikke betale så meget for et on-ride billede fra {STRINGID}” +STR_1619 :“Jeg vil ikke betale så meget for en pretzel fra {STRINGID}” +STR_1620 :“Jeg vil ikke betale så meget for varm chokolade fra {STRINGID}” +STR_1621 :“Jeg vil ikke betale så meget for is the fra {STRINGID}” +STR_1622 :“Jeg vil ikke betale så meget for en churrio fra {STRINGID}” +STR_1623 :“Jeg vil ikke betale så meget for solbriller fra {STRINGID}” +STR_1624 :“Jeg vil ikke betale så meget for nudler fra {STRINGID}” +STR_1625 :“Jeg vil ikke betale så meget for ristede ris nudler fra {STRINGID}” +STR_1626 :“Jeg vil ikke betale så meget for wonton suppe fra {STRINGID}” +STR_1627 :“Jeg vil ikke betale så meget for kødbolle suppe fra {STRINGID}” +STR_1628 :“Jeg vil ikke betale så meget for frugt juice fra {STRINGID}” +STR_1629 :“Jeg vil ikke betale så meget for soya mælk fra {STRINGID}” +STR_1630 :“Jeg vil ikke betale så meget for sujeonggwa fra {STRINGID}” +STR_1631 :“Jeg vil ikke betale så meget for en sandwich fra {STRINGID}” +STR_1632 :“Jeg vil ikke betale så meget for en småkage fra {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Jeg vil ikke betale så meget for en ristet pølse fra {STRINGID}” +STR_1636 :“Jeg vil ikke betale så meget for en ristet pølse fra {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1030,10 +1032,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Hjælp! Sæt mig ned!” -STR_1649 :{SMALLFONT}“Jeg er ved at løbe tør for penge!” -STR_1650 :{SMALLFONT}“Wow! en ny forlystelse er ved at blive bygget!” -STR_1653 :{SMALLFONT}“…og her er vi på {STRINGID}!” +STR_1648 :“Hjælp! Sæt mig ned!” +STR_1649 :“Jeg er ved at løbe tør for penge!” +STR_1650 :“Wow! en ny forlystelse er ved at blive bygget!” +STR_1653 :“…og her er vi på {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Seneste tanker: STR_1655 :Konstruer gangsti på land STR_1656 :Konstruer tunnel eller bro gangsti @@ -1185,7 +1187,7 @@ STR_1808 :{WINDOW_COLOUR_2}Sidste nedbrud: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Nuværende nedbrud: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Bærer: STR_1811 :Kan ikke bygge det her… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Forskellige objekter STR_1814 :Aktiviteter STR_1815 :Tanker @@ -1194,7 +1196,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle gæster STR_1819 :{WINDOW_COLOUR_2}Alle gæster (opsummeret) STR_1820 :{WINDOW_COLOUR_2}Gæster {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Gæster tænker {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Gæster tænker {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Gæster tænker på {POP16}{STRINGID} STR_1823 :Vis gæsters tanker omkring forlystelse/attraktion STR_1824 :Vis gæster på denne forlystelse/attraktion @@ -1295,7 +1297,6 @@ STR_1921 :Start et nyt spil STR_1922 :Fortsæt et gemt spil STR_1924 :Afslut spillet STR_1925 :Kan ikke placere en person her… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} er brudt sammen STR_1928 :{RED}{STRINGID} er styrtet! STR_1929 :{RED}{STRINGID} er stadig ikke bleve repareret{NEWLINE}Kontroller hvor dine mekanikere er, og overvej at organisere dem bedre @@ -1576,7 +1577,7 @@ STR_2218 :{RED}{STRINGID} på {STRINGID} er ikke kommet tilbage til {STRINGID STR_2219 :{RED}{COMMA16} personer er døde i ulykken på {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Park Vurdering: {BLACK}{COMMA16} STR_2221 :Park Vurdering: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Gæster i parken: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Penge: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Penge: {RED}{CURRENCY2DP} @@ -1589,7 +1590,7 @@ STR_2231 :Bremser for frit fald STR_2232 :Kabel hejse bakke STR_2233 :Park information STR_2234 :Seneste beskeder -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Januar STR_2237 :Februar STR_2238 :Marts @@ -1793,7 +1794,7 @@ STR_2450 :{YELLOW}Din reklamekampagne for parken, er slut STR_2451 :{YELLOW}Din reklamekampagne for {STRINGID}, er slut STR_2452 :{WINDOW_COLOUR_2}Penge (uden lån): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Penge (uden lån): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Vis finanskonti STR_2458 :Vis graf for penge (uden lån) over tid STR_2459 :Vis graf for park værdi over tid @@ -1903,7 +1904,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :ScrollLock STR_2680 :Al forskning udført -STR_2681 :{MEDIUMFONT}{BLACK}Forøg dine penge med {CURRENCY} STR_2684 :Stor gruppe af gæster ankommer STR_2685 :Simplex Støj parametre STR_2686 :Lav: @@ -1990,7 +1990,7 @@ STR_2789 :{WINDOW_COLOUR_2}Du har ikke opnået dit mål! STR_2790 :Angiv dit navn til scenarie listen STR_2791 :Angiv Navn STR_2792 :Angiv venligst dit navn til scenarie listen: -STR_2793 :{SMALLFONT}(Gennemført af {STRINGID}) +STR_2793 :(Gennemført af {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Gennemført af: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} med en virksomheds værdi på: {BLACK}{CURRENCY} STR_2795 :Sorter STR_2796 :Sorter ordnen af forlystelseslisten ved hjælp af den viste informationstype @@ -2497,7 +2497,7 @@ STR_5134 :Justere større areal af land rettigheder STR_5135 :Køb land rettigheder og byggetilladelser STR_5136 :Land rettigheder STR_5137 :Lås op for driftsbegrænsninger -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Deaktiver bremsefejl STR_5141 :Deaktiver alle nedbrud @@ -2643,7 +2643,7 @@ STR_5297 :Åben park STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Hurtig brandpersonale -STR_5301 :{MEDIUMFONT}{BLACK}Fjern dit lån +STR_5301 :Fjern dit lån STR_5302 :Fjern lån STR_5303 :Tillad bygning i pausetilstand STR_5304 :Titel sekvens: @@ -2802,7 +2802,7 @@ STR_5481 :Temaer STR_5482 :{WINDOW_COLOUR_2}Tid siden sidste inspektion: {BLACK}1 minut STR_5483 :{BLACK}({COMMA16} uger tilbage) STR_5484 :{BLACK}({COMMA16} uge tilbage) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Vis foregående meddelelse STR_5489 :Vis kun overvågede gæster @@ -3293,7 +3293,7 @@ STR_6016 :Modificer felt STR_6017 :Sæt venligst farten ned STR_6018 :Forlystelse konstruktion - Venstresving STR_6019 :Forlystelse konstruktion - Højresving -STR_6020 :Forlystelse konstruktion - Use default track +STR_6020 :Forlystelse konstruktion - Brug standard spor STR_6021 :Forlystelse konstruktion - Bakke ned STR_6022 :Forlystelse konstruktion - Bakke op STR_6023 :Forlystelse konstruktion - Skift kædeløft @@ -3307,7 +3307,7 @@ STR_6030 :Sceneri vælger. Klik på et sceneri på kortet for at vælge det s STR_6031 :Server Beskrivelse: STR_6032 :Server Velkomst: STR_6033 :Sti til RCT1 installation: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Vælg venligst din RCT1 filmappe STR_6036 :Ryd STR_6037 :Den valgte folder indeholder ikke en gyldig, RollerCoaster Tycoon 1 installation. @@ -3452,7 +3452,7 @@ STR_6183 :Følg{MOVE_X}{87}Ingen sprite valgt STR_6184 :Følg Sprite STR_6185 :Vælg Sprite STR_6186 :Ingen sprite valgt -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Opkast STR_6189 :And STR_6190 :Du kan ikke vælge en sprite, mens titelskærmen er aktiv. @@ -3602,7 +3602,7 @@ STR_6356 :Generer ænder hvis parken indeholder vand STR_6357 :Fjern alle ænder fra kortet STR_6358 :Side {UINT16} STR_6359 :{POP16}{POP16}Side {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Aktiver lyseffekter på forlystelser (eksperimentel) STR_6362 :Hvis aktiv, vognene for spor-forlystelser vil lyse op om natten. STR_6363 :Kopierede tekst til udklipsholder @@ -3642,6 +3642,46 @@ STR_6396 :Slå screensaver og skærm-strømstyring fra STR_6397 :Hvis markeret, bliver screensaver og andre skærm strøm styringsfunktioner slået fra. indstillingen forbliver aktiv så længe OpenRCT2 kører. STR_6398 :Filen indeholder ikke understøttet forlystelsestyper. Opdater venligst til en nyere version af OpenRCT2. STR_6399 :OpenRCT2 skal bruge filer fra den originale RollerCoaster Tycoon 2 for at kunne fungere. Tilret venligst “game_path” variablen i config.ini filen, til den mappe hvor du har installeret RollerCoaster Tycoon 2, og genstart derefter OpenRCT2. +STR_6400 :Jeg har GOG offline installationsfilen til RollerCoaster Tycoon 2 hentet, men har det er ikke installeret +STR_6401 :Jeg har allerede installeret RollerCoaster Tycoon 2 +STR_6402 :OpenRCT2 Data opsætning +STR_6403 :Vælg hvad der bedst passer for dig +STR_6404 :Vælg venligst GOG RollerCoaster Tycoon 2 installationsfilen. +STR_6405 :Vælg GOG installationsfil +STR_6406 :GOG RollerCoaster Tycoon 2 installationsfil +STR_6407 :Dette kan tage nogle få minutter. +STR_6408 :Installer venligst “innoextract” for at udpakke GOG Installationen, og derefter genstart OpenRCT2. +STR_6409 :Den valgte fil er ikke en korrekt offline GOG Installationsfil til RollerCoaster Tycoon 2. Du kan have hentet "GOG Galaxy downloader stub" eller valgt den forkerte fil. +STR_6410 :Zoom ind/ud +STR_6411 :Vis knapper til at zoome ind og ud på værktøjslinjen +STR_6412 :Numerisk Enter tast +STR_6413 :Shift +STR_6414 :V Shift +STR_6415 :H Shift +STR_6416 :Ctrl +STR_6417 :V Ctrl +STR_6418 :H Ctrl +STR_6419 :Alt +STR_6420 :V Alt +STR_6421 :H Alt +STR_6422 :Cmd +STR_6423 :V Cmd +STR_6424 :H Cmd +STR_6425 :Joy Venstre +STR_6426 :Joy Højre +STR_6427 :Joy Op +STR_6428 :Joy Ned +STR_6429 :Joy {INT32} +STR_6430 :VMK +STR_6431 :HMK +STR_6432 :Mus {INT32} +STR_6433 :Fjern +STR_6434 :Fjern alle tilknytninger til denne genvej. +STR_6435 :{WINDOW_COLOUR_2}Vandaler stoppet: {BLACK}{COMMA16} +STR_6436 :Skift usynlighed +STR_6437 :Usynlig +STR_6438 :U +STR_6439 :Felt undersøger: Skift usynlighed ############# # Scenarios # @@ -4156,57 +4196,57 @@ STR_NAME :Træ stolpe væg STR_SCNR :Alpine Adventures STR_PARK :Alpine Adventures -STR_DTLS :Convert a small mountain ski resort into a snow-themed amusement park +STR_DTLS :Konverter et lille bjerg ski ressort, til en park med sne som tema STR_SCNR :Amity Airfield STR_PARK :Amity Airfield -STR_DTLS :Build a flying-themed amusement park in this abandoned airport +STR_DTLS :Byge en forlystelsespark med luftfart som tema, i en forladt lufthavn STR_SCNR :Botany Breakers STR_PARK :Botany Breakers -STR_DTLS :Your challenge is to build a high-profit park on this paradise island +STR_DTLS :Din udfordring, er at bygge en højt profitabel forlystelsespark, på denne paradisø STR_SCNR :Build your own Six Flags Belgium STR_PARK :Six Flags Belgium -STR_DTLS :Build your own version of this European Six Flags park +STR_DTLS :Byg din egen version af denne europæiske 'Six Flags' park STR_SCNR :Build your own Six Flags Great Adventure STR_PARK :Six Flags Great Adventure -STR_DTLS :Use your design skills to recreate this Six Flags park +STR_DTLS :Brug dine designer evner, til at genopbygge denne 'Six Flags' forlystelsespark STR_SCNR :Build your own Six Flags Holland STR_PARK :Six Flags Holland -STR_DTLS :Build this European Six Flags park the way you want to +STR_DTLS :Byg denne europæiske 'Six Flags' forlystelsespark på din helt egen måde STR_SCNR :Build your own Six Flags Magic Mountain STR_PARK :Six Flags Magic Mountain -STR_DTLS :Create your own version of this massive Six Flags park +STR_DTLS :Lav din egen version af denne enorme Six Flags park STR_SCNR :Build your own Six Flags over Texas STR_PARK :Six Flags over Texas -STR_DTLS :Starting from scratch, build the forlystelser in this Six Flags park +STR_DTLS :Start fra bunden, byg forlystelserne i denne Six Flags park STR_SCNR :Build your own Six Flags Park STR_PARK :Six Flags -STR_DTLS :Build your own design of Six Flags park - Either build forlystelser from other Six Flags parks or design and build your own forlystelser +STR_DTLS :Byg dit eget Six Flags park design - Enten ved at bygge forlystelser fra andre Six Flags parker eller ved at designe og bygge dine egne forlystelser STR_SCNR :Bumbly Bazaar STR_PARK :Bumbly Bazaar -STR_DTLS :Starting with a small market bazaar, your challenge is to increase the profit from butikker og boder by building forlystelser and rutschebaner to attract more kunder +STR_DTLS :Du starter med en lille markeds bazaar, din udfordring er at forøge indtjeningen fra butikker og boder, ved at bygge forlystelser og rutschebaner for at tiltrække flere kunder STR_SCNR :Crazy Castle STR_PARK :Crazy Castle -STR_DTLS :You have inherited a large castle - Your job is to convert it into a small theme park. +STR_DTLS :Du har arvet et kæmpe stort slot - Din opgave er at udvikle det til en lille forlystelsespark. STR_SCNR :Dusty Greens diff --git a/data/language/de-DE.txt b/data/language/de-DE.txt index 15ca60e2cb..9e5b5c57fc 100644 --- a/data/language/de-DE.txt +++ b/data/language/de-DE.txt @@ -798,14 +798,14 @@ STR_1410 :Vertikaler Turm STR_1411 :{STRINGID} im Weg STR_1412 :{WINDOW_COLOUR_3}Datenprotokollierung für diese Bahnart nicht verfügbar STR_1413 :{WINDOW_COLOUR_3}Datenprot. beginnt, wenn nächst. {STRINGID} d. {STRINGID} verlässt -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Geschw. STR_1416 :{WINDOW_COLOUR_2}Höhe STR_1417 :{WINDOW_COLOUR_2}Vert. G STR_1418 :{WINDOW_COLOUR_2}Seitl. G -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Datenprotokoll von {POP16}{STRINGID} STR_1423 :Warteschlangenweg STR_1424 :Fußweg @@ -864,131 +864,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensitätswert: {BLACK}Noch nicht verfügbar STR_1477 :{WINDOW_COLOUR_2}Intensitätswert: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Übelkeitswert: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Übelkeitswert: {BLACK}Noch nicht verfügbar -STR_1480 :{SMALLFONT}„Ich kann mir {STRINGID} nicht leisten“ -STR_1481 :{SMALLFONT}„Ich habe mein ganzes Geld ausgegeben“ -STR_1482 :{SMALLFONT}„Mir ist übel“ -STR_1483 :{SMALLFONT}„Mir ist total schlecht“ -STR_1484 :{SMALLFONT}„Ich will etwas Spannenderes als {STRINGID}“ -STR_1485 :{SMALLFONT}„{STRINGID} sieht mir zu extrem aus“ -STR_1486 :{SMALLFONT}„Ich bin noch nicht mit d. {STRINGID} fertig“ -STR_1487 :{SMALLFONT}„Uh, {STRINGID} - alleine beim Zusehen wird mir schlecht“ -STR_1488 :{SMALLFONT}„Ich bezahle nicht so viel für {STRINGID}“ -STR_1489 :{SMALLFONT}„Ich will nach Hause“ -STR_1490 :{SMALLFONT}„{STRINGID} ist das Geld wirklich wert“ -STR_1491 :{SMALLFONT}„Ich habe bereits {STRINGID}“ -STR_1492 :{SMALLFONT}„Ich kann mir d. {STRINGID} nicht leisten“ -STR_1493 :{SMALLFONT}„Ich bin nicht hungrig“ -STR_1494 :{SMALLFONT}„Ich bin nicht durstig“ -STR_1495 :{SMALLFONT}„Hilfe! Ich ertrinke!“ -STR_1496 :{SMALLFONT}„Ich habe mich verirrt!“ -STR_1497 :{SMALLFONT}„{STRINGID} war großartig“ -STR_1498 :{SMALLFONT}„Ich habe für {STRINGID} ewig angestanden“ -STR_1499 :{SMALLFONT}„Ich bin müde“ -STR_1500 :{SMALLFONT}„Ich bin hungrig“ -STR_1501 :{SMALLFONT}„Ich bin durstig“ -STR_1502 :{SMALLFONT}„Ich muss auf die Toilette“ -STR_1503 :{SMALLFONT}„Ich kann {STRINGID} nicht finden“ -STR_1504 :{SMALLFONT}„Ich bezahle nicht so viel für {STRINGID}“ -STR_1505 :{SMALLFONT}„Ich gehe nicht auf {STRINGID}, solange es regnet“ -STR_1506 :{SMALLFONT}„Das Müllproblem ist hier wirklich extrem“ -STR_1507 :{SMALLFONT}„Ich kann den Parkausgang nicht finden“ -STR_1508 :{SMALLFONT}„Ich möchte {STRINGID} verlassen“ -STR_1509 :{SMALLFONT}„Ich möchte aus {STRINGID} aussteigen“ -STR_1510 :{SMALLFONT}„Ich gehe nicht auf {STRINGID} - Es ist nicht sicher“ -STR_1511 :{SMALLFONT}„Dieser Weg ist schrecklich“ -STR_1512 :{SMALLFONT}„Hier sind zu viele Leute“ -STR_1513 :{SMALLFONT}„Der Vandalismus hier ist schrecklich“ -STR_1514 :{SMALLFONT}„Eine tolle Landschaft!“ -STR_1515 :{SMALLFONT}„Dieser Park ist wirklich sauber und aufgeräumt“ -STR_1516 :{SMALLFONT}„Die Springbrunnen sind großartig“ -STR_1517 :{SMALLFONT}„Die Musik hier gefällt mir“ -STR_1518 :{SMALLFONT}„Dieser Ballon von {STRINGID} ist sein Geld wert“ -STR_1519 :{SMALLFONT}„Dieses Plüschtier von {STRINGID} ist sein Geld wert“ -STR_1520 :{SMALLFONT}„Diese Parkkarte von {STRINGID} ist ihr Geld wert“ -STR_1521 :{SMALLFONT}„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ -STR_1522 :{SMALLFONT}„Dieser Regenschirm von {STRINGID} ist sein Geld wert“ -STR_1523 :{SMALLFONT}„Dieses Getränk von {STRINGID} ist sein Geld wert“ -STR_1524 :{SMALLFONT}„Dieser Burger von {STRINGID} ist sein Geld wert“ -STR_1525 :{SMALLFONT}„Diese Pommes von {STRINGID} sind ihr Geld wert“ -STR_1526 :{SMALLFONT}„Dieses Eis von {STRINGID} ist sein Geld wert“ -STR_1527 :{SMALLFONT}„Diese Zuckerwatte von {STRINGID} ist ihr Geld wert“ +STR_1480 :„Ich kann mir {STRINGID} nicht leisten“ +STR_1481 :„Ich habe mein ganzes Geld ausgegeben“ +STR_1482 :„Mir ist übel“ +STR_1483 :„Mir ist total schlecht“ +STR_1484 :„Ich will etwas Spannenderes als {STRINGID}“ +STR_1485 :„{STRINGID} sieht mir zu extrem aus“ +STR_1486 :„Ich bin noch nicht mit d. {STRINGID} fertig“ +STR_1487 :„Uh, {STRINGID} - alleine beim Zusehen wird mir schlecht“ +STR_1488 :„Ich bezahle nicht so viel für {STRINGID}“ +STR_1489 :„Ich will nach Hause“ +STR_1490 :„{STRINGID} ist das Geld wirklich wert“ +STR_1491 :„Ich habe bereits {STRINGID}“ +STR_1492 :„Ich kann mir d. {STRINGID} nicht leisten“ +STR_1493 :„Ich bin nicht hungrig“ +STR_1494 :„Ich bin nicht durstig“ +STR_1495 :„Hilfe! Ich ertrinke!“ +STR_1496 :„Ich habe mich verirrt!“ +STR_1497 :„{STRINGID} war großartig“ +STR_1498 :„Ich habe für {STRINGID} ewig angestanden“ +STR_1499 :„Ich bin müde“ +STR_1500 :„Ich bin hungrig“ +STR_1501 :„Ich bin durstig“ +STR_1502 :„Ich muss auf die Toilette“ +STR_1503 :„Ich kann {STRINGID} nicht finden“ +STR_1504 :„Ich bezahle nicht so viel für {STRINGID}“ +STR_1505 :„Ich gehe nicht auf {STRINGID}, solange es regnet“ +STR_1506 :„Das Müllproblem ist hier wirklich extrem“ +STR_1507 :„Ich kann den Parkausgang nicht finden“ +STR_1508 :„Ich möchte {STRINGID} verlassen“ +STR_1509 :„Ich möchte aus {STRINGID} aussteigen“ +STR_1510 :„Ich gehe nicht auf {STRINGID} - Es ist nicht sicher“ +STR_1511 :„Dieser Weg ist schrecklich“ +STR_1512 :„Hier sind zu viele Leute“ +STR_1513 :„Der Vandalismus hier ist schrecklich“ +STR_1514 :„Eine tolle Landschaft!“ +STR_1515 :„Dieser Park ist wirklich sauber und aufgeräumt“ +STR_1516 :„Die Springbrunnen sind großartig“ +STR_1517 :„Die Musik hier gefällt mir“ +STR_1518 :„Dieser Ballon von {STRINGID} ist sein Geld wert“ +STR_1519 :„Dieses Plüschtier von {STRINGID} ist sein Geld wert“ +STR_1520 :„Diese Parkkarte von {STRINGID} ist ihr Geld wert“ +STR_1521 :„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ +STR_1522 :„Dieser Regenschirm von {STRINGID} ist sein Geld wert“ +STR_1523 :„Dieses Getränk von {STRINGID} ist sein Geld wert“ +STR_1524 :„Dieser Burger von {STRINGID} ist sein Geld wert“ +STR_1525 :„Diese Pommes von {STRINGID} sind ihr Geld wert“ +STR_1526 :„Dieses Eis von {STRINGID} ist sein Geld wert“ +STR_1527 :„Diese Zuckerwatte von {STRINGID} ist ihr Geld wert“ STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}„Diese Pizza von {STRINGID} ist ihr Geld wert“ +STR_1531 :„Diese Pizza von {STRINGID} ist ihr Geld wert“ STR_1532 : -STR_1533 :{SMALLFONT}„Dieses Popcorn von {STRINGID} ist sein Geld wert“ -STR_1534 :{SMALLFONT}„Dieser Hot Dog von {STRINGID} ist sein Geld wert“ -STR_1535 :{SMALLFONT}„Diese Meeresfrüchte von {STRINGID} sind ihr Geld wert“ -STR_1536 :{SMALLFONT}„Dieser Hut von {STRINGID} ist sein Geld wert“ -STR_1537 :{SMALLFONT}„Dieser Karamellapfel von {STRINGID} ist sein Geld wert“ -STR_1538 :{SMALLFONT}„Dieses T-Shirt von {STRINGID} ist sein Geld wert“ -STR_1539 :{SMALLFONT}„Dieser Donut von {STRINGID} ist sein Geld wert“ -STR_1540 :{SMALLFONT}„Dieser Kaffee von {STRINGID} ist sein Geld wert“ +STR_1533 :„Dieses Popcorn von {STRINGID} ist sein Geld wert“ +STR_1534 :„Dieser Hot Dog von {STRINGID} ist sein Geld wert“ +STR_1535 :„Diese Meeresfrüchte von {STRINGID} sind ihr Geld wert“ +STR_1536 :„Dieser Hut von {STRINGID} ist sein Geld wert“ +STR_1537 :„Dieser Karamellapfel von {STRINGID} ist sein Geld wert“ +STR_1538 :„Dieses T-Shirt von {STRINGID} ist sein Geld wert“ +STR_1539 :„Dieser Donut von {STRINGID} ist sein Geld wert“ +STR_1540 :„Dieser Kaffee von {STRINGID} ist sein Geld wert“ STR_1541 : -STR_1542 :{SMALLFONT}„Dieses Brathähnchen von {STRINGID} ist sein Geld wert“ -STR_1543 :{SMALLFONT}„Diese Limonade von {STRINGID} ist ihr Geld wert“ +STR_1542 :„Dieses Brathähnchen von {STRINGID} ist sein Geld wert“ +STR_1543 :„Diese Limonade von {STRINGID} ist ihr Geld wert“ STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}„Wow!“ -STR_1551 :{SMALLFONT}„Ich habe das komische Gefühl, dass mich jemand beobachtet“ -STR_1552 :{SMALLFONT}„Ich bezahle nicht so viel für einen Ballon von {STRINGID}“ -STR_1553 :{SMALLFONT}„Ich bezahle nicht so viel für ein Plüschtier von {STRINGID}“ -STR_1554 :{SMALLFONT}„Ich bezahle nicht so viel für eine Parkkarte von {STRINGID}“ -STR_1555 :{SMALLFONT}„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ -STR_1556 :{SMALLFONT}„Ich bezahle nicht so viel für einen Regenschirm von {STRINGID}“ -STR_1557 :{SMALLFONT}„Ich bezahle nicht so viel für ein Getränk von {STRINGID}“ -STR_1558 :{SMALLFONT}„Ich bezahle nicht so viel für einen Ballon von {STRINGID}“ -STR_1559 :{SMALLFONT}„Ich bezahle nicht so viel für Pommes von {STRINGID}“ -STR_1560 :{SMALLFONT}„Ich bezahle nicht so viel für Eis von {STRINGID}“ -STR_1561 :{SMALLFONT}„Ich bezahle nicht so viel für Zuckerwatte von {STRINGID}“ +STR_1550 :„Wow!“ +STR_1551 :„Ich habe das komische Gefühl, dass mich jemand beobachtet“ +STR_1552 :„Ich bezahle nicht so viel für einen Ballon von {STRINGID}“ +STR_1553 :„Ich bezahle nicht so viel für ein Plüschtier von {STRINGID}“ +STR_1554 :„Ich bezahle nicht so viel für eine Parkkarte von {STRINGID}“ +STR_1555 :„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ +STR_1556 :„Ich bezahle nicht so viel für einen Regenschirm von {STRINGID}“ +STR_1557 :„Ich bezahle nicht so viel für ein Getränk von {STRINGID}“ +STR_1558 :„Ich bezahle nicht so viel für einen Ballon von {STRINGID}“ +STR_1559 :„Ich bezahle nicht so viel für Pommes von {STRINGID}“ +STR_1560 :„Ich bezahle nicht so viel für Eis von {STRINGID}“ +STR_1561 :„Ich bezahle nicht so viel für Zuckerwatte von {STRINGID}“ STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}„Ich bezahle nicht so viel für eine Pizza von {STRINGID}“ +STR_1565 :„Ich bezahle nicht so viel für eine Pizza von {STRINGID}“ STR_1566 : -STR_1567 :{SMALLFONT}„Ich bezahle nicht so viel für Popcorn von {STRINGID}“ -STR_1568 :{SMALLFONT}„Ich bezahle nicht so viel für einen Hot Dog von {STRINGID}“ -STR_1569 :{SMALLFONT}„Ich bezahle nicht so viel für Meeresfrüchte von {STRINGID}“ -STR_1570 :{SMALLFONT}„Ich bezahle nicht so viel für einen Hut von {STRINGID}“ -STR_1571 :{SMALLFONT}„Ich bezahle nicht so viel für einen Karamellapfel von {STRINGID}“ -STR_1572 :{SMALLFONT}„Ich bezahle nicht so viel für ein T-Shirt von {STRINGID}“ -STR_1573 :{SMALLFONT}„Ich bezahle nicht so viel für einen Donut von {STRINGID}“ -STR_1574 :{SMALLFONT}„Ich bezahle nicht so viel für einen Kaffee von {STRINGID}“ +STR_1567 :„Ich bezahle nicht so viel für Popcorn von {STRINGID}“ +STR_1568 :„Ich bezahle nicht so viel für einen Hot Dog von {STRINGID}“ +STR_1569 :„Ich bezahle nicht so viel für Meeresfrüchte von {STRINGID}“ +STR_1570 :„Ich bezahle nicht so viel für einen Hut von {STRINGID}“ +STR_1571 :„Ich bezahle nicht so viel für einen Karamellapfel von {STRINGID}“ +STR_1572 :„Ich bezahle nicht so viel für ein T-Shirt von {STRINGID}“ +STR_1573 :„Ich bezahle nicht so viel für einen Donut von {STRINGID}“ +STR_1574 :„Ich bezahle nicht so viel für einen Kaffee von {STRINGID}“ STR_1575 : -STR_1576 :{SMALLFONT}„Ich bezahle nicht so viel für ein Brathähnchen von {STRINGID}“ -STR_1577 :{SMALLFONT}„Ich bezahle nicht so viel für Limonade von {STRINGID}“ +STR_1576 :„Ich bezahle nicht so viel für ein Brathähnchen von {STRINGID}“ +STR_1577 :„Ich bezahle nicht so viel für Limonade von {STRINGID}“ STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ -STR_1585 :{SMALLFONT}„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ -STR_1586 :{SMALLFONT}„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ -STR_1587 :{SMALLFONT}„Diese Brezel von {STRINGID} ist ihr Geld wert“ -STR_1588 :{SMALLFONT}„Diese heiße Schokolade von {STRINGID} ist ihr Geld wert“ -STR_1589 :{SMALLFONT}„Dieser Eistee von {STRINGID} ist sein Geld wert“ -STR_1590 :{SMALLFONT}„Dieser Kuchen von {STRINGID} ist sein Geld wert“ -STR_1591 :{SMALLFONT}„Diese Sonnenbrille von {STRINGID} ist ihr Geld wert“ -STR_1592 :{SMALLFONT}„Diese Fleischnudeln von {STRINGID} sind ihr Geld wert“ -STR_1593 :{SMALLFONT}„Diese gebratenen Reisnudeln von {STRINGID} sind ihr Geld wert“ -STR_1594 :{SMALLFONT}„Diese Wonton-Suppe von {STRINGID} ist ihr Geld wert“ -STR_1595 :{SMALLFONT}„Diese Fleischklößchensuppe von {STRINGID} ist ihr Geld wert“ -STR_1596 :{SMALLFONT}„Dieser Fruchtsaft von {STRINGID} ist sein Geld wert“ -STR_1597 :{SMALLFONT}„Diese Sojamilch von {STRINGID} ist ihr Geld wert“ -STR_1598 :{SMALLFONT}„Diese Sujeonggwa von {STRINGID} ist ihr Geld wert“ -STR_1599 :{SMALLFONT}„Dieses Sandwich von {STRINGID} ist sein Geld wert“ -STR_1600 :{SMALLFONT}„Dieser Keks von {STRINGID} ist sein Geld wert“ +STR_1584 :„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ +STR_1585 :„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ +STR_1586 :„Dieses Fahrtfoto von {STRINGID} ist sein Geld wert“ +STR_1587 :„Diese Brezel von {STRINGID} ist ihr Geld wert“ +STR_1588 :„Diese heiße Schokolade von {STRINGID} ist ihr Geld wert“ +STR_1589 :„Dieser Eistee von {STRINGID} ist sein Geld wert“ +STR_1590 :„Dieser Kuchen von {STRINGID} ist sein Geld wert“ +STR_1591 :„Diese Sonnenbrille von {STRINGID} ist ihr Geld wert“ +STR_1592 :„Diese Fleischnudeln von {STRINGID} sind ihr Geld wert“ +STR_1593 :„Diese gebratenen Reisnudeln von {STRINGID} sind ihr Geld wert“ +STR_1594 :„Diese Wonton-Suppe von {STRINGID} ist ihr Geld wert“ +STR_1595 :„Diese Fleischklößchensuppe von {STRINGID} ist ihr Geld wert“ +STR_1596 :„Dieser Fruchtsaft von {STRINGID} ist sein Geld wert“ +STR_1597 :„Diese Sojamilch von {STRINGID} ist ihr Geld wert“ +STR_1598 :„Diese Sujeonggwa von {STRINGID} ist ihr Geld wert“ +STR_1599 :„Dieses Sandwich von {STRINGID} ist sein Geld wert“ +STR_1600 :„Dieser Keks von {STRINGID} ist sein Geld wert“ STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}„Diese Bratwurst von {STRINGID} ist ihr Geld wert“ +STR_1604 :„Diese Bratwurst von {STRINGID} ist ihr Geld wert“ STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1000,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ -STR_1617 :{SMALLFONT}„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ -STR_1618 :{SMALLFONT}„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ -STR_1619 :{SMALLFONT}„Ich bezahle nicht so viel für eine Brezel von {STRINGID}“ -STR_1620 :{SMALLFONT}„Ich bezahle nicht so viel für eine heiße Schokolade von {STRINGID}“ -STR_1621 :{SMALLFONT}„Ich bezahle nicht so viel für einen Eistee von {STRINGID}“ -STR_1622 :{SMALLFONT}„Ich bezahle nicht so viel für einen Kuchen von {STRINGID}“ -STR_1623 :{SMALLFONT}„Ich bezahle nicht so viel für eine Sonnenbrille von {STRINGID}“ -STR_1624 :{SMALLFONT}„Ich bezahle nicht so viel für Fleischnudeln von {STRINGID}“ -STR_1625 :{SMALLFONT}„Ich bezahle nicht so viel für gebratene Reisnudeln von {STRINGID}“ -STR_1626 :{SMALLFONT}„Ich bezahle nicht so viel für eine Wonton-Suppe von {STRINGID}“ -STR_1627 :{SMALLFONT}„Ich bezahle nicht so viel für eine Fleischklößchensuppe von {STRINGID}“ -STR_1628 :{SMALLFONT}„Ich bezahle nicht so viel für einen Fruchtsaft von {STRINGID}“ -STR_1629 :{SMALLFONT}„Ich bezahle nicht so viel für Sojamilch von {STRINGID}“ -STR_1630 :{SMALLFONT}„Ich bezahle nicht so viel für Sujeonggwa von {STRINGID}“ -STR_1631 :{SMALLFONT}„Ich bezahle nicht so viel für ein Sandwich von {STRINGID}“ -STR_1632 :{SMALLFONT}„Ich bezahle nicht so viel für einen Keks von {STRINGID}“ +STR_1616 :„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ +STR_1617 :„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ +STR_1618 :„Ich bezahle nicht so viel für ein Fahrtfoto von {STRINGID}“ +STR_1619 :„Ich bezahle nicht so viel für eine Brezel von {STRINGID}“ +STR_1620 :„Ich bezahle nicht so viel für eine heiße Schokolade von {STRINGID}“ +STR_1621 :„Ich bezahle nicht so viel für einen Eistee von {STRINGID}“ +STR_1622 :„Ich bezahle nicht so viel für einen Kuchen von {STRINGID}“ +STR_1623 :„Ich bezahle nicht so viel für eine Sonnenbrille von {STRINGID}“ +STR_1624 :„Ich bezahle nicht so viel für Fleischnudeln von {STRINGID}“ +STR_1625 :„Ich bezahle nicht so viel für gebratene Reisnudeln von {STRINGID}“ +STR_1626 :„Ich bezahle nicht so viel für eine Wonton-Suppe von {STRINGID}“ +STR_1627 :„Ich bezahle nicht so viel für eine Fleischklößchensuppe von {STRINGID}“ +STR_1628 :„Ich bezahle nicht so viel für einen Fruchtsaft von {STRINGID}“ +STR_1629 :„Ich bezahle nicht so viel für Sojamilch von {STRINGID}“ +STR_1630 :„Ich bezahle nicht so viel für Sujeonggwa von {STRINGID}“ +STR_1631 :„Ich bezahle nicht so viel für ein Sandwich von {STRINGID}“ +STR_1632 :„Ich bezahle nicht so viel für einen Keks von {STRINGID}“ STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}„Ich bezahle nicht so viel für eine Bratwurst von {STRINGID}“ +STR_1636 :„Ich bezahle nicht so viel für eine Bratwurst von {STRINGID}“ STR_1637 : STR_1638 : STR_1639 : @@ -1032,11 +1032,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}„Hilfe! Lasst mich runter!“ -STR_1649 :{SMALLFONT}„Mir geht das Geld aus!“ -STR_1650 :{SMALLFONT}„Wow! Eine neue Bahn im Bau!“ +STR_1648 :„Hilfe! Lasst mich runter!“ +STR_1649 :„Mir geht das Geld aus!“ +STR_1650 :„Wow! Eine neue Bahn im Bau!“ # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}„…und hier sind wir bei d. {STRINGID}!“ +STR_1653 :„…und hier sind wir bei d. {STRINGID}!“ STR_1654 :{WINDOW_COLOUR_2}Aktuelle Gedanken: STR_1655 :Fußweg auf Gelände anlegen STR_1656 :Brücke bauen oder Tunnel anlegen @@ -1188,7 +1188,7 @@ STR_1808 :{WINDOW_COLOUR_2}Letzte Störung: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Aktuelle Störung: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Trägt: STR_1811 :Dies kann hier nicht gebaut werden… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Verschiedene Objekte STR_1814 :Aktionen STR_1815 :Gedanken @@ -1197,7 +1197,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle Besucher STR_1819 :{WINDOW_COLOUR_2}Alle Besucher (zusammengefasst) STR_1820 :{WINDOW_COLOUR_2}Besucher {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Besucher denken {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Besucher denken {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Besucher denken an {POP16}{STRINGID} STR_1823 :Gedanken der Besucher zu dieser{NEWLINE}Attraktion anzeigen STR_1824 :Besucher dieser Attraktion anzeigen @@ -1298,7 +1298,6 @@ STR_1921 :Neues Spiel beginnen STR_1922 :Gespeichertes Spiel fortsetzen STR_1924 :Beenden STR_1925 :Person kann hier nicht platziert werden… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} ist ausgefallen STR_1928 :{RED}{STRINGID} hatte einen Unfall! STR_1929 :{RED}{STRINGID} wurde immer noch nicht repariert{NEWLINE}Schauen Sie nach, wo Ihre Mechaniker sind, und organisieren Sie sie besser @@ -1579,7 +1578,7 @@ STR_2218 :{RED}{STRINGID} bei {STRINGID} ist noch nicht zu {STRINGID} zurück STR_2219 :{RED}{COMMA16} Menschen sind bei einem Unfall in {STRINGID} gestorben STR_2220 :{WINDOW_COLOUR_2}Parkbewertung: {BLACK}{COMMA16} STR_2221 :Parkbewertung: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Besucher im Park: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Kontostand: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Kontostand: {RED}{CURRENCY2DP} @@ -1592,7 +1591,7 @@ STR_2231 :Haltebremse (Gefälle) STR_2232 :Kabellifthügel STR_2233 :Parkinformationen STR_2234 :Aktuelle Nachrichten -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Januar STR_2237 :Februar STR_2238 :März @@ -1796,7 +1795,7 @@ STR_2450 :{YELLOW}Ihre Werbekampagne für den Park ist zu Ende STR_2451 :{YELLOW}Ihre Werbekampagne für d. {STRINGID} ist zu Ende STR_2452 :{WINDOW_COLOUR_2}Kontostand (abzüglich Darlehen): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Kontostand (abzüglich Darlehen): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Finanzkonten anzeigen STR_2458 :Kontostand (abzüglich Darlehen){NEWLINE}im Zeitverlauf anzeigen STR_2459 :Verkehrswertdiagramm im{NEWLINE}Zeitverlauf anzeigen @@ -1907,7 +1906,6 @@ STR_2636 :Ziffernblock / STR_2669 :Numlock STR_2670 :Rollen STR_2680 :Alle Forschungen beendet -STR_2681 :{MEDIUMFONT}{BLACK}Erhöht Ihren Kontostand um {CURRENCY} STR_2684 :Eine große Gruppe von Besuchern tritt ein STR_2685 :Simplexrauschparameter STR_2686 :Niedrig: @@ -1994,7 +1992,7 @@ STR_2789 :{WINDOW_COLOUR_2}Sie haben Ihr Ziel nicht erreicht! STR_2790 :Namen für die Szenarioübers. eingeben STR_2791 :Namen eingeben STR_2792 :Namen für die Szenarioübersicht eingeben: -STR_2793 :{SMALLFONT}(Durchgeführt von {STRINGID}) +STR_2793 :(Durchgeführt von {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Durchgeführt von: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} mit einem Firmenwert von: {BLACK}{CURRENCY} STR_2795 :Sortieren STR_2796 :Sortieren Sie die Bahnliste in die richtige Reihenfolge mit Hilfe der angezeigten Informationsart @@ -2500,7 +2498,7 @@ STR_5134 :Größeren Landbereich anpassen STR_5135 :Kaufe Land- und Baurechte STR_5136 :Landrechte STR_5137 :Betriebsbeschränkungen aufheben -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Deaktiviere Bremsenfehlfunktion STR_5141 :Deaktiviere alle Störungen @@ -2646,7 +2644,7 @@ STR_5297 :Park öffnen STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Personal schnell feuern -STR_5301 :{MEDIUMFONT}{BLACK}Ihr Darlehen zurückzahlen +STR_5301 :Ihr Darlehen zurückzahlen STR_5302 :Darlehen zurückzahl. STR_5303 :Erlaube im Pausenmodus zu bauen STR_5304 :Titelsequenz: @@ -2805,7 +2803,7 @@ STR_5481 :Themen STR_5482 :{WINDOW_COLOUR_2}Letzte Inspektion vor: {BLACK}1 Minute STR_5483 :{BLACK}({COMMA16} Wochen verbleibend) STR_5484 :{BLACK}({COMMA16} Woche verbleibend) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Aktuelle Nachrichten anzeigen STR_5489 :Nur überwachte Besucher anzeigen @@ -3290,23 +3288,23 @@ STR_6014 :Gäste zahlen lediglich für Attraktionen und Service.{NEWLINE}Der STR_6015 :Geneigt STR_6016 :Modifiziere Kachel STR_6017 :Bitte verlangsamen Sie Ihr Tempo -STR_6018 :Streckenbau - Bogen links -STR_6019 :Streckenbau - Bogen rechts -STR_6020 :Streckenbau - Verwende Standardabschnitt -STR_6021 :Streckenbau - Neigung unten -STR_6022 :Streckenbau - Neigung oben -STR_6023 :Streckenbau - Umschalten Kettenlift -STR_6024 :Streckenbau - Überhöhung links -STR_6025 :Streckenbau - Überhöhung rechts -STR_6026 :Streckenbau - Vorausgehender Abschnitt -STR_6027 :Streckenbau - Nächster Abschnitt -STR_6028 :Streckenbau - Aktuellen Abschnitt platzieren -STR_6029 :Streckenbau - Aktuellen Abschnitt abreißen +STR_6018 :Bau - Kurve links +STR_6019 :Bau - Kurve rechts +STR_6020 :Bau - Standardabschnitt verwenden +STR_6021 :Bau - Neigung unten +STR_6022 :Bau - Neigung oben +STR_6023 :Bau - Kettenlift umschalten +STR_6024 :Bau - Seitlich links kippen +STR_6025 :Bau - Seitlich rechts kippen +STR_6026 :Bau - Vorheriger Abschnitt +STR_6027 :Bau - Nächster Abschnitt +STR_6028 :Bau - Aktuellen Abschnitt platzieren +STR_6029 :Bau - Aktuellen Abschnitt abreißen STR_6030 :Landschaftsauswahl. Wählen Sie ein Landschaftselement auf der Karte aus, und verwenden Sie es zum Platzieren. STR_6031 :Serverbeschreibung: STR_6032 :Serverbegrüßung: STR_6033 :Pfad zur RCT1-Installation: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Bitte wählen Sie ein RCT1-Verzeichnis STR_6036 :Leeren STR_6037 :Das gewählte Verzeichnis enthält keine gültige „RollerCoaster Tycoon 1“-Installation. @@ -3451,7 +3449,7 @@ STR_6183 :Folgen{MOVE_X}{87}Kein Objekt ausgewählt STR_6184 :Objekt folgen STR_6185 :Objekt auswählen STR_6186 :Kein Objekt ausgewählt -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Erbrochenes STR_6189 :Ente STR_6190 :Sie können kein Objekt auswählen, solange Sie sich im Hauptmenü befinden @@ -3601,7 +3599,7 @@ STR_6356 :Erzeugt Enten, falls der Park Wasser enthält STR_6357 :Entfernt alle Enten aus der Karte STR_6358 :Seite {UINT16} STR_6359 :{POP16}{POP16}Seite {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Lichter an Fahrgeschäften akt. (experimentell) STR_6362 :Falls aktiviert, werden Fahrzeuge für Streckenfahrgeschäfte in der Nacht leuchten. STR_6363 :Text in die Zwischenablage kopiert @@ -3676,6 +3674,24 @@ STR_6431 :RMT STR_6432 :Maus {INT32} STR_6433 :Entfernen STR_6434 :Alle Zuweisungen für dieses Tastenkürzel entfernen. +STR_6435 :{WINDOW_COLOUR_2}Aufgehaltene Vandalen: {BLACK}{COMMA16} +STR_6436 :Unsichtbarkeit umschalten +STR_6437 :Unsichtbar +STR_6438 :U +STR_6439 :Kachelinspektor: Unsichtbarkeit umschalten +STR_6440 :Transparentes Wasser +STR_6441 :Mindestens ein Nicht-Warteschlangenfußwegbelagsobjekt muss ausgewählt sein. +STR_6442 :Mindestens ein Warteschlangenfußwegbelagsobjekt muss ausgewählt sein. +STR_6443 :Mindestens ein Fußweggeländerobjekt muss ausgewählt sein. +STR_6444 :Fußwegbelage +STR_6445 :Fußweggeländer +STR_6446 :{WINDOW_COLOUR_2}Belagsname: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Geländername: {BLACK}{STRINGID} +STR_6448 :Nicht unterstütztes Objektformat +STR_6449 :{WINDOW_COLOUR_2}Titel: +STR_6450 :{BLACK}„{STRING}“ +STR_6451 :{BLACK}„{STRING}“ - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Verkauft: {BLACK}{STRING} ############# # Scenarios # diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index d871161682..3813f7521e 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -240,8 +240,8 @@ STR_0831 :Zoom view out STR_0832 :Rotate view 90° clockwise STR_0833 :Pause game STR_0834 :Disk and game options -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} STR_0847 :About ‘OpenRCT2’ STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, all rights reserved STR_0851 :{WINDOW_COLOUR_2}Designed and programmed by Chris Sawyer @@ -798,14 +798,14 @@ STR_1410 :Vertical Tower STR_1411 :{STRINGID} in the way STR_1412 :{WINDOW_COLOUR_3}Data logging not available for this type of ride STR_1413 :{WINDOW_COLOUR_3}Data logging will start when next {STRINGID} leaves {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Velocity STR_1416 :{WINDOW_COLOUR_2}Altitude STR_1417 :{WINDOW_COLOUR_2}Vert. Gs STR_1418 :{WINDOW_COLOUR_2}Lat. Gs -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Logging data from {POP16}{STRINGID} STR_1423 :Queue line path STR_1424 :Footpath @@ -864,131 +864,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensity rating: {BLACK}Not yet available STR_1477 :{WINDOW_COLOUR_2}Intensity rating: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}Not yet available -STR_1480 :{SMALLFONT}“I can’t afford {STRINGID}” -STR_1481 :{SMALLFONT}“I’ve spent all my money” -STR_1482 :{SMALLFONT}“I feel sick” -STR_1483 :{SMALLFONT}“I feel very sick” -STR_1484 :{SMALLFONT}“I want to go on something more thrilling than {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} looks too intense for me” -STR_1486 :{SMALLFONT}“I haven’t finished my {STRINGID} yet” -STR_1487 :{SMALLFONT}“Just looking at {STRINGID} makes me feel sick” -STR_1488 :{SMALLFONT}“I’m not paying that much to go on {STRINGID}” -STR_1489 :{SMALLFONT}“I want to go home” -STR_1490 :{SMALLFONT}“{STRINGID} is really good value” -STR_1491 :{SMALLFONT}“I’ve already got {STRINGID}” -STR_1492 :{SMALLFONT}“I can’t afford {STRINGID}” -STR_1493 :{SMALLFONT}“I’m not hungry” -STR_1494 :{SMALLFONT}“I’m not thirsty” -STR_1495 :{SMALLFONT}“Help! I’m drowning!” -STR_1496 :{SMALLFONT}“I’m lost!” -STR_1497 :{SMALLFONT}“{STRINGID} was great” -STR_1498 :{SMALLFONT}“I’ve been queuing for {STRINGID} for ages” -STR_1499 :{SMALLFONT}“I’m tired” -STR_1500 :{SMALLFONT}“I’m hungry” -STR_1501 :{SMALLFONT}“I’m thirsty” -STR_1502 :{SMALLFONT}“I need to go to the toilet” -STR_1503 :{SMALLFONT}“I can’t find {STRINGID}” -STR_1504 :{SMALLFONT}“I’m not paying that much to use {STRINGID}” -STR_1505 :{SMALLFONT}“I’m not going on {STRINGID} while it’s raining” -STR_1506 :{SMALLFONT}“The litter here is really bad” -STR_1507 :{SMALLFONT}“I can’t find the park exit” -STR_1508 :{SMALLFONT}“I want to get off {STRINGID}” -STR_1509 :{SMALLFONT}“I want to get out of {STRINGID}” -STR_1510 :{SMALLFONT}“I’m not going on {STRINGID} - it isn’t safe” -STR_1511 :{SMALLFONT}“This path is disgusting” -STR_1512 :{SMALLFONT}“It’s too crowded here” -STR_1513 :{SMALLFONT}“The vandalism here is really bad” -STR_1514 :{SMALLFONT}“Great scenery!” -STR_1515 :{SMALLFONT}“This park is really clean and tidy” -STR_1516 :{SMALLFONT}“The jumping fountains are great” -STR_1517 :{SMALLFONT}“The music is nice here” -STR_1518 :{SMALLFONT}“This balloon from {STRINGID} is really good value” -STR_1519 :{SMALLFONT}“This cuddly toy from {STRINGID} is really good value” -STR_1520 :{SMALLFONT}“This park map from {STRINGID} is really good value” -STR_1521 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1522 :{SMALLFONT}“This umbrella from {STRINGID} is really good value” -STR_1523 :{SMALLFONT}“This drink from {STRINGID} is really good value” -STR_1524 :{SMALLFONT}“This burger from {STRINGID} is really good value” -STR_1525 :{SMALLFONT}“These chips from {STRINGID} are really good value” -STR_1526 :{SMALLFONT}“This ice cream from {STRINGID} is really good value” -STR_1527 :{SMALLFONT}“This candyfloss from {STRINGID} is really good value” +STR_1480 :“I can’t afford {STRINGID}” +STR_1481 :“I’ve spent all my money” +STR_1482 :“I feel sick” +STR_1483 :“I feel very sick” +STR_1484 :“I want to go on something more thrilling than {STRINGID}” +STR_1485 :“{STRINGID} looks too intense for me” +STR_1486 :“I haven’t finished my {STRINGID} yet” +STR_1487 :“Just looking at {STRINGID} makes me feel sick” +STR_1488 :“I’m not paying that much to go on {STRINGID}” +STR_1489 :“I want to go home” +STR_1490 :“{STRINGID} is really good value” +STR_1491 :“I’ve already got {STRINGID}” +STR_1492 :“I can’t afford {STRINGID}” +STR_1493 :“I’m not hungry” +STR_1494 :“I’m not thirsty” +STR_1495 :“Help! I’m drowning!” +STR_1496 :“I’m lost!” +STR_1497 :“{STRINGID} was great” +STR_1498 :“I’ve been queuing for {STRINGID} for ages” +STR_1499 :“I’m tired” +STR_1500 :“I’m hungry” +STR_1501 :“I’m thirsty” +STR_1502 :“I need to go to the toilet” +STR_1503 :“I can’t find {STRINGID}” +STR_1504 :“I’m not paying that much to use {STRINGID}” +STR_1505 :“I’m not going on {STRINGID} while it’s raining” +STR_1506 :“The litter here is really bad” +STR_1507 :“I can’t find the park exit” +STR_1508 :“I want to get off {STRINGID}” +STR_1509 :“I want to get out of {STRINGID}” +STR_1510 :“I’m not going on {STRINGID} - it isn’t safe” +STR_1511 :“This path is disgusting” +STR_1512 :“It’s too crowded here” +STR_1513 :“The vandalism here is really bad” +STR_1514 :“Great scenery!” +STR_1515 :“This park is really clean and tidy” +STR_1516 :“The jumping fountains are great” +STR_1517 :“The music is nice here” +STR_1518 :“This balloon from {STRINGID} is really good value” +STR_1519 :“This cuddly toy from {STRINGID} is really good value” +STR_1520 :“This park map from {STRINGID} is really good value” +STR_1521 :“This on-ride photo from {STRINGID} is really good value” +STR_1522 :“This umbrella from {STRINGID} is really good value” +STR_1523 :“This drink from {STRINGID} is really good value” +STR_1524 :“This burger from {STRINGID} is really good value” +STR_1525 :“These chips from {STRINGID} are really good value” +STR_1526 :“This ice cream from {STRINGID} is really good value” +STR_1527 :“This candyfloss from {STRINGID} is really good value” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“This pizza from {STRINGID} is really good value” +STR_1531 :“This pizza from {STRINGID} is really good value” STR_1532 : -STR_1533 :{SMALLFONT}“This popcorn from {STRINGID} is really good value” -STR_1534 :{SMALLFONT}“This hot dog from {STRINGID} is really good value” -STR_1535 :{SMALLFONT}“This tentacle from {STRINGID} is really good value” -STR_1536 :{SMALLFONT}“This hat from {STRINGID} is really good value” -STR_1537 :{SMALLFONT}“This toffee apple from {STRINGID} is really good value” -STR_1538 :{SMALLFONT}“This T-shirt from {STRINGID} is really good value” -STR_1539 :{SMALLFONT}“This doughnut from {STRINGID} is really good value” -STR_1540 :{SMALLFONT}“This coffee from {STRINGID} is really good value” +STR_1533 :“This popcorn from {STRINGID} is really good value” +STR_1534 :“This hot dog from {STRINGID} is really good value” +STR_1535 :“This tentacle from {STRINGID} is really good value” +STR_1536 :“This hat from {STRINGID} is really good value” +STR_1537 :“This toffee apple from {STRINGID} is really good value” +STR_1538 :“This T-shirt from {STRINGID} is really good value” +STR_1539 :“This doughnut from {STRINGID} is really good value” +STR_1540 :“This coffee from {STRINGID} is really good value” STR_1541 : -STR_1542 :{SMALLFONT}“This fried chicken from {STRINGID} is really good value” -STR_1543 :{SMALLFONT}“This lemonade from {STRINGID} is really good value” +STR_1542 :“This fried chicken from {STRINGID} is really good value” +STR_1543 :“This lemonade from {STRINGID} is really good value” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Wow!” -STR_1551 :{SMALLFONT}“I have the strangest feeling someone is watching me” -STR_1552 :{SMALLFONT}“I’m not paying that much for a balloon from {STRINGID}” -STR_1553 :{SMALLFONT}“I’m not paying that much for a cuddly toy from {STRINGID}” -STR_1554 :{SMALLFONT}“I’m not paying that much for a park map from {STRINGID}” -STR_1555 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1556 :{SMALLFONT}“I’m not paying that much for an umbrella from {STRINGID}” -STR_1557 :{SMALLFONT}“I’m not paying that much for a drink from {STRINGID}” -STR_1558 :{SMALLFONT}“I’m not paying that much for a burger from {STRINGID}” -STR_1559 :{SMALLFONT}“I’m not paying that much for chips from {STRINGID}” -STR_1560 :{SMALLFONT}“I’m not paying that much for an ice cream from {STRINGID}” -STR_1561 :{SMALLFONT}“I’m not paying that much for candyfloss from {STRINGID}” +STR_1550 :“Wow!” +STR_1551 :“I have the strangest feeling someone is watching me” +STR_1552 :“I’m not paying that much for a balloon from {STRINGID}” +STR_1553 :“I’m not paying that much for a cuddly toy from {STRINGID}” +STR_1554 :“I’m not paying that much for a park map from {STRINGID}” +STR_1555 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1556 :“I’m not paying that much for an umbrella from {STRINGID}” +STR_1557 :“I’m not paying that much for a drink from {STRINGID}” +STR_1558 :“I’m not paying that much for a burger from {STRINGID}” +STR_1559 :“I’m not paying that much for chips from {STRINGID}” +STR_1560 :“I’m not paying that much for an ice cream from {STRINGID}” +STR_1561 :“I’m not paying that much for candyfloss from {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“I’m not paying that much for pizza from {STRINGID}” +STR_1565 :“I’m not paying that much for pizza from {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“I’m not paying that much for popcorn from {STRINGID}” -STR_1568 :{SMALLFONT}“I’m not paying that much for a hot dog from {STRINGID}” -STR_1569 :{SMALLFONT}“I’m not paying that much for tentacle from {STRINGID}” -STR_1570 :{SMALLFONT}“I’m not paying that much for a hat from {STRINGID}” -STR_1571 :{SMALLFONT}“I’m not paying that much for a toffee apple from {STRINGID}” -STR_1572 :{SMALLFONT}“I’m not paying that much for a T-shirt from {STRINGID}” -STR_1573 :{SMALLFONT}“I’m not paying that much for a doughnut from {STRINGID}” -STR_1574 :{SMALLFONT}“I’m not paying that much for coffee from {STRINGID}” +STR_1567 :“I’m not paying that much for popcorn from {STRINGID}” +STR_1568 :“I’m not paying that much for a hot dog from {STRINGID}” +STR_1569 :“I’m not paying that much for tentacle from {STRINGID}” +STR_1570 :“I’m not paying that much for a hat from {STRINGID}” +STR_1571 :“I’m not paying that much for a toffee apple from {STRINGID}” +STR_1572 :“I’m not paying that much for a T-shirt from {STRINGID}” +STR_1573 :“I’m not paying that much for a doughnut from {STRINGID}” +STR_1574 :“I’m not paying that much for coffee from {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“I’m not paying that much for fried chicken from {STRINGID}” -STR_1577 :{SMALLFONT}“I’m not paying that much for lemonade from {STRINGID}” +STR_1576 :“I’m not paying that much for fried chicken from {STRINGID}” +STR_1577 :“I’m not paying that much for lemonade from {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1585 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1586 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1587 :{SMALLFONT}“This pretzel from {STRINGID} is really good value” -STR_1588 :{SMALLFONT}“This hot chocolate from {STRINGID} is really good value” -STR_1589 :{SMALLFONT}“This iced tea from {STRINGID} is really good value” -STR_1590 :{SMALLFONT}“This funnel cake from {STRINGID} is really good value” -STR_1591 :{SMALLFONT}“These sunglasses from {STRINGID} are really good value” -STR_1592 :{SMALLFONT}“These beef noodles from {STRINGID} are really good value” -STR_1593 :{SMALLFONT}“These fried rice noodles from {STRINGID} are really good value” -STR_1594 :{SMALLFONT}“This wonton soup from {STRINGID} is really good value” -STR_1595 :{SMALLFONT}“This meatball soup from {STRINGID} is really good value” -STR_1596 :{SMALLFONT}“This fruit juice from {STRINGID} is really good value” -STR_1597 :{SMALLFONT}“This soybean milk from {STRINGID} is really good value” -STR_1598 :{SMALLFONT}“This sujeonggwa from {STRINGID} is really good value” -STR_1599 :{SMALLFONT}“This sub sandwich from {STRINGID} is really good value” -STR_1600 :{SMALLFONT}“This cookie from {STRINGID} is really good value” +STR_1584 :“This on-ride photo from {STRINGID} is really good value” +STR_1585 :“This on-ride photo from {STRINGID} is really good value” +STR_1586 :“This on-ride photo from {STRINGID} is really good value” +STR_1587 :“This pretzel from {STRINGID} is really good value” +STR_1588 :“This hot chocolate from {STRINGID} is really good value” +STR_1589 :“This iced tea from {STRINGID} is really good value” +STR_1590 :“This funnel cake from {STRINGID} is really good value” +STR_1591 :“These sunglasses from {STRINGID} are really good value” +STR_1592 :“These beef noodles from {STRINGID} are really good value” +STR_1593 :“These fried rice noodles from {STRINGID} are really good value” +STR_1594 :“This wonton soup from {STRINGID} is really good value” +STR_1595 :“This meatball soup from {STRINGID} is really good value” +STR_1596 :“This fruit juice from {STRINGID} is really good value” +STR_1597 :“This soybean milk from {STRINGID} is really good value” +STR_1598 :“This sujeonggwa from {STRINGID} is really good value” +STR_1599 :“This sub sandwich from {STRINGID} is really good value” +STR_1600 :“This cookie from {STRINGID} is really good value” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“This roast sausage from {STRINGID} is really good value” +STR_1604 :“This roast sausage from {STRINGID} is really good value” STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1000,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1617 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1618 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” -STR_1619 :{SMALLFONT}“I’m not paying that much for a pretzel from {STRINGID}” -STR_1620 :{SMALLFONT}“I’m not paying that much for hot chocolate from {STRINGID}” -STR_1621 :{SMALLFONT}“I’m not paying that much for iced tea from {STRINGID}” -STR_1622 :{SMALLFONT}“I’m not paying that much for a funnel cake from {STRINGID}” -STR_1623 :{SMALLFONT}“I’m not paying that much for sunglasses from {STRINGID}” -STR_1624 :{SMALLFONT}“I’m not paying that much for beef noodles from {STRINGID}” -STR_1625 :{SMALLFONT}“I’m not paying that much for fried rice noodles from {STRINGID}” -STR_1626 :{SMALLFONT}“I’m not paying that much for wonton soup from {STRINGID}” -STR_1627 :{SMALLFONT}“I’m not paying that much for meatball soup from {STRINGID}” -STR_1628 :{SMALLFONT}“I’m not paying that much for fruit juice from {STRINGID}” -STR_1629 :{SMALLFONT}“I’m not paying that much for soybean milk from {STRINGID}” -STR_1630 :{SMALLFONT}“I’m not paying that much for sujeonggwa from {STRINGID}” -STR_1631 :{SMALLFONT}“I’m not paying that much for a sub sandwich from {STRINGID}” -STR_1632 :{SMALLFONT}“I’m not paying that much for a cookie from {STRINGID}” +STR_1616 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1617 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1618 :“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1619 :“I’m not paying that much for a pretzel from {STRINGID}” +STR_1620 :“I’m not paying that much for hot chocolate from {STRINGID}” +STR_1621 :“I’m not paying that much for iced tea from {STRINGID}” +STR_1622 :“I’m not paying that much for a funnel cake from {STRINGID}” +STR_1623 :“I’m not paying that much for sunglasses from {STRINGID}” +STR_1624 :“I’m not paying that much for beef noodles from {STRINGID}” +STR_1625 :“I’m not paying that much for fried rice noodles from {STRINGID}” +STR_1626 :“I’m not paying that much for wonton soup from {STRINGID}” +STR_1627 :“I’m not paying that much for meatball soup from {STRINGID}” +STR_1628 :“I’m not paying that much for fruit juice from {STRINGID}” +STR_1629 :“I’m not paying that much for soybean milk from {STRINGID}” +STR_1630 :“I’m not paying that much for sujeonggwa from {STRINGID}” +STR_1631 :“I’m not paying that much for a sub sandwich from {STRINGID}” +STR_1632 :“I’m not paying that much for a cookie from {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“I’m not paying that much for a roast sausage from {STRINGID}” +STR_1636 :“I’m not paying that much for a roast sausage from {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1032,10 +1032,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Help! Put me down!” -STR_1649 :{SMALLFONT}“I’m running out of cash!” -STR_1650 :{SMALLFONT}“Wow! A new ride being built!” -STR_1653 :{SMALLFONT}“…and here we are on {STRINGID}!” +STR_1648 :“Help! Put me down!” +STR_1649 :“I’m running out of cash!” +STR_1650 :“Wow! A new ride being built!” +STR_1653 :“…and here we are on {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Recent thoughts: STR_1655 :Construct footpath on land STR_1656 :Construct bridge or tunnel footpath @@ -1065,12 +1065,12 @@ STR_1679 :Helix up (left) STR_1680 :Helix up (right) STR_1681 :Helix down (left) STR_1682 :Helix down (right) -STR_1683 :Base size 2 x 2 -STR_1684 :Base size 4 x 4 -STR_1685 :Base size 2 x 4 -STR_1686 :Base size 5 x 1 +STR_1683 :Base size 2 × 2 +STR_1684 :Base size 4 × 4 +STR_1685 :Base size 2 × 4 +STR_1686 :Base size 5 × 1 STR_1687 :Water splash -STR_1688 :Base size 4 x 1 +STR_1688 :Base size 4 × 1 STR_1689 :Block brakes STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Cost: {BLACK}{CURRENCY} @@ -1187,7 +1187,7 @@ STR_1808 :{WINDOW_COLOUR_2}Last breakdown: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Current breakdown: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Carrying: STR_1811 :Can’t build this here… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Miscellaneous Objects STR_1814 :Actions STR_1815 :Thoughts @@ -1196,7 +1196,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}All guests STR_1819 :{WINDOW_COLOUR_2}All guests (summarised) STR_1820 :{WINDOW_COLOUR_2}Guests {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Guests thinking {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Guests thinking {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Guests thinking about {POP16}{STRINGID} STR_1823 :Show guests’ thoughts about this ride/attraction STR_1824 :Show guests on this ride/attraction @@ -1297,7 +1297,6 @@ STR_1921 :Start a new game STR_1922 :Continue playing a saved game STR_1924 :Exit STR_1925 :Can’t place person here… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} has broken down STR_1928 :{RED}{STRINGID} has crashed! STR_1929 :{RED}{STRINGID} still hasn’t been fixed{NEWLINE}Check where your mechanics are and consider organizing them better @@ -1578,7 +1577,7 @@ STR_2218 :{RED}{STRINGID} on {STRINGID} hasn’t returned to the {STRINGID} y STR_2219 :{RED}{COMMA16} people have died in an accident on {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Park Rating: {BLACK}{COMMA16} STR_2221 :Park Rating: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Guests in park: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Cash: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Cash: {RED}{CURRENCY2DP} @@ -1591,7 +1590,7 @@ STR_2231 :Holding brake for drop STR_2232 :Cable lift hill STR_2233 :Park information STR_2234 :Recent Messages -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :January STR_2237 :February STR_2238 :March @@ -1671,7 +1670,7 @@ STR_2312 :{WINDOW_COLOUR_2}Intensity rating: {BLACK}{COMMA2DP32} (approx.) STR_2313 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}{COMMA2DP32} (approx.) STR_2314 :{WINDOW_COLOUR_2}Ride length: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Cost: {BLACK}around {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} x {COMMA16} blocks +STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} × {COMMA16} blocks STR_2321 :{WINDOW_COLOUR_2}Number of rides/attractions: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Staff: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}m² @@ -1795,7 +1794,7 @@ STR_2450 :{YELLOW}Your advertising campaign for the park has finished STR_2451 :{YELLOW}Your advertising campaign for {STRINGID} has finished STR_2452 :{WINDOW_COLOUR_2}Cash (less loan): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Cash (less loan): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Show financial accounts STR_2458 :Show graph of cash (less loan) over time STR_2459 :Show graph of park value over time @@ -1905,7 +1904,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :All research complete -STR_2681 :{MEDIUMFONT}{BLACK}Increases your money by {CURRENCY} STR_2684 :Large group of guests arrive STR_2685 :Simplex Noise Parameters STR_2686 :Low: @@ -1992,7 +1990,7 @@ STR_2789 :{WINDOW_COLOUR_2}You have failed your objective! STR_2790 :Enter name into scenario chart STR_2791 :Enter name STR_2792 :Please enter your name for the scenario chart: -STR_2793 :{SMALLFONT}(Completed by {STRINGID}) +STR_2793 :(Completed by {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Completed by: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} with a company value of: {BLACK}{CURRENCY} STR_2795 :Sort STR_2796 :Sort the ride list into order using the information type displayed @@ -2306,7 +2304,7 @@ STR_3208 :Track Designs Manager STR_3209 :Back to Previous Step: STR_3210 :Forward to Next Step: STR_3211 :Map size: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Can’t decrease map size any further STR_3214 :Can’t increase map size any further STR_3215 :Too close to edge of map @@ -2499,7 +2497,7 @@ STR_5134 :Adjust larger area of land rights STR_5135 :Buy land rights and construction rights STR_5136 :Land rights STR_5137 :Unlock operating limits -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Disable brakes failure STR_5141 :Disable all breakdowns @@ -2645,7 +2643,7 @@ STR_5297 :Open park STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Quick fire staff -STR_5301 :{MEDIUMFONT}{BLACK}Clear your loan +STR_5301 :Clear your loan STR_5302 :Clear loan STR_5303 :Allow building in pause mode STR_5304 :Title Sequence: @@ -2804,7 +2802,7 @@ STR_5481 :Themes STR_5482 :{WINDOW_COLOUR_2}Time since last inspection: {BLACK}1 minute STR_5483 :{BLACK}({COMMA16} weeks remaining) STR_5484 :{BLACK}({COMMA16} week remaining) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Show recent messages STR_5489 :Show only tracked guests @@ -3309,7 +3307,7 @@ STR_6030 :Scenery picker. Click any scenery on the map to select the same pie STR_6031 :Server Description: STR_6032 :Server Greeting: STR_6033 :Path to RCT1 installation: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Please select your RCT1 directory STR_6036 :Clear STR_6037 :The selected folder does not contain a valid RollerCoaster Tycoon 1 install. @@ -3384,7 +3382,7 @@ STR_6107 :Monster Trucks STR_6109 :Hyper-Twister STR_6111 :Classic Mini Roller Coaster STR_6113 :A tall non-inverting roller coaster with large drops, high speed, and comfortable trains with only lap bar restraints -STR_6115 :Powered giant 4 x 4 trucks which can climb steep slopes +STR_6115 :Powered giant 4 × 4 trucks which can climb steep slopes STR_6116 :Wide roller coaster trains glide along smooth steel track, travelling through a variety of inversions STR_6119 :A cheap and easy to build roller coaster, but with a limited height STR_6120 :{BABYBLUE}New vehicle now available for {STRINGID}:{NEWLINE}{STRINGID} @@ -3454,7 +3452,7 @@ STR_6183 :Follow{MOVE_X}{87}No sprite selected STR_6184 :Follow Sprite STR_6185 :Select Sprite STR_6186 :No sprite selected -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vomit STR_6189 :Duck STR_6190 :You cannot select a sprite while the main title screen is active. @@ -3604,7 +3602,7 @@ STR_6356 :Spawns ducks if park contains water STR_6357 :Removes all ducks from the map STR_6358 :Page {UINT16} STR_6359 :{POP16}{POP16}Page {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Enable lighting effects on rides (experimental) STR_6362 :If enabled, vehicles for tracked rides will be lit up at night. STR_6363 :Copied text to clipboard @@ -3679,6 +3677,25 @@ STR_6431 :RMB STR_6432 :Mouse {INT32} STR_6433 :Remove STR_6434 :Remove all bindings for this shortcut. +STR_6435 :{WINDOW_COLOUR_2}Vandals stopped: {BLACK}{COMMA16} +STR_6436 :Toggle invisibility +STR_6437 :Invisible +STR_6438 :I +STR_6439 :Tile Inspector: Toggle invisibility +STR_6440 :Transparent water +STR_6441 :At least one non-queue footpath surface object must be selected. +STR_6442 :At least one queue footpath surface object must be selected. +STR_6443 :At least one footpath railing object must be selected. +STR_6444 :Footpath Surfaces +STR_6445 :Footpath Railings +STR_6446 :{WINDOW_COLOUR_2}Surface name: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Railing name: {BLACK}{STRINGID} +STR_6448 :Unsupported object format +STR_6449 :{WINDOW_COLOUR_2}Tracks: +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Sells: {BLACK}{STRING} +STR_6453 :Copy version info ############# # Scenarios # diff --git a/data/language/en-US.txt b/data/language/en-US.txt index c038aa627d..92f91041c6 100644 --- a/data/language/en-US.txt +++ b/data/language/en-US.txt @@ -39,64 +39,64 @@ STR_1396 :Color scheme options STR_1442 :Emptying trash can -STR_1490 :{SMALLFONT}“{STRINGID} is a really good value” +STR_1490 :“{STRINGID} is a really good value” -STR_1502 :{SMALLFONT}“I need to go to the bathroom” +STR_1502 :“I need to go to the bathroom” -STR_1506 :{SMALLFONT}“The trash here is really bad” +STR_1506 :“The trash here is really bad” -STR_1518 :{SMALLFONT}“This balloon from {STRINGID} is a really good value” -STR_1519 :{SMALLFONT}“This cuddly toy from {STRINGID} is a really good value” -STR_1520 :{SMALLFONT}“This park map from {STRINGID} is a really good value” -STR_1521 :{SMALLFONT}“This on-ride photo from {STRINGID} is a really good value” -STR_1522 :{SMALLFONT}“This umbrella from {STRINGID} is a really good value” -STR_1523 :{SMALLFONT}“This drink from {STRINGID} is a really good value” -STR_1524 :{SMALLFONT}“This burger from {STRINGID} is a really good value” -STR_1525 :{SMALLFONT}“These fries from {STRINGID} are a really good value” -STR_1526 :{SMALLFONT}“This ice cream from {STRINGID} is a really good value” -STR_1527 :{SMALLFONT}“This cotton candy from {STRINGID} is a really good value” +STR_1518 :“This balloon from {STRINGID} is a really good value” +STR_1519 :“This cuddly toy from {STRINGID} is a really good value” +STR_1520 :“This park map from {STRINGID} is a really good value” +STR_1521 :“This on-ride photo from {STRINGID} is a really good value” +STR_1522 :“This umbrella from {STRINGID} is a really good value” +STR_1523 :“This drink from {STRINGID} is a really good value” +STR_1524 :“This burger from {STRINGID} is a really good value” +STR_1525 :“These fries from {STRINGID} are a really good value” +STR_1526 :“This ice cream from {STRINGID} is a really good value” +STR_1527 :“This cotton candy from {STRINGID} is a really good value” -STR_1531 :{SMALLFONT}“This pizza from {STRINGID} is a really good value” +STR_1531 :“This pizza from {STRINGID} is a really good value” -STR_1533 :{SMALLFONT}“This popcorn from {STRINGID} is a really good value” -STR_1534 :{SMALLFONT}“This hot dog from {STRINGID} is a really good value” -STR_1535 :{SMALLFONT}“This tentacle from {STRINGID} is a really good value” -STR_1536 :{SMALLFONT}“This hat from {STRINGID} is a really good value” -STR_1537 :{SMALLFONT}“This candy apple from {STRINGID} is a really good value” -STR_1538 :{SMALLFONT}“This T-shirt from {STRINGID} is a really good value” -STR_1539 :{SMALLFONT}“This donut from {STRINGID} is a really good value” -STR_1540 :{SMALLFONT}“This coffee from {STRINGID} is a really good value” +STR_1533 :“This popcorn from {STRINGID} is a really good value” +STR_1534 :“This hot dog from {STRINGID} is a really good value” +STR_1535 :“This tentacle from {STRINGID} is a really good value” +STR_1536 :“This hat from {STRINGID} is a really good value” +STR_1537 :“This candy apple from {STRINGID} is a really good value” +STR_1538 :“This T-shirt from {STRINGID} is a really good value” +STR_1539 :“This donut from {STRINGID} is a really good value” +STR_1540 :“This coffee from {STRINGID} is a really good value” -STR_1542 :{SMALLFONT}“This fried chicken from {STRINGID} is a really good value” -STR_1543 :{SMALLFONT}“This lemonade from {STRINGID} is a really good value” +STR_1542 :“This fried chicken from {STRINGID} is a really good value” +STR_1543 :“This lemonade from {STRINGID} is a really good value” -STR_1559 :{SMALLFONT}“I’m not paying that much for fries from {STRINGID}” +STR_1559 :“I’m not paying that much for fries from {STRINGID}” -STR_1561 :{SMALLFONT}“I’m not paying that much for cotton candy from {STRINGID}” +STR_1561 :“I’m not paying that much for cotton candy from {STRINGID}” -STR_1571 :{SMALLFONT}“I’m not paying that much for a candy apple from {STRINGID}” +STR_1571 :“I’m not paying that much for a candy apple from {STRINGID}” -STR_1573 :{SMALLFONT}“I’m not paying that much for a donut from {STRINGID}” +STR_1573 :“I’m not paying that much for a donut from {STRINGID}” -STR_1584 :{SMALLFONT}“This on-ride photo from {STRINGID} is a really good value” -STR_1585 :{SMALLFONT}“This on-ride photo from {STRINGID} is a really good value” -STR_1586 :{SMALLFONT}“This on-ride photo from {STRINGID} is a really good value” -STR_1587 :{SMALLFONT}“This pretzel from {STRINGID} is a really good value” -STR_1588 :{SMALLFONT}“This hot chocolate from {STRINGID} is a really good value” -STR_1589 :{SMALLFONT}“This iced tea from {STRINGID} is a really good value” -STR_1590 :{SMALLFONT}“This funnel cake from {STRINGID} is a really good value” -STR_1591 :{SMALLFONT}“These sunglasses from {STRINGID} are a really good value” -STR_1592 :{SMALLFONT}“These beef noodles from {STRINGID} are a really good value” -STR_1593 :{SMALLFONT}“These fried rice noodles from {STRINGID} are a really good value” -STR_1594 :{SMALLFONT}“This wonton soup from {STRINGID} is a really good value” -STR_1595 :{SMALLFONT}“This meatball soup from {STRINGID} is a really good value” -STR_1596 :{SMALLFONT}“This fruit juice from {STRINGID} is a really good value” -STR_1597 :{SMALLFONT}“This soybean milk from {STRINGID} is a really good value” -STR_1598 :{SMALLFONT}“This sujeonggwa from {STRINGID} is a really good value” -STR_1599 :{SMALLFONT}“This sub sandwich from {STRINGID} is a really good value” -STR_1600 :{SMALLFONT}“This cookie from {STRINGID} is a really good value” +STR_1584 :“This on-ride photo from {STRINGID} is a really good value” +STR_1585 :“This on-ride photo from {STRINGID} is a really good value” +STR_1586 :“This on-ride photo from {STRINGID} is a really good value” +STR_1587 :“This pretzel from {STRINGID} is a really good value” +STR_1588 :“This hot chocolate from {STRINGID} is a really good value” +STR_1589 :“This iced tea from {STRINGID} is a really good value” +STR_1590 :“This funnel cake from {STRINGID} is a really good value” +STR_1591 :“These sunglasses from {STRINGID} are a really good value” +STR_1592 :“These beef noodles from {STRINGID} are a really good value” +STR_1593 :“These fried rice noodles from {STRINGID} are a really good value” +STR_1594 :“This wonton soup from {STRINGID} is a really good value” +STR_1595 :“This meatball soup from {STRINGID} is a really good value” +STR_1596 :“This fruit juice from {STRINGID} is a really good value” +STR_1597 :“This soybean milk from {STRINGID} is a really good value” +STR_1598 :“This sujeonggwa from {STRINGID} is a really good value” +STR_1599 :“This sub sandwich from {STRINGID} is a really good value” +STR_1600 :“This cookie from {STRINGID} is a really good value” -STR_1604 :{SMALLFONT}“This roast sausage from {STRINGID} is a really good value” +STR_1604 :“This roast sausage from {STRINGID} is a really good value” STR_1667 :{WINDOW_COLOUR_2}Bathroom: diff --git a/data/language/eo-OO.txt b/data/language/eo-OO.txt index 6587c98215..5b6eb0bd92 100644 --- a/data/language/eo-OO.txt +++ b/data/language/eo-OO.txt @@ -798,14 +798,14 @@ STR_1410 :Vertikala Turo STR_1411 :{STRINGID} obstrukcas STR_1412 :{WINDOW_COLOUR_3}Protokolado de datumoj ne disponeblas por ĉi tia atrakcio STR_1413 :{WINDOW_COLOUR_3}Protokolado de datumoj komenciĝos kiam la sekva {STRINGID} ekveturas el {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Rapideco STR_1416 :{WINDOW_COLOUR_2}Alteco STR_1417 :{WINDOW_COLOUR_2}Vertikala Graviteco STR_1418 :{WINDOW_COLOUR_2}Flanka Graviteco -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Protokoladas datumojn de {POP16}{STRINGID} STR_1423 :Atendovica vojo STR_1424 :Trotuaro @@ -864,131 +864,131 @@ STR_1476 :{WINDOW_COLOUR_2}Pritakso de intenseco: {BLACK}Ankoraŭ ne disponeb STR_1477 :{WINDOW_COLOUR_2}Pritakso de intenseco: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Pritakso de naŭzo: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Pritakso de naŭzo: {BLACK}Ankoraŭ ne disponebla -STR_1480 :{SMALLFONT}“Mi ne havas sufiĉe da mono por rajdi sur {STRINGID}” -STR_1481 :{SMALLFONT}“Mi elspezis mian tutan monon” -STR_1482 :{SMALLFONT}“Mi sentas min malsana” -STR_1483 :{SMALLFONT}“Mi sentas min tre malsana” -STR_1484 :{SMALLFONT}“Mi volas rajdi sur io pli ekscita ol {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} aspektas tro intensa por mi” -STR_1486 :{SMALLFONT}“Mi ankoraŭ ne finis je mia {STRINGID}” -STR_1487 :{SMALLFONT}“Simple rigardi al {STRINGID} malsanigas min” -STR_1488 :{SMALLFONT}“Mi ne pagas tiom por rajdi sur {STRINGID}” -STR_1489 :{SMALLFONT}“Mi volas iri hejmen” -STR_1490 :{SMALLFONT}“{STRINGID} estas vere bona valoro” -STR_1491 :{SMALLFONT}“Mi jam havas {STRINGID}” -STR_1492 :{SMALLFONT}“Mi ne havas sufiĉe da mono por aĉeti {STRINGID}” -STR_1493 :{SMALLFONT}“Mi ne estas malsata” -STR_1494 :{SMALLFONT}“Mi ne estas soifa” -STR_1495 :{SMALLFONT}“Helpu! Mi dronas!” -STR_1496 :{SMALLFONT}“Mi estas perdita!” -STR_1497 :{SMALLFONT}“{STRINGID} estis bonega” -STR_1498 :{SMALLFONT}“Mi vicatendas por {STRINGID} por aĝoj” -STR_1499 :{SMALLFONT}“Mi estas laca” -STR_1500 :{SMALLFONT}“Mi estas malsata” -STR_1501 :{SMALLFONT}“Mi estas soifa” -STR_1502 :{SMALLFONT}“Mi bezonas iri al la necesejo” -STR_1503 :{SMALLFONT}“Mi ne povas trovi je {STRINGID}” -STR_1504 :{SMALLFONT}“Mi ne pagas tiom por uzi je {STRINGID}” -STR_1505 :{SMALLFONT}“Mi ne rajdas sur {STRINGID} dum pluvas” -STR_1506 :{SMALLFONT}“La rubo ĉi tie estas vere malbona” -STR_1507 :{SMALLFONT}“Mi ne povas trovi la elirejon de la parko” -STR_1508 :{SMALLFONT}“Mi volas eliri de {STRINGID}” -STR_1509 :{SMALLFONT}“Mi volas eliri el {STRINGID}” -STR_1510 :{SMALLFONT}“Mi ne rajdas sur {STRINGID} - ĝi ne estas sekura” -STR_1511 :{SMALLFONT}“Ĉi tiu vojo naŭzas min” -STR_1512 :{SMALLFONT}“Estas tro homplene ĉi tie” -STR_1513 :{SMALLFONT}“La vandalismo ĉi tie estas vere malbona” -STR_1514 :{SMALLFONT}“Bonegan pejzaĝon!” -STR_1515 :{SMALLFONT}“Ĉi tiu parko estas vere pura kaj ordema” -STR_1516 :{SMALLFONT}“La saltantaj fontanoj estas bonegaj” -STR_1517 :{SMALLFONT}“La muziko estas agrabla ĉi tie” -STR_1518 :{SMALLFONT}“Ĉi tiu balono de {STRINGID} estas vere bona valoro” -STR_1519 :{SMALLFONT}“Ĉi tiu pluŝludilo de {STRINGID} estas vere bona valoro” -STR_1520 :{SMALLFONT}“Ĉi tiu mapo de la parko de {STRINGID} estas vere bona valoro” -STR_1521 :{SMALLFONT}“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” -STR_1522 :{SMALLFONT}“Ĉi tiu ombrelo de {STRINGID} estas vere bona valoro” -STR_1523 :{SMALLFONT}“Ĉi tiu trinkaĵo de {STRINGID} estas vere bona valoro” -STR_1524 :{SMALLFONT}“Ĉi tiu burgero de {STRINGID} estas vere bona valoro” -STR_1525 :{SMALLFONT}“Ĉi tiuj fritoj de {STRINGID} estas vere bona valoro” -STR_1526 :{SMALLFONT}“Ĉi tiu glaciaĵo de {STRINGID} estas vere bona valoro” -STR_1527 :{SMALLFONT}“Ĉi tiu sukerŝpinaĵo de {STRINGID} estas vere bona valoro” +STR_1480 :“Mi ne havas sufiĉe da mono por rajdi sur {STRINGID}” +STR_1481 :“Mi elspezis mian tutan monon” +STR_1482 :“Mi sentas min malsana” +STR_1483 :“Mi sentas min tre malsana” +STR_1484 :“Mi volas rajdi sur io pli ekscita ol {STRINGID}” +STR_1485 :“{STRINGID} aspektas tro intensa por mi” +STR_1486 :“Mi ankoraŭ ne finis je mia {STRINGID}” +STR_1487 :“Simple rigardi al {STRINGID} malsanigas min” +STR_1488 :“Mi ne pagas tiom por rajdi sur {STRINGID}” +STR_1489 :“Mi volas iri hejmen” +STR_1490 :“{STRINGID} estas vere bona valoro” +STR_1491 :“Mi jam havas {STRINGID}” +STR_1492 :“Mi ne havas sufiĉe da mono por aĉeti {STRINGID}” +STR_1493 :“Mi ne estas malsata” +STR_1494 :“Mi ne estas soifa” +STR_1495 :“Helpu! Mi dronas!” +STR_1496 :“Mi estas perdita!” +STR_1497 :“{STRINGID} estis bonega” +STR_1498 :“Mi vicatendas por {STRINGID} por aĝoj” +STR_1499 :“Mi estas laca” +STR_1500 :“Mi estas malsata” +STR_1501 :“Mi estas soifa” +STR_1502 :“Mi bezonas iri al la necesejo” +STR_1503 :“Mi ne povas trovi je {STRINGID}” +STR_1504 :“Mi ne pagas tiom por uzi je {STRINGID}” +STR_1505 :“Mi ne rajdas sur {STRINGID} dum pluvas” +STR_1506 :“La rubo ĉi tie estas vere malbona” +STR_1507 :“Mi ne povas trovi la elirejon de la parko” +STR_1508 :“Mi volas eliri de {STRINGID}” +STR_1509 :“Mi volas eliri el {STRINGID}” +STR_1510 :“Mi ne rajdas sur {STRINGID} - ĝi ne estas sekura” +STR_1511 :“Ĉi tiu vojo naŭzas min” +STR_1512 :“Estas tro homplene ĉi tie” +STR_1513 :“La vandalismo ĉi tie estas vere malbona” +STR_1514 :“Bonegan pejzaĝon!” +STR_1515 :“Ĉi tiu parko estas vere pura kaj ordema” +STR_1516 :“La saltantaj fontanoj estas bonegaj” +STR_1517 :“La muziko estas agrabla ĉi tie” +STR_1518 :“Ĉi tiu balono de {STRINGID} estas vere bona valoro” +STR_1519 :“Ĉi tiu pluŝludilo de {STRINGID} estas vere bona valoro” +STR_1520 :“Ĉi tiu mapo de la parko de {STRINGID} estas vere bona valoro” +STR_1521 :“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” +STR_1522 :“Ĉi tiu ombrelo de {STRINGID} estas vere bona valoro” +STR_1523 :“Ĉi tiu trinkaĵo de {STRINGID} estas vere bona valoro” +STR_1524 :“Ĉi tiu burgero de {STRINGID} estas vere bona valoro” +STR_1525 :“Ĉi tiuj fritoj de {STRINGID} estas vere bona valoro” +STR_1526 :“Ĉi tiu glaciaĵo de {STRINGID} estas vere bona valoro” +STR_1527 :“Ĉi tiu sukerŝpinaĵo de {STRINGID} estas vere bona valoro” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Ĉi tiu pico de {STRINGID} estas vere bona valoro” +STR_1531 :“Ĉi tiu pico de {STRINGID} estas vere bona valoro” STR_1532 : -STR_1533 :{SMALLFONT}“Ĉi tiu krevmaizo de {STRINGID} estas vere bona valoro” -STR_1534 :{SMALLFONT}“Ĉi tiu kolbasobulko de {STRINGID} estas vere bona valoro” -STR_1535 :{SMALLFONT}“Ĉi tiu tentaklo de {STRINGID} estas vere bona valoro” -STR_1536 :{SMALLFONT}“Ĉi tiu ĉapelo de {STRINGID} estas vere bona valoro” -STR_1537 :{SMALLFONT}“Ĉi tiu sukerpomo de {STRINGID} estas vere bona valoro” -STR_1538 :{SMALLFONT}“Ĉi tiu T-ĉemizo de {STRINGID} estas vere bona valoro” -STR_1539 :{SMALLFONT}“Ĉi tiu benjeto de {STRINGID} estas vere bona valoro” -STR_1540 :{SMALLFONT}“Ĉi tiu kafo de {STRINGID} estas vere bona valoro” +STR_1533 :“Ĉi tiu krevmaizo de {STRINGID} estas vere bona valoro” +STR_1534 :“Ĉi tiu kolbasobulko de {STRINGID} estas vere bona valoro” +STR_1535 :“Ĉi tiu tentaklo de {STRINGID} estas vere bona valoro” +STR_1536 :“Ĉi tiu ĉapelo de {STRINGID} estas vere bona valoro” +STR_1537 :“Ĉi tiu sukerpomo de {STRINGID} estas vere bona valoro” +STR_1538 :“Ĉi tiu T-ĉemizo de {STRINGID} estas vere bona valoro” +STR_1539 :“Ĉi tiu benjeto de {STRINGID} estas vere bona valoro” +STR_1540 :“Ĉi tiu kafo de {STRINGID} estas vere bona valoro” STR_1541 : -STR_1542 :{SMALLFONT}“Ĉi tiu fritita kokaĵo de {STRINGID} estas vere bona valoro” -STR_1543 :{SMALLFONT}“Ĉi tiu limonado de {STRINGID} estas vere bona valoro” +STR_1542 :“Ĉi tiu fritita kokaĵo de {STRINGID} estas vere bona valoro” +STR_1543 :“Ĉi tiu limonado de {STRINGID} estas vere bona valoro” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Ŭaŭ!” -STR_1551 :{SMALLFONT}“Mi havas la plej strangan senton, ke iu spektas min” -STR_1552 :{SMALLFONT}“Mi ne pagas tiom por balono de {STRINGID}” -STR_1553 :{SMALLFONT}“Mi ne pagas tiom por pluŝludilo de {STRINGID}” -STR_1554 :{SMALLFONT}“Mi ne pagas tiom por mapo de la parko de {STRINGID}” -STR_1555 :{SMALLFONT}“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” -STR_1556 :{SMALLFONT}“Mi ne pagas tiom por ombrelo de {STRINGID}” -STR_1557 :{SMALLFONT}“Mi ne pagas tiom por trinkaĵo de {STRINGID}” -STR_1558 :{SMALLFONT}“Mi ne pagas tiom por burgero de {STRINGID}” -STR_1559 :{SMALLFONT}“Mi ne pagas tiom por fritoj de {STRINGID}” -STR_1560 :{SMALLFONT}“Mi ne pagas tiom por glaciaĵo de {STRINGID}” -STR_1561 :{SMALLFONT}“Mi ne pagas tiom por sukerŝpinaĵo de {STRINGID}” +STR_1550 :“Ŭaŭ!” +STR_1551 :“Mi havas la plej strangan senton, ke iu spektas min” +STR_1552 :“Mi ne pagas tiom por balono de {STRINGID}” +STR_1553 :“Mi ne pagas tiom por pluŝludilo de {STRINGID}” +STR_1554 :“Mi ne pagas tiom por mapo de la parko de {STRINGID}” +STR_1555 :“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” +STR_1556 :“Mi ne pagas tiom por ombrelo de {STRINGID}” +STR_1557 :“Mi ne pagas tiom por trinkaĵo de {STRINGID}” +STR_1558 :“Mi ne pagas tiom por burgero de {STRINGID}” +STR_1559 :“Mi ne pagas tiom por fritoj de {STRINGID}” +STR_1560 :“Mi ne pagas tiom por glaciaĵo de {STRINGID}” +STR_1561 :“Mi ne pagas tiom por sukerŝpinaĵo de {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Mi ne pagas tiom por pico de {STRINGID}” +STR_1565 :“Mi ne pagas tiom por pico de {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Mi ne pagas tiom por krevmaizo de {STRINGID}” -STR_1568 :{SMALLFONT}“Mi ne pagas tiom por kolbasobulko de {STRINGID}” -STR_1569 :{SMALLFONT}“Mi ne pagas tiom por tentaklo de {STRINGID}” -STR_1570 :{SMALLFONT}“Mi ne pagas tiom por ĉapelo de {STRINGID}” -STR_1571 :{SMALLFONT}“Mi ne pagas tiom por sukerpomo de {STRINGID}” -STR_1572 :{SMALLFONT}“Mi ne pagas tiom por T-ĉemizo de {STRINGID}” -STR_1573 :{SMALLFONT}“Mi ne pagas tiom por benjeto de {STRINGID}” -STR_1574 :{SMALLFONT}“Mi ne pagas tiom por kafo de {STRINGID}” +STR_1567 :“Mi ne pagas tiom por krevmaizo de {STRINGID}” +STR_1568 :“Mi ne pagas tiom por kolbasobulko de {STRINGID}” +STR_1569 :“Mi ne pagas tiom por tentaklo de {STRINGID}” +STR_1570 :“Mi ne pagas tiom por ĉapelo de {STRINGID}” +STR_1571 :“Mi ne pagas tiom por sukerpomo de {STRINGID}” +STR_1572 :“Mi ne pagas tiom por T-ĉemizo de {STRINGID}” +STR_1573 :“Mi ne pagas tiom por benjeto de {STRINGID}” +STR_1574 :“Mi ne pagas tiom por kafo de {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Mi ne pagas tiom por fritita kokaĵo de {STRINGID}” -STR_1577 :{SMALLFONT}“Mi ne pagas tiom por limonado de {STRINGID}” +STR_1576 :“Mi ne pagas tiom por fritita kokaĵo de {STRINGID}” +STR_1577 :“Mi ne pagas tiom por limonado de {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” -STR_1585 :{SMALLFONT}“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” -STR_1586 :{SMALLFONT}“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” -STR_1587 :{SMALLFONT}“Ĉi tiu breco de {STRINGID} estas vere bona valoro” -STR_1588 :{SMALLFONT}“Ĉi tiu varma ĉokolado de {STRINGID} estas vere bona valoro” -STR_1589 :{SMALLFONT}“Ĉi tiu glacia teo de {STRINGID} estas vere bona valoro” -STR_1590 :{SMALLFONT}“Ĉi tiu funelkuko de {STRINGID} estas vere bona valoro” -STR_1591 :{SMALLFONT}“Ĉi tiuj sunokulvitroj de {STRINGID} estas vere bona valoro” -STR_1592 :{SMALLFONT}“Ĉi tiuj bovaĵaj nudeloj de {STRINGID} estas vere bona valoro” -STR_1593 :{SMALLFONT}“Ĉi tiuj frititaj riznudeloj de {STRINGID} estas vere bona valoro” -STR_1594 :{SMALLFONT}“Ĉi tiu huntuna supo de {STRINGID} estas vere bona valoro” -STR_1595 :{SMALLFONT}“Ĉi tiu knela supo de {STRINGID} estas vere bona valoro” -STR_1596 :{SMALLFONT}“Ĉi tiu fruktosuko de {STRINGID} estas vere bona valoro” -STR_1597 :{SMALLFONT}“Ĉi tiu sojlakto de {STRINGID} estas vere bona valoro” -STR_1598 :{SMALLFONT}“Ĉi tiu suĝongvao de {STRINGID} estas vere bona valoro” -STR_1599 :{SMALLFONT}“Ĉi tiu subsandviĉo de {STRINGID} estas vere bona valoro” -STR_1600 :{SMALLFONT}“Ĉi tiu kekso de {STRINGID} estas vere bona valoro” +STR_1584 :“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” +STR_1585 :“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” +STR_1586 :“Ĉi tiu foto sur la atrakcio {STRINGID} estas vere bona valoro” +STR_1587 :“Ĉi tiu breco de {STRINGID} estas vere bona valoro” +STR_1588 :“Ĉi tiu varma ĉokolado de {STRINGID} estas vere bona valoro” +STR_1589 :“Ĉi tiu glacia teo de {STRINGID} estas vere bona valoro” +STR_1590 :“Ĉi tiu funelkuko de {STRINGID} estas vere bona valoro” +STR_1591 :“Ĉi tiuj sunokulvitroj de {STRINGID} estas vere bona valoro” +STR_1592 :“Ĉi tiuj bovaĵaj nudeloj de {STRINGID} estas vere bona valoro” +STR_1593 :“Ĉi tiuj frititaj riznudeloj de {STRINGID} estas vere bona valoro” +STR_1594 :“Ĉi tiu huntuna supo de {STRINGID} estas vere bona valoro” +STR_1595 :“Ĉi tiu knela supo de {STRINGID} estas vere bona valoro” +STR_1596 :“Ĉi tiu fruktosuko de {STRINGID} estas vere bona valoro” +STR_1597 :“Ĉi tiu sojlakto de {STRINGID} estas vere bona valoro” +STR_1598 :“Ĉi tiu suĝongvao de {STRINGID} estas vere bona valoro” +STR_1599 :“Ĉi tiu subsandviĉo de {STRINGID} estas vere bona valoro” +STR_1600 :“Ĉi tiu kekso de {STRINGID} estas vere bona valoro” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Ĉi tiu rostita kolbaso de {STRINGID} estas vere bona valoro” +STR_1604 :“Ĉi tiu rostita kolbaso de {STRINGID} estas vere bona valoro” STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1000,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” -STR_1617 :{SMALLFONT}“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” -STR_1618 :{SMALLFONT}“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” -STR_1619 :{SMALLFONT}“Mi ne pagas tiom por breco de {STRINGID}” -STR_1620 :{SMALLFONT}“Mi ne pagas tiom por varma ĉokolado de {STRINGID}” -STR_1621 :{SMALLFONT}“Mi ne pagas tiom por glacia teo de {STRINGID}” -STR_1622 :{SMALLFONT}“Mi ne pagas tiom por funelkuko de {STRINGID}” -STR_1623 :{SMALLFONT}“Mi ne pagas tiom por sunokulvitroj de {STRINGID}” -STR_1624 :{SMALLFONT}“Mi ne pagas tiom por bovaĵaj nudeloj de {STRINGID}” -STR_1625 :{SMALLFONT}“Mi ne pagas tiom por frititaj riznudeloj de {STRINGID}” -STR_1626 :{SMALLFONT}“Mi ne pagas tiom por huntuna supo de {STRINGID}” -STR_1627 :{SMALLFONT}“Mi ne pagas tiom por knela supo de {STRINGID}” -STR_1628 :{SMALLFONT}“Mi ne pagas tiom por fruktosuko de {STRINGID}” -STR_1629 :{SMALLFONT}“Mi ne pagas tiom por sojlakto de {STRINGID}” -STR_1630 :{SMALLFONT}“Mi ne pagas tiom por suĝongvao de {STRINGID}” -STR_1631 :{SMALLFONT}“Mi ne pagas tiom por subsandviĉo de {STRINGID}” -STR_1632 :{SMALLFONT}“Mi ne pagas tiom por kekso de {STRINGID}” +STR_1616 :“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” +STR_1617 :“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” +STR_1618 :“Mi ne pagas tiom por foto sur la atrakcio {STRINGID}” +STR_1619 :“Mi ne pagas tiom por breco de {STRINGID}” +STR_1620 :“Mi ne pagas tiom por varma ĉokolado de {STRINGID}” +STR_1621 :“Mi ne pagas tiom por glacia teo de {STRINGID}” +STR_1622 :“Mi ne pagas tiom por funelkuko de {STRINGID}” +STR_1623 :“Mi ne pagas tiom por sunokulvitroj de {STRINGID}” +STR_1624 :“Mi ne pagas tiom por bovaĵaj nudeloj de {STRINGID}” +STR_1625 :“Mi ne pagas tiom por frititaj riznudeloj de {STRINGID}” +STR_1626 :“Mi ne pagas tiom por huntuna supo de {STRINGID}” +STR_1627 :“Mi ne pagas tiom por knela supo de {STRINGID}” +STR_1628 :“Mi ne pagas tiom por fruktosuko de {STRINGID}” +STR_1629 :“Mi ne pagas tiom por sojlakto de {STRINGID}” +STR_1630 :“Mi ne pagas tiom por suĝongvao de {STRINGID}” +STR_1631 :“Mi ne pagas tiom por subsandviĉo de {STRINGID}” +STR_1632 :“Mi ne pagas tiom por kekso de {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Mi ne pagas tiom por rostita kolbaso de {STRINGID}” +STR_1636 :“Mi ne pagas tiom por rostita kolbaso de {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1032,10 +1032,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Helpu! Metu min surteren!” -STR_1649 :{SMALLFONT}“Mi estas preskaŭ sen mono!” -STR_1650 :{SMALLFONT}“Ŭaŭ! Nova atrakcio konstruata!” -STR_1653 :{SMALLFONT}“…kaj jen ni estas sur {STRINGID}!” +STR_1648 :“Helpu! Metu min surteren!” +STR_1649 :“Mi estas preskaŭ sen mono!” +STR_1650 :“Ŭaŭ! Nova atrakcio konstruata!” +STR_1653 :“…kaj jen ni estas sur {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Lastaj pensoj: STR_1655 :Konstrui trotuaron sur la tero STR_1656 :Konstrui pontan aŭ tunelan trotuaron @@ -1187,7 +1187,7 @@ STR_1808 :{WINDOW_COLOUR_2}Lasta paneo: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Nuna paneo: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Portas: STR_1811 :Ne eblas konstrui tion ĉi tie… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Diversaĵoj STR_1814 :Agadoj STR_1815 :Pensoj @@ -1196,7 +1196,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Ĉiuj gastoj STR_1819 :{WINDOW_COLOUR_2}Ĉiuj gastoj (resumitaj) STR_1820 :{WINDOW_COLOUR_2}Gastoj {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Gastoj, kiuj pensas {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Gastoj, kiuj pensas {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Gastoj pensantaj pri {POP16}{STRINGID} STR_1823 :Montri pensojn de gastoj pri ĉi tiu atrakcio STR_1824 :Montri gastojn en ĉi tiu atrakcio @@ -1297,7 +1297,6 @@ STR_1921 :Komenci novan ludon STR_1922 :Daŭrigi ludi konservitan ludon STR_1924 :Eliri STR_1925 :Ne eblas meti homon ĉi tie… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} paneis STR_1928 :{RED}{STRINGID} koliziis! STR_1929 :{RED}{STRINGID} ankoraŭ ne estis riparita{NEWLINE}Kontrolu kie viaj mekanikistoj troviĝas, kaj eble organizu ilin pli bone @@ -1578,7 +1577,7 @@ STR_2218 :{RED}{STRINGID} sur {STRINGID} ne jam revenis al la {STRINGID}!{NEW STR_2219 :{RED}{COMMA16} homoj mortis pro akcidento sur {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Pritakso de Parko: {BLACK}{COMMA16} STR_2221 :Pritakso de Parko: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Gastoj en parko: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Mono: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Mono: {RED}{CURRENCY2DP} @@ -1591,7 +1590,7 @@ STR_2231 :Bremsoj ĉe malleviĝo STR_2232 :Kablolifto monteto STR_2233 :Informoj de Parko STR_2234 :Lastaj Mesaĝoj -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Januaro STR_2237 :Februaro STR_2238 :Marto @@ -1795,7 +1794,7 @@ STR_2450 :{YELLOW}Via kampanjo de reklamado por la parko finiĝis STR_2451 :{YELLOW}Via kampanjo de reklamado por {STRINGID} finiĝis STR_2452 :{WINDOW_COLOUR_2}Mono (minus prunto): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Mono (minus prunto): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Montri financajn kontojn STR_2458 :Montri diagramon de mono (minus prunto) kontraŭ tempo STR_2459 :Montri diagramon de parkvaloro kontraŭ tempo @@ -1905,7 +1904,6 @@ STR_2636 :Nombra klavaro / STR_2669 :Nombra klavara baskulo STR_2670 :Ruluma baskulo STR_2680 :Ĉiom da esplorado estas kompleta -STR_2681 :{MEDIUMFONT}{BLACK}Pliigi vian monon per {CURRENCY} STR_2684 :Granda amaso da gastoj alvenas STR_2685 :Parametroj de simplaĵa bruo STR_2686 :Malalta: @@ -1992,7 +1990,7 @@ STR_2789 :{WINDOW_COLOUR_2}Vi malsukcesigis vian celon! STR_2790 :Entajpu nomon en scenaroskemon STR_2791 :Entajpu nomon STR_2792 :Bonvolu entajpi vian nomon por la scenaroskemo: -STR_2793 :{SMALLFONT}(Finita de {STRINGID}) +STR_2793 :(Finita de {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Finita de: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} kun firmvaloro de: {BLACK}{CURRENCY} STR_2795 :Ordigi STR_2796 :Ordigi la liston de atrakcioj per la informotipo vidigita @@ -2499,7 +2497,7 @@ STR_5134 :Agordi pli grandan areon da bienorajtoj STR_5135 :Aĉeti bienorajtojn kaj konstruado-rajtojn STR_5136 :Bienorajtoj STR_5137 :Malŝlosi limojn de funkciado -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Malŝalti paneon de bremsoj STR_5141 :Malŝalti ĉiajn paneojn @@ -2645,7 +2643,7 @@ STR_5297 :Malfermi parkon STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Rapide maldungi dungitaron -STR_5301 :{MEDIUMFONT}{BLACK}Vakigi vian prunton +STR_5301 :Vakigi vian prunton STR_5302 :Vakigi prunton STR_5303 :Permesi konstruadon dum paŭzoj STR_5304 :Titolosekvenco: @@ -2804,7 +2802,7 @@ STR_5481 :Temoj STR_5482 :{WINDOW_COLOUR_2}Daŭro de lasta inspekto: {BLACK}1 minuto STR_5483 :{BLACK}({COMMA16} semajnoj restantaj) STR_5484 :{BLACK}({COMMA16} semajno restanta) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Montri lastajn mesaĝojn STR_5489 :Montri nur gastojn spuratajn @@ -3142,7 +3140,7 @@ STR_5862 :Bari nekonatajn ludantojn. STR_5863 :Permesi, ke nur ludantoj kun konataj ŝlosiloj aliĝu. STR_5864 :Ĉi tiu servilo nur permesas blanklistajn ludantojn. STR_5865 :Protokoli babilejo-historion -STR_5866 :{SMALLFONT}{BLACK}Protokolas tutan babilejo-historion al dosieroj en via uzantdosierujo. +STR_5866 :{BLACK}Protokolas tutan babilejo-historion al dosieroj en via uzantdosierujo. STR_5867 :{WINDOW_COLOUR_2}Nomo de Provizanto: {BLACK}{STRING} STR_5868 :{WINDOW_COLOUR_2}Retpoŝtadreso de Provizanto: {BLACK}{STRING} STR_5869 :{WINDOW_COLOUR_2}Retejo de Provizanto: {BLACK}{STRING} @@ -3309,7 +3307,7 @@ STR_6030 :Pejzaĝo-elektilo. Alklaku iun ajn pejzaĝon sur la mapo por elekti STR_6031 :Priskribo de servilo: STR_6032 :Saluto de servilo: STR_6033 :Dosierindikon de RCT1-instalo: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Bonvolu elekti vian RCT1-dosierujon STR_6036 :Vakigi STR_6037 :La elektita dosierujo ne enhavas validan instalon de RollerCoaster Tycoon 1. @@ -3454,7 +3452,7 @@ STR_6183 :Sekvi{MOVE_X}{87}Neniu rastrumeto elektita STR_6184 :Sekvi Rastrumeton STR_6185 :Elekti Rastrumeton STR_6186 :Neniu rastrumeto elektita -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vomaĵo STR_6189 :Anaso STR_6190 :Vi ne eblas elekti rastrumeton dum la ĉefa titolekrano estas aktiva. @@ -3604,7 +3602,7 @@ STR_6356 :Generas anasojn se parko enhavas akvon STR_6357 :Forigas ĉiujn anasojn de la mapo STR_6358 :Paĝo {UINT16} STR_6359 :{POP16}{POP16}Paĝo {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Ŝalti lumefektojn sur atrakcioj (eksperimenta) STR_6362 :Se ŝaltita, veturiloj de atrakcioj kun trakoj lumos nokte. STR_6363 :Teksto kopiita al tondujo @@ -3679,6 +3677,25 @@ STR_6431 :Deks. Musbutono STR_6432 :Muso {INT32} STR_6433 :Forigi STR_6434 :Forigi ĉiujn bindaĵojn por ĉi tiu klavarokomando. +STR_6435 :{WINDOW_COLOUR_2}Vandaloj haltigitaj: {BLACK}{COMMA16} +STR_6436 :Baskuligi nevideblecon +STR_6437 :Nevidebla +STR_6438 :N +STR_6439 :Inspektilo de Bloko: Baskuligi nevideblecon +STR_6440 :Travidebla akvo +STR_6441 :Almenaŭ unu surfacobjekto de ne-atendovico-trotuaro elektendas. +STR_6442 :Almenaŭ unu surfacobjekto de atendovico-trotuaro elektendas. +STR_6443 :Almenaŭ unu balustradobjekto de trotuaro elektendas. +STR_6444 :Surfacoj de Trotuaro +STR_6445 :Balustradoj de Trotuaro +STR_6446 :{WINDOW_COLOUR_2}Nomo de surfaco: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Nomo de balustrado: {BLACK}{STRINGID} +STR_6448 :Nesubtenata formato de objekto +STR_6449 :{WINDOW_COLOUR_2}Kantoj: +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Vendas: {BLACK}{STRING} +STR_6453 :Kopii informojn de versio ############# # Scenarios # diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index fbb0d3dc37..3896f289ec 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -240,8 +240,8 @@ STR_0831 :Alejar vista STR_0832 :Rota la cámara 90° sentido horario STR_0833 :Pausar juego STR_0834 :Opciones de juego -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :Sobre 'OpenRCT2' STR_0850 :{WINDOW_COLOUR_2} © 2002 Chris Sawyer, todos los derechos reservados @@ -799,14 +799,14 @@ STR_1410 :Sección vertical STR_1411 :{STRINGID} en medio STR_1412 :{WINDOW_COLOUR_3}Estadísticas no disponibles para este tipo de atracción STR_1413 :{WINDOW_COLOUR_3}Las estadísticas comenzarán a registrarse cuando el {STRINGID} salga de la {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Velocidad STR_1416 :{WINDOW_COLOUR_2}Altitud STR_1417 :{WINDOW_COLOUR_2}Acel. Vert. STR_1418 :{WINDOW_COLOUR_2}Acel. Lat. -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Guardando datos de {POP16}{STRINGID} STR_1423 :Fila de espera STR_1424 :Sendero @@ -865,131 +865,131 @@ STR_1476 :{WINDOW_COLOUR_2}Nivel de intensidad: {BLACK}Aún no disponible STR_1477 :{WINDOW_COLOUR_2}Nivel de intensidad: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Nivel de náusea: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Nivel de náusea: {BLACK}Aún no disponible -STR_1480 :{SMALLFONT}“No puedo pagar para {STRINGID}” -STR_1481 :{SMALLFONT}“He gastado todo mi dinero” -STR_1482 :{SMALLFONT}“Me siento mareado” -STR_1483 :{SMALLFONT}“Me siento muy mareado” -STR_1484 :{SMALLFONT}“Quiero probar algo más arriesgado que {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} parece demasiado intenso para mí” -STR_1486 :{SMALLFONT}“Aún no he acabado mi {STRINGID}” -STR_1487 :{SMALLFONT}“Con sólo mirar {STRINGID} me marea” -STR_1488 :{SMALLFONT}“No voy a pagar tanto para subir a {STRINGID}” -STR_1489 :{SMALLFONT}“Quiero volver a casa” -STR_1490 :{SMALLFONT}“{STRINGID} es barato” -STR_1491 :{SMALLFONT}“Ya tengo {STRINGID}” -STR_1492 :{SMALLFONT}“No puedo pagar para {STRINGID}” -STR_1493 :{SMALLFONT}“No tengo hambre” -STR_1494 :{SMALLFONT}“No tengo sed” -STR_1495 :{SMALLFONT}“¡Ayuda!¡Me ahogo!” -STR_1496 :{SMALLFONT}“¡Me he perdido!” -STR_1497 :{SMALLFONT}“{STRINGID} ha sido estupendo” -STR_1498 :{SMALLFONT}“He esperado una eternidad en {STRINGID}” -STR_1499 :{SMALLFONT}“Estoy cansado” -STR_1500 :{SMALLFONT}“Tengo hambre” -STR_1501 :{SMALLFONT}“Estoy sediento” -STR_1502 :{SMALLFONT}“Tengo que ir al lavabo” -STR_1503 :{SMALLFONT}“No encuentro {STRINGID}” -STR_1504 :{SMALLFONT}“No voy a pagar tanto por {STRINGID}” -STR_1505 :{SMALLFONT}“No voy a subir a {STRINGID} mientras llueve” -STR_1506 :{SMALLFONT}“Las papeleras aquí brillan por su ausencia” -STR_1507 :{SMALLFONT}“No puedo encontrar la salida” -STR_1508 :{SMALLFONT}“Quiero bajarme de {STRINGID}” -STR_1509 :{SMALLFONT}“Quiero salir de {STRINGID}” -STR_1510 :{SMALLFONT}“No voy a subir a {STRINGID}, no es seguro” -STR_1511 :{SMALLFONT}“Este sendero es repugnante” -STR_1512 :{SMALLFONT}“Hay demasiada gente aquí” -STR_1513 :{SMALLFONT}“El vandalismo es terrible” -STR_1514 :{SMALLFONT}“¡El paisaje es estupendo!” -STR_1515 :{SMALLFONT}“Este parque está realmente limpio y ordenado” -STR_1516 :{SMALLFONT}“Las fuentes saltarinas son estupendas” -STR_1517 :{SMALLFONT}“La música es agradable” -STR_1518 :{SMALLFONT}“Este Globo de {STRINGID} es barato” -STR_1519 :{SMALLFONT}“Este Juguetito de {STRINGID} es barato” -STR_1520 :{SMALLFONT}“Este Mapa de {STRINGID} es barato” -STR_1521 :{SMALLFONT}“Esta Foto de {STRINGID} es barato” -STR_1522 :{SMALLFONT}“Este Paraguas de {STRINGID} es barato” -STR_1523 :{SMALLFONT}“Esta Bebida de {STRINGID} es barata” -STR_1524 :{SMALLFONT}“Esta Hamburguesa de {STRINGID} es barata” -STR_1525 :{SMALLFONT}“Estas Papas Fritas de {STRINGID} son baratas” -STR_1526 :{SMALLFONT}“Este Helado de {STRINGID} es barato” -STR_1527 :{SMALLFONT}“Este Algodón de {STRINGID} es barato” +STR_1480 :“No puedo pagar para {STRINGID}” +STR_1481 :“He gastado todo mi dinero” +STR_1482 :“Me siento mareado” +STR_1483 :“Me siento muy mareado” +STR_1484 :“Quiero probar algo más arriesgado que {STRINGID}” +STR_1485 :“{STRINGID} parece demasiado intenso para mí” +STR_1486 :“Aún no he acabado mi {STRINGID}” +STR_1487 :“Con sólo mirar {STRINGID} me marea” +STR_1488 :“No voy a pagar tanto para subir a {STRINGID}” +STR_1489 :“Quiero volver a casa” +STR_1490 :“{STRINGID} es barato” +STR_1491 :“Ya tengo {STRINGID}” +STR_1492 :“No puedo pagar para {STRINGID}” +STR_1493 :“No tengo hambre” +STR_1494 :“No tengo sed” +STR_1495 :“¡Ayuda!¡Me ahogo!” +STR_1496 :“¡Me he perdido!” +STR_1497 :“{STRINGID} ha sido estupendo” +STR_1498 :“He esperado una eternidad en {STRINGID}” +STR_1499 :“Estoy cansado” +STR_1500 :“Tengo hambre” +STR_1501 :“Estoy sediento” +STR_1502 :“Tengo que ir al lavabo” +STR_1503 :“No encuentro {STRINGID}” +STR_1504 :“No voy a pagar tanto por {STRINGID}” +STR_1505 :“No voy a subir a {STRINGID} mientras llueve” +STR_1506 :“Las papeleras aquí brillan por su ausencia” +STR_1507 :“No puedo encontrar la salida” +STR_1508 :“Quiero bajarme de {STRINGID}” +STR_1509 :“Quiero salir de {STRINGID}” +STR_1510 :“No voy a subir a {STRINGID}, no es seguro” +STR_1511 :“Este sendero es repugnante” +STR_1512 :“Hay demasiada gente aquí” +STR_1513 :“El vandalismo es terrible” +STR_1514 :“¡El paisaje es estupendo!” +STR_1515 :“Este parque está realmente limpio y ordenado” +STR_1516 :“Las fuentes saltarinas son estupendas” +STR_1517 :“La música es agradable” +STR_1518 :“Este Globo de {STRINGID} es barato” +STR_1519 :“Este Juguetito de {STRINGID} es barato” +STR_1520 :“Este Mapa de {STRINGID} es barato” +STR_1521 :“Esta Foto de {STRINGID} es barato” +STR_1522 :“Este Paraguas de {STRINGID} es barato” +STR_1523 :“Esta Bebida de {STRINGID} es barata” +STR_1524 :“Esta Hamburguesa de {STRINGID} es barata” +STR_1525 :“Estas Papas Fritas de {STRINGID} son baratas” +STR_1526 :“Este Helado de {STRINGID} es barato” +STR_1527 :“Este Algodón de {STRINGID} es barato” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Esta Pizza de {STRINGID} es barato” +STR_1531 :“Esta Pizza de {STRINGID} es barato” STR_1532 : -STR_1533 :{SMALLFONT}“Estas Palomitas de {STRINGID} son baratas” -STR_1534 :{SMALLFONT}“Este Perrito de {STRINGID} es barato” -STR_1535 :{SMALLFONT}“Este Tentáculo de {STRINGID} es barato” -STR_1536 :{SMALLFONT}“Este Sombrero de {STRINGID} es barato” -STR_1537 :{SMALLFONT}“Esta Manzana de {STRINGID} es barata” -STR_1538 :{SMALLFONT}“Esta Camiseta de {STRINGID} es barata” -STR_1539 :{SMALLFONT}“Esta Rosquilla de {STRINGID} es barata” -STR_1540 :{SMALLFONT}“Este Café de {STRINGID} es barato” +STR_1533 :“Estas Palomitas de {STRINGID} son baratas” +STR_1534 :“Este Perrito de {STRINGID} es barato” +STR_1535 :“Este Tentáculo de {STRINGID} es barato” +STR_1536 :“Este Sombrero de {STRINGID} es barato” +STR_1537 :“Esta Manzana de {STRINGID} es barata” +STR_1538 :“Esta Camiseta de {STRINGID} es barata” +STR_1539 :“Esta Rosquilla de {STRINGID} es barata” +STR_1540 :“Este Café de {STRINGID} es barato” STR_1541 : -STR_1542 :{SMALLFONT}“Este Pollo Frito de {STRINGID} es barato” -STR_1543 :{SMALLFONT}“Esta Limonada de {STRINGID} es barata” +STR_1542 :“Este Pollo Frito de {STRINGID} es barato” +STR_1543 :“Esta Limonada de {STRINGID} es barata” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“¡Wow!” -STR_1551 :{SMALLFONT}“Tengo la extraña sensación de que alguien me está observando” -STR_1552 :{SMALLFONT}“No voy a pagar tanto por el Globo de {STRINGID}” -STR_1553 :{SMALLFONT}“No voy a pagar tanto por el Juguetito de {STRINGID}” -STR_1554 :{SMALLFONT}“No voy a pagar tanto por el Mapa de {STRINGID}” -STR_1555 :{SMALLFONT}“No voy a pagar tanto por la Foto de {STRINGID}” -STR_1556 :{SMALLFONT}“No voy a pagar tanto por el Paraguas de {STRINGID}” -STR_1557 :{SMALLFONT}“No voy a pagar tanto por la Bebida de {STRINGID}” -STR_1558 :{SMALLFONT}“No voy a pagar tanto por la Hamburguesa de {STRINGID}” -STR_1559 :{SMALLFONT}“No voy a pagar tanto por las Papas Fritas de {STRINGID}” -STR_1560 :{SMALLFONT}“No voy a pagar tanto por el helado de {STRINGID}” -STR_1561 :{SMALLFONT}“No voy a pagar tanto por el Algodón de {STRINGID}” +STR_1550 :“¡Wow!” +STR_1551 :“Tengo la extraña sensación de que alguien me está observando” +STR_1552 :“No voy a pagar tanto por el Globo de {STRINGID}” +STR_1553 :“No voy a pagar tanto por el Juguetito de {STRINGID}” +STR_1554 :“No voy a pagar tanto por el Mapa de {STRINGID}” +STR_1555 :“No voy a pagar tanto por la Foto de {STRINGID}” +STR_1556 :“No voy a pagar tanto por el Paraguas de {STRINGID}” +STR_1557 :“No voy a pagar tanto por la Bebida de {STRINGID}” +STR_1558 :“No voy a pagar tanto por la Hamburguesa de {STRINGID}” +STR_1559 :“No voy a pagar tanto por las Papas Fritas de {STRINGID}” +STR_1560 :“No voy a pagar tanto por el helado de {STRINGID}” +STR_1561 :“No voy a pagar tanto por el Algodón de {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“No voy a pagar tanto por la Pizza de {STRINGID}” +STR_1565 :“No voy a pagar tanto por la Pizza de {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“No voy a pagar tanto por las Palomitas de {STRINGID}” -STR_1568 :{SMALLFONT}“No voy a pagar tanto por el Perrito de {STRINGID}” -STR_1569 :{SMALLFONT}“No voy a pagar tanto por el Tentáculo de {STRINGID}” -STR_1570 :{SMALLFONT}“No voy a pagar tanto por el Sombrero de {STRINGID}” -STR_1571 :{SMALLFONT}“No voy a pagar tanto por la Manzana de {STRINGID}” -STR_1572 :{SMALLFONT}“No voy a pagar tanto por la Camiseta de {STRINGID}” -STR_1573 :{SMALLFONT}“No voy a pagar tanto por la Rosquilla de {STRINGID}” -STR_1574 :{SMALLFONT}“No voy a pagar tanto por el Café de {STRINGID}” +STR_1567 :“No voy a pagar tanto por las Palomitas de {STRINGID}” +STR_1568 :“No voy a pagar tanto por el Perrito de {STRINGID}” +STR_1569 :“No voy a pagar tanto por el Tentáculo de {STRINGID}” +STR_1570 :“No voy a pagar tanto por el Sombrero de {STRINGID}” +STR_1571 :“No voy a pagar tanto por la Manzana de {STRINGID}” +STR_1572 :“No voy a pagar tanto por la Camiseta de {STRINGID}” +STR_1573 :“No voy a pagar tanto por la Rosquilla de {STRINGID}” +STR_1574 :“No voy a pagar tanto por el Café de {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“No voy a pagar tanto por el Pollo Frito de {STRINGID}” -STR_1577 :{SMALLFONT}“No voy a pagar tanto por la Limonada de {STRINGID}” +STR_1576 :“No voy a pagar tanto por el Pollo Frito de {STRINGID}” +STR_1577 :“No voy a pagar tanto por la Limonada de {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Esta Foto de {STRINGID} es barata” -STR_1585 :{SMALLFONT}“Esta Foto de {STRINGID} es barata” -STR_1586 :{SMALLFONT}“Esta Foto de {STRINGID} es barata” -STR_1587 :{SMALLFONT}“Este Pretzel de {STRINGID} es barato” -STR_1588 :{SMALLFONT}“Este Chocolate de {STRINGID} es barato” -STR_1589 :{SMALLFONT}“Este Té de {STRINGID} es barato” -STR_1590 :{SMALLFONT}“Este Pastel de {STRINGID} es barato” -STR_1591 :{SMALLFONT}“Estas Gafas de {STRINGID} son baratas” -STR_1592 :{SMALLFONT}“Estos Fideos con carne de {STRINGID} son baratos” -STR_1593 :{SMALLFONT}“Este Arroz Frito de {STRINGID} son baratos” -STR_1594 :{SMALLFONT}“Esta Sopa Wonton de {STRINGID} es barata” -STR_1595 :{SMALLFONT}“Esta Sopa de Albóndigas de {STRINGID} es barata” -STR_1596 :{SMALLFONT}“Este Zumo de {STRINGID} es barato” -STR_1597 :{SMALLFONT}“Esta Leche Soja de {STRINGID} es barata” -STR_1598 :{SMALLFONT}“Este Sujeonggwa de {STRINGID} es barato” -STR_1599 :{SMALLFONT}“Este Sándwich de {STRINGID} es barato” -STR_1600 :{SMALLFONT}“Esta Galleta de {STRINGID} es barata” +STR_1584 :“Esta Foto de {STRINGID} es barata” +STR_1585 :“Esta Foto de {STRINGID} es barata” +STR_1586 :“Esta Foto de {STRINGID} es barata” +STR_1587 :“Este Pretzel de {STRINGID} es barato” +STR_1588 :“Este Chocolate de {STRINGID} es barato” +STR_1589 :“Este Té de {STRINGID} es barato” +STR_1590 :“Este Pastel de {STRINGID} es barato” +STR_1591 :“Estas Gafas de {STRINGID} son baratas” +STR_1592 :“Estos Fideos con carne de {STRINGID} son baratos” +STR_1593 :“Este Arroz Frito de {STRINGID} son baratos” +STR_1594 :“Esta Sopa Wonton de {STRINGID} es barata” +STR_1595 :“Esta Sopa de Albóndigas de {STRINGID} es barata” +STR_1596 :“Este Zumo de {STRINGID} es barato” +STR_1597 :“Esta Leche Soja de {STRINGID} es barata” +STR_1598 :“Este Sujeonggwa de {STRINGID} es barato” +STR_1599 :“Este Sándwich de {STRINGID} es barato” +STR_1600 :“Esta Galleta de {STRINGID} es barata” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Esta Salchicha de {STRINGID} es barata” +STR_1604 :“Esta Salchicha de {STRINGID} es barata” STR_1605 : STR_1606 : STR_1607 : @@ -1001,27 +1001,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“No voy a pagar tanto por la Foto de {STRINGID}” -STR_1617 :{SMALLFONT}“No voy a pagar tanto por la Foto de {STRINGID}” -STR_1618 :{SMALLFONT}“No voy a pagar tanto por la Foto de {STRINGID}” -STR_1619 :{SMALLFONT}“No voy a pagar tanto por el Pretzel de {STRINGID}” -STR_1620 :{SMALLFONT}“No voy a pagar tanto por el Chocolate de {STRINGID}” -STR_1621 :{SMALLFONT}“No voy a pagar tanto por el Té de {STRINGID}” -STR_1622 :{SMALLFONT}“No voy a pagar tanto por el Pastel de {STRINGID}” -STR_1623 :{SMALLFONT}“No voy a pagar tanto por las Gafas de {STRINGID}” -STR_1624 :{SMALLFONT}“No voy a pagar tanto por los Fideos de {STRINGID}” -STR_1625 :{SMALLFONT}“No voy a pagar tanto por el Arroz Frito de {STRINGID}” -STR_1626 :{SMALLFONT}“No voy a pagar tanto por la Sopa Wonton de {STRINGID}” -STR_1627 :{SMALLFONT}“No voy a pagar tanto por la Sopa de Albóndigas de {STRINGID}” -STR_1628 :{SMALLFONT}“No voy a pagar tanto por el Zumo de {STRINGID}” -STR_1629 :{SMALLFONT}“No voy a pagar tanto por la Leche Soja de {STRINGID}” -STR_1630 :{SMALLFONT}“No voy a pagar tanto por el Sujeonggwa de {STRINGID}” -STR_1631 :{SMALLFONT}“No voy a pagar tanto por el Sándwich de {STRINGID}” -STR_1632 :{SMALLFONT}“No voy a pagar tanto por la Galleta de {STRINGID}” +STR_1616 :“No voy a pagar tanto por la Foto de {STRINGID}” +STR_1617 :“No voy a pagar tanto por la Foto de {STRINGID}” +STR_1618 :“No voy a pagar tanto por la Foto de {STRINGID}” +STR_1619 :“No voy a pagar tanto por el Pretzel de {STRINGID}” +STR_1620 :“No voy a pagar tanto por el Chocolate de {STRINGID}” +STR_1621 :“No voy a pagar tanto por el Té de {STRINGID}” +STR_1622 :“No voy a pagar tanto por el Pastel de {STRINGID}” +STR_1623 :“No voy a pagar tanto por las Gafas de {STRINGID}” +STR_1624 :“No voy a pagar tanto por los Fideos de {STRINGID}” +STR_1625 :“No voy a pagar tanto por el Arroz Frito de {STRINGID}” +STR_1626 :“No voy a pagar tanto por la Sopa Wonton de {STRINGID}” +STR_1627 :“No voy a pagar tanto por la Sopa de Albóndigas de {STRINGID}” +STR_1628 :“No voy a pagar tanto por el Zumo de {STRINGID}” +STR_1629 :“No voy a pagar tanto por la Leche Soja de {STRINGID}” +STR_1630 :“No voy a pagar tanto por el Sujeonggwa de {STRINGID}” +STR_1631 :“No voy a pagar tanto por el Sándwich de {STRINGID}” +STR_1632 :“No voy a pagar tanto por la Galleta de {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“No voy a pagar tanto por la Salchicha de {STRINGID}” +STR_1636 :“No voy a pagar tanto por la Salchicha de {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1033,10 +1033,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“¡Ayuda! ¡Bájame!” -STR_1649 :{SMALLFONT}“¡Me estoy quedando sin dinero!” -STR_1650 :{SMALLFONT}“¡Wow! ¡Están construyendo una nueva atracción!” -STR_1653 :{SMALLFONT}“… ¡Y aquí estamos en {STRINGID}!” +STR_1648 :“¡Ayuda! ¡Bájame!” +STR_1649 :“¡Me estoy quedando sin dinero!” +STR_1650 :“¡Wow! ¡Están construyendo una nueva atracción!” +STR_1653 :“… ¡Y aquí estamos en {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Pensamientos recientes: STR_1655 :Construir camino a nivel del suelo. STR_1656 :Construir puente o túnel. @@ -1066,12 +1066,12 @@ STR_1679 :Helice arriba (izq) STR_1680 :Helice arriba (der) STR_1681 :Helice abajo (izq) STR_1682 :Helice abajo (der) -STR_1683 :Tamaño de base 2 x 2 -STR_1684 :Tamaño de base 4 x 4 -STR_1685 :Tamaño de base 2 x 4 -STR_1686 :Tamaño de base 5 x 1 +STR_1683 :Tamaño de base 2 × 2 +STR_1684 :Tamaño de base 4 × 4 +STR_1685 :Tamaño de base 2 × 4 +STR_1686 :Tamaño de base 5 × 1 STR_1687 :Salpicadura de agua -STR_1688 :Tamaño de base 4 x 1 +STR_1688 :Tamaño de base 4 × 1 STR_1689 :Bloque de frenado STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Precio: {BLACK}{CURRENCY} @@ -1188,7 +1188,7 @@ STR_1808 :{WINDOW_COLOUR_2}Última avería: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Avería actual: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Lleva: STR_1811 :No puedes construir esto aquí… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Objetos misceláneos STR_1814 :Acciones STR_1815 :Pensamientos @@ -1197,7 +1197,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Todos los visitantes STR_1819 :{WINDOW_COLOUR_2}Todos los visitantes (agrupados) STR_1820 :{WINDOW_COLOUR_2}Visitantes {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Visitantes Pensando {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Visitantes Pensando {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitantes Pensando en {POP16}{STRINGID} STR_1823 :Muestra los pensamientos de los visitantes sobre esta atracción STR_1824 :Mostrar visitantes en esta atracción @@ -1298,7 +1298,6 @@ STR_1921 :Iniciar nueva partida STR_1922 :Continuar partida guardada STR_1924 :Salir del juego STR_1925 :No puedes colocar esta persona aquí… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} se ha averiado STR_1928 :{RED}¡{STRINGID} ha chocado! STR_1929 :{RED}{STRINGID} no se ha arreglado{NEWLINE}Comprueba dónde están tus mecánicos y considera organizarlos mejor @@ -1579,7 +1578,7 @@ STR_2218 :{RED}¡{STRINGID} en {STRINGID} no ha regresado a la {STRINGID}!{NE STR_2219 :{RED}{COMMA16} personas han muerto en un accidente en {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Valoración del parque: {BLACK}{COMMA16} STR_2221 :Valoración del parque: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Visitantes en el parque: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Efectivo: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Efectivo: {RED}{CURRENCY2DP} @@ -1592,7 +1591,7 @@ STR_2231 :Frenos de caída libre STR_2232 :Cable de elevación STR_2233 :Información del parque STR_2234 :Mensajes recientes -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Enero STR_2237 :Febrero STR_2238 :Marzo @@ -1672,7 +1671,7 @@ STR_2312 :{WINDOW_COLOUR_2}Nivel de intensidad: {BLACK}{COMMA2DP32} (aprox.) STR_2313 :{WINDOW_COLOUR_2}Nivel de náuseas: {BLACK}{COMMA2DP32} (aprox.) STR_2314 :{WINDOW_COLOUR_2}Longitud de vía: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Coste: {BLACK}alrededor de {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Espacio requerido: {BLACK}{COMMA16} x {COMMA16} bloques +STR_2316 :{WINDOW_COLOUR_2}Espacio requerido: {BLACK}{COMMA16} × {COMMA16} bloques STR_2321 :{WINDOW_COLOUR_2}Número de atracciones: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Empleados: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Extensión del parque: {BLACK}{COMMA32}m² @@ -1796,7 +1795,7 @@ STR_2450 :{YELLOW}La campaña de publicidad del parque ha finalizado STR_2451 :{YELLOW}La campaña de publicidad de {STRINGID} ha finalizado STR_2452 :{WINDOW_COLOUR_2}Efectivo (restando préstamo): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Efectivo (restando préstamo): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Mostrar finanzas STR_2458 :Mostrar gráfica de efectivo disponible (restando préstamo) en el tiempo STR_2459 :Mostrar gráfica de valor del parque en el tiempo @@ -1906,7 +1905,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Investigación Completa -STR_2681 :{MEDIUMFONT}{BLACK}Incrementa tu dinero en {CURRENCY} STR_2684 :Llega un gran grupo de visitantes STR_2685 :Simplex Noise Parameters STR_2686 :Bajo: @@ -1993,7 +1991,7 @@ STR_2789 :{WINDOW_COLOUR_2}¡No has conseguido tu objetivo! STR_2790 :Introd. nombre en tabla de escenario STR_2791 :Ingresar nombre STR_2792 :Introduce nombre en la tabla de escenario: -STR_2793 :{SMALLFONT}(Completado por {STRINGID}) +STR_2793 :(Completado por {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Completado por: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} con un valor de la compañía de: {BLACK}{CURRENCY} STR_2795 :Ordenar STR_2796 :Ordenar la lista de atracciones según el criterio seleccionado @@ -2307,7 +2305,7 @@ STR_3208 :Diseñador de Vías STR_3209 :Regresar al paso anterior: STR_3210 :Avanzar al siguiente paso: STR_3211 :Tamaño de Mapa: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :No puedes disminuir más el tamaño del mapa STR_3214 :No puedes aumentar más el tamaño del mapa STR_3215 :Demasiado cerca del borde del mapa @@ -2502,7 +2500,7 @@ STR_5134 :Ajustar un área mayor para los derechos de construcción. STR_5135 :Comprar terreno o derechos de construcción STR_5136 :Der. Construcc. STR_5137 :Desbloquea límites de funcionamiento -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Desactiva fallos de frenos STR_5141 :Desactiva todas las averías @@ -2648,7 +2646,7 @@ STR_5297 :Abrir parque STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Despedir empleados rápidamente -STR_5301 :{MEDIUMFONT}{BLACK}Eliminar deuda con el banco +STR_5301 :Eliminar deuda con el banco STR_5302 :Reiniciar préstamo STR_5303 :Permite construir en pausa STR_5304 :Sec. Menú Principal: @@ -2807,7 +2805,7 @@ STR_5481 :Apariencia STR_5482 :{WINDOW_COLOUR_2}Tiempo desde la última inspección: {BLACK}1 minuto STR_5483 :{BLACK}({COMMA16} semanas restantes) STR_5484 :{BLACK}({COMMA16} semana restante) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Mensajes recientes STR_5489 :Mostrar sólo los visitantes con seguimiento activado @@ -3314,7 +3312,7 @@ STR_6030 :Selector de Escenario. Haz clic en cualquier escenario del mapa par STR_6031 :Descripción Servidor: STR_6032 :Msg. de Bienvenida: STR_6033 :Ruta de Instalación RCT1: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Por favor selecciona la carpeta de RCT1 STR_6036 :Borrar STR_6037 :Por favor selecciona una carpeta válida con una instalación de RCT1 @@ -3459,7 +3457,7 @@ STR_6183 :Seguir{MOVE_X}{87}No se eligió figura STR_6184 :Seguir figura STR_6185 :Elegir figura STR_6186 :No se eligió figura -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vomito STR_6189 :Pato STR_6190 :No puedes elegir una figura mientras la ventana principal está activa @@ -3609,7 +3607,7 @@ STR_6356 :Crear patos si el parque tiene agua STR_6357 :Quitar todos los patos del mapa STR_6358 :Página {UINT16} STR_6359 :{POP16}{POP16}Página {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Habilitar efectos de luz en atracciones (experimental) STR_6362 :Si está activado, vehículos para las atracciones con vias estarán iluminados de noche. STR_6363 :Copiar texto al portapapeles diff --git a/data/language/fi-FI.txt b/data/language/fi-FI.txt index fe9e661675..fb3ca39e84 100644 --- a/data/language/fi-FI.txt +++ b/data/language/fi-FI.txt @@ -5,17 +5,17 @@ STR_0000 : STR_0001 :{STRINGID} {COMMA16} STR_0002 :Kierrevuoristorata STR_0003 :Seisomavuoristorata -STR_0004 :Riippukeinuvuoristorata +STR_0004 :Keinuva riippuvuoristorata STR_0005 :Käänteinen vuoristorata STR_0006 :Juniorivuoristorata STR_0007 :Pienoisrautatie -STR_0008 :Yksiraiteinen rautatie -STR_0009 :Pieni riippuva vuoristorata +STR_0008 :Kohorata +STR_0009 :Riippuva pienoisvuoristorata STR_0010 :Veneajelu STR_0011 :Puinen villihiiri STR_0012 :Estejuoksu STR_0013 :Autoajelu -STR_0014 :Laukaistu vapaapudotus +STR_0014 :Vapaapudotustorni STR_0015 :Rattikelkkarata STR_0016 :Näköalatorni STR_0017 :Silmukkavuoristorata @@ -30,7 +30,7 @@ STR_0025 :Tukkijoki STR_0026 :Koskiseikkailu STR_0027 :Törmäysautot STR_0028 :Merirosvolaiva -STR_0029 :Keinuva käänteinen laiva +STR_0029 :Kääntyvä merirosvolaiva STR_0030 :Ruokakoju STR_0031 :Tuntematon koju (1D) STR_0032 :Juomakoju @@ -43,16 +43,16 @@ STR_0038 :Vessa STR_0039 :Maailmanpyörä STR_0040 :Simulaattori STR_0041 :3D-teatteri -STR_0042 :Yläpyörähdys +STR_0042 :Kieputin STR_0043 :Avaruusrenkaat -STR_0044 :Päinvastainen vapaapudotusrata +STR_0044 :Käänteinen vapaapudotusrata STR_0045 :Hissi STR_0046 :Pystysuora tiputusvuoristorata STR_0047 :Pankkiautomaatti -STR_0048 :Vääntö +STR_0048 :Twister STR_0049 :Kummitustalo STR_0050 :Ensiapuhuone -STR_0051 :Sirkusesitys +STR_0051 :Sirkus STR_0052 :Kummitusjuna STR_0053 :Teräskiehkuravuoristorata STR_0054 :Puinen vuoristorata @@ -62,24 +62,24 @@ STR_0057 :Moniulottuvuusvuoristorata STR_0058 :Tuntematon laite (38) STR_0059 :Lentävä vuoristorata STR_0060 :Tuntematon laite (3A) -STR_0061 :Virginian kela +STR_0061 :Virginia-kehrä STR_0062 :Roiskahdusveneet STR_0063 :Minihelikopterit STR_0064 :Makuuvuoristorata -STR_0065 :Riippuva yksiraiteinen rautatie +STR_0065 :Riippuva kohorata STR_0066 :Tuntematon laite (40) -STR_0067 :Päinvastainen vuoristorata -STR_0068 :Sydänviivakiehkurarata -STR_0069 :Minigolffi -STR_0070 :Jättirata -STR_0071 :Pyörivä tiputus +STR_0067 :Käänteinen vuoristorata +STR_0068 :Sivuttaisvieritysrata +STR_0069 :Minigolf +STR_0070 :Gigarata +STR_0071 :Pyörivä tiputustorni STR_0072 :Lentävät lautaset -STR_0073 :Kiero talo -STR_0074 :Yksiraiteiset polkupyörät -STR_0075 :Tiivis käänteinen rata +STR_0073 :Huojuva talo +STR_0074 :Raidepolkupyörät +STR_0075 :Kompakti käänteinen vuoristorata STR_0076 :Vesirata -STR_0077 :Ilmakäyttöinen pystysuora rata -STR_0078 :Kääteinenhiusneularata +STR_0077 :Ilmakäyttöinen pystyvuoristorata +STR_0078 :Käänteinen hiusneularata STR_0079 :Taikamatto STR_0080 :Sukellusveneajelu STR_0081 :Jokilautat @@ -94,92 +94,95 @@ STR_0088 :Käänteinen impulssirata STR_0089 :Minivuoristorata STR_0090 :Kaivosajelu STR_0091 :Tuntematon laite (59) -STR_0092 :Induktiomoottorilaukaisuvuoristorata -STR_0512 :A compact roller coaster with a spiral lift hill and smooth, twisting drops. -STR_0513 :A looping roller coaster where the riders ride in a standing position -STR_0514 :Trains suspended beneath the roller coaster track swing out to the side around corners -STR_0515 :A steel roller coaster with trains that are held beneath the track, with many complex and twisting track elements -STR_0516 :A gentle roller coaster for people who haven't yet got the courage to face the larger rides -STR_0517 :Passengers ride in miniature trains along a narrow-gauge railway track +STR_0092 :Laukaisuvuoristorata +STR_0093 :Hybridivuoristorata +STR_0094 :Yksikiskoinen vuoristorata +STR_0512 :Kompakti vuoristorata, jossa on spiraalimainen nostomäki, ja sulavat, kaartelevat pudotukset. +STR_0513 :Silmukoiva vuoristorata, jossa matkustajat ovat seisoma-asennossa +STR_0514 :Junat riippuvat vuoristoradan alla, ja heilahtavat sivuttain käänteissä +STR_0515 :Teräksinen vuoristorata, jonka junat ovat radan alapuolella, ja jossa on monia monimutkaisia ja kiertyviä rataosia +STR_0516 :Lempeä vuoristorata niille, joilla ei ole vielä rahkeita mennä isompiin laitteisiin +STR_0517 :Matkustajat kulkevat pienoisjunan kyydissä tällä kapeakiskoisella rautatiellä STR_0518 :Matkustajat kulkevat sähköisillä junilla yksittäisellä raiteella -STR_0519 :Passengers ride in small cars hanging beneath the single-rail track, swinging freely from side to side around corners -STR_0520 :A dock platform where guests can drive/row personal watercraft on a body of water -STR_0521 :A fast and twisting roller coaster with tight turns and steep drops. Intensity is bound to be high. -STR_0522 :A smaller roller coaster where the riders sit above the track with no car around them -STR_0523 :Riders travel slowly in powered vehicles along a track-based route -STR_0524 :Freefall car is pneumatically launched up a tall steel tower and then allowed to freefall down -STR_0525 :Riders career down a twisting track guided only by the curvature and banking of the semi-circular track -STR_0526 :Passengers travel in a rotating observation cabin which travels up a tall tower -STR_0527 :A smooth steel-tracked roller coaster capable of vertical loops -STR_0528 :Riders travel in inflatable dinghies down a twisting semi-circular or completely enclosed tube track -STR_0529 :Mine train themed roller coaster trains career along steel roller coaster track made to look like old railway track -STR_0530 :Cars hang from a steel cable which runs continuously from one end of the ride to the other and back again -STR_0531 :A compact steel-tracked roller coaster where the train travels through corkscrews and loops -STR_0532 : -STR_0533 : -STR_0534 :Itsestään ajavat bensalla kulkevat mikroautot -STR_0535 :Log-shaped boats travel along a water channel, splashing down steep slopes to soak the riders -STR_0536 :Circular boats meander along a wide water channel, splashing through waterfalls and thrilling riders through foaming rapids -STR_0537 : -STR_0538 : -STR_0539 : -STR_0540 : -STR_0542 : -STR_0544 : -STR_0545 : -STR_0547 : -STR_0548 : -STR_0549 : -STR_0550 : -STR_0551 : -STR_0552 : -STR_0553 : -STR_0554 :The car is accelerated out of the station along a long level track using Linear Induction Motors, then heads straight up a vertical spike of track, freefalling back down to return to the station -STR_0555 :Pystysuora torni, jossa vieraat kulkevat hissillä ylös tai alas päästäkseen tasolta toiselle -STR_0556 :Leveät vaunut laskevat pystysuoraa rataa täyden vapaapudotuskokemuksen saavuttamiseksi -STR_0557 : -STR_0558 : -STR_0559 : -STR_0560 : -STR_0561 : -STR_0562 :Moottoroidut vaunut kulkevat monitasoista rataa pelottavien lavastusten ja erikoisefektien läpi -# 'Air time' is an expression used in finnish too, for the lack of a better word -STR_0563 :Sitting in comfortable trains with only simple lap restraints riders enjoy giant smooth drops and twisting track as well as plenty of 'air time' over the hills -STR_0564 :Puisen radan takia tämä vuoristorata on nopea, raaka, meluisa ja tarjoaa 'out of control'-kokemuksen ja paljon airtimeä -STR_0565 :Yksinkertainen puinen vuoristorata joka kykenee vain lempeisiin mäkiin ja käännöksiin. Vaunut pysyvät radalla sivukitkapyörien ja painovoiman avulla -STR_0566 :Yksittäiset vuoristoratavaunut singahtelevat pitkin tiukkaa mutkarataa jossa on teräviä kaarteita ja pudotuksia -STR_0567 :Radan sivuilla olevissa tuoleissa matkustajia pyöritetään ylösalaisin kun vaunu huristaa alas jyrkkiä pudotuksia läpi useiden inversioiden -STR_0569 :Erikoisvaljaiden ansiosta matkustajat kokevat lentävänsä ilmojen halki -STR_0571 :Pyöreät vaunut pyörivät ympäri mutkikkaalla puisella radalla -STR_0572 :Large capacity boats travel along a wide water channel, propelled up slopes by a conveyer belt, accelerating down steep slopes to soak the riders with a gaint splash -STR_0573 :Powered helicoper shaped cars running on a steel track, controlled by the pedalling of the riders -STR_0574 :Riders are held in special harnesses in a lying-down position, travlling through twisted track and inversions either on their backs or facing the ground -STR_0575 :Powered trains hanging from a single rail transport people around the park -STR_0577 :Bogied cars run on wooden tracks, turning around on special reversing sections -STR_0578 :Cars run along track enclosed by circular hoops, traversing steep drops and heartline twists -STR_0579 : -STR_0580 :A giant steel roller coaster capable of smooth drops and hills of over 300ft -STR_0581 :Pyöreä tuolirivi nousee korkean tornin huipulle, josta se putoaa vapaasti alas. Alhaalla magneettijarrut pysäyttävät vaunun lempeästi -STR_0582 : -STR_0583 : -STR_0584 :Special bicycles run on a steel monorail track, propelled by the pedalling of the riders -STR_0585 :Riders sit in pairs of seats suspended beneath the track as they loop and twist through tight inversions -STR_0586 :Boat shaped cars run on roller coaster track to allow twisting curves and steep drops, splashing down into sections of water for gentle river sections -STR_0587 :After an exhilarating air-powered launch, the train speeds up a vertical track, over the top, and vertically down the other side to return to the station -STR_0588 :Individual cars run beneath a zig-zagging track with hairpin turns and sharp drops -STR_0589 : -STR_0590 :Riders ride in a submerged submarine through an underwater course -STR_0591 :Raft-shaped boats gently meander around a river track -STR_0593 : -STR_0598 :Inverted roller coaster trains are accelerated out of the station to travel up a vertical spike of track, then reverse back through the station to travel backwards up another vertical spike of track -STR_0599 :A compact roller coaster with individual cars and smooth twisting drops -STR_0600 :Powered mine trains career along a smooth and twisted track layout -STR_0602 :Roller coaster trains are accelerated out of the station by linear induction motors to speed through twisting inversions -STR_0767 :Vieras {INT32} +STR_0519 :Matkustajat kulkevat kiskon alta riippuvissa pienoisvaunuissa, vapaasti heilahtaen käänteissä +STR_0520 :Laituri, josta kävijät voivat astua aluksiin ja ajaa tai soutaa vesistössä +STR_0521 :Nopea ja kiermuteleva vuoristorata tiukoilla käännöksillä ja jyrkillä pudotuksilla. Intensiteetti on varmasti katossa. +STR_0522 :Pienempi vuoristorata, jossa matkustajat kulkevat raiteilla ilman ympäröivää vaunua +STR_0523 :Matkustajat kulkevat verkkaisesti moottoroiduilla ajoneuvoilla rataa pitkin +STR_0524 :Pneumaattisesti laukaistu kori kohoaa korkean terästornin huipulle, ja putoaa sitten vapaasti takaisin maahan +STR_0525 :Matkustajat kiitävät kiemurtelevaa rataa alas, ainoastaan puolikuun muotoisen radan kallistumien ja kaarroksien ohjaamana +STR_0526 :Matkustajat kulkevat pyörivässä näköalakopissa, joka nousee korkean tornin huipulle +STR_0527 :Lipevä teräskiskoinen vuoristorata, joka kykenee pystysuoriin silmukoihin +STR_0528 :Matkjustajat liukuvat puhallettavissa veneissä alas puolikuun tai umpinaisen putken muotoista rataa +STR_0529 :Kaivosjunan näköiset vuoristoratavaunut kiitävät vanhalta junaradalta näyttäviä teräskiskoja pitkin +STR_0530 :Vaunut riippuvat teräskaapelista, joka pyörii jatkuvasti laitteen yhdestä päästä toiseen +STR_0531 :Kompakti teräskiskoinen vuoristorata, jossa juna kiitää läpi korkkikierteiden ja silmukoiden +STR_0532 :Labyrintti on rakennettu kaksimetrisistä pensasaidoista tai seinistä, ja kävijät pääsevät ulos vasta kun löytävät uloskäynnin +STR_0533 :Puinen rakennus jonka sisällä olevasta porraskäytävästä pääsee huipulle, josta voi laskea ulkoseinämän liukumäkeä alas +STR_0534 :Kävijät kilpailevat toisiaan vastaan mikroautoissa asfalttiradalla +STR_0535 :Veneet kulkevat vesikanavaa myöten, ja jyrkissä mäissä roiskeet kastelevat matkustajat +STR_0536 :Pyöreät veneet kuljeskelevat laajaa vesikanavaa pitkin, roiskuen läpi vesiputousten ja vaahtoavien koskien +STR_0537 :Kävijät törmäävät toisiinsa ajamissaan sähköautoissa +STR_0538 :Suuri keinuva merirosvolaiva +STR_0539 :Laiva on kiinnitetty puomiin, jonka toisessa päässä on vastapaino, ja joka pyörii täydet 360 astetta +STR_0540 :Koju, josta kävijät voivat ostaa ruokaa +STR_0542 :Koju, josta kävijät voivat ostaa juomia +STR_0544 :Koju, joka myy matkamuistoja +STR_0545 :Vanhanaikainen pyörivä karuselli kaiverrettujen puuhevosien kera +STR_0547 :Koju josta kävijät voivat ostaa karttoja ja sateenvarjoja +STR_0548 :WC-rakennus +STR_0549 :Iso pyörivä pyörä, jossa on avoilmapenkit +STR_0550 :Kävijät katsovat elokuvaa simulaattorin sisällä, samalla kun hydraulinen puomi liikuttaa ja kallistaa simulaattoria +STR_0551 :Elokuvateatteri, joka näyttää 3D-elokuvia geodeettisen pallon muotoisessa rakennuksessa +STR_0552 :Matkustajat istuvat suurien pyörivien puomien päähän kiinnitetyssä gondolassa, pyörien edestakaisin ja ylösalaisin +STR_0553 :Sisäkkäiset pyörivät renkaat antavat kävijöiden pyöriä vapaasti joka suuntaan +STR_0554 :Vaunu kiihdytetään asemalta induktiomoottorilla, kiivetäkseen pystysuoraa rataa pitkin, ja lopulta pudoten vapaasti takaisin asemalle +STR_0555 :Kävijät matkustavat pystysuoralla hissillä ylös tai alas, päästen näin eri tasoille +STR_0556 :Erikoisleveät vaunut putoavat pystysuoraa rataa pitkin, jotta kävijät voivat kokea äärimmäisen vapaapudotusvuoristoradan +STR_0557 :Raha-automaatti jota kävijät voivat käyttää jos rahat ovat vähissä +STR_0558 :Kävijät istuvat pareittain penkeissä kolmen pitkän pyörivän puomin päissä +STR_0559 :Suuri teemattu rakennus, jossa on pelottavia käytäviä ja karmivia huoneita +STR_0560 :Paikka, jossa pahoinvoivat kävijät voivat levätä ja toipua nopeammin +STR_0561 :Sirkuseläinshow valtavan teltan sisällä +STR_0562 :Moottoroidut vaunut kulkevat monitasoista rataa pitkin pelottavien lavasteiden ja erikoistehosteiden keskellä +STR_0563 :Mukavissa junissa istuvat matkustajat kokevat sulavan valtavia pudotuksia ja kääntyileviä ratoja, sekä runsaasti ‘airtime’ä mäkien huipuilla +STR_0564 :Tämä puisella radalla kulkeva vuoristorata on nopea, raju ja meluisa, ja antaa matkustajille runsaasti hallitsemattomuuden tunnetta ja reilusti ‘airtime’ä +STR_0565 :Yksinkertainen puinen vuoristorata, joka pystyy vain lempeisiin mäkiin ja kaarteisiin, koska vaunut pysyvät radalla ainoastaan sivuttaiskitkapyörien ja painovoiman ansiosta +STR_0566 :Yksittäiset vuoristoratavaunut viuhahtavat tiukan siksakkiradan jyrkkien käännösten ja vielä jyrkempien pudotusten läpi +STR_0567 :Matkustajat pyörivät ylösalaisin radan molemmin puolin sijoitetuissa istuimissa, kun juna kiitää jyrkkien pudotusten ja moninaisten käännösten läpi +STR_0569 :Matkustajat kokevat lentämisen tunteen, kun he kiitävät ilmojen halki erikoisvaljaissa radan alapuolella +STR_0571 :Pyöreät vaunut kieppuvat ympäriinsä kulkiessaan siksakkaavaa puista rataa +STR_0572 :Suuren kapasiteetin veneet kulkevat laajan vesikanavaa, kulkien ylämäkiä liukuhihnalla, ja luistaen alamäkiä roiskeiden kastellessa matkustajia +STR_0573 :Moottoroidut helikopterin muotoiset vaunut kulkevat teräsradalla, liikkuen matkustajien polkiessa +STR_0574 :Matkustajat laitetaan makuuasentoon erikoisvaljaisiin, ja laitetaan kiitämään kiemurtelevan ja kääntyilevän radan läpi, joko selin tai vatsallaan +STR_0575 :Moottoroidut yksittäisestä kiskosta riippuvat junat kuljettavat kävijöitä ympäri puistoa +STR_0577 :Vaunut kulkevat puisilla kiskoilla, ja kääntyvät ympäri erityisissä kääntöosioissa +STR_0578 :Vaunut kulkevat renkasmaisten rakenteiden ympäröivää rataa, kulkien läpi jyrkkien pudotusten ja sivuttaisvieritysten +STR_0579 :Lempeä minigolfkenttä +STR_0580 :Jättimäinen teräsvuoristorata, joka kykenee sulaviin pudotuksiin ja jopa 90 metrin korkuisiin mäkiin +STR_0581 :Pyörivään ympyrään asetetut istuimet vedetään korkean tornin huipulle, ja annetaan pudota alas, ja pysähtyä hellävaraisesti magneettijarrujen ansiosta +STR_0582 :Matkustajat kulkevat itse ajamissaan ilmatyynyaluksissa +STR_0583 :Rakennus täynnä kävijöitä kummastuttavia vääristettyjä huoneita ja kieroutuineita käytäviä +STR_0584 :Matkustajat itse polkevat näitä erikoisvalmisteisia polkupyöriä yksittäistä teräsrataa pitkin +STR_0585 :Matkustajat istuvat pareittain radasta roikuvissa istuimissa, poukkoillen ja kierrellen tiukkojen käänteiden läpi +STR_0586 :Veneen muotoiset vaunut kulkevat vuoristoradan kiertyvien kaarrosten ja jyrkkien pudotusten läpi, välillä polskahtaen lempeämpiin jokiosioihin +STR_0587 :Jännittävän ilmakäyttöisen laukauksen jälkeen juna kiitää ylös pystysuoraa rataa, sujahtaa huipun yli, ja toista pystysuoraa rataa alas palatakseen asemalle +STR_0588 :Erilliset vaunut kulkevat siksakkisen radan alla tiukkojen mutkien ja jyrkkien mäkien ohessa +STR_0589 :Suuri lentävän maton näköinen vaunu, joka liikkuu syklisesti ylös ja alas neljän puomin varassa +STR_0590 :Matkustajat kulkevat sukellusveneessä vedenalaista rataa pitkin +STR_0591 :Lautan muotoiset veneet lempeästi liplattavat jokirataa pitkin +STR_0593 :Riippuvilla vaunuilla varustettu pyörivä ratas, joka aluksi pyörii paikallaan, ja sitten nousee pystysuoraksi liikkuvan tukipuomin ansioista +STR_0598 :Käänteiset vaunut laukaistaan asemalta pystysuoraa rataa ylös, pudoten lopulta aseman läpi kohti toista pystysuoraa rataa +STR_0599 :Kompakti vuoristorata erillisillä vaunuilla ja sulavilla kiertyvillä pudotuksilla +STR_0600 :Moottoroidut kaivosjunat kiitävät sulavasti kiemurtelevan radan halki +STR_0602 :Vuoristorata jonka junat laukaistaan asemalta induktiomoottorilla, ja kiitävät sitten kiermutelevien käännösten läpi +STR_0603 :Puinen vuoristorata teräskiskoilla, jyrkillä pudotuksilla ja käännöksillä varustettuna +STR_0604 :Matkustajat kulkevat peräjonossa kapealla yksittäiskiskolla, kiitäen tiukkojen käännösten ja suunnanvaihdoksien läpi +STR_0767 :Kävijä {INT32} STR_0768 :Yleismies {INT32} STR_0769 :Mekaanikko {INT32} STR_0770 :Vartija {INT32} -STR_0771 :Viihdyttjäjä {INT32} +STR_0771 :Viihdyttäjä {INT32} STR_0777 :Nimetön puisto{POP16}{POP16} STR_0778 :Kyltti STR_0779 :1. @@ -213,41 +216,40 @@ STR_0806 :28. STR_0807 :29. STR_0808 :30. STR_0809 :31. -STR_0810 :Tammi -STR_0811 :Helmi -STR_0812 :Maalis -STR_0813 :Huhti -STR_0814 :Touko -STR_0815 :Kesä -STR_0816 :Heinä -STR_0817 :Elo -STR_0818 :Syys -STR_0819 :Loka -STR_0820 :Marras -STR_0821 :Joulu -STR_0822 :Grafiikkadatatiedostoa ei saada auki +STR_0810 :tam +STR_0811 :hel +STR_0812 :maa +STR_0813 :huh +STR_0814 :tou +STR_0815 :kes +STR_0816 :hei +STR_0817 :elo +STR_0818 :syy +STR_0819 :lok +STR_0820 :mar +STR_0821 :jou +STR_0822 :Grafiikkadatatiedostoa ei voi avata STR_0823 :Puuttuva tai käyttökelvoton datatiedosto STR_0824 :{BLACK}❌ STR_0825 :Nimi on jo käytössä STR_0826 :Liian monta nimeä määritetty -STR_0827 :Rahaa ei ole tarpeeksi - tarvitaan {CURRENCY2DP} +STR_0827 :Ei varaa - vaatii {CURRENCY2DP} STR_0828 :Sulje ikkuna -STR_0829 :Ikkunan otsikko - Vedä tätä liikuttaaksesi ikkunaa -STR_0830 :Suurenna -STR_0831 :Pienennä +STR_0829 :Ikkunan otsikko - Raahaa tätä liikuttaaksesi ikkunaa +STR_0830 :Lähennä +STR_0831 :Loitonna STR_0832 :Käännä 90° myötäpäivään STR_0833 :Pysäytä peli STR_0834 :Levy- ja peliasetukset -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} -# The following six strings were used for display resolutions, but have been replaced. -STR_0847 :Lisätietoja 'OpenRCT2' -STR_0850 :{WINDOW_COLOUR_2}Tekijänoikeus © 2002 Chris Sawyer, kaikki oikeudet pidetään +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} +STR_0847 :Tietoja OpenRCT2:sta +STR_0850 :{WINDOW_COLOUR_2}Tekijänoikeus © 2002 Chris Sawyer, kaikki oikeudet pidätetään STR_0851 :{WINDOW_COLOUR_2}Suunnitellut ja ohjelmoinut Chris Sawyer STR_0852 :{WINDOW_COLOUR_2}Grafiikka Simon Foster STR_0853 :{WINDOW_COLOUR_2}Äänet ja musiikki Allister Brimble STR_0854 :{WINDOW_COLOUR_2}Lisä-äänet nauhoittanut David Ellis -STR_0855 :{WINDOW_COLOUR_2}Edustaja Jacqui Lyons at Marjacq Ltd. +STR_0855 :{WINDOW_COLOUR_2}Edustaja Jacqui Lyons Marjacq Ltd.:ssä STR_0856 :{WINDOW_COLOUR_2}Kiitoksia: STR_0857 :{WINDOW_COLOUR_2}Peter James Adcock, Joe Booth, ja John Wardley STR_0865 :{STRINGID} @@ -262,8 +264,8 @@ STR_0873 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} STR_0874 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} STR_0875 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} STR_0876 :{BLACK}▼ -STR_0877 :Liian matala ! -STR_0878 :Liian korkea ! +STR_0877 :Liian matala! +STR_0878 :Liian korkea! STR_0879 :Maata ei voi alentaa tästä… STR_0880 :Maata ei voi nostaa tästä… STR_0881 :Esine on tiellä @@ -271,15 +273,15 @@ STR_0882 :Lataa peli STR_0883 :Tallenna peli STR_0884 :Lataa maisema STR_0885 :Tallenna maisema -STR_0887 :Lopeta skenaarioeditori -STR_0888 :Lopeta vuoristoratasuunnittelu -STR_0889 :Lopeta ratasuunnitelmahallinta -STR_0891 :Kuvankaappaus -STR_0892 :Kuvankaappaus tallennettu levylle nimellä '{STRINGID}' -STR_0893 :Kuvankaappaus epäonnistui ! -STR_0894 :Maisematietoalue on täynnä ! +STR_0887 :Lopeta skenaariomuokkain +STR_0888 :Lopeta vuoristoratamuokkain +STR_0889 :Lopeta ratamallien hallinta +STR_0891 :Ruudunkaappaus +STR_0892 :Ruudunkaappaus tallennettu levylle nimellä ”{STRINGID}” +STR_0893 :Ruudunkaappaus epäonnistui! +STR_0894 :Maisematietoalue on täynnä! STR_0895 :Ei voi rakentaa osittain maan ylle ja alle -STR_0896 :{POP16}{POP16}{STRINGID} Rakenne +STR_0896 :{POP16}{POP16}{STRINGID} rakennus STR_0897 :Suunta STR_0898 :Kaarre vasempaan STR_0899 :Kaarre oikeaan @@ -309,36 +311,36 @@ STR_0922 :Jyrkkä mäki ylös STR_0923 :Pystynousu STR_0924 :Kierre alas STR_0925 :Kierre ylös -STR_0926 :Tämän poistaminen ei onnistu… -STR_0927 :Tämän rakentaminen tähän ei onnistu… -STR_0928 :Ketjumäki, vaunujen mäessä vetämistä varten. -STR_0929 :'S' mutka (vasen) -STR_0930 :'S' mutka (oikea) +STR_0926 :Tätä ei voi poistaa… +STR_0927 :Tätä ei voi rakentaa tähän… +STR_0928 :Nostomäki, vaunujen ylämäkiä vetoa varten +STR_0929 :S-mutka (vasen) +STR_0930 :S-mutka (oikea) STR_0931 :Pystysuora silmukka (vasen) STR_0932 :Pystysuora silmukka (oikea) STR_0933 :Nosta tai laske maata ensin -STR_0934 :Laitteen sisäänkäynti edessä -STR_0935 :Laitteen uloskäynti edessä -STR_0936 :Puiston sisäänkäynti edessä +STR_0934 :Laitteen sisäänkäynti tiellä +STR_0935 :Laitteen uloskäynti tiellä +STR_0936 :Puiston sisäänkäynti tiellä STR_0937 :Näkymäasetukset STR_0938 :Muokkaa maan korkeutta ja jyrkkyyttä STR_0939 :Maanalainen näkymä -STR_0940 :Poista pohjamaa +STR_0940 :Poista kallioperä STR_0941 :Poista pystysuorat pinnat STR_0942 :Näe laitteiden läpi -STR_0943 :Näe maiseman läpi +STR_0943 :Näe maisemoinnin läpi STR_0944 :Tallenna STR_0945 :Älä tallenna STR_0946 :Peruuta -STR_0947 :Tallenna ennen lataamista ? -STR_0948 :Tallenna ennen lopettamista ? -STR_0949 :Tallenna ennen lopettamista ? +STR_0947 :Tallenna ennen lataamista? +STR_0948 :Tallenna ennen lopettamista? +STR_0949 :Tallenna ennen lopettamista? STR_0950 :Lataa peli STR_0951 :Lopeta peli STR_0952 :Lopeta peli STR_0953 :Lataa maisema STR_0954 : -STR_0955 :Valitse istuimen kiertokulma tähän radan osioon +STR_0955 :Valitse istuimen kiertokulma tälle rataosalle STR_0956 :-180° STR_0957 :-135° STR_0958 :-90° @@ -358,39 +360,39 @@ STR_0971 :+495° STR_0972 :Peruuta STR_0973 :OK STR_0974 :Laitteet -STR_0975 :Kaupat ja kojut +STR_0975 :Kojut STR_0976 :Vessat ja infokioskit -STR_0977 :Uusia kuljetuslaitteita +STR_0977 :Uusia kulkuvälineitä STR_0978 :Uusia lempeitä laitteita STR_0979 :Uusia vuoristoratoja STR_0980 :Uusia jännittäviä laitteita STR_0981 :Uusia vesilaitteita -STR_0982 :Uusia kauppoja ja kojuja -STR_0983 :Tutkimustyö & kehittely +STR_0982 :Uusia kojuja +STR_0983 :Kehitys STR_0984 :{WINDOW_COLOUR_2}▲{BLACK} {CURRENCY2DP} STR_0985 :{WINDOW_COLOUR_2}▼{BLACK} {CURRENCY2DP} STR_0986 :{BLACK}{CURRENCY2DP} STR_0987 :Liian monta laitetta/kohdetta -STR_0988 :Ei pysty luomaan uutta laitetta/kohdetta… +STR_0988 :Uutta laitetta/kohdetta ei voi luoda… STR_0989 :{STRINGID} STR_0990 :Rakennus -STR_0991 :Asematasanne +STR_0991 :Asema STR_0992 :Romuta koko laite/kohde -STR_0993 :Romuta laite/nähtävyys +STR_0993 :Romuta laite/kohde STR_0994 :Romuta -STR_0995 :{WINDOW_COLOUR_1}Oletko varma että haluat tuhota {STRINGID}:n? +STR_0995 :{WINDOW_COLOUR_1}Oletko varma että haluat romuttaa {STRINGID}:n? STR_0996 :Kokonaisnäkymä STR_0997 :Katso valinta -STR_0998 :Ei lisää asemia sallittu tälle laitteelle -STR_0999 :Vaatii asematasanteen -STR_1000 :Rata ei tee täydellistä kierrosta -STR_1001 :Rata ei sovi kyseiselle junalajille -STR_1002 :Avaaminen ei onnistu laitteessa {POP16}{POP16}{POP16}{STRINGID}… -STR_1003 :Testiajo ei onnistu laitteessa {POP16}{POP16}{POP16}{STRINGID}… -STR_1004 :Sulkeminen ei onnistu laitteessa {POP16}{POP16}{POP16}{STRINGID}… -STR_1005 :Rakentaminen ei onnistu laitteessa {POP16}{POP16}{POP16}{STRINGID}… -STR_1006 :Täytyy ensin sulkea -STR_1007 :Ei voida luoda tarpeeksi kulkuneuvoja +STR_0998 :Tähän laitteeseen ei voi rakentaa lisää asemia +STR_0999 :Vaatii aseman +STR_1000 :Rata ei tee täyttä kierrosta +STR_1001 :Rata ei sovellu tälle junatyypille +STR_1002 :Laitetta {POP16}{POP16}{POP16}{STRINGID} ei voi avata… +STR_1003 :Laitetta {POP16}{POP16}{POP16}{STRINGID} ei voi testata… +STR_1004 :Laitetta {POP16}{POP16}{POP16}{STRINGID} ei voi sulkea… +STR_1005 :Laitetta {POP16}{POP16}{POP16}{STRINGID} ei voi rakentaa… +STR_1006 :Laitteen täytyy olla suljettu +STR_1007 :Kulkuneuvoja ei voida luoda tarpeeksi STR_1008 :Avaa, sulje tai testaa laitetta/kohdetta STR_1009 :Avaa tai sulje kaikki laitteet/kohteet STR_1010 :Avaa tai sulje puisto @@ -398,55 +400,55 @@ STR_1011 :Sulje kaikki STR_1012 :Avaa kaikki STR_1013 :Sulje puisto STR_1014 :Avaa puisto -STR_1015 :Tämä toimintatila ei toimi useamman asematasanteen kanssa -STR_1016 :Tämä toimintatila vaatii vähintään kaksi asematasannetta -STR_1017 :Ei pysty vaihtaamaan toimintatilaa… -STR_1018 :Muutoksien teko ei onnistu… -STR_1019 :Muutoksien teko ei onnistu… -STR_1020 :Muutoksien teko ei onnistu… +STR_1015 :Tämä toimintatila ei toimi useamman aseman kanssa +STR_1016 :Tämä toimintatila vaatii vähintään kaksi asemaa +STR_1017 :Toimintatilaa ei voi vaihtaa… +STR_1018 :Muutoksia ei voi tehdä… +STR_1019 :Muutoksia ei voi tehdä… +STR_1020 :Muutoksia ei voi tehdä… STR_1021 :{POP16}{POP16}{POP16}{POP16}{STRINGID} -STR_1022 :{POP16}{POP16}{POP16}{COMMA16} auto per juna -STR_1023 :{POP16}{POP16}{POP16}{COMMA16} autoa per juna -STR_1024 :{COMMA16} auto per juna -STR_1025 :{COMMA16} autoa per juna -STR_1026 :Asematasanne on liian pitkä! +STR_1022 :{POP16}{POP16}{POP16}{COMMA16} vaunu per juna +STR_1023 :{POP16}{POP16}{POP16}{COMMA16} vaunua per juna +STR_1024 :{COMMA16} vaunu per juna +STR_1025 :{COMMA16} vaunua per juna +STR_1026 :Asema on liian pitkä! STR_1027 :Paikanna tämä päänäkymässä -STR_1028 :Kentän laidan yli! -STR_1029 :Ei voi rakentaa osittain veden pinnan ylle ja alle! +STR_1028 :Tason laidan yli! +STR_1029 :Ei voi rakentaa osittain vedenpinnan ylle ja alle! STR_1030 :Tämän voi rakentaa ainoastaan veden alle! STR_1031 :Tätä ei voi rakentaa veden alle! STR_1032 :Tämän voi rakentaa ainoastaan veteen! STR_1033 :Tämän voi rakentaa ainoastaan maanpinnan ylle! STR_1034 :Tämän voi rakentaa ainoastaan maanpinnalle! -STR_1035 :Paikallinen virkavalta ei salli rakentamista puiden latvoja korkeammalle! +STR_1035 :Paikallisviranomaiset eivät salli rakentamista puiden latvoja korkeammalle! STR_1036 :Lataa peli STR_1037 :Lataa maisema STR_1038 :Muunna tallennettu peli skenaarioksi -STR_1039 :Asenna uusi ratasuunnitelma +STR_1039 :Asenna uusi ratamalli STR_1040 :Tallenna peli STR_1041 :Tallenna skenaario STR_1042 :Tallenna maisema -STR_1043 :OpenRCT2 Tallennettu peli -STR_1044 :OpenRCT2 Skenaariotiedosto -STR_1045 :OpenRCT2 Maisematiedosto -STR_1046 :OpenRCT2 Ratasuunitelmatiedosto +STR_1043 :OpenRCT2 tallennettu peli +STR_1044 :OpenRCT2 skenaariotiedosto +STR_1045 :OpenRCT2 maisematiedosto +STR_1046 :OpenRCT2 ratamallitiedosto STR_1047 :Pelin tallennus epäonnistui! STR_1048 :Skenaarion tallennus epäonnistui! STR_1049 :Maisematiedoston tallennus epäonnistui! STR_1050 :Avaaminen epäonnistui…{NEWLINE}Tiedosto sisältää virheellistä tietoa! -STR_1051 :Näkymättömät tuet +STR_1051 :Näkymättömät tukirakenteet STR_1052 :Näkymättömät ihmiset STR_1053 :Laitteet/kohteet puistossa STR_1054 :Nimeä laite/kohde STR_1055 :Nimeä henkilö STR_1056 :Nimeä henkilöstön jäsen STR_1057 :Laitteen/kohteen nimi -STR_1058 :Kirjoita uusi nimi tälle laitteelle/kohteelle: -STR_1059 :Ei pysty uudelleennimeämään laitetta/kohdetta… +STR_1058 :Anna uusi nimi tälle laitteelle/kohteelle: +STR_1059 :Laitetta/kohdetta ei voi uudelleennimetä… STR_1060 :Virheellinen laitteen/kohteen nimi STR_1061 :Normaali toimintatila STR_1062 :Toistuva kierros -toimintatila -STR_1063 :Käänteinen-kallistus laukaistu sukkula -toimintatila +STR_1063 :Käänteiskallistus laukaistu sukkula -toimintatila STR_1064 :Voimalaukaisu (aseman ohitus) STR_1065 :Sukkulatoimintatila STR_1066 :Veneajelutoimintatila @@ -454,40 +456,40 @@ STR_1067 :Ylöspäin laukaisu STR_1068 :Pyörivä hissi -toimintatila STR_1069 :Asemalta asemalle -toimintatila STR_1070 :Yksi kyyti per sisäänpääsy -STR_1071 :Loputtomat kyydit per sisäänpääsy +STR_1071 :Rajattomat kyydit per sisäänpääsy STR_1072 :Labyrinttitoimintatila STR_1073 :Kilpailutoimintatila STR_1074 :Törmäysautotoimintatila -STR_1075 :Keinutoimintatila +STR_1075 :Keinumistoimintatila STR_1076 :Kojutoimintatila STR_1077 :Pyörimistoimintatila STR_1078 :Kiertosuunta eteenpäin STR_1079 :Kiertosuunta taaksepäin STR_1080 :Elokuva: ”Kostavat lentäjät” STR_1081 :3D-elokuva: ”Hiiren hännät” -STR_1082 :Avaruusrenkaat -toimintatila -STR_1083 :Aloittelijoille -toimintatila +STR_1082 :Avaruusrenkaat-toimintatila +STR_1083 :Aloittelijoiden toimintatila STR_1084 :Induktiomoottorilaukaisu STR_1085 :Elokuva: ”Jännityksen rakastajat” STR_1086 :3D-elokuva: ”Myrskyn jahtaajat” STR_1087 :3D-elokuva: ”Avaruusryöstäjät” STR_1088 :Intensiivinen toimintatila STR_1089 :Hullu toimintatila -STR_1090 :Kummitustalo -toimintatila -STR_1091 :Sirkusesitys -toimintatila +STR_1090 :Kummitustalo-toimintatila +STR_1091 :Sirkusesitys-toimintatila STR_1092 :Alaspäin laukaisu STR_1093 :Kiero talo -toimintatila STR_1094 :Vapaapudotustoimintatila STR_1095 :Toistuva kierros lohkojarrutuksella -toimintatila STR_1096 :Voimalaukaisu (ilman aseman ohitusta) STR_1097 :Voimalaukaisu lohkojarrutuksella -toimintatila -STR_1098 :Siirrytään {POP16}{STRINGID} loppuun -STR_1099 :Odotetaan matkustajia {POP16}{STRINGID} -STR_1100 :Odotetaan lähtöä {POP16}{STRINGID} -STR_1101 :Lähtemässä asemalta {POP16}{STRINGID} +STR_1098 :Siirrytään {POP16}{STRINGID}n loppuun +STR_1099 :Odotetaan matkustajia {POP16}{STRINGID}lla +STR_1100 :Odotetaan {POP16}{STRINGID}lta lähtöä +STR_1101 :Lähdössä {POP16}{STRINGID}lta STR_1102 :Nopeus {VELOCITY} -STR_1103 :Saapumassa asemalle {POP16}{STRINGID} -STR_1104 :Matkustajat poistuvat asemalla {POP16}{STRINGID} +STR_1103 :Saapumassa {POP16}{STRINGID}lle +STR_1104 :Matkustajat poistuvat {POP16}{STRINGID}lla STR_1105 :Nopeus {VELOCITY} STR_1106 :Törmää! STR_1107 :Törmännyt! @@ -511,20 +513,20 @@ STR_1124 :Käynnistetään STR_1125 :Käynnissä STR_1126 :Pysäytetään STR_1127 :Matkustajia puretaan -STR_1128 :Pysähtynyt lohkojarruihin. -STR_1129 :Kaikki ajoneuvot saman värisiä +STR_1128 :Pysähtynyt lohkojarruihin +STR_1129 :Kaikki vaunut saman värisiä STR_1130 :Eri värit per {STRINGID} -STR_1131 :Eri värit per ajoneuvo -STR_1132 :Ajoneuvo {POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} -STR_1133 :Ajoneuvo {POP16}{COMMA16} +STR_1131 :Eri värit per vaunu +STR_1132 :Vaunu {POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1133 :Vaunu {POP16}{COMMA16} STR_1134 :{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} {COMMA16} STR_1135 :{STRINGID} {COMMA16} STR_1136 :Valitse pääväri STR_1137 :Valitse lisäväri 1 STR_1138 :Valitse lisäväri 2 STR_1139 :Valitse tukirakenteiden väri -STR_1140 :Valitse ajoneuvon väriteema -STR_1141 :Valitse mitä ajoneuvoa/junaa muutetaan +STR_1140 :Valitse vaunun väriteema +STR_1141 :Valitse mitä vaunua/junaa muutetaan STR_1142 :{MOVE_X}{10}{STRINGID} STR_1143 :»{MOVE_X}{10}{STRINGID} STR_1144 :Ei pysty rakentamaan/siirtämään tämän laitteen/kohteen sisäänkäyntiä… @@ -536,15 +538,15 @@ STR_1149 :Puolikas kuorma STR_1150 :Kolmeneljäsosakuorma STR_1151 :Täysi kuorma STR_1152 :Mikä tahansa kuorma -STR_1153 :Korkeusmerkinnät laitteiden radoissa +STR_1153 :Korkeusmerkinnät radoissa STR_1154 :Korkeusmerkinnät maanpinnassa STR_1155 :Korkeusmerkinnät poluissa STR_1156 :{MOVE_X}{10}{STRINGID} STR_1157 :✓{MOVE_X}{10}{STRINGID} STR_1158 :Tämän poistaminen ei onnistu… -STR_1159 :Luo maisemaa, kasvillisuutta ja kaikenlaisia tilpehöörejä. +STR_1159 :Sijoita maisemointeja, kasveja ja somisteita STR_1160 :Luo/säädä järviä ja vettä -STR_1161 :Tätä ei voi asettaa tähän… +STR_1161 :Tätä ei voi sijoittaa tähän… STR_1162 :{OUTLINE}{TOPAZ}{STRINGID} STR_1163 :{STRINGID}{NEWLINE}(Oikea klikkaus muokkaa) STR_1164 :{STRINGID}{NEWLINE}(Oikea klikkaus poistaa) @@ -555,16 +557,16 @@ STR_1168 :Asetukset STR_1169 :(Ei mitään) STR_1170 :{STRING} STR_1171 :{RED}Suljettu - - -STR_1172 :{YELLOW}{STRINGID} - - -STR_1173 :Rakenna jalkakäytäviä ja jonotuslinjoja -STR_1174 :Mainoskyltti on tiellä -STR_1175 :Tätä ei voi rakentaa kaltevalle jalkakäytävälle -STR_1176 :Jalkakäytävää ei voi rakentaa tähän… -STR_1177 :Jalkakäytävää ei voi poistaa tästä… +STR_1172 :{YELLOW}{STRINGID} +STR_1173 :Rakenna polkuja ja jonotusalueita +STR_1174 :Banneri on tiellä +STR_1175 :Tätä ei voi rakentaa kaltevalle polulle +STR_1176 :Polkua ei voi rakentaa tähän… +STR_1177 :Polkua ei voi poistaa tästä… STR_1178 :Maan kaltevuus ei sovi -STR_1179 :Jalkakäytävä on tiellä +STR_1179 :Polku on tiellä STR_1180 :Tätä ei voi rakentaa veden alle! -STR_1181 :Jalkakäytävät +STR_1181 :Polut STR_1182 :Tyyppi STR_1183 :Suunta STR_1184 :Mäki @@ -572,8 +574,8 @@ STR_1185 :Suunta STR_1186 :Mäki alas STR_1187 :Tasanne STR_1188 :Mäki ylös -STR_1189 :Rakenna valittu jalkakäytävän osio -STR_1190 :Poista valittu jalkakäytävän osio +STR_1189 :Rakenna valittu polun osio +STR_1190 :Poista valittu polun osio STR_1191 :{BLACK}{STRINGID} STR_1192 :{OUTLINE}{RED}{STRINGID} STR_1193 :{WINDOW_COLOUR_2}{STRINGID} @@ -592,26 +594,26 @@ STR_1205 :{COMMA16} minuutin jonotusaika STR_1206 :{WINDOW_COLOUR_2}Odota: STR_1207 :{WINDOW_COLOUR_2}Lähde jos toinen juna saapuu asemalle STR_1208 :{WINDOW_COLOUR_2}Lähde jos toinen vene saapuu asemalle -STR_1209 :Valitse pitäisikö odottaa matkustajia ennen lähtöä -STR_1210 :Valitse pitäisikö lähteä jos toinen vaunu saapuu samalle asemalle +STR_1209 :Valitse odottaako juna matkustajia ennen lähtöä +STR_1210 :Valitse lähteekö juna jos toinen juna saapuu samalle asemalle STR_1211 :{WINDOW_COLOUR_2}Vähimmäisodotusaika: STR_1212 :{WINDOW_COLOUR_2}Enimmäisodotusaika: STR_1213 :Valitse vähimmäisodotusaika ennen lähtöä STR_1214 :Valitse enimmäisodotusaika ennen lähtöä -STR_1215 :{WINDOW_COLOUR_2}Synkronoi rinnakkaisasemien kanssa -STR_1216 :Valitse pitäisikö synkronoida lähtö kaikkien rinnakkaisasemien kanssa ('kilpa-ajoa' varten) +STR_1215 :{WINDOW_COLOUR_2}Tahdista rinnakkaisasemien kanssa +STR_1216 :Valitse tahdistaako junat lähtönsä kaikkien rinnakkaisasemien kanssa (”kilpa-ajoa” varten) STR_1217 :{COMMA16} sekuntia STR_1218 :{BLACK}+ STR_1219 :{BLACK}- STR_1220 :Vain uloskäynti STR_1221 :Ei sisäänkäyntiä STR_1222 :Ei uloskäyntiä -STR_1223 :Kuljetuslaitteet +STR_1223 :Kulkuvälineet STR_1224 :Lempeät laitteet STR_1225 :Vuoristoradat STR_1226 :Jännittävät radat STR_1227 :Vesilaitteet -STR_1228 :Kaupat ja kojut +STR_1228 :Kojut STR_1229 :juna STR_1230 :junaa STR_1231 :Juna @@ -646,7 +648,8 @@ STR_1259 :Asema STR_1260 :Asemaa STR_1261 :{COMMA16} asema STR_1262 :{COMMA16} asemaa -STR_1263 :Asema {COMMA16} +# Not ideal as it doesn't match the format of the trains in the ride view menu, but better than nothing +STR_1263 :{COMMA16}. asema STR_1264 :auto STR_1265 :autoa STR_1266 :Auto @@ -664,7 +667,7 @@ STR_1277 :Rakennus {COMMA16} STR_1278 :rakennelma STR_1279 :rakennelmia STR_1280 :Rakennelma -STR_1281 :Rakennelmia +STR_1281 :Rakennelmaa STR_1282 :{COMMA16} rakennelma STR_1283 :{COMMA16} rakennelmaa STR_1284 :Rakennelma {COMMA16} @@ -711,30 +714,30 @@ STR_1324 :{COMMA16} rata STR_1325 :{COMMA16} rataa STR_1326 :Rata {COMMA16} STR_1327 :Käännä esineitä 90° -STR_1328 :Vaaditaan tasainen maa +STR_1328 :Vaaditaan tasainen maasto STR_1329 :{WINDOW_COLOUR_2}Lähtönopeus: -STR_1330 :Enimmäisnopeus kun lähdetään asemalta +STR_1330 :Enimmäisnopeus asemalta lähdössä STR_1331 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{VELOCITY} STR_1332 :{VELOCITY} STR_1333 :{STRINGID} - {STRINGID}{POP16} STR_1334 :{STRINGID} - {STRINGID} {COMMA16} STR_1335 :{STRINGID} - Sisäänkäynti{POP16}{POP16} -STR_1336 :{STRINGID} - Asema {POP16}{COMMA16} Sisäänkäynti +STR_1336 :{STRINGID} - Aseman {POP16}{COMMA16} sisäänkäynti STR_1337 :{STRINGID} - Uloskäynti{POP16}{POP16} -STR_1338 :{STRINGID} - Asema {POP16}{COMMA16} Uloskäynti -STR_1339 :{BLACK}Testituloksia ei ole vielä saatavilla… +STR_1338 :{STRINGID} - Aseman {POP16}{COMMA16} uloskäynti +STR_1339 :{BLACK}Testitulokset eivät ole vielä saatavilla… STR_1340 :{WINDOW_COLOUR_2}Suurin nopeus: {BLACK}{VELOCITY} -STR_1341 :{WINDOW_COLOUR_2}Ajelun kesto: {BLACK}{STRINGID}{STRINGID}{STRINGID}{STRINGID} +STR_1341 :{WINDOW_COLOUR_2}Kyydin kesto: {BLACK}{STRINGID}{STRINGID}{STRINGID}{STRINGID} STR_1342 :{DURATION} STR_1343 :{DURATION} / STR_1344 :{WINDOW_COLOUR_2}Radan pituus: {BLACK}{STRINGID}{STRINGID}{STRINGID}{STRINGID} STR_1345 :{LENGTH} STR_1346 :{LENGTH} / STR_1347 :{WINDOW_COLOUR_2}Keskinopeus: {BLACK}{VELOCITY} -STR_1348 :{WINDOW_COLOUR_2}Suurin positiivinen vertikaalinen G-voima: {BLACK}{COMMA2DP32}g -STR_1349 :{WINDOW_COLOUR_2}Suurin positiivinen vertikaalinen G-voima: {OUTLINE}{RED}{COMMA2DP32}g -STR_1350 :{WINDOW_COLOUR_2}Suurin negatiivinen vertikaalinen G-voima: {BLACK}{COMMA2DP32}g -STR_1351 :{WINDOW_COLOUR_2}Suurin negatiivinen vertikaalinen G-voima: {OUTLINE}{RED}{COMMA2DP32}g +STR_1348 :{WINDOW_COLOUR_2}Suurin positiivinen pystysuora G-voima: {BLACK}{COMMA2DP32}g +STR_1349 :{WINDOW_COLOUR_2}Suurin positiivinen pystysuora G-voima: {OUTLINE}{RED}{COMMA2DP32}g +STR_1350 :{WINDOW_COLOUR_2}Suurin negatiivinen pystysuora G-voima: {BLACK}{COMMA2DP32}g +STR_1351 :{WINDOW_COLOUR_2}Suurin negatiivinen pystysuora G-voima: {OUTLINE}{RED}{COMMA2DP32}g STR_1352 :{WINDOW_COLOUR_2}Suurin sivuttainen G-voima: {BLACK}{COMMA2DP32}g STR_1353 :{WINDOW_COLOUR_2}Suurin sivuttainen G-voima: {OUTLINE}{RED}{COMMA2DP32}g STR_1354 :{WINDOW_COLOUR_2}Korkein pudotuskorkeus: {BLACK}{LENGTH} @@ -742,13 +745,13 @@ STR_1355 :{WINDOW_COLOUR_2}Pudotuksia: {BLACK}{COMMA16} STR_1356 :{WINDOW_COLOUR_2}Käänteitä: {BLACK}{COMMA16} STR_1357 :{WINDOW_COLOUR_2}Reikiä: {BLACK}{COMMA16} #1358 Airtime is used in finnish for the lack of a better word -STR_1358 :{WINDOW_COLOUR_2}airtime yhteensä: {BLACK}{COMMA2DP32}secs +STR_1358 :{WINDOW_COLOUR_2}Airtime yhteensä: {BLACK}{COMMA2DP32}sek STR_1359 :{WINDOW_COLOUR_2}Jonotusaika: {BLACK}{COMMA16} minuutti STR_1360 :{WINDOW_COLOUR_2}Jonotusaika: {BLACK}{COMMA16} minuuttia -STR_1361 :Nopeuden muuttaminen ei onnistu… -STR_1362 :Lähtönopeuden muuttaminen ei onnistu… -STR_1363 :Liian korkealla tukia varten! -STR_1364 :Ylemmän radan tukia ei voida laajentaa pidemmälle! +STR_1361 :Nopeutta ei voi muuttaa… +STR_1362 :Lähtönopeutta ei voi muuttaa… +STR_1363 :Liian korkealla tukirakenteita varten! +STR_1364 :Ylemmän radan tukirakenteita ei voi pidentää! STR_1365 :Suora kierre (vasen) STR_1366 :Suora kierre (oikea) STR_1367 :Puolisilmukka @@ -761,8 +764,8 @@ STR_1373 :Iso puolisilmukka (vasen) STR_1374 :Iso puolisilmukka (oikea) STR_1375 :Siirto ylös STR_1376 :Siirto alas -STR_1377 :Sydänviivakierähdys (vasen) -STR_1378 :Sydänviivakierähdys (oikea) +STR_1377 :Sivuttaisvierähdys (vasen) +STR_1378 :Sivuttaisvierähdys (oikea) STR_1379 :Suunnanvaihtaja (vasen) STR_1380 :Suunnanvaihtaja (oikea) STR_1381 :Kaareva nostomäki (vasen) @@ -770,8 +773,8 @@ STR_1382 :Kaareva nostomäki (oikea) STR_1383 :Neljännesosasilmukka STR_1384 :{YELLOW}{STRINGID} STR_1385 :Muut radan asetukset -STR_1386 :Erikoinen… -STR_1387 :Maan tyyppiä ei voida muuttaa… +STR_1386 :Erikoisosa… +STR_1387 :Maaston tyyppiä ei voi muuttaa… STR_1388 :{OUTLINE}{GREEN}+ {CURRENCY} STR_1389 :{OUTLINE}{RED}- {CURRENCY} STR_1390 :{CURRENCY2DP} @@ -782,15 +785,15 @@ STR_1394 :Toiminta-asetukset STR_1395 :Huoltoasetukset STR_1396 :Värityylin asetukset STR_1397 :Ääni- ja musiikkiasetukset -STR_1398 :Mitat- ja testitiedot +STR_1398 :Mitta- ja testitiedot STR_1399 :Kaaviot STR_1400 :Sisäänkäynti STR_1401 :Uloskäynti -STR_1402 :Rakenna tai siirrä sisäänkäynti laitteeseen/kohteeseen -STR_1403 :Rakenna tai siirrä uloskäynti laitteesta/kohteesta +STR_1402 :Sijoita tai siirrä laitteen/kohteen sisäänkäynti +STR_1403 :Sijoita tai siirrä laitteen/kohteen uloskäynti STR_1404 :Käännä 90° -STR_1405 :Peilaa kuva -STR_1406 :Vaihda maisema päälle/pois (vain jos saatavilla tälle suunnitelmalle) +STR_1405 :Peilaa rata +STR_1406 :Vaihda maisemonti päälle/pois (vain jos saatavilla tälle ratamallille) STR_1407 :{WINDOW_COLOUR_2}Rakenna tämä… STR_1408 :{WINDOW_COLOUR_2}Kustannus: {BLACK}{CURRENCY} STR_1409 :Sisään-/uloskäyntitasanne @@ -798,198 +801,197 @@ STR_1410 :Pystysuora torni STR_1411 :{STRINGID} tiellä STR_1412 :{WINDOW_COLOUR_3}Tietojen keruu ei ole saatavilla tämäntyyppiselle laitteelle STR_1413 :{WINDOW_COLOUR_3}Tietojen keruu alkaa kun seuraava {STRINGID} lähtee {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Nopeus STR_1416 :{WINDOW_COLOUR_2}Korkeus STR_1417 :{WINDOW_COLOUR_2}Pyst. G-voima STR_1418 :{WINDOW_COLOUR_2}Sivut. G-voima -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Kerätään tietoja kohteesta {POP16}{STRINGID} -STR_1423 :Jonolinjasto -STR_1424 :Jalkakäytävä -STR_1425 :Jalkakäytävä -STR_1426 :Jonolinjasto +STR_1423 :Jonotusalue +STR_1424 :Polku +STR_1425 :Polku +STR_1426 :Jono STR_1427 :{WINDOW_COLOUR_2}Asiakkaita: {BLACK}{COMMA32} per tunti STR_1428 :{WINDOW_COLOUR_2}Sisäänpääsymaksu: STR_1429 :{POP16}{POP16}{POP16}{CURRENCY2DP} STR_1430 :Ilmainen STR_1431 :Kävelee -STR_1432 :Menossa kohti {STRINGID} +STR_1432 :Menossa kohti laitetta {STRINGID} STR_1433 :Jonottaa laitteeseen {STRINGID} STR_1434 :Hukkuu -#these following 3 would require extra coding, so i will leave them default for now -STR_1435 :On {STRINGID} -STR_1436 :In {STRINGID} -STR_1437 :At {STRINGID} +STR_1435 :Laitteessa {STRINGID} +STR_1436 :Kohteessa {STRINGID} +STR_1437 :Kohteessa {STRINGID} STR_1438 :Istuu STR_1439 :(valitse sijainti) STR_1440 :Leikkaa ruohoa -STR_1441 :Harjaa jalkakäytävää +STR_1441 :Harjaa polkua STR_1442 :Tyhjentää roskakoria STR_1443 :Kastelee puutarhoja -STR_1444 :Katsoo {STRINGID} -STR_1445 :Katsoo {STRINGID}:n rakentamista +STR_1444 :Katsoo laitetta {STRINGID} +STR_1445 :Katsoo laitteen {STRINGID} rakennusta STR_1446 :Katselee maisemia -STR_1447 :Lähdössä puistosta -STR_1448 :Katsoo uuden laitteen rakentamista +STR_1447 :Menossa kotiin +STR_1448 :Katsoo uuden laitteen rakennusta STR_1449 :{SPRITE} {STRINGID}{NEWLINE}({STRINGID}) STR_1450 :{INLINE_SPRITE}{09}{20}{00}{00}{SPRITE} {STRINGID}{NEWLINE}({STRINGID}) STR_1451 :{STRINGID}{NEWLINE}({STRINGID}) -STR_1452 :Vieraan nimi -STR_1453 :Kirjoita nimi vieraalle: -STR_1454 :Vieraan nimeäminen ei onnistu… -STR_1455 :Virheellinen nimi vieraalle -STR_1456 :{WINDOW_COLOUR_2}Rahaa käytetty: {BLACK}{CURRENCY2DP} +STR_1452 :Kävijän nimi +STR_1453 :Anna kävijälle nimi: +STR_1454 :Kävijän nimeäminen ei onnistu… +STR_1455 :Virheellinen nimi kävijälle +STR_1456 :{WINDOW_COLOUR_2}Rahaa kulutettu: {BLACK}{CURRENCY2DP} STR_1457 :{WINDOW_COLOUR_2}Rahaa taskussa: {BLACK}{CURRENCY2DP} -STR_1458 :{WINDOW_COLOUR_2}Aikaa kulutettu puistossa: {BLACK}{REALTIME} +STR_1458 :{WINDOW_COLOUR_2}Aika puistossa: {BLACK}{REALTIME} STR_1459 :Radan tyyli -STR_1460 :'U':n muotoinen avoin rata -STR_1461 :'O':n muotoinen ympäröity rata +STR_1460 :U:n muotoinen avoin rata +STR_1461 :O:n muotoinen ympäröity rata STR_1462 :Liian jyrkkä nostomäkeä varten -STR_1463 :Vieraat +STR_1463 :Kävijät STR_1464 :Ruuvikierre ylös (pieni) STR_1465 :Ruuvikierre ylös (iso) STR_1466 :Ruuvikierre alas (pieni) STR_1467 :Ruuvikierre alas (iso) -STR_1468 :Henkilökunta +STR_1468 :Henkilöstö STR_1469 :Laitteen pitää alkaa ja loppua asemilla STR_1470 :Asema ei ole tarpeeksi pitkä STR_1471 :{WINDOW_COLOUR_2}Nopeus: STR_1472 :Tämän laitteen nopeus -STR_1473 :{WINDOW_COLOUR_2}Jännityksen arvosana: {BLACK}{COMMA2DP32} ({STRINGID}) -STR_1474 :{WINDOW_COLOUR_2}Jännityksen arvosana: {BLACK}Ei viellä saatavilla -STR_1475 :{WINDOW_COLOUR_2}Intensiteettiarvosana: {BLACK}{COMMA2DP32} ({STRINGID}) -STR_1476 :{WINDOW_COLOUR_2}Intensiteettiarvosana: {BLACK}Ei viellä saatavilla -STR_1477 :{WINDOW_COLOUR_2}Intensiteettiarvosana: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) -STR_1478 :{WINDOW_COLOUR_2}Pahoinvoinnin arvosana: {BLACK}{COMMA2DP32} ({STRINGID}) -STR_1479 :{WINDOW_COLOUR_2}Pahoinvoinnin arvosana: {BLACK}Ei viellä saatavilla -STR_1480 :{SMALLFONT}“Minulla ei ole varaa mennä {STRINGID}” -STR_1481 :{SMALLFONT}“Kulutin kaikki rahani” -STR_1482 :{SMALLFONT}“Voin pahoin” -STR_1483 :{SMALLFONT}“Voin erittäin pahoin” -STR_1484 :{SMALLFONT}“Tahdon mennä johonkin jännittävämpään kuin {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} näyttää liian hurjalta minulle” -STR_1486 :{SMALLFONT}“En ole syönyt/juonut {STRINGID} loppuun vielä” -STR_1487 :{SMALLFONT}“Pelkästään {STRINGID} katsominen saa minut voimaan pahoin” -STR_1488 :{SMALLFONT}“En aio maksaa noin paljon päästäkseni {STRINGID}” -STR_1489 :{SMALLFONT}“Haluan kotiin” -STR_1490 :{SMALLFONT}“{STRINGID} on todella hyvän arvoinen” -STR_1491 :{SMALLFONT}“Minulla on jo {STRINGID}” -STR_1492 :{SMALLFONT}“Minulla ei ole varaa ostaa {STRINGID}” -STR_1493 :{SMALLFONT}“Minulla ei ole nälkä” -STR_1494 :{SMALLFONT}“Minulla ei ole jano” -STR_1495 :{SMALLFONT}“Apua! Hukun!” -STR_1496 :{SMALLFONT}“Olen eksynyt!” -STR_1497 :{SMALLFONT}“{STRINGID} oli mahtava” -STR_1498 :{SMALLFONT}“Olen jonottanut ikuisuuden kohteeseen {STRINGID}” -STR_1499 :{SMALLFONT}“Olen väsynyt” -STR_1500 :{SMALLFONT}“Minulla on nälkä” -STR_1501 :{SMALLFONT}“Minulla on jano” -STR_1502 :{SMALLFONT}“Minun tarvitsee käydä vessassa” -STR_1503 :{SMALLFONT}“En löydä {STRINGID}” -STR_1504 :{SMALLFONT}“En aio maksaa noin paljon käyttääkseni {STRINGID}” -STR_1505 :{SMALLFONT}“Täällä sataa, en halua mennä kohteeseen {STRINGID}” -STR_1506 :{SMALLFONT}“Täällä on todella paljon roskaa” -STR_1507 :{SMALLFONT}“En löydä puiston uloskäyntiä” -STR_1508 :{SMALLFONT}“Tahdon pois kohteesta {STRINGID}” -STR_1509 :{SMALLFONT}“Tahdon ulos kohteesta {STRINGID}” -STR_1510 :{SMALLFONT}“En mene kohteeseen {STRINGID} - Se ei ole turvallinen” -STR_1511 :{SMALLFONT}“Tämä tie on kuvottava” -STR_1512 :{SMALLFONT}“Täällä on liikaa tungosta” -STR_1513 :{SMALLFONT}“Täällä on todella paljon ilkivaltaa” -STR_1514 :{SMALLFONT}“Mahtava maisema!” -STR_1515 :{SMALLFONT}“Tämä puisto on todella puhdas ja siisti” -STR_1516 :{SMALLFONT}“Hyppivät suihkulähteet ovat todella mahtavia!” -STR_1517 :{SMALLFONT}“Täällä oleva musiikki on mukavaa” -STR_1518 :{SMALLFONT}“Tämä ilmapallo kojusta {STRINGID} on todella hyvän hintainen” -STR_1519 :{SMALLFONT}“Tämä pehmolelu kojusta {STRINGID} on todella hyvän hintainen” -STR_1520 :{SMALLFONT}“Tämä puiston kartta kojusta {STRINGID} on todella hyvän hintainen” -STR_1521 :{SMALLFONT}“Tämä kuva kojusta {STRINGID} on todella hyvän hintainen” -STR_1522 :{SMALLFONT}“Tämä sateenvarjo kojusta {STRINGID} on todella hyvän hintainen” -STR_1523 :{SMALLFONT}“Tämä juoma kojusta {STRINGID} on todella hyvän hintainen” -STR_1524 :{SMALLFONT}“Tämä hampurilainen kojusta {STRINGID} on todella hyvän hintainen” -STR_1525 :{SMALLFONT}“Nämä ranskalaiset kojusta {STRINGID} on todella hyvän hintainen” -STR_1526 :{SMALLFONT}“Tämä jäätelö kojusta {STRINGID} on todella hyvän hintainen” -STR_1527 :{SMALLFONT}“Tämä hattara kojusta {STRINGID} on todella hyvän hintainen” +STR_1473 :{WINDOW_COLOUR_2}Huvitustaso: {BLACK}{COMMA2DP32} ({STRINGID}) +STR_1474 :{WINDOW_COLOUR_2}Huvitustaso: {BLACK}Ei vielä saatavilla +STR_1475 :{WINDOW_COLOUR_2}Jännitystaso: {BLACK}{COMMA2DP32} ({STRINGID}) +STR_1476 :{WINDOW_COLOUR_2}Jännitystaso: {BLACK}Ei vielä saatavilla +STR_1477 :{WINDOW_COLOUR_2}Jännitystaso: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) +STR_1478 :{WINDOW_COLOUR_2}Pahoinvointitaso: {BLACK}{COMMA2DP32} ({STRINGID}) +STR_1479 :{WINDOW_COLOUR_2}Pahoinvointitaso: {BLACK}Ei vielä saatavilla +STR_1480 :“Minulla ei ole varaa mennä laitteeseen {STRINGID}” +STR_1481 :“Kulutin kaikki rahani” +STR_1482 :“Voin pahoin” +STR_1483 :“Voin erittäin pahoin” +STR_1484 :“Tahdon mennä johonkin jännittävämpään kuin {STRINGID}” +STR_1485 :“{STRINGID} näyttää liian hurjalta minulle” +STR_1486 :“En ole nauttinut {STRINGID} loppuun vielä” +STR_1487 :“Pelkästään laitteen {STRINGID} katsominen saa minut voimaan pahoin” +STR_1488 :“En aio maksaa noin paljon laitteesta {STRINGID}” +STR_1489 :“Haluan kotiin” +STR_1490 :“{STRINGID} on todella reilun hintainen” +STR_1491 :“Minulla on jo {STRINGID}” +STR_1492 :“Minulla ei ole varaa ostaa {STRINGID}” +STR_1493 :“Minulla ei ole nälkä” +STR_1494 :“Minulla ei ole jano” +STR_1495 :“Apua! Hukun!” +STR_1496 :“Olen eksynyt!” +STR_1497 :“{STRINGID} oli mahtava” +STR_1498 :“Olen jonottanut ikuisuuksia kohteeseen {STRINGID}” +STR_1499 :“Olen väsynyt” +STR_1500 :“Minulla on nälkä” +STR_1501 :“Minulla on jano” +STR_1502 :“Minun tarvitsee käydä vessassa” +STR_1503 :“En löydä kohdetta {STRINGID}” +STR_1504 :“En aio maksaa noin paljon kohteesta {STRINGID}” +STR_1505 :“En halua mennä kohteeseen {STRINGID} sateessa” +STR_1506 :“Täällä on todella paljon roskaa” +STR_1507 :“En löydä puiston uloskäyntiä” +STR_1508 :“Tahdon pois kohteesta {STRINGID}” +STR_1509 :“Tahdon ulos kohteesta {STRINGID}” +STR_1510 :“En mene kohteeseen {STRINGID} - se ei ole turvallinen” +STR_1511 :“Tämä tie on kuvottava” +STR_1512 :“Täällä on liikaa tungosta” +STR_1513 :“Täällä on todella paljon ilkivaltaa” +STR_1514 :“Mahtava maisema!” +STR_1515 :“Tämä puisto on todella puhdas ja siisti” +STR_1516 :“Hyppivät suihkulähteet ovat todella mahtavia” +STR_1517 :“Täällä on hyvä musiikki” +STR_1518 :“Tämä ilmapallo kojusta {STRINGID} on todella reilun hintainen” +STR_1519 :“Tämä pehmolelu kojusta {STRINGID} on todella reilun hintainen” +STR_1520 :“Tämä puiston kartta kojusta {STRINGID} on todella reilun hintainen” +STR_1521 :“Tämä kuva laitteesta {STRINGID} on todella reilun hintainen” +STR_1522 :“Tämä sateenvarjo kojusta {STRINGID} on todella reilun hintainen” +STR_1523 :“Tämä juoma kojusta {STRINGID} on todella reilun hintainen” +STR_1524 :“Tämä hampurilainen kojusta {STRINGID} on todella reilun hintainen” +STR_1525 :“Nämä ranskalaiset kojusta {STRINGID} ovat todella reilun hintaisia” +STR_1526 :“Tämä jäätelö kojusta {STRINGID} on todella reilun hintainen” +STR_1527 :“Tämä hattara kojusta {STRINGID} on todella reilun hintainen” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Tämä pitsa kojusta {STRINGID} on todella hyvän hintainen” +STR_1531 :“Tämä pitsa kojusta {STRINGID} on todella reilun hintainen” STR_1532 : -STR_1533 :{SMALLFONT}“Tämä popcorn kojusta {STRINGID} on todella hyvän hintainen” -STR_1534 :{SMALLFONT}“Tämä nakkisämpylä kojusta {STRINGID} on todella hyvän hintainen” -STR_1535 :{SMALLFONT}“Tämä lonkero kojusta {STRINGID} on todella hyvän hintainen” -STR_1536 :{SMALLFONT}“Tämä hattu kojusta {STRINGID} on todella hyvän hintainen” -STR_1537 :{SMALLFONT}“Tämä toffeeomena kojusta {STRINGID} on todella hyvän hintainen” -STR_1538 :{SMALLFONT}“Tämä t-paita kojusta {STRINGID} on todella hyvän hintainen” -STR_1539 :{SMALLFONT}“Tämä donitsi kojusta {STRINGID} on todella hyvän hintainen” -STR_1540 :{SMALLFONT}“Tämä kahvi kojusta {STRINGID} on todella hyvän hintainen” +STR_1533 :“Tämä popcorn kojusta {STRINGID} on todella reilun hintainen” +STR_1534 :“Tämä nakkisämpylä kojusta {STRINGID} on todella reilun hintainen” +STR_1535 :“Tämä lonkero kojusta {STRINGID} on todella reilun hintainen” +STR_1536 :“Tämä hattu kojusta {STRINGID} on todella reilun hintainen” +STR_1537 :“Tämä toffeeomena kojusta {STRINGID} on todella reilun hintainen” +STR_1538 :“Tämä t-paita kojusta {STRINGID} on todella reilun hintainen” +STR_1539 :“Tämä donitsi kojusta {STRINGID} on todella reilun hintainen” +STR_1540 :“Tämä kahvi kojusta {STRINGID} on todella reilun hintainen” STR_1541 : -STR_1542 :{SMALLFONT}“Tämä friteerattu kana kojusta {STRINGID} on todella hyvän hintainen” -STR_1543 :{SMALLFONT}“Tämä limonaati {STRINGID} on todella hyvän hintainen” +STR_1542 :“Tämä paistettu kana kojusta {STRINGID} on todella reilun hintainen” +STR_1543 :“Tämä limsa kojusta {STRINGID} on todella reilun hintainen” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Vau!” -STR_1551 :{SMALLFONT}“Minulla on outo fiilis että joku katselee minua” -STR_1552 :{SMALLFONT}“En maksa noin paljon ilmapallosta kojussa {STRINGID}” -STR_1553 :{SMALLFONT}“En maksa noin paljon pehmolelusta kojussa {STRINGID}” -STR_1554 :{SMALLFONT}“En maksa noin paljon puiston kartasta kojussa {STRINGID}” -STR_1555 :{SMALLFONT}“En maksa noin paljon kuvasta kojussa {STRINGID}” -STR_1556 :{SMALLFONT}“En maksa noin paljon sateenvarjosta kojussa {STRINGID}” -STR_1557 :{SMALLFONT}“En maksa noin paljon juomasta kojussa {STRINGID}” -STR_1558 :{SMALLFONT}“En maksa noin paljon hampurilaisesta kojussa {STRINGID}” -STR_1559 :{SMALLFONT}“En maksa noin paljon ranskalaisista kojussa {STRINGID}” -STR_1560 :{SMALLFONT}“En maksa noin paljon jäätelöstä kojussa {STRINGID}” -STR_1561 :{SMALLFONT}“En maksa noin paljon hattarasta kojussa {STRINGID}” +STR_1550 :“Vau!” +STR_1551 :“Minulla on outo fiilis että joku katselee minua” +STR_1552 :“En maksa noin paljon ilmapallosta kojussa {STRINGID}” +STR_1553 :“En maksa noin paljon pehmolelusta kojussa {STRINGID}” +STR_1554 :“En maksa noin paljon puiston kartasta kojussa {STRINGID}” +STR_1555 :“En maksa noin paljon kuvasta laitteesta {STRINGID}” +STR_1556 :“En maksa noin paljon sateenvarjosta kojussa {STRINGID}” +STR_1557 :“En maksa noin paljon juomasta kojussa {STRINGID}” +STR_1558 :“En maksa noin paljon hampurilaisesta kojussa {STRINGID}” +STR_1559 :“En maksa noin paljon ranskalaisista kojussa {STRINGID}” +STR_1560 :“En maksa noin paljon jäätelöstä kojussa {STRINGID}” +STR_1561 :“En maksa noin paljon hattarasta kojussa {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“En maksa noin paljon pitsasta kojussa {STRINGID}” +STR_1565 :“En maksa noin paljon pitsasta kojussa {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“En maksa noin paljon popcornista kojussa {STRINGID}” -STR_1568 :{SMALLFONT}“En maksa noin paljon nakkisämpylästä kojussa {STRINGID}” -STR_1569 :{SMALLFONT}“En maksa noin paljon lonkerosta kojussa {STRINGID}” -STR_1570 :{SMALLFONT}“En maksa noin paljon hatusta kojussa {STRINGID}” -STR_1571 :{SMALLFONT}“En maksa noin paljon toffeeomenasta kojussa {STRINGID}” -STR_1572 :{SMALLFONT}“En maksa noin paljon t-paidasta kojussa {STRINGID}” -STR_1573 :{SMALLFONT}“En maksa noin paljon donitsista kojussa {STRINGID}” -STR_1574 :{SMALLFONT}“En maksa noin paljon kahvista kojussa {STRINGID}” +STR_1567 :“En maksa noin paljon popcornista kojussa {STRINGID}” +STR_1568 :“En maksa noin paljon nakkisämpylästä kojussa {STRINGID}” +STR_1569 :“En maksa noin paljon lonkerosta kojussa {STRINGID}” +STR_1570 :“En maksa noin paljon hatusta kojussa {STRINGID}” +STR_1571 :“En maksa noin paljon toffeeomenasta kojussa {STRINGID}” +STR_1572 :“En maksa noin paljon t-paidasta kojussa {STRINGID}” +STR_1573 :“En maksa noin paljon donitsista kojussa {STRINGID}” +STR_1574 :“En maksa noin paljon kahvista kojussa {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“En maksa noin paljon friteeratusta kanasta kojussa {STRINGID}” -STR_1577 :{SMALLFONT}“En maksa noin paljon limonaadista kojussa {STRINGID}” +STR_1576 :“En maksa noin paljon paistetusta kanasta kojussa {STRINGID}” +STR_1577 :“En maksa noin paljon limsasta kojussa {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Tämä kuva kojusta {STRINGID} on todella hyvän hintainen” -STR_1585 :{SMALLFONT}“Tämä kuva kojusta {STRINGID} on todella hyvän hintainen” -STR_1586 :{SMALLFONT}“Tämä kuva kojusta {STRINGID} on todella hyvän hintainen” -STR_1587 :{SMALLFONT}“Tämä viipurinrinkeli kojusta {STRINGID} on todella hyvän hintainen” -STR_1588 :{SMALLFONT}“Tämä kuuma kaakao kojusta {STRINGID} on todella hyvän hintainen” -STR_1589 :{SMALLFONT}“Tämä jäätee kojusta {STRINGID} on todella hyvän hintainen” -STR_1590 :{SMALLFONT}“Tämä tippaleipä kojusta {STRINGID} on todella hyvän hintainen” -STR_1591 :{SMALLFONT}“TNämä aurinkolasit kojusta {STRINGID} on todella hyvän hintainen” -STR_1592 :{SMALLFONT}“Nämä häränlihanuudelit kojusta {STRINGID} on todella hyvän hintainen” -STR_1593 :{SMALLFONT}“Nämä paistetut riisinuudelit kojusta {STRINGID} on todella hyvän hintainen” -STR_1594 :{SMALLFONT}“Tämä wontonkeitto kojusta {STRINGID} on todella hyvän hintainen” -STR_1595 :{SMALLFONT}“Tämä lihapullakeitto kojusta {STRINGID} on todella hyvän hintainen” -STR_1596 :{SMALLFONT}“Tämä hedelmämehu kojusta {STRINGID} on todella hyvän hintainen” -STR_1597 :{SMALLFONT}“Tämä soijamaito kojusta {STRINGID} on todella hyvän hintainen” -STR_1598 :{SMALLFONT}“Tämä sujongkwa kojusta {STRINGID} on todella hyvän hintainen” -STR_1599 :{SMALLFONT}“Tämä pantonki kojusta {STRINGID} on todella hyvän hintainen” -STR_1600 :{SMALLFONT}“Tämä keksi kojusta {STRINGID} on todella hyvän hintainen” +STR_1584 :“Tämä kuva laitteesta {STRINGID} on todella reilun hintainen” +STR_1585 :“Tämä kuva laitteesta {STRINGID} on todella reilun hintainen” +STR_1586 :“Tämä kuva laitteesta {STRINGID} on todella reilun hintainen” +STR_1587 :“Tämä rinkeli kojusta {STRINGID} on todella reilun hintainen” +STR_1588 :“Tämä kaakao kojusta {STRINGID} on todella reilun hintainen” +STR_1589 :“Tämä jäätee kojusta {STRINGID} on todella reilun hintainen” +STR_1590 :“Tämä tippaleipä kojusta {STRINGID} on todella reilun hintainen” +STR_1591 :“Nämä aurinkolasit kojusta {STRINGID} ovat todella reilun hintaiset” +STR_1592 :“Nämä häränlihanuudelit kojusta {STRINGID} ovat todella reilun hintaisia” +STR_1593 :“Nämä paistetut riisinuudelit kojusta {STRINGID} ovat todella reilun hintaisia” +STR_1594 :“Tämä wontonkeitto kojusta {STRINGID} on todella reilun hintainen” +STR_1595 :“Tämä lihapullakeitto kojusta {STRINGID} on todella reilun hintainen” +STR_1596 :“Tämä hedelmämehu kojusta {STRINGID} on todella reilun hintainen” +STR_1597 :“Tämä soijamaito kojusta {STRINGID} on todella reilun hintainen” +STR_1598 :“Tämä sujongkwa kojusta {STRINGID} on todella reilun hintainen” +STR_1599 :“Tämä pantonki kojusta {STRINGID} on todella reilun hintainen” +STR_1600 :“Tämä keksi kojusta {STRINGID} on todella reilun hintainen” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Tämä grillattu makkara kojusta {STRINGID} on todella hyvän hintainen” +STR_1604 :“Tämä grillimakkara kojusta {STRINGID} on todella reilun hintainen” STR_1605 : STR_1606 : STR_1607 : @@ -1001,27 +1003,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“En maksa noin paljon kuvasta kojussa {STRINGID}” -STR_1617 :{SMALLFONT}“En maksa noin paljon kuvasta kojussa {STRINGID}” -STR_1618 :{SMALLFONT}“En maksa noin paljon kuvasta kojussa {STRINGID}” -STR_1619 :{SMALLFONT}“En maksa noin paljon viipurinrinkelistä kojussa {STRINGID}” -STR_1620 :{SMALLFONT}“En maksa noin paljon kaakaosta kojussa {STRINGID}” -STR_1621 :{SMALLFONT}“En maksa noin paljon jääteestä kojussa {STRINGID}” -STR_1622 :{SMALLFONT}“En maksa noin paljon tippaleivästä kojussa {STRINGID}” -STR_1623 :{SMALLFONT}“En maksa noin paljon aurinkolaseista kojussa {STRINGID}” -STR_1624 :{SMALLFONT}“En maksa noin paljon härkänuudeleista kojussa {STRINGID}” -STR_1625 :{SMALLFONT}“En maksa noin paljon paistetusta riisinuudeleista kojussa {STRINGID}” -STR_1626 :{SMALLFONT}“En maksa noin paljon wontonkeitosta kojussa {STRINGID}” -STR_1627 :{SMALLFONT}“En maksa noin paljon lihapullakeitosta kojussa {STRINGID}” -STR_1628 :{SMALLFONT}“En maksa noin paljon hedelmämehusta kojussa {STRINGID}” -STR_1629 :{SMALLFONT}“En maksa noin paljon soijamaidosta kojussa {STRINGID}” -STR_1630 :{SMALLFONT}“En maksa noin paljon sujongkwasta kojussa {STRINGID}” -STR_1631 :{SMALLFONT}“En maksa noin paljon patongista kojussa {STRINGID}” -STR_1632 :{SMALLFONT}“En maksa noin paljon keksistä kojussa {STRINGID}” +STR_1616 :“En maksa noin paljon kuvasta laitteesta {STRINGID}” +STR_1617 :“En maksa noin paljon kuvasta laitteesta {STRINGID}” +STR_1618 :“En maksa noin paljon kuvasta laitteesta {STRINGID}” +STR_1619 :“En maksa noin paljon rinkelistä kojussa {STRINGID}” +STR_1620 :“En maksa noin paljon kaakaosta kojussa {STRINGID}” +STR_1621 :“En maksa noin paljon jääteestä kojussa {STRINGID}” +STR_1622 :“En maksa noin paljon tippaleivästä kojussa {STRINGID}” +STR_1623 :“En maksa noin paljon aurinkolaseista kojussa {STRINGID}” +STR_1624 :“En maksa noin paljon häränlihanuudeleista kojussa {STRINGID}” +STR_1625 :“En maksa noin paljon paistetuista riisinuudeleista kojussa {STRINGID}” +STR_1626 :“En maksa noin paljon wontonkeitosta kojussa {STRINGID}” +STR_1627 :“En maksa noin paljon lihapullakeitosta kojussa {STRINGID}” +STR_1628 :“En maksa noin paljon hedelmämehusta kojussa {STRINGID}” +STR_1629 :“En maksa noin paljon soijamaidosta kojussa {STRINGID}” +STR_1630 :“En maksa noin paljon sujongkwasta kojussa {STRINGID}” +STR_1631 :“En maksa noin paljon patongista kojussa {STRINGID}” +STR_1632 :“En maksa noin paljon keksistä kojussa {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“En maksa noin paljon grillatusta makkarasta kojussa {STRINGID}” +STR_1636 :“En maksa noin paljon grillimakkarasta kojussa {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1033,20 +1035,20 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Auta! Laske minut alas!” -STR_1649 :{SMALLFONT}“Rahat ovat loppumassa!” -STR_1650 :{SMALLFONT}“Vau! Uutta laitetta rakennetaan!” +STR_1648 :“Apua! Laske minut alas!” +STR_1649 :“Rahat ovat loppumassa!” +STR_1650 :“Vau! Uutta laitetta rakennetaan!” # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}“…ja tässä me olemme {STRINGID}!” +STR_1653 :“…ja tässä me olemme {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Viimeisimmät ajatukset: -STR_1655 :Rakenna jalkakäytävä maahan -STR_1656 :Rakenna jalkakäytävätunneli tai -silta +STR_1655 :Rakenna polku maastoon +STR_1656 :Rakenna polkutunneli tai -silta STR_1657 :{WINDOW_COLOUR_2}Suosikkilaite -STR_1658 :{WINDOW_COLOUR_2}Intensiteetti: {BLACK}vähemmän kuin {COMMA16} +STR_1658 :{WINDOW_COLOUR_2}Intensiteetti: {BLACK}enintään {COMMA16} STR_1659 :{WINDOW_COLOUR_2}Intensiteetti: {BLACK}{COMMA16}:n ja {COMMA16}:n välillä -STR_1660 :{WINDOW_COLOUR_2}Intensiteetti: {BLACK}enemmän kuin {COMMA16} +STR_1660 :{WINDOW_COLOUR_2}Intensiteetti: {BLACK}vähintään {COMMA16} STR_1661 :{WINDOW_COLOUR_2}Pahoinvointitoleranssi: {BLACK}{STRINGID} -STR_1662 :{WINDOW_COLOUR_2}Onnellisuus: +STR_1662 :{WINDOW_COLOUR_2}Iloisuus: STR_1663 :{WINDOW_COLOUR_2}Pahoinvointi: STR_1664 :{WINDOW_COLOUR_2}Energia: STR_1665 :{WINDOW_COLOUR_2}Nälkä: @@ -1057,7 +1059,7 @@ STR_1669 :{WINDOW_COLOUR_2}Tyytyväisyys: {BLACK}{COMMA16}% STR_1670 :{WINDOW_COLOUR_2}Asiakkaiden määrä: {BLACK}{COMMA32} STR_1671 :{WINDOW_COLOUR_2}Kokonaistuotanto: {BLACK}{CURRENCY2DP} STR_1672 :Jarrut -STR_1673 :Spinning Control Toggle Track +STR_1673 :Pyörinnnänesto-osio STR_1674 :Jarrutusnopeus STR_1675 :{POP16}{VELOCITY} STR_1676 :Aseta jarrujen nopeusrajoitus @@ -1073,12 +1075,12 @@ STR_1685 :Pohjan koko 2 x 4 STR_1686 :Pohjan koko 5 x 1 STR_1687 :Vesieste STR_1688 :Pohjan koko 4 x 1 -STR_1689 :Block brakes +STR_1689 :Lohkojarrut STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Hinta: {BLACK}{CURRENCY} -STR_1692 :{WINDOW_COLOUR_2} Hinta: {BLACK}from {CURRENCY} -STR_1693 :Vieraat -STR_1694 :Henkilökunta +STR_1692 :{WINDOW_COLOUR_2} Hinta: {BLACK}alk. {CURRENCY} +STR_1693 :Kävijät +STR_1694 :Henkilöstö STR_1695 :Tulot ja kulut STR_1696 :Asiakkaan tiedot STR_1697 :Näitä ei voi asettaa jonotusalueelle @@ -1088,15 +1090,15 @@ STR_1700 :Palkkaa uusi yleismies STR_1701 :Palkkaa uusi mekaanikko STR_1702 :Palkkaa uusi vartija STR_1703 :Palkkaa uusi viihdyttäjä -STR_1704 :Henkilökunnan palkkaaminen ei onnistu… -STR_1705 :Irtisano tämä henkilökunnan jäsen +STR_1704 :Henkilöstön palkkaaminen ei onnistu… +STR_1705 :Irtisano tämä henkilöstön jäsen STR_1706 :Siirrä tämä henkilö uuteen sijaintiin -STR_1707 :Liikaa henkilökuntaa pelissä -STR_1708 :Set patrol area for this staff member -STR_1709 :Irtisano henkilökunta +STR_1707 :Liikaa henkilöstöä pelissä +STR_1708 :Aseta partioalue tälle henkilöstön jäsenelle +STR_1709 :Irtisano henkilöstö STR_1710 :Kyllä STR_1711 :{WINDOW_COLOUR_1}Haluatko varmasti irtisanoa {STRINGID}? -STR_1712 :{INLINE_SPRITE}{247}{19}{00}{00}{WINDOW_COLOUR_2}Harjaa jalkakäytävät +STR_1712 :{INLINE_SPRITE}{247}{19}{00}{00}{WINDOW_COLOUR_2}Harjaa polut STR_1713 :{INLINE_SPRITE}{248}{19}{00}{00}{WINDOW_COLOUR_2}Kastele puutarhat STR_1714 :{INLINE_SPRITE}{249}{19}{00}{00}{WINDOW_COLOUR_2}Tyhjennä roskakorit STR_1715 :{INLINE_SPRITE}{250}{19}{00}{00}{WINDOW_COLOUR_2}Leikkaa ruohoa @@ -1111,49 +1113,49 @@ STR_1723 :Puiston avaus ei onnistunut… STR_1724 :Puiston sulkeminen ei onnistunut… STR_1725 :Maan ostaminen ei onnistunut… STR_1726 :Maa ei ole myytävänä! -STR_1727 :Rakennusoikeudet eivät ole myytävänä! -STR_1728 :Rakennusoikeuksia ei voi ostaa tähän… +STR_1727 :Rakennusluvat eivät ole myytävänä! +STR_1728 :Rakennuslupia ei voi ostaa tähän… STR_1729 :Maa ei ole puiston omistuksessa! STR_1730 :{RED}Suljettu - - STR_1731 :{WHITE}{STRINGID} - - STR_1732 :Rakenna -STR_1733 :Moodi +STR_1733 :Tila STR_1734 :{WINDOW_COLOUR_2}Kierrosten määrä: STR_1735 :Kierrosten määrä radalla STR_1736 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} -STR_1738 :Kierrosten määrää ei voitu muuttaa… -STR_1739 :Kisan voitti vieras {INT32} +STR_1738 :Kierrosten määrää ei voi muuttaa… +STR_1739 :Kisan voitti kävijä {INT32} STR_1740 :Kisan voitti {STRINGID} -STR_1741 :Ei ole vielä rakennettu ! -STR_1742 :{WINDOW_COLOUR_2}Laitteen suurin kävijämäärä: +STR_1741 :Ei ole vielä rakennettu! +STR_1742 :{WINDOW_COLOUR_2}Maks. kävijämäärä: STR_1743 :Laitteen suurin sallittu kävijämäärä yhdellä kertaa STR_1744 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} -STR_1746 :Tätä ei voitu muuttaa… +STR_1746 :Tätä ei voi muuttaa… STR_1747 :{WINDOW_COLOUR_2}Aikarajoitus: -STR_1748 :Aikarajoitus ajelulle +STR_1748 :Laitteen aikarajoitus STR_1749 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{DURATION} -STR_1751 :Aikarajoitusta ajelulle ei voitu muuttaa… -STR_1752 :Näytä puiston yksittäiset vieraat -STR_1753 :Näytä puiston vieraat yhteenvetona -STR_1754 :{BLACK}{COMMA32} vieraat -STR_1755 :{BLACK}{COMMA32} vieras +STR_1751 :Laitteen aikarajoitusta ei voi muuttaa… +STR_1752 :Näytä puiston yksittäiset kävijät +STR_1753 :Näytä puiston kävijät yhteenvetona +STR_1754 :{BLACK}{COMMA32} kävijää +STR_1755 :{BLACK}{COMMA32} kävijä STR_1756 :{WINDOW_COLOUR_2}Sisäänpääsymaksu: STR_1757 :{WINDOW_COLOUR_2}Luotettavuus: {MOVE_X}{255}{BLACK}{COMMA16}% STR_1758 :Rakennustoiminto STR_1759 :Siirtotoiminto STR_1760 :Täyttötoiminto -STR_1761 :Rakenna labyrinttia tähän suuntaan +STR_1761 :Rakenna labyrinttiä tähän suuntaan STR_1762 :Vesiputoukset STR_1763 :Kosket -STR_1764 :Log Bumps -STR_1765 :On-ride photo section -STR_1766 :Reverser turntable +STR_1764 :Tukkiosio +STR_1765 :Valokuvaosio +STR_1766 :Pyörähdysosio STR_1767 :Pyörivä tunneli -STR_1768 :Heilahdusten määrää ei voitu muuttaa… +STR_1768 :Heilahdusten määrää ei voi muuttaa… STR_1769 :{WINDOW_COLOUR_2}Heilahdusten määrä: STR_1770 :Kokonaisten heilahdusten määrä STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} -STR_1773 :Only one on-ride photo section allowed per ride +STR_1773 :Vain yksi valokuvaosio sallittu per laite STR_1774 :Vain yksi nostomäki sallittu per laite STR_1777 :{WINDOW_COLOUR_2}Musiikki STR_1778 :{STRINGID} - - @@ -1168,41 +1170,41 @@ STR_1786 :{INLINE_SPRITE}{05}{20}{00}{00} Astronauttipuku STR_1787 :{INLINE_SPRITE}{06}{20}{00}{00} Rosvopuku STR_1788 :{INLINE_SPRITE}{07}{20}{00}{00} Seriffipuku STR_1789 :{INLINE_SPRITE}{08}{20}{00}{00} Merirosvopuku -STR_1790 :Valitse virka-asun väri tämän tyyppisille henkilökunnille +STR_1790 :Valitse virka-asun väri tälle henkilöstön tyypille STR_1791 :{WINDOW_COLOUR_2}Virka-asun väri: -STR_1792 :Vastaamassa {STRINGID}:n hajoamisilmoitukseen -STR_1793 :Matkalla kohti {STRINGID} tarkistusta varten -STR_1794 :Korjataan {STRINGID} -STR_1795 :Vastataan radiopuheluun +STR_1792 :Matkalla korjaamaan laitetta {STRINGID} +STR_1793 :Matkalla tarkastamaan laitetta {STRINGID} +STR_1794 :Korjaa laitetta {STRINGID} +STR_1795 :Vastaa radiopuheluun STR_1796 :Hajonnut ja korjauksen tarpeessa -STR_1798 :Whirlpool +STR_1798 :Pyörre STR_1799 :{POP16}{POP16}{POP16}{POP16}{POP16}{CURRENCY2DP} STR_1800 :Turvakatkaisu -STR_1801 :Turvakaaret jumittuneet kiinni -STR_1802 :Turvakaaret jumittuneet auki +STR_1801 :Turvakaiteet jumittuneet kiinni +STR_1802 :Turvakaiteet jumittuneet auki STR_1803 :Ovet jumittuneet kiinni STR_1804 :Ovet jumittuneet auki -STR_1805 :Ajoneuvotoimintahäiriö -STR_1806 :Jarruvirhe -STR_1807 :Ohjausvirhe -STR_1808 :{WINDOW_COLOUR_2}Viimeisin konerikko: {BLACK}{STRINGID} -STR_1809 :{WINDOW_COLOUR_2}Nykyinen konerikko: {OUTLINE}{RED}{STRINGID} +STR_1805 :Vaunun toimintahäiriö +STR_1806 :Jarruvika +STR_1807 :Ohjaushäiriö +STR_1808 :{WINDOW_COLOUR_2}Viimeisin hajoaminen: {BLACK}{STRINGID} +STR_1809 :{WINDOW_COLOUR_2}Tämänhetkinen hajoaminen: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Kantaa: STR_1811 :Tätä ei voi rakentaa tähän… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Sekalaiset tavarat STR_1814 :Toiminnat STR_1815 :Ajatukset -STR_1816 :Valitse näytettävä tietotyyppi vieras listalle +STR_1816 :Valitse kävijälistan näyttämä tietotyyppi STR_1817 :({COMMA32}) -STR_1818 :{WINDOW_COLOUR_2}Kaikki vieraat -STR_1819 :{WINDOW_COLOUR_2}Kaikki vieraat (yhteenvetona) -STR_1820 :{WINDOW_COLOUR_2}Vieraat {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Vieraat ajattelevat {STRINGID} -STR_1822 :{WINDOW_COLOUR_2}Vieraat ajattelevat {POP16}{STRINGID} -STR_1823 :Näytä vieraiden ajatukset tästä laitteesta/kohteesta -STR_1824 :Näytä vieraat tässä laitteessa/kohteessa -STR_1825 :Näytä tähän laitteeseen/kohteesen jonottavat vieraat +STR_1818 :{WINDOW_COLOUR_2}Kaikki kävijät +STR_1819 :{WINDOW_COLOUR_2}Kaikki kävijät (yhteenvetona) +STR_1820 :{WINDOW_COLOUR_2}Kävijät {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Kävijät, jotka ajattelevat {SMALLFONT}{STRINGID} +STR_1822 :{WINDOW_COLOUR_2}Kävijöiden ajatukset kohteesta {POP16}{STRINGID} +STR_1823 :Näytä kävijöiden ajatukset tästä laitteesta/kohteesta +STR_1824 :Näytä kävijät tässä laitteessa/kohteessa +STR_1825 :Näytä tähän laitteeseen/kohteesen jonottavat kävijät STR_1826 :Tilanne STR_1827 :Suosio STR_1828 :Tyytyväisyys @@ -1210,40 +1212,40 @@ STR_1829 :Tuotto STR_1830 :Jonon pituus STR_1831 :Jonotusaika STR_1832 :Luotettavuus -STR_1833 :Keskeytysaika -STR_1834 :Vieraiden suosikki +STR_1833 :Seisokit +STR_1834 :Kävijöiden suosikki STR_1835 :Suosio: Tuntematon STR_1836 :Suosio: {COMMA16}% STR_1837 :Tyytyväisyys: Tuntematon STR_1838 :Tyytyväisyys: {COMMA16}% STR_1839 :Luotettavuus: {COMMA16}% -STR_1840 :Keskeytysaika: {COMMA16}% +STR_1840 :Seisokit: {COMMA16}% STR_1841 :Tuotto: {CURRENCY2DP} per tunti -STR_1842 :{COMMA16} vieraan lempilaite -STR_1843 :{COMMA16} vieraan lempilaite +STR_1842 :{COMMA16} kävijän lempilaite +STR_1843 :{COMMA16} kävijän lempilaite STR_1844 :valitse tietotyyppi laite-/kohdelistalle STR_1845 :{MONTHYEAR} -STR_1846 :{COMMA32} vierasta -STR_1847 :{INLINE_SPRITE}{11}{20}{00}{00}{COMMA32} vierasta -STR_1848 :{INLINE_SPRITE}{10}{20}{00}{00}{COMMA32} vierasta +STR_1846 :{COMMA32} kävijää +STR_1847 :{INLINE_SPRITE}{11}{20}{00}{00}{COMMA32} kävijää +STR_1848 :{INLINE_SPRITE}{10}{20}{00}{00}{COMMA32} kävijää STR_1849 :{WINDOW_COLOUR_2}Toista musiikkia -STR_1850 :Valitse mitä musiikkia toistetaan tälle ajelulle +STR_1850 :Valitse mitä musiikkia tämä laite soittaa STR_1851 :{WINDOW_COLOUR_2}Käyttökustannus: {BLACK}{CURRENCY2DP} per tunti STR_1852 :{WINDOW_COLOUR_2}Käyttökustannus: {BLACK}Tuntematon -STR_1853 :{WINDOW_COLOUR_2}Rakennettu: {BLACK}Tämä vuosi +STR_1853 :{WINDOW_COLOUR_2}Rakennettu: {BLACK}Tänä vuonna STR_1854 :{WINDOW_COLOUR_2}Rakennettu: {BLACK}Viime vuonna STR_1855 :{WINDOW_COLOUR_2}Rakennettu: {BLACK}{COMMA16} vuotta sitten STR_1856 :{WINDOW_COLOUR_2}Tuottoa per myyty esine: {BLACK}{CURRENCY2DP} STR_1857 :{WINDOW_COLOUR_2}Tappiota per myyty esine: {BLACK}{CURRENCY2DP} -STR_1858 :{WINDOW_COLOUR_2}Kustannus: {BLACK}{CURRENCY2DP} per kuukausi -STR_1859 :Yleismies -STR_1860 :Mekaanikko -STR_1861 :Vartija -STR_1862 :Viihdyttäjä -STR_1863 :Yleismies -STR_1864 :Mekaanikko -STR_1865 :Vartija -STR_1866 :Viihdyttäjä +STR_1858 :{WINDOW_COLOUR_2}Palkka: {BLACK}{CURRENCY2DP}/kk +STR_1859 :yleismiestä +STR_1860 :mekaanikkoa +STR_1861 :vartijaa +STR_1862 :viihdyttäjää +STR_1863 :yleismies +STR_1864 :mekaanikko +STR_1865 :vartija +STR_1866 :viihdyttäjä STR_1867 :{BLACK}{COMMA16} {STRINGID} STR_1868 :Kierrosten määrää ei voi muuttaa… STR_1869 :{WINDOW_COLOUR_2}Kierrosten määrä: @@ -1252,42 +1254,42 @@ STR_1871 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM STR_1873 :{WINDOW_COLOUR_2}Tulo: {BLACK}{CURRENCY2DP} per tunti STR_1874 :{WINDOW_COLOUR_2}Tuotto: {BLACK}{CURRENCY2DP} per tunti STR_1875 :{BLACK} {SPRITE}{BLACK} {STRINGID} -STR_1876 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{251}{19}{00}{00}Tarkista ajelut -STR_1877 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{252}{19}{00}{00}Korjaa ajelut -STR_1878 :{WINDOW_COLOUR_2}Tarkistus: -STR_1879 :10 min välein -STR_1880 :20 min välein -STR_1881 :30 min välein -STR_1882 :45 min välein +STR_1876 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{251}{19}{00}{00}Tarkasta laitteet +STR_1877 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{252}{19}{00}{00}Korjaa laitteet +STR_1878 :{WINDOW_COLOUR_2}Tarkastus: +STR_1879 :10 minuutin välein +STR_1880 :20 minuutin välein +STR_1881 :30 minuutin välein +STR_1882 :45 minuutin välein STR_1883 :Tunnin välein STR_1884 :2 tunnin välein STR_1885 :Ei koskaan -STR_1886 :Tarkistetaan {STRINGID} +STR_1886 :Tarkastetaan {STRINGID} STR_1887 :{WINDOW_COLOUR_2}Viimeinen tarkastus: {BLACK}{COMMA16} minuuttia sitten -STR_1888 :{WINDOW_COLOUR_2}Viimeinen tarkistus: {BLACK}yli 4 tuntia sitten -STR_1889 :{WINDOW_COLOUR_2}Keskeytysaika: {MOVE_X}{255}{BLACK}{COMMA16}% -STR_1890 :Valitse kuinka usein mekaanikko tarkistaa tämän ajelun -STR_1891 :Puistossa ei vielä ole {STRINGID} ! +STR_1888 :{WINDOW_COLOUR_2}Viimeinen tarkastus: {BLACK}yli 4 tuntia sitten +STR_1889 :{WINDOW_COLOUR_2}Seisokit: {MOVE_X}{255}{BLACK}{COMMA16}% +STR_1890 :Valitse kuinka usein mekaanikko tarkastaa tämän laitteen +STR_1891 :Puistossa ei vielä ole {STRINGID}! # The following two strings were used to display an error when the disc was missing. # This has been replaced in OpenRCT2. STR_1894 :{WINDOW_COLOUR_2}{STRINGID} myyty: {BLACK}{COMMA32} STR_1895 :Rakenna uusi laite/kohde -STR_1896 :{WINDOW_COLOUR_2}Rahan käyttö/tulot +STR_1896 :{WINDOW_COLOUR_2}Menot/tulot STR_1897 :{WINDOW_COLOUR_2}Laitteiden rakennus STR_1898 :{WINDOW_COLOUR_2}Laitteiden käyttökulut -STR_1899 :{WINDOW_COLOUR_2}Maahankinnat +STR_1899 :{WINDOW_COLOUR_2}Maanhankinnat STR_1900 :{WINDOW_COLOUR_2}Maisemointi -STR_1901 :{WINDOW_COLOUR_2}Puiston sisäänpääsyliput +STR_1901 :{WINDOW_COLOUR_2}Sisäänpääsyliput STR_1902 :{WINDOW_COLOUR_2}Liput laitteisiin -STR_1903 :{WINDOW_COLOUR_2}Kojujen myynnit -STR_1904 :{WINDOW_COLOUR_2}Kauppojen varasto +STR_1903 :{WINDOW_COLOUR_2}Tavaramyynnit +STR_1904 :{WINDOW_COLOUR_2}Tavarakulut STR_1905 :{WINDOW_COLOUR_2}Ruoka-/juomamyynnit -STR_1906 :{WINDOW_COLOUR_2}Ruoka-/juomavarasto -STR_1907 :{WINDOW_COLOUR_2}Henkilökunnan palkat +STR_1906 :{WINDOW_COLOUR_2}Ruoka-/juomakulut +STR_1907 :{WINDOW_COLOUR_2}Henkilöstön palkat STR_1908 :{WINDOW_COLOUR_2}Markkinointi -STR_1909 :{WINDOW_COLOUR_2}Tutkimustyö +STR_1909 :{WINDOW_COLOUR_2}Kehitys STR_1910 :{WINDOW_COLOUR_2}Lainan korko -STR_1911 :{BLACK} {COMMA16}% vuodessa +STR_1911 :{BLACK} {COMMA16}% per vuosi STR_1912 :{MONTH} STR_1913 :{BLACK}+{CURRENCY2DP} STR_1914 :{BLACK}{CURRENCY2DP} @@ -1301,11 +1303,10 @@ STR_1921 :Aloita uusi peli STR_1922 :Jatka tallennetun pelin pelaamista STR_1924 :Lopeta STR_1925 :Henkilöä ei voi sijoittaa tähän… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} on hajonnut STR_1928 :{RED}{STRINGID} on hajonnut! -STR_1929 :{RED}{STRINGID} ei vieläkään ole korjattu{NEWLINE}tarkista missä mekaanikkosi ovat ja pohdi niiden parempaa sijoittelua -STR_1930 :Laita vieraan seuranta päälle/pois - (kun seuranta on päällä, vieraan liikkeet raportoidaan viestialueelle) +STR_1929 :{RED}Laitetta {STRINGID} ei vieläkään ole korjattu{NEWLINE}tarkista missä mekaanikkosi ovat ja pohdi niiden parempaa sijoittelua +STR_1930 :Laita kävijän seuranta päälle/pois - (kun seuranta on päällä, kävijän liikkeet raportoidaan viestialueelle) STR_1931 :{STRINGID} on jonottamassa laitteeseen {STRINGID} STR_1932 :{STRINGID} on laitteessa {STRINGID} STR_1933 :{STRINGID} on laitteessa {STRINGID} @@ -1313,23 +1314,23 @@ STR_1934 :{STRINGID} poistui laitteesta {STRINGID} STR_1935 :{STRINGID} on lähtenyt puistosta STR_1936 :{STRINGID} osti {STRINGID} STR_1937 :Näytä tietoa tämän viestin kohteesta -STR_1938 :Näytä vierasnäkymä +STR_1938 :Näytä kävijänäkymä STR_1939 :Näytä henkilöstönäkymä -STR_1940 :Näytä tämän vieraan iloisuus, energia, nälkä yms. -STR_1941 :Näytä missä laitteissa tämä vieras on käynyt -STR_1942 :Näytä vieraan taloustiedot -STR_1943 :Näytä vieraan viimeiset ajatukset -STR_1944 :Näytä mitä esineitä vieras kantaa -STR_1945 :Näytä henkilökunnan jäsenen ohjeet ja asetukset +STR_1940 :Näytä tämän kävijän iloisuus, energia, nälkä yms. +STR_1941 :Näytä missä laitteissa tämä kävijä on käynyt +STR_1942 :Näytä kävijän taloustiedot +STR_1943 :Näytä kävijän viimeiset ajatukset +STR_1944 :Näytä mitä esineitä kävijä kantaa +STR_1945 :Näytä henkilöstön jäsenen ohjeet ja asetukset STR_1946 :Valitse puku viihdyttäjälle -STR_1947 :Näytä valitun henkilökuntatyypin partiointialueet ja etsi lähin henkilökunnan jäsen -STR_1948 :Palkkaa uusi tietyn tyyppinen henkilöstön jäsen +STR_1947 :Näytä valitun henkilöstötyypin partiointialueet ja etsi lähin henkilöstön jäsen +STR_1948 :Palkkaa uusi henkilöstön jäsen STR_1949 :Taloudellinen yhteenveto STR_1950 :Talouskuvaaja STR_1951 :Puiston arvokuvaaja STR_1952 :Tuottokuvaaja STR_1953 :Markkinointi -STR_1954 :Tutkimustyön rahoitus +STR_1954 :Kehityksen rahoitus STR_1955 :{WINDOW_COLOUR_2}Kierrosten määrä: STR_1956 :Ratakierrosten määrä yhdellä käyntikerralla STR_1957 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} @@ -1338,11 +1339,11 @@ STR_1959 :Kierrosten määrää ei voi muuttaa… STR_1960 :{WINDOW_COLOUR_2}Ilmapallon hinta: STR_1961 :{WINDOW_COLOUR_2}Pehmolelun hinta: STR_1962 :{WINDOW_COLOUR_2}Puiston kartan hinta: -STR_1963 :{WINDOW_COLOUR_2}On-Ride Photo price: +STR_1963 :{WINDOW_COLOUR_2}Valokuvan hinta: STR_1964 :{WINDOW_COLOUR_2}Sateenvarjon hinta: STR_1965 :{WINDOW_COLOUR_2}Juoman hinta: STR_1966 :{WINDOW_COLOUR_2}Hampurilaisen hinta: -STR_1967 :{WINDOW_COLOUR_2}Sipsien hinta: +STR_1967 :{WINDOW_COLOUR_2}Ranskalaisten hinta: STR_1968 :{WINDOW_COLOUR_2}Jäätelön hinta: STR_1969 :{WINDOW_COLOUR_2}Hattaran hinta: STR_1970 :{WINDOW_COLOUR_2} @@ -1351,7 +1352,7 @@ STR_1972 :{WINDOW_COLOUR_2} STR_1973 :{WINDOW_COLOUR_2}Pizzan hinta: STR_1974 :{WINDOW_COLOUR_2} STR_1975 :{WINDOW_COLOUR_2}Popcornin hinta: -STR_1976 :{WINDOW_COLOUR_2}Hot Dogin hinta: +STR_1976 :{WINDOW_COLOUR_2}Nakkisämpylän hinta: STR_1977 :{WINDOW_COLOUR_2}Lonkeron hinta: STR_1978 :{WINDOW_COLOUR_2}Hatun hinta: STR_1979 :{WINDOW_COLOUR_2}Toffeeomenan hinta: @@ -1360,101 +1361,101 @@ STR_1981 :{WINDOW_COLOUR_2}Donitsin hinta: STR_1982 :{WINDOW_COLOUR_2}Kahvin hinta: STR_1983 :{WINDOW_COLOUR_2} STR_1984 :{WINDOW_COLOUR_2}Paistetun kanan hinta: -STR_1985 :{WINDOW_COLOUR_2}Limonaadin hinta: +STR_1985 :{WINDOW_COLOUR_2}Limsan hinta: STR_1986 :{WINDOW_COLOUR_2} STR_1987 :{WINDOW_COLOUR_2} -STR_1988 :Ilmapallo -STR_1989 :Pehmolelu -STR_1990 :Puiston kartta -STR_1991 :On-Ride Photo -STR_1992 :Sateenvarjo -STR_1993 :Juoma -STR_1994 :Hampurilainen -STR_1995 :Sipsit -STR_1996 :Jäätelö -STR_1997 :Hattara -STR_1998 :Tyhjä tölkki -STR_1999 :Roska -STR_2000 :Tyhjä hampurilaisrasia -STR_2001 :Pizza -STR_2002 :Etuseteli -STR_2003 :Popcorn -STR_2004 :Hot Dog -STR_2005 :Lonkero -STR_2006 :Hattu -STR_2007 :Toffeeomena -STR_2008 :T-paita -STR_2009 :Donitsi -STR_2010 :Kahvi -STR_2011 :Tyhjä kuppi -STR_2012 :Paistettu kana -STR_2013 :Limonaadi -STR_2014 :Tyhjä rasia -STR_2015 :Tyhjä pullo +STR_1988 :ilmapalloani +STR_1989 :pehmoleluani +STR_1990 :puiston karttaani +STR_1991 :valokuvaani +STR_1992 :sateenvarjoani +STR_1993 :juomaani +STR_1994 :hampurilaistani +STR_1995 :ranskalaisiani +STR_1996 :jäätelöäni +STR_1997 :hattaraani +STR_1998 :tyhjää tölkkiäni +STR_1999 :roskaani +STR_2000 :tyhjää hampurilaisrasiaani +STR_2001 :pizzaani +STR_2002 :kuponkiani +STR_2003 :popcorniani +STR_2004 :nakkisämpylääni +STR_2005 :lonkeroani +STR_2006 :hattuani +STR_2007 :toffeeomenaani +STR_2008 :t-paitaani +STR_2009 :donitsiani +STR_2010 :kahviani +STR_2011 :tyhjää kuppiani +STR_2012 :paistettua kanaani +STR_2013 :limsaani +STR_2014 :tyhjää rasiaani +STR_2015 :tyhjää pulloani STR_2016 :Ilmapalloja STR_2017 :Pehmoleluja STR_2018 :Puistokarttoja -STR_2019 :On-Ride Photos +STR_2019 :Valokuvia STR_2020 :Sateenvarjoja STR_2021 :Juomia STR_2022 :Hampurilaisia -STR_2023 :Sipsejä -STR_2024 :Jäätelöä -STR_2025 :Hattara +STR_2023 :Ranskalaisia +STR_2024 :Jäätelöitä +STR_2025 :Hattaroita STR_2026 :Tyhjiä tölkkejä STR_2027 :Roska STR_2028 :Tyhjiä hampurilaisrasioita STR_2029 :Pizzoja -STR_2030 :Etuseteleitä -STR_2031 :Popcorn -STR_2032 :Hot Dogeja +STR_2030 :Kuponkeja +STR_2031 :Popcornia +STR_2032 :Nakkisämpylöitä STR_2033 :Lonkeroita STR_2034 :Hattuja STR_2035 :Toffeeomenoita STR_2036 :T-paitoja STR_2037 :Donitseja -STR_2038 :Kahvia +STR_2038 :Kahveja STR_2039 :Tyhjiä tölkkejä -STR_2040 :Paistettu kana -STR_2041 :Limonaadi +STR_2040 :Paistettuja kanoja +STR_2041 :Limsoja STR_2042 :Tyhjiä rasiota STR_2043 :Tyhjiä pulloja -STR_2044 :Ilmapallo -STR_2045 :Pehmolelu -STR_2046 :Puiston kartta -STR_2047 :an On-Ride Photo -STR_2048 :Sateenvarjo -STR_2049 :Juoma -STR_2050 :Hampurilainen -STR_2051 :Sipsejä -STR_2052 :Jäätelö -STR_2053 :Hattaraa -STR_2054 :Tyhjä tölkki -STR_2055 :Roskaa -STR_2056 :Tyhjä hampurilaisrasia -STR_2057 :Pizza -STR_2058 :Etuseteli -STR_2059 :Popcornia -STR_2060 :Hot Dog -STR_2061 :Lonkero -STR_2062 :Hattu -STR_2063 :Toffeeomena -STR_2064 :T-paita -STR_2065 :Donitsi -STR_2066 :Kahvi -STR_2067 :Tyhjä tölkki -STR_2068 :Paistettua kanaa -STR_2069 :Limonaadia -STR_2070 :Tyhjä rasia -STR_2071 :Tyhjä pullo -STR_2072 :“{STRINGID}” Ilmapallo -STR_2073 :“{STRINGID}” Pehmolelu -STR_2074 :{STRINGID}:n Kartta +STR_2044 :ilmapallo +STR_2045 :pehmolelu +STR_2046 :puiston kartta +STR_2047 :valokuva +STR_2048 :sateenvarjo +STR_2049 :juoma +STR_2050 :hampurilainen +STR_2051 :ranskalaiset +STR_2052 :jäätelö +STR_2053 :hattara +STR_2054 :tyhjä tölkki +STR_2055 :roskaa +STR_2056 :tyhjä hampurilaisrasia +STR_2057 :pizza +STR_2058 :kuponki +STR_2059 :popcorn +STR_2060 :nakkisämpylä +STR_2061 :lonkero +STR_2062 :hattu +STR_2063 :toffeeomena +STR_2064 :t-paita +STR_2065 :donitsi +STR_2066 :kahvi +STR_2067 :tyhjä tölkki +STR_2068 :paistettua kanaa +STR_2069 :limsa +STR_2070 :tyhjä rasia +STR_2071 :tyhjä pullo +STR_2072 :“{STRINGID}” -ilmapallo +STR_2073 :“{STRINGID}” -pehmolelu +STR_2074 :{STRINGID}:n kartta STR_2075 :Kuva {STRINGID}:sta -STR_2076 :“{STRINGID}” Sateenvarjo +STR_2076 :“{STRINGID}” -sateenvarjo STR_2077 :Juoma STR_2078 :Hampurilainen -STR_2079 :Sipsejä +STR_2079 :Ranskalaiset STR_2080 :Jäätelö STR_2081 :Hattara STR_2082 :Tyhjä tölkki @@ -1463,16 +1464,16 @@ STR_2084 :Tyhjä hampurilaisrasia STR_2085 :Pizza STR_2086 :{STRINGID} -kuponki STR_2087 :Popcorn -STR_2088 :Hot Dog +STR_2088 :Nakkisämpylä STR_2089 :Lonkero -STR_2090 :“{STRINGID}” Hattu +STR_2090 :“{STRINGID}” -hattu STR_2091 :Toffeeomena -STR_2092 :“{STRINGID}” T-paita +STR_2092 :“{STRINGID}” -t-paita STR_2093 :Donitsi STR_2094 :Kahvi STR_2095 :Tyhjä tölkki STR_2096 :Paistettu kana -STR_2097 :Limonaadi +STR_2097 :Limsa STR_2098 :Tyhjä tölkki STR_2099 :Tyhjä pullo STR_2103 :{WINDOW_COLOUR_2}Rinkelin hinta: @@ -1480,8 +1481,8 @@ STR_2104 :{WINDOW_COLOUR_2}Kaakaon hinta: STR_2105 :{WINDOW_COLOUR_2}Jääteen hinta: STR_2106 :{WINDOW_COLOUR_2}Tippaleivän hinta: STR_2107 :{WINDOW_COLOUR_2}Aurinkolasien hinta: -STR_2108 :{WINDOW_COLOUR_2}Häränlihanuudelien hinta: -STR_2109 :{WINDOW_COLOUR_2}Paistettu riisinuudelien hinta: +STR_2108 :{WINDOW_COLOUR_2}Nuudelien hinta: +STR_2109 :{WINDOW_COLOUR_2}Riisinuudelien hinta: STR_2110 :{WINDOW_COLOUR_2}Wontonkeiton hinta: STR_2111 :{WINDOW_COLOUR_2}Lihapullakeiton hinta: STR_2112 :{WINDOW_COLOUR_2}Hedelmämehun hinta: @@ -1492,72 +1493,72 @@ STR_2116 :{WINDOW_COLOUR_2}Piparin hinta: STR_2117 :{WINDOW_COLOUR_2} STR_2118 :{WINDOW_COLOUR_2} STR_2119 :{WINDOW_COLOUR_2} -STR_2120 :{WINDOW_COLOUR_2}Paahdetun makkaran hinta: +STR_2120 :{WINDOW_COLOUR_2}Grillimakkaran hinta: STR_2121 :{WINDOW_COLOUR_2} -STR_2125 :Rinkeli -STR_2126 :Kaakao -STR_2127 :Jäätee -STR_2128 :Tippaleipä -STR_2129 :Aurinkolasit -STR_2130 :Häränlihanuudelit -STR_2131 :Paistettu riisinuudelit -STR_2132 :Wontonkeitto -STR_2133 :Lihapullakeitto -STR_2134 :Hedelmämehu -STR_2135 :Soijapapumaito -STR_2136 :Sujongkwa -STR_2137 :Patonki -STR_2138 :Pipari -STR_2139 :Tyhjä kulho -STR_2140 :Tyhjä juomatölkki -STR_2141 :Tyhjä mehukuppi -STR_2142 :Paahdettu makkara -STR_2143 :Tyhjä kulho -STR_2147 :Rinkelit -STR_2148 :Kaakaot -STR_2149 :Jääteet -STR_2150 :Tippaleivät -STR_2151 :Aurinkolasit -STR_2152 :Häränlihanuudelit -STR_2153 :Paistettu riisinuudelit -STR_2154 :Wontonkeitot -STR_2155 :Lihapullokeitot -STR_2156 :Hedelmämehut -STR_2157 :Soijapapumaidot -STR_2158 :Sujongkwa -STR_2159 :Patongit -STR_2160 :Piparit +STR_2125 :rinkeliäni +STR_2126 :kaakaotani +STR_2127 :jääteetäni +STR_2128 :tippaleipääni +STR_2129 :aurinkolasejani +STR_2130 :häränlihanuudeleitani +STR_2131 :paistettuja riisinuudeleitani +STR_2132 :wontonkeittoani +STR_2133 :lihapullakeittoani +STR_2134 :hedelmämehuani +STR_2135 :soijapapumaitoani +STR_2136 :sujongkwaani +STR_2137 :patonkiani +STR_2138 :pipariani +STR_2139 :tyhjää kulhoani +STR_2140 :tyhjää juomatölkkiäni +STR_2141 :tyhjää mehukuppiani +STR_2142 :grillimakkaraani +STR_2143 :tyhjää kulhoani +STR_2147 :Rinkeleitä +STR_2148 :Kaakaoita +STR_2149 :Jääteitä +STR_2150 :Tippaleipiä +STR_2151 :Aurinkolaseja +STR_2152 :Häränlihanuudeleita +STR_2153 :Paistettuja riisinuudeleita +STR_2154 :Wontonkeittoja +STR_2155 :Lihapullakeittoja +STR_2156 :Hedelmämehuja +STR_2157 :Soijapapumaitoja +STR_2158 :Sujongkwoita +STR_2159 :Patonkeja +STR_2160 :Pipareita STR_2161 :Tyhjiä kulhoja STR_2162 :Tyhjiä juomatölkkejä STR_2163 :Tyhjiä mehukuppeja -STR_2164 :Paahdetut makkarat +STR_2164 :Grillimakkaroita STR_2165 :Tyhjiä kulhoja -STR_2169 :Rinkeli -STR_2170 :Kaakao -STR_2171 :Jäätee -STR_2172 :Tippaleipä -STR_2173 :Aurinkolasipari -STR_2174 :Häränlihanuudeleita -STR_2175 :Paistettuja riisinuudeleita -STR_2176 :Wontonkeittoa -STR_2177 :Lihapullakeittoa -STR_2178 :Hedelmämehua -STR_2179 :Soijapapumaitoa -STR_2180 :Sujongkwaa -STR_2181 :Patonki -STR_2182 :Pipari -STR_2183 :Tyhjä kulho -STR_2184 :Tyhjä juomatölkki -STR_2185 :Tyhjä mehukuppi -STR_2186 :Paahdettu makkara -STR_2187 :Tyhjä kulho +STR_2169 :rinkeli +STR_2170 :kaakao +STR_2171 :jäätee +STR_2172 :tippaleipä +STR_2173 :aurinkolasit +STR_2174 :häränlihanuudeleita +STR_2175 :paistettuja riisinuudeleita +STR_2176 :wontonkeittoa +STR_2177 :lihapullakeittoa +STR_2178 :hedelmämehu +STR_2179 :soijapapumaitoa +STR_2180 :sujongkwaa +STR_2181 :patonki +STR_2182 :pipari +STR_2183 :tyhjä kulho +STR_2184 :tyhjä juomatölkki +STR_2185 :tyhjä mehukuppi +STR_2186 :grillimakkara +STR_2187 :tyhjä kulho STR_2191 :Rinkeli STR_2192 :Kaakao STR_2193 :Jäätee STR_2194 :Tippaleipä STR_2195 :Aurinkolasit STR_2196 :Häränlihanuudelit -STR_2197 :Paistettuja riisinuudeleita +STR_2197 :Paistetut riisinuudelit STR_2198 :Wontonkeitto STR_2199 :Lihapullakeitto STR_2200 :Hedelmämehu @@ -1568,7 +1569,7 @@ STR_2204 :Pipari STR_2205 :Tyhjä kulho STR_2206 :Tyhjä juomatölkki STR_2207 :Tyhjä mehukuppi -STR_2208 :Paahdettu makkara +STR_2208 :Grillimakkara STR_2209 :Tyhjä kulho STR_2210 :Näytä puiston yleismiehet STR_2211 :Näytä puiston mekaanikot @@ -1576,14 +1577,14 @@ STR_2212 :Näytä puiston vartijat STR_2213 :Näytä puiston viihdyttäjät STR_2214 :Rakentaminen ei ole mahdollista pelin ollessa pysäytettynä! STR_2215 :{STRINGID}{NEWLINE}({STRINGID}) -STR_2216 :{WINDOW_COLOU1R_2}{COMMA16}°C +STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F -STR_2218 :{RED}{STRINGID} on {STRINGID} hasn't returned to the {STRINGID} yet!{NEWLINE}Check whether it is stuck or has stalled -STR_2219 :{RED}{COMMA16} ihmistä kuoli tapaturmassa kohteessa {STRINGID} -STR_2220 :{WINDOW_COLOUR_2}Puiston luokitus: {BLACK}{COMMA16} -STR_2221 :Puiston luokitus: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} -STR_2223 :{WINDOW_COLOUR_2}Vieraiden määrä: {BLACK}{COMMA32} +STR_2218 :{RED}{STRINGID} laitteessa {STRINGID} ei ole vielä palautunut {STRINGID}lle!{NEWLINE}Tarkista, onko se jumissa tai juuttunut +STR_2219 :{RED}{COMMA16} henkilöä on kuollut laitteen {STRINGID} onnettomuudessa +STR_2220 :{WINDOW_COLOUR_2}Puiston taso: {BLACK}{COMMA16} +STR_2221 :Puiston taso: {COMMA16} +STR_2222 :{BLACK}{STRINGID} +STR_2223 :{WINDOW_COLOUR_2}Kävijöiden määrä: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Kassa: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Kassa: {RED}{CURRENCY2DP} STR_2226 :{WINDOW_COLOUR_2}Puiston arvo: {BLACK}{CURRENCY} @@ -1594,57 +1595,57 @@ STR_2230 :Pystysuora rata STR_2231 :Pidätysjarru pudotukseen STR_2232 :Kaapelinostomäki STR_2233 :Puiston tiedot -STR_2234 :Viimeiset viestit -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} -STR_2236 :Tammikuu -STR_2237 :Helmikuu -STR_2238 :Maaliskuu -STR_2239 :Huhtikuu -STR_2240 :Toukokuu -STR_2241 :Kesäkuu -STR_2242 :Heinäkuu -STR_2243 :Elokuu -STR_2244 :Syyskuu -STR_2245 :Lokakuu -STR_2246 :Marraskuu -STR_2247 :Joulukuu -STR_2248 :Ei voi romuttaa laitetta/kohdetta… +STR_2234 :Uusimmat ilmoitukset +STR_2235 :{STRINGID} {STRINGID} +STR_2236 :tammikuu +STR_2237 :helmikuu +STR_2238 :maaliskuu +STR_2239 :huhtikuu +STR_2240 :toukokuu +STR_2241 :kesäkuu +STR_2242 :heinäkuu +STR_2243 :elokuu +STR_2244 :syyskuu +STR_2245 :lokakuu +STR_2246 :marraskuu +STR_2247 :joulukuu +STR_2248 :Laitetta/kohdetta ei voi romuttaa… STR_2249 :{BABYBLUE}Uusi laite/kohde saatavilla:{NEWLINE}{STRINGID} -STR_2250 :{BABYBLUE}Uusi maisema/teemaus saatavilla:{NEWLINE}{STRINGID} +STR_2250 :{BABYBLUE}Uusi maisemointi/teemaus saatavilla:{NEWLINE}{STRINGID} STR_2251 :Voidaan rakentaa ainoastaan poluille! STR_2252 :Voidaan rakentaa ainoastaan polun poikki! -STR_2253 :Transportaatiolaitteet +STR_2253 :Kulkuvälineet STR_2254 :Lempeät laitteet STR_2255 :Vuoristoradat -STR_2256 :Jännittävät Laitteet -STR_2257 :Vesiajelut -STR_2258 :Kaupat & Kojut -STR_2259 :Maisemointi & Teemaus +STR_2256 :Jännittävät laitteet +STR_2257 :Vesilaitteet +STR_2258 :Kojut +STR_2259 :Maisemointi & teemaus STR_2260 :Ei rahoitusta STR_2261 :Vähimmäisrahoitus STR_2262 :Normaali rahoitus STR_2263 :Täysrahoitus -STR_2264 :Tutkimustyön rahoitus +STR_2264 :Kehityksen rahoitus STR_2265 :{WINDOW_COLOUR_2}Kustannus: {BLACK}{CURRENCY} kuukaudessa -STR_2266 :Tutkimustyön tärkeysjärjestykset +STR_2266 :Kehityksen alueet STR_2267 :Paraikaa suunnitteilla -STR_2268 :Viimeinen kehitys +STR_2268 :Viimeisin kehitys STR_2269 :{WINDOW_COLOUR_2}Tyyppi: {BLACK}{STRINGID} STR_2270 :{WINDOW_COLOUR_2}Edistys: {BLACK}{STRINGID} -STR_2271 :{WINDOW_COLOUR_2}Odotettavista: {BLACK}{STRINGID} +STR_2271 :{WINDOW_COLOUR_2}Odotettavissa: {BLACK}{STRINGID} STR_2272 :{WINDOW_COLOUR_2}Laitteet/kohteet:{NEWLINE}{BLACK}{STRINGID} STR_2273 :{WINDOW_COLOUR_2}Maisemointi/teemaus:{NEWLINE}{BLACK}{STRINGID} -STR_2274 :Näytä tämän keksinnön tai kehityksen yksityiskohdat -STR_2275 :Show funding and options for research & development -STR_2276 :Show research & development status +STR_2274 :Näytä tämän kehityksen yksityiskohdat +STR_2275 :Näytä kehityksen rahoitus ja asetukset +STR_2276 :Näytä kehityksen edistys STR_2277 :Tuntematon -STR_2278 :Transportaatiolaite +STR_2278 :Kulkuväline STR_2279 :Lempeä laite STR_2280 :Vuoristorata STR_2281 :Jännittävä laite -STR_2282 :Vesiajelu -STR_2283 :Kauppa/Koju -STR_2284 :Maisemointi/Teemaus +STR_2282 :Vesilaite +STR_2283 :Koju +STR_2284 :Maisemointi/teemaus STR_2285 :Pohjatutkimus STR_2286 :Suunnitellaan STR_2287 :Viimeistellään suunnittelua @@ -1653,35 +1654,35 @@ STR_2289 :{STRINGID} {STRINGID} STR_2291 :Valitse uuden pelin skenaario STR_2292 :{WINDOW_COLOUR_2}Käytyjä laitteita: STR_2293 :{BLACK} Ei mitään -STR_2294 :Vaihda pohjamaan tyyliä +STR_2294 :Vaihda pohjamaaston tyyliä STR_2295 :Vaihda pystysuorien seinämien tyyliä -STR_2296 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Maksettu sisäänpääsyssä -STR_2297 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} laitteessa -STR_2298 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} laitteessa -STR_2299 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} ruokaan -STR_2300 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} ruokaan -STR_2301 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} juomaan -STR_2302 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} juomaan -STR_2303 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} matkamuistoon -STR_2304 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} Kulutettu {BLACK}{COMMA16} matkamuistoon -STR_2305 :Ratasuunnitelmatiedostot -STR_2306 :Tallenna ratasuunnitelma -STR_2307 :Valitse {STRINGID} suunnitelma -STR_2308 :{STRINGID} Ratasuunnitelmat -STR_2309 :Asenna uusi ratasuunnitelma +STR_2296 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} maksettu sisäänpääsystä +STR_2297 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} laitteessa +STR_2298 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} laitteessa +STR_2299 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} ruokaan +STR_2300 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} ruokaan +STR_2301 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} juomaan +STR_2302 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} juomaan +STR_2303 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} matkamuistoon +STR_2304 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} kulutettu {BLACK}{COMMA16} matkamuistoon +STR_2305 :Ratamallitiedostot +STR_2306 :Tallenna ratamalli +STR_2307 :Valitse malli laitteelle {STRINGID} +STR_2308 :{STRINGID} Ratamallit +STR_2309 :Asenna uusi ratamalli STR_2310 :Rakenna oma rata -STR_2311 :{WINDOW_COLOUR_2}Jännittävyys arvosana: {BLACK}{COMMA2DP32} (approx.) -STR_2312 :{WINDOW_COLOUR_2}Intensiteettiarvosana: {BLACK}{COMMA2DP32} (approx.) -STR_2313 :{WINDOW_COLOUR_2}Pahoinvointiarvosana: {BLACK}{COMMA2DP32} (approx.) -STR_2314 :{WINDOW_COLOUR_2}Ajelun pituus: {BLACK}{STRINGID} +STR_2311 :{WINDOW_COLOUR_2}Huvitustaso: {BLACK}{COMMA2DP32} (arvioitu) +STR_2312 :{WINDOW_COLOUR_2}Jännitystaso: {BLACK}{COMMA2DP32} (arvioitu) +STR_2313 :{WINDOW_COLOUR_2}Pahoinvointitaso: {BLACK}{COMMA2DP32} (arvioitu) +STR_2314 :{WINDOW_COLOUR_2}Radan pituus: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Kustannus: {BLACK}noin {CURRENCY} STR_2316 :{WINDOW_COLOUR_2}Tilaa tarvitaan: {BLACK}{COMMA16} x {COMMA16} neliötä STR_2321 :{WINDOW_COLOUR_2}Laitteiden/kohteiden määrä: {BLACK}{COMMA16} -STR_2322 :{WINDOW_COLOUR_2}Henkilökunta: {BLACK}{COMMA16} +STR_2322 :{WINDOW_COLOUR_2}Henkilöstö: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Puiston koko: {BLACK}{COMMA32}m² -STR_2324 :{WINDOW_COLOUR_2}Puiston koko: {BLACK}{COMMA32}sq.ft. -STR_2325 :Osta maata laajentaakseen puistoa -STR_2326 :Osta rakennusoikeudet maan päälle tai alle puiston ulkopuolella +STR_2324 :{WINDOW_COLOUR_2}Puiston koko: {BLACK}{COMMA32}ft² +STR_2325 :Osta maata puiston laajennukseen +STR_2326 :Osta maanalainen tai -päällinen rakennuslupa puiston ulkopuolelle STR_2327 :Asetukset STR_2328 :{WINDOW_COLOUR_2}Valuutta: STR_2329 :{WINDOW_COLOUR_2}Etäisyys ja nopeus: @@ -1693,7 +1694,7 @@ STR_2334 :Punta (£) STR_2335 :Dollari ($) STR_2336 :Frangi (F) STR_2337 :Saksanmarkka (DM) -STR_2338 :Jen (¥) +STR_2338 :Jeni (¥) STR_2339 :Peseta (Pts) STR_2340 :Liira (L) STR_2341 :Guldeni (ƒ) @@ -1702,22 +1703,22 @@ STR_2343 :Euro (€) STR_2344 :Brittiläinen STR_2345 :Metrinen STR_2347 :{RED}{STRINGID} on hukkunut! -STR_2348 :Näytä tämän henkilökunnan jäsenen tarkemmat tiedot -STR_2349 :{WINDOW_COLOUR_2}Palkat: {BLACK}{CURRENCY} per kuukausi +STR_2348 :Näytä tämän henkilöstön jäsenen tarkemmat tiedot +STR_2349 :{WINDOW_COLOUR_2}Palkka: {BLACK}{CURRENCY} per kuukausi STR_2350 :{WINDOW_COLOUR_2}Työllistetty: {BLACK}{MONTHYEAR} -STR_2351 :{WINDOW_COLOUR_2}Nurmikkoa ajettu: {BLACK}{COMMA16} -STR_2352 :{WINDOW_COLOUR_2}Puutarhaa kasteltu: {BLACK}{COMMA16} -STR_2353 :{WINDOW_COLOUR_2}Törkyä harjattu: {BLACK}{COMMA16} -STR_2354 :{WINDOW_COLOUR_2}Roskakoria tyhjennetty: {BLACK}{COMMA16} -STR_2355 :{WINDOW_COLOUR_2}Ajelua korjattu: {BLACK}{COMMA16} -STR_2356 :{WINDOW_COLOUR_2}Ajelua tarkistettu: {BLACK}{COMMA16} +STR_2351 :{WINDOW_COLOUR_2}Nurmikkoja ajettu: {BLACK}{COMMA16} +STR_2352 :{WINDOW_COLOUR_2}Kukkia kasteltu: {BLACK}{COMMA16} +STR_2353 :{WINDOW_COLOUR_2}Törkyjä harjattu: {BLACK}{COMMA16} +STR_2354 :{WINDOW_COLOUR_2}Roskakoreja tyhjennetty: {BLACK}{COMMA16} +STR_2355 :{WINDOW_COLOUR_2}Laitteita korjattu: {BLACK}{COMMA16} +STR_2356 :{WINDOW_COLOUR_2}Laitteita tarkastettu: {BLACK}{COMMA16} STR_2358 :Yksiköt STR_2359 :Oikeat arvot -STR_2360 :{WINDOW_COLOUR_2}Näytön tarkkuus -STR_2361 :Maan pehmennys -STR_2362 :Kytke maan ruutujen pehmennys päälle/pois -STR_2363 :Ruudukko maan päällä -STR_2364 :Kytke maan päällinen ruudukko päälle/pois +STR_2360 :{WINDOW_COLOUR_2}Näytön tarkkuus: +STR_2361 :Maaston pehmennys +STR_2362 :Kytke maaston ruutujen pehmennys päälle/pois +STR_2363 :Ruudukko maaston päällä +STR_2364 :Kytke maastoruudukko päälle/pois STR_2365 :Pankki ei suostu korottamaan lainaasi! STR_2366 :Celsius (°C) STR_2367 :Fahrenheit (°F) @@ -1729,8 +1730,8 @@ STR_2372 :Matala STR_2373 :Keski STR_2374 :Korkea STR_2375 :Todella korkea -STR_2376 :Extreme -STR_2377 :Ultra-Extreme +STR_2376 :Äärimmäinen +STR_2377 :Ultra-äärimmäinen STR_2378 :Säädä pienempää maa-aluetta STR_2379 :Säädä suurempaa maa-aluetta STR_2380 :Säädä pienempää vesialuetta @@ -1739,88 +1740,88 @@ STR_2382 :Maa STR_2383 :Vesi STR_2384 :{WINDOW_COLOUR_2}Tavoitteesi: STR_2385 :{BLACK}Ei mitään -STR_2386 :{BLACK}Puistossasi tulee olla vähintään {COMMA16} vierasta {MONTHYEAR} loppuun mennessä ja puiston arvosanan tulee olla vähintään 600 +STR_2386 :{BLACK}Puistossasi tulee olla vähintään {COMMA16} kävijää {MONTHYEAR} loppuun mennessä ja puiston tason tulee olla vähintään 600 STR_2387 :{BLACK}Saavuta puiston arvoksi vähintään {POP16}{POP16}{CURRENCY} vuoden {PUSH16}{PUSH16}{PUSH16}{MONTHYEAR} loppuun mennessä STR_2388 :{BLACK}Pidä hauskaa! STR_2389 :{BLACK}Rakenna niin hyvä {STRINGID} kuin voit! -STR_2390 :{BLACK}Puistossasi tulee olla 10 eri tyyppistä toiminnassa olevaa vuoristorataa joiden innostavuus on vähintään 6.00 -STR_2391 :{BLACK}Puistossasi tulee olla vähintään {COMMA16} vierasta, eikä puiston arvosana saa pudota alle 700 hetkeksikään! +STR_2390 :{BLACK}Puistossasi tulee olla 10 eri tyyppistä toiminnassa olevaa vuoristorataa joiden huvitustaso on vähintään 6.00 +STR_2391 :{BLACK}Puistossasi tulee olla vähintään {COMMA16} kävijää, eikä puiston taso saa pudota hetkeksikään alle 700:n! STR_2392 :{BLACK}Sinun tulee saada {POP16}{POP16}{CURRENCY} kuukausituloja laitteiden lipputuloista -STR_2393 :{BLACK}Puistossasi tulee olla 10 eri tyyppistä toiminnassa olevaa vuoristorataa, joiden pitää olla vähintään {LENGTH} pitkiä ja joiden innostavuus on vähintään 7.00 -STR_2394 :{BLACK}Viimeistele puiston 5 osittain rakennettua vuoristorataa niin, että jokaisen innostavuus on vähintään {POP16}{POP16}{COMMA2DP32} +STR_2393 :{BLACK}Puistossasi tulee olla 10 eri tyyppistä toiminnassa olevaa vuoristorataa, joiden pitää olla vähintään {LENGTH} pitkiä ja joiden huvitustaso on vähintään 7.00 +STR_2394 :{BLACK}Viimeistele puiston 5 osittain rakennettua vuoristorataa niin, että jokaisen huvitustaso on vähintään {POP16}{POP16}{COMMA2DP32} STR_2395 :{BLACK}Maksa lainasi takaisin ja saavuta puistolle arvo {POP16}{POP16}{CURRENCY} STR_2396 :{BLACK}Sinun tulee saada {POP16}{POP16}{CURRENCY} kuukausituloja ruoan, juomien ja tavaroiden myynnistä STR_2397 :Ei mitään -STR_2398 :Vieraiden määrä tiettynä päivänä +STR_2398 :Kävijöiden määrä tiettynä päivänä STR_2399 :Puiston arvo tiettynä päivänä STR_2400 :Pidä hauskaa STR_2401 :Rakenna parhaat radat joita voit STR_2402 :Rakenna 10 vuoristorataa -STR_2403 :Vieraiden määrä puistossa +STR_2403 :Kävijöiden määrä puistossa STR_2404 :Kuukausitulo laitteiden tuloista STR_2405 :Rakenna 10 vuoristorataa tietyssä ajassa STR_2406 :Rakenna valmiiksi 5 vuoristorataa STR_2407 :Maksa laina pois ja saavuta tietty puiston arvo -STR_2408 :Kuukausitulo ruuasta/kauppatavaroista -STR_2409 :{WINDOW_COLOUR_2}Markkinointikampanjoja käynnissä +STR_2408 :Kuukausitulo ruoasta/kauppatavaroista +STR_2409 :{WINDOW_COLOUR_2}Käynnissä olevat markkinointikampanjat STR_2410 :{BLACK}Ei mitään -STR_2411 :{WINDOW_COLOUR_2}Markkinointikampanjoja saatavilla +STR_2411 :{WINDOW_COLOUR_2}Saatavilla olevat markkinointikampanjat STR_2412 :Aloita tämä markkinointikampanja STR_2413 :{BLACK}({CURRENCY2DP} viikossa) STR_2414 :(Ei valittu) -STR_2415 :{WINDOW_COLOUR_2}Ajelu: +STR_2415 :{WINDOW_COLOUR_2}Laite: STR_2416 :{WINDOW_COLOUR_2}Esine: STR_2417 :{WINDOW_COLOUR_2}Kesto: -STR_2418 :Vapaa pääsy laitteeseen {STRINGID} -STR_2419 :Vapaa ajelu laitteessa {STRINGID} -STR_2420 :Puolen hinnan pääsy laitteeseen {STRINGID} +STR_2418 :Vapaa pääsy puistoon {STRINGID} +STR_2419 :Vapaa pääsy laitteeseen {STRINGID} +STR_2420 :Puolen hinnan pääsy puistoon {STRINGID} STR_2421 :Ilmainen {STRINGID} -STR_2424 :{WINDOW_COLOUR_2}Vapaa sisäänpääsy -kuponkeja -STR_2425 :{WINDOW_COLOUR_2}Ilmainen ajelu tietyssä laitteessa -kuponkeja -STR_2426 :{WINDOW_COLOUR_2}Puolen hinnan sisäänpääsy -kuponkeja -STR_2427 :{WINDOW_COLOUR_2}Ilmaisen ruoan tai juoman kuponkeja +STR_2424 :{WINDOW_COLOUR_2}Kuponkeja ilmaiseen sisäänpääsyyn +STR_2425 :{WINDOW_COLOUR_2}Kuponkeja ilmaiseen pääsyyn tiettyyn laitteeseen +STR_2426 :{WINDOW_COLOUR_2}Kuponkeja sisäänpääsyyn puoleen hintaan +STR_2427 :{WINDOW_COLOUR_2}Kuponkeja ilmaiseen ruokaan tai juomaan STR_2428 :{WINDOW_COLOUR_2}Mainoskampanja puistollesi STR_2429 :{WINDOW_COLOUR_2}Mainoskampanja tietylle laitteelle -STR_2430 :{BLACK}Ilmaiskuponkeja kohteeseen {STRINGID} +STR_2430 :{BLACK}Ilmaiskuponkeja puistoon {STRINGID} STR_2431 :{BLACK}Ilmaiskuponkeja laitteeseen {STRINGID} -STR_2432 :{BLACK}Puolen hinnan kuponkeja laitteeseen {STRINGID} -STR_2433 :{BLACK}Kuponkeja joilla saa ilmaisen {STRINGID} -STR_2434 :{BLACK}Mainoskampanja {STRINGID}:n mainostamiseksi -STR_2435 :{BLACK}Mainoskampanja {STRINGID}:n mainostamiseksi +STR_2432 :{BLACK}Puolen hinnan kuponkeja puistoon {STRINGID} +STR_2433 :{BLACK}Kuponkeja, joilla saa ilmaisia {STRINGID} +STR_2434 :{BLACK}Mainoskampanja puistolle {STRINGID} +STR_2435 :{BLACK}Mainoskampanja laitteelle {STRINGID} STR_2436 :1 viikko STR_2443 :{WINDOW_COLOUR_2}Viikottainen kustannus: {BLACK}{CURRENCY2DP} STR_2444 :{WINDOW_COLOUR_2}Kokonaiskustannus: {BLACK}{CURRENCY2DP} STR_2445 :Aloita tämä markkinointikampanja -STR_2446 :{YELLOW}Markkinointikampanja ilmaisille sisäänpääsyille puistoosi on loppunut -STR_2447 :{YELLOW}Markkinointikampanja ilmainen ajelu laitteella {STRINGID} on loppunut -STR_2448 :{YELLOW}Markkinointikampanja sisäänpääsy puoleen hintaan puistoosi on loppunut -STR_2449 :{YELLOW}Markkinointikampanja ilmaiselle {STRINGID}:lle on loppunut +STR_2446 :{YELLOW}Markkinointikampanjasi ilmaiseen sisäänpääsyyn on loppunut +STR_2447 :{YELLOW}Markkinointikampanjasi ilmaiseen pääsyyn laitteeseen {STRINGID} on loppunut +STR_2448 :{YELLOW}Markkinointikampanjasi sisäänpääsyyn puoleen hintaan on loppunut +STR_2449 :{YELLOW}Markkinointikampanjasi ilmaisia {STRINGID} varten on loppunut STR_2450 :{YELLOW}Mainoskampanjasi puistolle on loppunut STR_2451 :{YELLOW}Mainoskampanjasi laitteelle {STRINGID} on loppunut -STR_2452 :{WINDOW_COLOUR_2}Raha (less loan): {BLACK}{CURRENCY2DP} -STR_2453 :{WINDOW_COLOUR_2}Raha (less loan): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2452 :{WINDOW_COLOUR_2}Varat (miinus velka): {BLACK}{CURRENCY2DP} +STR_2453 :{WINDOW_COLOUR_2}Varat (miinus velka): {RED}{CURRENCY2DP} +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Näytä taloustiedot -STR_2458 :Näytä kuvaaja rahan määrästä (less loan) over time +STR_2458 :Näytä kuvaaja rahan määrästä (miinus velka) ajan myötä STR_2459 :Näytä kuvaaja puiston arvosta STR_2460 :Näytä kuvaaja viikottaisesta tuotosta STR_2461 :Näytä markkinointikampanjat STR_2462 :Näytä puiston sisäänkäynti -STR_2463 :Näytä kuvaaja puiston arvosanasta -STR_2464 :Näytä kuvaaja vierasmääristä +STR_2463 :Näytä kuvaaja puiston tasosta +STR_2464 :Näytä kuvaaja kävijämääristä STR_2465 :Näytä sisäänpääsyhinta ja -tiedot STR_2466 :Näytä puiston tilastot STR_2467 :Näytä pelin tavoitteet STR_2468 :Näytä viimeiset palkinnot mitä tämä puisto on saanut -STR_2469 :Valitse tutkinnan ja kehityksen taso -STR_2470 :Kehitä uusia transportaatiolaitteita +STR_2469 :Valitse kehityksen taso +STR_2470 :Kehitä uusia kulkuvälineitä STR_2471 :Kehitä uusia lempeitä laitteita STR_2472 :Kehitä uusia vuoristoratoja STR_2473 :Kehitä uusia jännittäviä laitteita STR_2474 :Kehitä uusia vesilaitteita -STR_2475 :Kehitä uusia Kauppoja/Kojuja +STR_2475 :Kehitä uusia kojuja STR_2476 :Kehitä maisemointia ja teemausta -STR_2477 :Valitse tämän laitteen/kohteen toimintamoodi +STR_2477 :Valitse tämän laitteen/kohteen toimintatila STR_2478 :Näytä nopeuden kuvaaja ajalle STR_2479 :Näytä korkeuden kuvaaja ajalle STR_2480 :Näytä pystysuoran kiihtyvyyden kuvaaja ajalle @@ -1828,8 +1829,8 @@ STR_2481 :Näytä poikittaisen kiihtyvyyden kuvaaja ajalle STR_2482 :Tuotto: {CURRENCY} viikossa, puiston arvo: {CURRENCY} STR_2483 :{WINDOW_COLOUR_2}Viikottainen tuotto: {BLACK}+{CURRENCY2DP} STR_2484 :{WINDOW_COLOUR_2}Viikottainen tuotto: {RED}{CURRENCY2DP} -STR_2487 :Näytä vieraiden 'oikeat' nimet -STR_2488 :Vaihda vieraiden nimen ja numeron näyttämisen välillä +STR_2487 :Näytä kävijöiden ”oikeat” nimet +STR_2488 :Vaihda kävijöiden nimen ja numeron näyttämisen välillä STR_2489 :Pikanäppäimet… STR_2490 :Näppäimistön pikanäppäimet STR_2491 :Palauta näppäinasetukset @@ -1838,34 +1839,34 @@ STR_2493 :Sulje päällimmäinen ikkuna STR_2494 :Sulje kaikki ikkunat STR_2495 :Poistu rakennustilasta STR_2496 :Pysäytä peli -STR_2497 :Zoomaa näkymää ulos -STR_2498 :Zoomaa näkymää sisään +STR_2497 :Loitonna näkymää +STR_2498 :Lähennä näkymää STR_2499 :Käännä näkymää myötäpäivään STR_2500 :Käännä rakennettavaa tavaraa STR_2501 :Maanalainen näkymä -kytkin -STR_2502 :Maanpinnan näkyvyys -kytkin -STR_2503 :Pystysuorien seinämien näkyvyys -kytkin -STR_2504 :Läpinäkyvät laitteet -kytkin -STR_2505 :Läpinäkyvä maisemointi -kytkin +STR_2502 :Poista peruskallio -kytkin +STR_2503 :Poista pystysuorat pinnat -kytkin +STR_2504 :Näe laitteiden läpi -kytkin +STR_2505 :Näe maisemoinnin läpi -kytkin STR_2506 :Näkymättömät tukirakenteet -kytkin STR_2507 :Näkymättömät kävijät -kytkin -STR_2508 :Korkeusmerkit maanpinnalla -kytkin -STR_2509 :Korkeusmerkit radoilla -kytkin -STR_2510 :Korkeusmerkit kävelyteillä -kytkin +STR_2508 :Korkeusmerkinnät maanpinnassa -kytkin +STR_2509 :Korkeusmerkinnät radoissa -kytkin +STR_2510 :Korkeusmerkinnät poluissa -kytkin STR_2511 :Säädä maata STR_2512 :Säädä vettä -STR_2513 :Rakenna maisemaa +STR_2513 :Rakenna maisemointeja STR_2514 :Rakenna polkuja STR_2515 :Rakenna uusi laite STR_2516 :Näytä taloustiedot -STR_2517 :Näytä tutkimustyötiedot -STR_2518 :Näytä ajelulista +STR_2517 :Näytä kehitystiedot +STR_2518 :Näytä laitelista STR_2519 :Näytä puiston tiedot -STR_2520 :Näytä vieraslista +STR_2520 :Näytä kävijälista STR_2521 :Näytä henkilöstölista -STR_2522 :Näytä viimeiset viestit +STR_2522 :Näytä uusimmat ilmoitukset STR_2523 :Näytä kartta -STR_2524 :Kuvankaappaus +STR_2524 :Ruudunkaappaus STR_2533 :Askelpalautin STR_2534 :Tab STR_2537 :Clear @@ -1908,69 +1909,68 @@ STR_2635 :NumPad . STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll -STR_2680 :Kaikki tutkimustyö on tehty -STR_2681 :{MEDIUMFONT}{BLACK}Saat {CURRENCY} lisää rahaa +STR_2680 :Kaikki kehitys on saatu päätökseen STR_2684 :Suuri kävijäryhmä saapuu -STR_2685 :Simplex Noise Parameters +STR_2685 :Simplex-melun parametrit STR_2686 :Matala: STR_2687 :Korkea: -STR_2688 :Base Frequency: -STR_2689 :Octaves: +STR_2688 :Perustaajuus: +STR_2689 :Oktaaveja: STR_2690 :Kartan luonti -STR_2691 :Peruskorkeus: -STR_2692 :Vedentaso: +STR_2691 :Pohjakorkeus: +STR_2692 :Veden taso: STR_2693 :Ympäristö: STR_2694 :Luo STR_2695 :Satunnainen ympäristö -STR_2696 :Aseta puita -STR_2700 :Automaattisen tallennuksen tiheys: -STR_2701 :1 min välein -STR_2702 :5 min välein -STR_2703 :15 min välein -STR_2704 :30 min välein +STR_2696 :Sijoita puita +STR_2700 :Autom. tallennus: +STR_2701 :1 minuutin välein +STR_2702 :5 minuutin välein +STR_2703 :15 minuutin välein +STR_2704 :30 minuutin välein STR_2705 :Tunnin välein STR_2706 :Ei koskaan STR_2707 :Avaa uusi ikkuna STR_2708 :{WINDOW_COLOUR_1}Oletko varma, että haluat korvata tiedoston {STRINGID}? STR_2709 :Korvaa -STR_2710 :Kirjoita tiedoston nimi. +STR_2710 :Kirjoita tiedoston nimi STR_2718 :(ylös) STR_2719 :(uusi tiedosto) STR_2720 :{UINT16}sek -STR_2721 :{UINT16}sekuntia +STR_2721 :{UINT16}sek STR_2722 :{UINT16}min:{UINT16}sek -STR_2723 :{UINT16}min:{UINT16}sekuntia -STR_2724 :{UINT16}minuuttia:{UINT16}sek -STR_2725 :{UINT16}minuuttia:{UINT16}sekuntia +STR_2723 :{UINT16}min:{UINT16}sek +STR_2724 :{UINT16}min:{UINT16}sek +STR_2725 :{UINT16}min:{UINT16}sek STR_2726 :{UINT16}min -STR_2727 :{UINT16}minuuttia -STR_2728 :{UINT16}tunti:{UINT16}min -STR_2729 :{UINT16}tunti:{UINT16}minuuttia -STR_2730 :{UINT16}tuntia:{UINT16}min -STR_2731 :{UINT16}tuntia:{UINT16}minuuttias +STR_2727 :{UINT16}min +STR_2728 :{UINT16}t:{UINT16}min +STR_2729 :{UINT16}t:{UINT16}min +STR_2730 :{UINT16}t:{UINT16}min +STR_2731 :{UINT16}t:{UINT16}min STR_2732 :{COMMA32}jalka STR_2733 :{COMMA32}m STR_2734 :{COMMA16}mph STR_2735 :{COMMA16}km/h -STR_2736 :{MONTH}, Vuosi {COMMA16} -STR_2737 :{STRINGID} {MONTH}, Vuosi {COMMA16} -STR_2738 :Otsikkoruudun musiikki: +STR_2736 :{MONTH}n, vuoden {COMMA16} +STR_2737 :{STRINGID} {MONTH}ta, vuosi {COMMA16} +STR_2738 :Päävalikon musiikki: STR_2739 :Ei mitään STR_2740 :RollerCoaster Tycoon 1 STR_2741 :RollerCoaster Tycoon 2 STR_2742 :css50.dat ei löydy STR_2743 :Kopioi data\css17.dat RCT1-asennuksestasi tiedostoon data\css50.dat RCT2-asennuksessasi. -STR_2749 :My new scenario +STR_2749 :Uusi skenaario # New strings used in the cheats window previously these were ??? STR_2750 :Siirrä kaikki esineet ylös STR_2751 :Siirrä kaikki esineet alas STR_2752 :Tyhjennä ruoho -STR_2753 :Leikattu ruoho +STR_2753 :Leikkaa ruoho STR_2754 :Kastele kasvit -STR_2755 :Korjaa tärvelöinti +STR_2755 :Korjaa ilkivalta STR_2756 :Poista roskat STR_2763 :??? -STR_2765 :Large Tram +STR_2765 :Suuri raitiovaunu STR_2766 :Voita skenaario STR_2767 :Jäädytä ilmasto STR_2769 :Avaa puisto @@ -1991,13 +1991,13 @@ STR_2784 :Muuta näppäimistön pikanäppäintä STR_2785 :{WINDOW_COLOUR_2}Paina uusi näppäinyhdistelmä toiminnolle:{NEWLINE}“{STRINGID}” STR_2786 :Paina pikanäppäimen kuvausta valitaksesi uuden näppäinyhdistelmän STR_2787 :{WINDOW_COLOUR_2}Puiston arvo: {BLACK}{CURRENCY} -STR_2788 :{WINDOW_COLOUR_2}Onnittelut !{NEWLINE}{BLACK}Saavutit tavoitteesi ! Yhtiösi arvo: {CURRENCY} ! -STR_2789 :{WINDOW_COLOUR_2}Epäonnistuit tavoitteessasi ! -STR_2790 :Enter name into scenario chart +STR_2788 :{WINDOW_COLOUR_2}Onnittelut!{NEWLINE}{BLACK}Saavutit tavoitteesi! Yhtiösi arvo: {CURRENCY}! +STR_2789 :{WINDOW_COLOUR_2}Epäonnistuit tavoitteessasi! +STR_2790 :Anna nimi skenaariotaulukkoon STR_2791 :Anna nimi -STR_2792 :Please enter your name for the scenario chart: -STR_2793 :{SMALLFONT}(Suorittanut {STRINGID}) -STR_2794 :{WINDOW_COLOUR_2}Suorittanut: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} Yhtiön arvolla: {BLACK}{CURRENCY} +STR_2792 :Anna nimesi skenaariotaulukkoa varten: +STR_2793 :(Suorittanut {STRINGID}) +STR_2794 :{WINDOW_COLOUR_2}Suorittanut: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2}Yhtiön arvolla: {BLACK}{CURRENCY} STR_2795 :Järjestä STR_2796 :Järjestä laitelistaus valitun tietotyypin mukaan STR_2797 :Vieritä näkymää kun hiiri on näytön reunassa @@ -2007,75 +2007,75 @@ STR_2800 :{WINDOW_COLOUR_2}Sisäänpääsyt: {BLACK}{COMMA32} STR_2801 :{WINDOW_COLOUR_2}Tulot sisäänpääsyistä: {BLACK}{CURRENCY2DP} STR_2802 :Kartta STR_2803 :Näytä nämä kävijät kartalla -STR_2804 :Näytä nämä henkilökunnan jäsenet kartalla +STR_2804 :Näytä nämä henkilöstön jäsenet kartalla STR_2805 :Näytä puiston kartta -STR_2806 :{RED}Vieraat valittavat puistosi kuvottavista poluista{NEWLINE}Tarkista ja uudelleenjärjestele yleismiestesi sijainnit -STR_2807 :{RED}Vieraat valittavat roskan määrästä puistossasi{NEWLINE}Tarkista ja uudelleenjärjestele yleismiestesi sijainnit -STR_2808 :{RED}Vieraat valittavat puistosi vandalismista{NEWLINE}Tarkista ja uudelleenjärjestele yleismiestesi sijainnit -STR_2809 :{RED}Vieraat ovat nälkäisiä eivätkä löydä paikkaa josta saisi ruokaa -STR_2810 :{RED}Vieraat ovat janoisia eivätkä löydä paikkaa josta saisi juotavaa -STR_2811 :{RED}Vieraat valittavat etteivät löydä vessaa puistostasi -STR_2812 :{RED}Vieraat eksyvät tai jäävät jumiink{NEWLINE}Tarkista jalkakäytäväsi että vieraat löytävä tiensä paikasta toiseen +STR_2806 :{RED}Kävijät valittavat puistosi kuvottavista poluista{NEWLINE}Tarkista ja uudelleenjärjestele yleismiestesi sijainnit +STR_2807 :{RED}Kävijät valittavat roskan määrästä puistossasi{NEWLINE}Tarkista ja uudelleenjärjestele yleismiestesi sijainnit +STR_2808 :{RED}Kävijät valittavat puistosi ilkivallasta{NEWLINE}Tarkista ja uudelleenjärjestele yleismiestesi sijainnit +STR_2809 :{RED}Kävijät ovat nälkäisiä eivätkä löydä paikkaa josta saisi ruokaa +STR_2810 :{RED}Kävijät ovat janoisia eivätkä löydä paikkaa josta saisi juotavaa +STR_2811 :{RED}Kävijät valittavat etteivät löydä vessaa puistostasi +STR_2812 :{RED}Kävijät eksyvät tai jäävät jumiink{NEWLINE}Tarkista polkusi että kävijät löytävä tiensä paikasta toiseen STR_2813 :{RED}Sisäänpääsyn hinta on liian korkea!{NEWLINE}Laske sisäänpääsyhintaa tai paranna puiston arvoa jotta puistosi houkuttelee enemmän kävijöitä STR_2814 :{WINDOW_COLOUR_2}Sotkuisin puisto -palkinto STR_2815 :{WINDOW_COLOUR_2}Siistein puisto -palkinto -STR_2816 :{WINDOW_COLOUR_2}Parhaat vuoristoradat -palkinto +STR_2816 :{WINDOW_COLOUR_2}Parhaimmat vuoristoradat -palkinto STR_2817 :{WINDOW_COLOUR_2}Paras hinta/laatu-suhde -palkinto STR_2818 :{WINDOW_COLOUR_2}Kaunein puisto -palkinto STR_2819 :{WINDOW_COLOUR_2}Huonoin hinta/laatu-suhde -palkinto STR_2820 :{WINDOW_COLOUR_2}Turvallisin puisto -palkinto STR_2821 :{WINDOW_COLOUR_2}Paras henkilöstö -palkinto -STR_2822 :{WINDOW_COLOUR_2}Parhaat puistoruuat -palkinto -STR_2823 :{WINDOW_COLOUR_2}Huonoimmat puistoruuat -palkinto -STR_2824 :{WINDOW_COLOUR_2}Parhaat puistovessat -palkinto +STR_2822 :{WINDOW_COLOUR_2}Parhaat ruoat -palkinto +STR_2823 :{WINDOW_COLOUR_2}Huonoimmat ruoat -palkinto +STR_2824 :{WINDOW_COLOUR_2}Parhaat vessat -palkinto STR_2825 :{WINDOW_COLOUR_2}Pettymyksellisin puisto -palkinto STR_2826 :{WINDOW_COLOUR_2}Parhaat vesilaitteet -palkinto -STR_2827 :{WINDOW_COLOUR_2}Parhaat kustomoidut laitteet -palkinto +STR_2827 :{WINDOW_COLOUR_2}Parhaat mukautetut laitteet -palkinto STR_2828 :{WINDOW_COLOUR_2}Häikäisevimmät värivalinnat -palkinto -STR_2829 :{WINDOW_COLOUR_2}Sekavin kartta -palkinto +STR_2829 :{WINDOW_COLOUR_2}Sekavin asettelu -palkinto STR_2830 :{WINDOW_COLOUR_2}Parhaat lempeät laitteet -palkinto -STR_2831 :{TOPAZ}Puistosi sai 'Maan sotkuisin puisto' -palkinnon! -STR_2832 :{TOPAZ}Puistosi sai 'Maan Siistein puisto' -palkinnon! -STR_2833 :{TOPAZ}Puistosi sai 'Puisto parhaimmilla vuoristoradoilla' -palkinnon! -STR_2834 :{TOPAZ}Puistosi sai 'Maan paras hinta/laatu-suhde' -palkinnon! -STR_2835 :{TOPAZ}Puistosi sai 'Maan kaunein puisto' -palkinnon! -STR_2836 :{TOPAZ}Puistosi sai 'Maan huonoin hinta/laatu-suhde' -palkinnon! -STR_2837 :{TOPAZ}Puistosi sai 'Maan turvallisin puisto' -palkinnon! -STR_2838 :{TOPAZ}Puistosi sai 'Puisto parhaimmalla henkilöstöllä' -palkinnon! -STR_2839 :{TOPAZ}Puistosi sai 'Puisto maan parhaimmalla ruualla' -palkinnon! -STR_2840 :{TOPAZ}Puistosi sai 'Puisto maan huonoimmalla ruualla' -palkinnon! -STR_2841 :{TOPAZ}Puistosi sai 'Puisto maan parhaimmilla vessatiloilla' -palkinnon! -STR_2842 :{TOPAZ}Puistosi sai 'Maan pettymyksellisin puisto' -palkinnon! -STR_2843 :{TOPAZ}Puistosi sai 'Maan parhaat vesilaitteet' -palkinnon! -STR_2844 :{TOPAZ}Puistosi sai 'Parhaat kustomoidut laitteet' -palkinnon! -STR_2845 :{TOPAZ}Puistosi sai 'Häikäisevimmät värivalinnat' -palkinnon! -STR_2846 :{TOPAZ}Puistosi sai 'Sekavin kartta' -palkinnon! -STR_2847 :{TOPAZ}Puistosi sai 'Parhaat lempeät laitteet' -palkinnon! +STR_2831 :{TOPAZ}Puistosi sai ”Maan sotkuisin puisto” -palkinnon! +STR_2832 :{TOPAZ}Puistosi sai ”Maan siistein puisto” -palkinnon! +STR_2833 :{TOPAZ}Puistosi sai ”Parhaimmat vuoristoradat” -palkinnon! +STR_2834 :{TOPAZ}Puistosi sai ”Maan paras hinta/laatu-suhde” -palkinnon! +STR_2835 :{TOPAZ}Puistosi sai ”Maan kaunein puisto” -palkinnon! +STR_2836 :{TOPAZ}Puistosi sai ”Maan huonoin hinta/laatu-suhde” -palkinnon! +STR_2837 :{TOPAZ}Puistosi sai ”Maan turvallisin puisto” -palkinnon! +STR_2838 :{TOPAZ}Puistosi sai ”Paras henkilöstö” -palkinnon! +STR_2839 :{TOPAZ}Puistosi sai ”Maan parhaat ruoat” -palkinnon! +STR_2840 :{TOPAZ}Puistosi sai ”Maan huonoimmat ruoat” -palkinnon! +STR_2841 :{TOPAZ}Puistosi sai ”Maan parhaimmat vessat” -palkinnon! +STR_2842 :{TOPAZ}Puistosi sai ”Maan pettymyksellisin puisto” -palkinnon! +STR_2843 :{TOPAZ}Puistosi sai ”Maan parhaat vesilaitteet” -palkinnon! +STR_2844 :{TOPAZ}Puistosi sai ”Maan parhaat mukautetut laitteet” -palkinnon! +STR_2845 :{TOPAZ}Puistosi sai ”Häikäisevimmät värivalinnat” -palkinnon! +STR_2846 :{TOPAZ}Puistosi sai ”Sekavin asettelu” -palkinnon! +STR_2847 :{TOPAZ}Puistosi sai ”Maan parhaat lempeät laitteet” -palkinnon! STR_2848 :{WINDOW_COLOUR_2}Ei tuoreita palkintoja STR_2849 :Uusi skenaario asennettiin onnistuneesti -STR_2850 :Uusi ratasuunnitelma asennettiin onnistuneesti +STR_2850 :Uusi ratamalli asennettiin onnistuneesti STR_2851 :Skenaario on jo asennettu -STR_2852 :Ratasuunnitelma on jo asennettu -STR_2853 :Kiellettyä paikallisten viranomaisten mukaan! -STR_2854 :{RED}Kävijät eivät pääse laitteen {STRINGID} sisäänkäynnille !{NEWLINE}Rakenna polku sisäänkäynnille -STR_2855 :{RED}Laitteen {STRINGID} uloskäynnistä ei lähde polkua !{NEWLINE}Rakenna polku uloskäynniltä -STR_2858 :Markkinointikampanjaa ei voitu aloittaa… +STR_2852 :Ratamalli on jo asennettu +STR_2853 :Paikallisviranomaiset eivät salli! +STR_2854 :{RED}Kävijät eivät pääse laitteen {STRINGID} sisäänkäynnille!{NEWLINE}Rakenna polku sisäänkäynnille +STR_2855 :{RED}Laitteen {STRINGID} uloskäynnistä ei lähde polkua!{NEWLINE}Rakenna polku uloskäynniltä +STR_2858 :Markkinointikampanjaa ei voi aloittaa… STR_2861 :{WINDOW_COLOUR_2}Lisensoinut Infogrames Interactive Inc. -STR_2862 :Music acknowledgements… -STR_2863 :Music acknowledgements -STR_2864 :{WINDOW_COLOUR_2}March - Children of the Regiment: (Fucik) non copyright +STR_2862 :Musiikin lähdemaininnat… +STR_2863 :Musiikin lähdemaininnat +STR_2864 :{WINDOW_COLOUR_2}March - Children of the Regiment: (Fucik) tekijänoikeuden ulkopuolella STR_2865 :{WINDOW_COLOUR_2}Heyken's Serenade: (J.Heyken) British Standard Music Coy; GEMA, BRITICO -STR_2866 :{WINDOW_COLOUR_2}In Continental Mood: (Composer unknown) Copyright Control -STR_2867 :{WINDOW_COLOUR_2}Wedding Journey: (Perinteinen) -STR_2868 :{WINDOW_COLOUR_2}Tales from the Vienna Woods: (Johann Strauss) non copyright -STR_2869 :{WINDOW_COLOUR_2}Slavonic Dance: (Perinteinen) -STR_2870 :{WINDOW_COLOUR_2}Das Alpenhorn: (Perinteinen) -STR_2871 :{WINDOW_COLOUR_2}The Blond Sailor: (Perinteinen) -STR_2872 :{WINDOW_COLOUR_2}Overture - Poet and Peasant: (Suppe) non copyright -STR_2873 :{WINDOW_COLOUR_2}Waltz Medley: (Johann Strauss) non copyright -STR_2874 :{WINDOW_COLOUR_2}Bella Bella Bimba: (Perinteinen) -STR_2875 :{WINDOW_COLOUR_2}Original recordings (P) 1976 C.J.Mears Organization, used with consent -STR_2876 :{WINDOW_COLOUR_2}RollerCoaster Tycoon 2 Title Music: (Allister Brimble) copyright © Chris Sawyer +STR_2866 :{WINDOW_COLOUR_2}In Continental Mood: (säveltäjä tuntematon) Copyright Control +STR_2867 :{WINDOW_COLOUR_2}Wedding Journey: (perinteinen) +STR_2868 :{WINDOW_COLOUR_2}Tales from the Vienna Woods: (Johann Strauss) tekijänoikeuden ulkopuolella +STR_2869 :{WINDOW_COLOUR_2}Slavonic Dance: (perinteinen) +STR_2870 :{WINDOW_COLOUR_2}Das Alpenhorn: (perinteinen) +STR_2871 :{WINDOW_COLOUR_2}The Blond Sailor: (perinteinen) +STR_2872 :{WINDOW_COLOUR_2}Overture - Poet and Peasant: (Suppe) tekijänoikeuden ulkopuolella +STR_2873 :{WINDOW_COLOUR_2}Waltz Medley: (Johann Strauss) tekijänoikeuden ulkopuolella +STR_2874 :{WINDOW_COLOUR_2}Bella Bella Bimba: (perinteinen) +STR_2875 :{WINDOW_COLOUR_2}Alkuperäiset nauhoitukset (P) 1976 C.J.Mears Organization, käytetty luvalla +STR_2876 :{WINDOW_COLOUR_2}RollerCoaster Tycoon 2 Title Music: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2877 :{WINDOW_COLOUR_2}Dodgems Beat: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2878 :{WINDOW_COLOUR_2}Mid Summer's Heat: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2879 :{WINDOW_COLOUR_2}Pharaoh's Tomb: (Allister Brimble) tekijänoikeus © Chris Sawyer @@ -2099,33 +2099,33 @@ STR_2896 :{WINDOW_COLOUR_2}Hypothermia: (Allister Brimble) tekijänoikeus STR_2897 :{WINDOW_COLOUR_2}Last Sleigh Ride: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2898 :{WINDOW_COLOUR_2}Pipes of Glencairn: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2899 :{WINDOW_COLOUR_2}Traffic Jam: (Allister Brimble) tekijänoikeus © Chris Sawyer -STR_2901 :{WINDOW_COLOUR_2}(Samples courtesy of Spectrasonics ”Liquid Grooves”) -STR_2902 :{WINDOW_COLOUR_2}Toccata: (C.M.Widor, played by Peter James Adcock) recording © Chris Sawyer +STR_2901 :{WINDOW_COLOUR_2}(Ääninäytteet Spectrasonicsin toimesta; ”Liquid Grooves”) +STR_2902 :{WINDOW_COLOUR_2}Toccata: (C.M.Widor, soittanut Peter James Adcock) nauhoitus © Chris Sawyer STR_2903 :{WINDOW_COLOUR_2}Space Rock: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2904 :{WINDOW_COLOUR_2}Manic Mechanic: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2905 :{WINDOW_COLOUR_2}Techno Torture: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2906 :{WINDOW_COLOUR_2}Sweat Dreams: (Allister Brimble) tekijänoikeus © Chris Sawyer STR_2907 :{WINDOW_COLOUR_2}What shall we do with the Drunken Sailor: (Anon/Allister Brimble) tekijänoikeus © Chris Sawyer -STR_2971 :Main colour scheme -STR_2972 :Alternative colour scheme 1 -STR_2973 :Alternative colour scheme 2 -STR_2974 :Alternative colour scheme 3 -STR_2975 :Select which colour scheme to change, or paint ride with -STR_2976 :Paint an individual area of this ride using the selected colour scheme +STR_2971 :Pääväriskeema +STR_2972 :Vaihtoehtoinen väriskeema 1 +STR_2973 :Vaihtoehtoinen väriskeema 2 +STR_2974 :Vaihtoehtoinen väriskeema 3 +STR_2975 :Valitse mitä skeemaa haluat muokata tai käyttää maalaukseen +STR_2976 :Maalaa yksittäinen osa tätä laitetta valitulla väriskeemalla STR_2977 :Henkilöstön jäsenen nimi STR_2978 :Anna tälle henkilöstön jäsenelle nimi: STR_2979 :Henkilöstön nimeäminen ei onnistu… -STR_2980 :Too many banners in game +STR_2980 :Pelissä on liikaa bannereita STR_2981 :{RED}Ei sisäänkäyntiä - - -STR_2982 :Banner text -STR_2983 :Enter new text for this banner: -STR_2984 :Can't set new text for banner… -STR_2985 :Banner -STR_2986 :Change text on banner -STR_2987 :Set this banner as a 'no-entry' sign for guests -STR_2988 :Demolish this banner +STR_2982 :Bannerin teksti +STR_2983 :Anna uusi teksti bannerille: +STR_2984 :Uutta tekstiä ei voi antaa bannerille… +STR_2985 :Banneri +STR_2986 :Muuta bannerin teksti +STR_2987 :Aseta tämä banneri ”ei sisäänpääsyä” -kyltiksi vieraille +STR_2988 :Romuta banneri STR_2989 :Valitse pääväri -STR_2990 :Valitse tekstille väri +STR_2990 :Valitse tekstin väri STR_2991 :Kyltti STR_2992 :Tekstikyltti STR_2993 :Anna teksti tälle kyltille: @@ -2147,42 +2147,42 @@ STR_3008 :{PEARLAQUA}ABC STR_3009 :{PALESILVER}ABC STR_3010 :Tiedoston lataus ei onnistunut… STR_3011 :Tiedosto sisältää virheellistä tietoa -STR_3012 :Dodgems beat style -STR_3013 :Fairground organ style -STR_3014 :Roman fanfare style -STR_3015 :Itämainen tyyli -STR_3016 :Marssilainen tyyli -STR_3017 :Viidakkorummut-tyyli -STR_3018 :Egyptiläinen tyyli -STR_3019 :Lelumaatyyli +STR_3012 :Törmäysautobiitin tyylinen +STR_3013 :Karusellimusiikin tyylinen +STR_3014 :Roomalaisfanfaarin tyylinen +STR_3015 :Itämaisen tyylinen +STR_3016 :Marsilaisen tyylinen +STR_3017 :Viidakkorumputyylinen +STR_3018 :Egyptiläisen tyylinen +STR_3019 :Lelumaatyylinen STR_3020 : -STR_3021 :Avaruustyyli -STR_3022 :Kauhutyyli -STR_3023 :Teknotyyli -STR_3024 :Hempeätyyli -STR_3025 :Kesätyyli -STR_3026 :Vesityyli -STR_3027 :Villilänsityyli -STR_3028 :Jurassic style -STR_3029 :Kivityyli -STR_3030 :Ragtime style -STR_3031 :Fantasiatyyli -STR_3032 :Kivityyli 2 -STR_3033 :Jäätyyli -STR_3034 :Lumityyli -STR_3035 :Custom music 1 -STR_3036 :Custom music 2 -STR_3037 :Keskiaikainen tyyli -STR_3038 :Kaupunkimainen tyyli -STR_3039 :Organ style -STR_3040 :Mekaaninen tyyli -STR_3041 :Modernityyli -STR_3042 :Merirosvotyyli -STR_3043 :Kivityyli 3 -STR_3044 :Karkkityyli +STR_3021 :Avaruustyylinen +STR_3022 :Kauhutyylinen +STR_3023 :Teknotyylinen +STR_3024 :Hempeän tyylinen +STR_3025 :Kesätyylinen +STR_3026 :Vesityylinen +STR_3027 :Villin lännen tyylinen +STR_3028 :Jurassisen tyylinen +STR_3029 :Rokkityylinen +STR_3030 :Ragtime-tyylinen +STR_3031 :Fantasiatyylinen +STR_3032 :Rokkityylinen 2 +STR_3033 :Jäätyylinen +STR_3034 :Lumityylinen +STR_3035 :Mukautettu musiikki 1 +STR_3036 :Mukautettu musiikki 2 +STR_3037 :Keskiaikaisen tyylinen +STR_3038 :Kaupunkimaisen tyylinen +STR_3039 :Urkutyylinen +STR_3040 :Mekaanisen tyylinen +STR_3041 :Modernintyylinen +STR_3042 :Merirosvotyylinen +STR_3043 :Rokkityylinen 3 +STR_3044 :Karkkityylinen STR_3045 :Valitse toistettavan musiikin tyyli -STR_3047 :Local authority forbids demolition or modifications to this ride -STR_3048 :Marketing campaigns forbidden by local authority +STR_3047 :Paikallisviranomaiset eivät salli tämän laitteen muuttelua tai romuttamista +STR_3048 :Paikallisviranomaiset eivät salli markkinointikampanjoita STR_3049 :Golf-reikä A STR_3050 :Golf-reikä B STR_3051 :Golf-reikä C @@ -2193,198 +2193,198 @@ STR_3058 :Tiiliseinät STR_3059 :Pensasaidat STR_3060 :Jääpalat STR_3061 :Puiset aidat -STR_3062 :Standard roller coaster track -STR_3063 :Water channel (track submerged) -STR_3064 :Aloittajan puistot +STR_3062 :Perusvuoristorata +STR_3063 :Vesikanava (vedenalainen rata) +STR_3064 :Aloittelijoiden puistot STR_3065 :Haastavat puistot -STR_3066 :Asiantuntijan puistot +STR_3066 :Asiantuntijoiden puistot STR_3067 :“Oikeat” puistot STR_3068 :Muut puistot -STR_3069 :Top Section -STR_3070 :Slope to Level -STR_3071 :{WINDOW_COLOUR_2}Sama hinta kaikkialla puistossa +STR_3069 :Yläosa +STR_3070 :Mäestä tasaiseen +STR_3071 :{WINDOW_COLOUR_2}Sama hinta koko puistossa STR_3072 :Valitse käytetäänkö samaa hintaa kaikkialla puistossa -STR_3073 :{RED}WARNING: Your park rating has dropped below 700 !{NEWLINE}If you haven't raised the park rating in 4 weeks, your park will be closed down -STR_3074 :{RED}WARNING: Your park rating is still below 700 !{NEWLINE}You have 3 weeks to raise the park rating -STR_3075 :{RED}WARNING: Your park rating is still below 700 !{NEWLINE}You have only 2 weeks to raise the park rating, or your park will be closed down -STR_3076 :{RED}FINAL WARNING: Your park rating is still below 700 !{NEWLINE}In just 7 days your park will be closed down unless you can raise the rating -STR_3077 :{RED}LAKKAUTUSTIEDOTE: Puistosi on suljettu ! -STR_3090 :Select style of entrance, exit, and station -STR_3091 :Ei ole sallittua poistaa tätä aluetta! -STR_3092 :You are not allowed to move or modify the station for this ride! +STR_3073 :{RED}VAROITUS: Puistosi taso on laskennut alle 700!{NEWLINE}Jos et pysty nostamaan puiston tasoa 4 viikon sisään, puistosi suljetaan +STR_3074 :{RED}VAROITUS: Puistosi taso on vieläkin alle 700!{NEWLINE}Sinulla on 3 viikkoa aikaa nostaa puiston tasoa +STR_3075 :{RED}VAROITUS: Puistosi taso on vieläkin alle 700!{NEWLINE}Sinulla on vain 2 viikkoa aikaa nostaa puiston tasoa, tai puistosi suljetaan +STR_3076 :{RED}VIIMEINEN VAROITUS: Puistosi taso on vieläkin alle 700!{NEWLINE}Puistosi suljetaan 7 päivän päästä jos et nosta puiston tasoa +STR_3077 :{RED}LAKKAUTUSTIEDOTE: Puistosi on suljettu! +STR_3090 :Valitse sisään- ja uloskäynnin ja aseman tyyli +STR_3091 :Tätä osaa ei ole lupaa poistaa! +STR_3092 :Tämän laitteen asemaa ei ole lupaa siirtää tai muokata! STR_3093 :{WINDOW_COLOUR_2}Suosikki: {BLACK}{STRINGID} STR_3094 :Ei saatavilla -STR_3095 :{WINDOW_COLOUR_2}Lift hill chain speed: +STR_3095 :{WINDOW_COLOUR_2}Nostomäen nopeus: STR_3096 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{VELOCITY} -STR_3097 :Select lift hill chain speed +STR_3097 :Valitse nostomäen nopeus STR_3099 :Valitse väri STR_3100 :Valitse toinen väri STR_3101 :Valitse kolmas väri -STR_3102 :Re-paint coloured scenery on landscape +STR_3102 :Maalaa tason maisemointiosia eri väriseksi STR_3103 :Tämän uudelleenvärittäminen ei onnistunut… -STR_3104 :Ajelulista -STR_3105 :List shops and stalls -STR_3106 :List information kiosks and other guest facilities +STR_3104 :Listaa laitteet +STR_3105 :Listaa kojut +STR_3106 :Listaa infokioskit ja muut palvelut STR_3107 :Sulje STR_3108 :Testi STR_3109 :Avaa -STR_3110 :{WINDOW_COLOUR_2}Block Sections: {BLACK}{COMMA16} -STR_3111 :Click on design to build it -STR_3112 :Click on design to rename or delete it -STR_3113 :Valitse toinen suunnitelma -STR_3114 :Go back to design selection window -STR_3115 :Save track design -STR_3116 :Save track design (Not possible until ride has been tested and statistics have been generated) +STR_3110 :{WINDOW_COLOUR_2}Lohko-osiot: {BLACK}{COMMA16} +STR_3111 :Klikkaa mallia rakentaaksesi sen +STR_3112 :Klikkaa mallia vaihtaaksesi sen nimeä tai poistaaksesi sen +STR_3113 :Valitse eri malli +STR_3114 :Palaa ratamallin valintaruutuun +STR_3115 :Tallenna ratamalli +STR_3116 :Tallenna ratamalli (ei mahdollista ennen kuin laite on testattu ja arvosanat annettu) STR_3117 :{BLACK}Kutsutaan mekaanikkoa… -STR_3118 :{BLACK}{STRINGID} menossa kohti ajelua -STR_3119 :{BLACK}{STRINGID} korjaamassa ajelua -STR_3120 :Locate nearest available mechanic, or mechanic fixing ride -STR_3121 :Unable to locate mechanic, or all nearby mechanics are busy -STR_3122 :{WINDOW_COLOUR_2}Favourite ride of: {BLACK}{COMMA16} guest -STR_3123 :{WINDOW_COLOUR_2}Favourite ride of: {BLACK}{COMMA16} guests +STR_3118 :{BLACK}{STRINGID} matkalla laitteelle +STR_3119 :{BLACK}{STRINGID} korjaa laitetta +STR_3120 :Paikanna lähin vapaana oleva mekaanikko, tai mekaanikko, joka korjaa tätä laitetta +STR_3121 :Mekaanikkoa ei löydy, tai kaikki mekaanikot ovat kiireisiä +STR_3122 :{WINDOW_COLOUR_2}Suosikkilaite: {BLACK}{COMMA16} kävijälle +STR_3123 :{WINDOW_COLOUR_2}Suosikkilaite: {BLACK}{COMMA16} kävijälle STR_3124 :Hajonnut {STRINGID} -STR_3125 :{WINDOW_COLOUR_2}Excitement Factor: {BLACK}+{COMMA16}% -STR_3126 :{WINDOW_COLOUR_2}Intensity Factor: {BLACK}+{COMMA16}% -STR_3127 :{WINDOW_COLOUR_2}Nausea Factor: {BLACK}+{COMMA16}% -STR_3128 :Save Track Design -STR_3129 :Save Track Design with Scenery +STR_3125 :{WINDOW_COLOUR_2}Huvituskerroin: {BLACK}+{COMMA16}% +STR_3126 :{WINDOW_COLOUR_2}Jännityskerroin: {BLACK}+{COMMA16}% +STR_3127 :{WINDOW_COLOUR_2}Pahoinvointikerroin: {BLACK}+{COMMA16}% +STR_3128 :Tallenna ratamalli +STR_3129 :Tallenna ratamalli maisemoinnin kanssa STR_3130 :Tallenna STR_3131 :Peruuta -STR_3132 :{BLACK}Click items of scenery to select them to be saved with track design… -STR_3133 :Unable to build this on a slope -STR_3134 :{RED}(Design includes scenery which is unavailable) -STR_3135 :{RED}(Vehicle design unavailable - Ride performance may be affected) -STR_3136 :Warning: This design will be built with an alternative vehicle type and may not perform as expected -STR_3137 :Select Nearby Scenery -STR_3138 :Reset Selection -STR_3139 :Cable lift unable to work in this operating mode -STR_3140 :Cable lift hill must start immediately after station -STR_3141 :Multi-circuit per ride not possible with cable lift hill +STR_3132 :{BLACK}Klikkaa maisemointiesineitä valitaksesi ne ratamallin mukana tallennukseen… +STR_3133 :Tätä ei voi rakentaa mäkeen +STR_3134 :{RED}(Mallissa on maisemointeja joita ei ole saatavilla) +STR_3135 :{RED}(Vaunutyyppi ei saatavilla - tämä voi vaikuttaa laitteen suorituskykyyn) +STR_3136 :Varoitus: Tämä malli rakennetaan korvaavalla vaunutyypillä, joka saattaa vaikuttaa laitteen toimintaan +STR_3137 :Valitse lähistön maisemoinnit +STR_3138 :Tyhjennä valinta +STR_3139 :Nostomäki ei toimi tässä toimintatilassa +STR_3140 :Nostomäen tulee alkaa heti aseman jälkeen +STR_3141 :Monikierrokset eivät ole mahdollisia nostomäen kanssa STR_3142 :{WINDOW_COLOUR_2}Kapasiteetti: {BLACK}{STRINGID} STR_3143 :Näytä ihmiset kartalla -STR_3144 :Show rides and stalls on map -STR_3160 :Select the number of circuits per ride -STR_3162 :Unable to allocate enough memory -STR_3163 :Installing new data: -STR_3164 :{BLACK}{COMMA16} selected (maximum {COMMA16}) -STR_3167 :{WINDOW_COLOUR_2}Sisältää: {BLACK}{COMMA16} objektia -STR_3169 :Tiedot seuraavalle objektille ei löydy: +STR_3144 :Näytä laitteet ja kojut kartalla +STR_3160 :Valitse kierroksien määrä per ajo +STR_3162 :Muistia ei ole saatavilla tarpeeksi +STR_3163 :Asennetaan uutta dataa: +STR_3164 :{BLACK}{COMMA16} valittu (maks. {COMMA16}) +STR_3167 :{WINDOW_COLOUR_2}Sisältää: {BLACK}{COMMA16} esinettä +STR_3169 :Tämän esineen tietoja ei löydy: STR_3170 :Tilaa ei ole tarpeeksi grafiikoille -STR_3171 :Liian montaa tämän tyyppistä objektia valittuna -STR_3172 :Tämä objekti pitää valita ensiksi: {STRING} -STR_3173 :Tämä objekti on käytössä -STR_3174 :Tätä objektia tarvitaan toisessa projektissa -STR_3175 :Tätä objektia aina tarvitaan -STR_3176 :Ei onnistunut valita tätä objektia -STR_3177 :Unable to de-select this object -STR_3178 :At least one path object must be selected -STR_3179 :At least one ride vehicle/attraction object must be selected -STR_3180 :Virheellinen objektien valinta -STR_3181 :Objektin valinta - {STRINGID} -STR_3182 :Puiston sisäänkäynnintyyli on valittava +STR_3171 :Liian montaa tämän tyyppistä esinettä valittuna +STR_3172 :Tämä esine pitää valita ensiksi: {STRING} +STR_3173 :Tämä esine on käytössä +STR_3174 :Tätä esinettä tarvitaan toisessa projektissa +STR_3175 :Tätä esinettä tarvitaan aina +STR_3176 :Tätä esinettä ei voi valita +STR_3177 :Tämän esineen valintaa ei voi poistaa +STR_3178 :Ainakin yksi polkuesine tulee olla valittuna +STR_3179 :Ainakin yksi vaunutyyppi tai kohde-esine tulee olla valittuna +STR_3180 :Virheellinen esineiden valinta +STR_3181 :Esineiden valinta - {STRINGID} +STR_3182 :Puiston sisäänkäynnin tyyli on valittava STR_3183 :Veden tyyppi on valittava -STR_3184 :Ride Vehicles/Attractions -STR_3185 :Small Scenery -STR_3186 :Large Scenery +STR_3184 :Laitteiden vaunutyypit +STR_3185 :Pienet maisemoinnit +STR_3186 :Suuret maisemoinnit STR_3187 :Seinät/Aidat -STR_3188 :Path Signs -STR_3189 :Jalkakäytävät -STR_3190 :Path Extras -STR_3191 :Scenery Groups +STR_3188 :Polkukyltit +STR_3189 :Polut +STR_3190 :Polkulisäosat +STR_3191 :Maisemointiryhmät STR_3192 :Puiston sisäänkäynti STR_3193 :Vesi -STR_3195 :Keksintölista -STR_3196 :{WINDOW_COLOUR_2}Tutkimusryhmä: {BLACK}{STRINGID} -STR_3197 :{WINDOW_COLOUR_2}Items pre-invented at start of game: -STR_3198 :{WINDOW_COLOUR_2}Items to invent during game: +STR_3195 :Kehityslista +STR_3196 :{WINDOW_COLOUR_2}Kehitysryhmä: {BLACK}{STRINGID} +STR_3197 :{WINDOW_COLOUR_2}Pelin alussa kehitetyt esineet: +STR_3198 :{WINDOW_COLOUR_2}Pelin kuluessa kehitettävät esineet: STR_3199 :Satunnainen sekoitus -STR_3200 :Randomly shuffle the list of items to invent during the game -STR_3201 :Object Selection -STR_3202 :Landscape Editor -STR_3203 :Invention List Set Up -STR_3204 :Options Selection +STR_3200 :Sekoita pelin kuluessa kehitettävien esineiden lista sattumanvaraisesti +STR_3201 :Esineiden valinta +STR_3202 :Maaston muokkaus +STR_3203 :Kehityslistan asetus +STR_3204 :Asetusten valinta STR_3205 :Tavoitteen valinta -STR_3206 :Save Scenario -STR_3207 :Roller Coaster Designer -STR_3208 :Track Designs Manager +STR_3206 :Tallenna skenaario +STR_3207 :Vuoristoratamuokkain +STR_3208 :Ratamallien hallinta STR_3209 :Takaisin edelliseen vaiheeseen: STR_3210 :Siirry seuraavaan vaiheeseen: -STR_3211 :Kartan koko: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} -STR_3213 :Karttaa ei voi enempää pienentää -STR_3214 :Karttaa ei voi enempää suurentaa -STR_3215 :Liian lähellä kartan reunaa -STR_3216 :Select park-owned land etc. -STR_3217 :Maan omistaa -STR_3218 :Rakennusoikeudet omistaa -STR_3219 :Maata myytävänä -STR_3220 :Rakennusoikeudet myytävänä -STR_3221 :Set land to be owned by the park -STR_3222 :Set construction rights only to be owned by the park -STR_3223 :Set land to be available to purchase by the park -STR_3224 :Set construction rights to be available to purchase by the park -STR_3225 :Toggle on/off building a random cluster of objects around the selected position +STR_3211 :Tason koko: +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} +STR_3213 :Tasoa ei voi pienentää enempää +STR_3214 :Tasoa ei voi suurentaa enempää +STR_3215 :Liian lähellä tason reunaa +STR_3216 :Valitse puiston omistamat maat jne. +STR_3217 :Omistettu maa +STR_3218 :Omistetut rakennusluvat +STR_3219 :Maa myytävänä +STR_3220 :Rakennuslupa myytävänä +STR_3221 :Aseta maa, jonka puisto jo omistaa +STR_3222 :Aseta rakennusluvat, jotka puisto jo omistaa +STR_3223 :Aseta maa, jonka puisto voi ostaa +STR_3224 :Aseta rakennusluvat, jotka puisto voi ostaa +STR_3225 :Kytke satunnaisen esinehajauman rakennus valitun sijainnin ympärille päälle/pois STR_3226 :Rakenna puistolle sisäänkäynti STR_3227 :Liikaa sisäänkäyntejä puistolla! -STR_3228 :Set starting positions for people -STR_3229 :Block Brakes cannot be used directly after station -STR_3230 :Block Brakes cannot be used directly after each other -STR_3231 :Block Brakes cannot be used directly after the top of this lift hill +STR_3228 :Aseta ihmisten aloituspiste +STR_3229 :Lohkojarruja ei voi käyttää heti aseman jälkeen +STR_3230 :Lohkojarruja ei voi käyttää toistensa jälkeen +STR_3231 :Lohkojarruja ei voi käyttää heti nostomäen jälkeen STR_3232 :Asetukset - Talous -STR_3233 :Asetukset - Vieraat +STR_3233 :Asetukset - Kävijät STR_3234 :Asetukset - Puisto -STR_3235 :Show financial options -STR_3236 :Show guest options -STR_3237 :Show park options +STR_3235 :Näytä taloustiedot +STR_3236 :Näytä kävijätiedot +STR_3237 :Näytä puistotiedot STR_3238 :Ei rahaa -STR_3239 :Make this park a 'no money' park with no financial restrictions +STR_3239 :Tee tästä puistosta ”ei rahaa” -puisto, jolla ei ole mitään taloudellisia rajoitteita STR_3240 :{WINDOW_COLOUR_2}Aloitusrahamäärä: STR_3241 :{WINDOW_COLOUR_2}Aloituslaina: -STR_3242 :{WINDOW_COLOUR_2}Maximum loan size: -STR_3243 :{WINDOW_COLOUR_2}Annual interest rate: +STR_3242 :{WINDOW_COLOUR_2}Enimmäislainamäärä: +STR_3243 :{WINDOW_COLOUR_2}Vuosittaiskorko: STR_3244 :Kiellä markkinointikampanjat -STR_3245 :Forbid advertising, promotional schemes, and other marketing campaigns +STR_3245 :Kiellä mainonta, myynninedistämiskeinot ja muut markkinointikampanjat STR_3246 :{WINDOW_COLOUR_2}{CURRENCY} STR_3247 :{WINDOW_COLOUR_2}{COMMA16}% -STR_3248 :Can't increase initial cash any further! -STR_3249 :Can't reduce initial cash any further! -STR_3250 :Can't increase initial loan any further! -STR_3251 :Can't reduce initial loan any further! -STR_3252 :Can't increase maximum loan size any further! -STR_3253 :Can't reduce maximum loan size any further! -STR_3254 :Can't increase interest rate any further! -STR_3255 :Can't reduce interest rate any further! -STR_3256 :Guests prefer less intense rides -STR_3257 :Select whether guests should generally prefer less intense rides only -STR_3258 :Guests prefer more intense rides -STR_3259 :Select whether guests should generally prefer more intense rides only -STR_3260 :{WINDOW_COLOUR_2}Cash per guest (average): -STR_3261 :{WINDOW_COLOUR_2}Guests initial happiness: -STR_3262 :{WINDOW_COLOUR_2}Guests initial hunger: -STR_3263 :{WINDOW_COLOUR_2}Guests initial thirst: -STR_3264 :Can't increase this any further! -STR_3265 :Can't reduce this any further! -STR_3266 :Select how this park charges for entrance and rides -STR_3267 :Estä puiden poistaminen -STR_3268 :Estä korkeiden puiden poistaminen -STR_3269 :Forbid landscape changes -STR_3270 :Forbid any changes to the landscape -STR_3271 :Forbid high construction -STR_3272 :Forbid any tall construction -STR_3273 :Park rating higher difficult level -STR_3274 :Make the park rating value more challenging -STR_3275 :Guest generation higher difficult level -STR_3276 :Make it more difficult to attract guests to the park -STR_3277 :{WINDOW_COLOUR_2}Cost to buy land: -STR_3278 :{WINDOW_COLOUR_2}Cost to buy construction rights: -STR_3279 :Free park entry / Pay per ride -STR_3280 :Pay to enter park / Free rides +STR_3248 :Aloitusrahamäärää ei voi korottaa enempää! +STR_3249 :Aloitusrahamäärää ei voi laskea enempää! +STR_3250 :Aloituslainaa ei voi korottaa enempää! +STR_3251 :Aloituslainaa ei voi laskea enempää! +STR_3252 :Enimmäislainamäärää ei voi korottaa enempää! +STR_3253 :Enimmäislainamäärää ei voi laskea enempää! +STR_3254 :Vuosittaiskorkoa ei voi korottaa enempää! +STR_3255 :Vuosittaiskorkoa ei voi laskea enempää! +STR_3256 :Kävijät tykkäävät lempeämmistä laitteista +STR_3257 :Valitse haluavatko kävijät mieluummin mennä vain vähemmän intensiivisiin laitteisiin +STR_3258 :Kävijät tykkäävät hurjemmista laitteista +STR_3259 :Valitse haluavatko kävijät mieluummin mennä vain intensiivisimpiin laitteisiin +STR_3260 :{WINDOW_COLOUR_2}Kävijöiden rahat (keskiarvo): +STR_3261 :{WINDOW_COLOUR_2}Kävijöiden alustava iloisuus: +STR_3262 :{WINDOW_COLOUR_2}Kävijöiden alustava nälkä: +STR_3263 :{WINDOW_COLOUR_2}Kävijöiden alustava jano: +STR_3264 :Tätä ei voi korottaa enempää! +STR_3265 :Tätä ei voi laskea enempää! +STR_3266 :Valitse kuinka tämä puisto veloittaa sisäänpääsystä ja laitteista +STR_3267 :Estä puiden raivaus +STR_3268 :Estä pelaajaa raivaamasta korkeita puita +STR_3269 :Estä maaston muokkaus +STR_3270 :Estä pelaajaa muokkaamasta maaston korkeutta tai tyyliä +STR_3271 :Estä korkeat rakennukset +STR_3272 :Estä pelaajaa rakentamasta mitään korkeaa +STR_3273 :Puiston tason korkeampi vaikeusaste +STR_3274 :Tee puiston tason nostosta haastavampaa +STR_3275 :Kävijöiden houkutuksen korkeampi vaikeusaste +STR_3276 :Tee kävijöiden houkutuksesta puistoon haastavampaa +STR_3277 :{WINDOW_COLOUR_2}Maan ostohinta: +STR_3278 :{WINDOW_COLOUR_2}Maan rakennusluvan hinta: +STR_3279 :Ilm. sisäänpääsy / maks. laitteet +STR_3280 :Maks. sisäänpääsy / ilm. laitteet STR_3281 :{WINDOW_COLOUR_2}Sisäänpääsyhinta: STR_3282 :Valitse tavoite ja puiston nimi -STR_3283 :Select rides to be preserved +STR_3283 :Valitse suojeltavat laitteet STR_3284 :Tavoitteen valinta -STR_3285 :Preserved Rides -STR_3286 :Select objective for this scenario +STR_3285 :Suojellut laitteet +STR_3286 :Valitse tavoite tälle skenaariolle STR_3287 :{WINDOW_COLOUR_2}Tavoite: STR_3288 :Valitse ilmasto STR_3289 :{WINDOW_COLOUR_2}Ilmasto: @@ -2394,180 +2394,180 @@ STR_3292 :Kuuma ja kuiva STR_3293 :Kylmä STR_3294 :Muuta… STR_3295 :Vaihda puiston nimi -STR_3296 :Change name of scenario -STR_3297 :Change detail notes about park / scenario +STR_3296 :Vaihda skenaarion nimi +STR_3297 :Muuta skenaarion kuvausta STR_3298 :{WINDOW_COLOUR_2}Puiston nimi: {BLACK}{STRINGID} -STR_3299 :{WINDOW_COLOUR_2}Park/Scenario Details: -STR_3300 :{WINDOW_COLOUR_2}Scenario Name: {BLACK}{STRINGID} +STR_3299 :{WINDOW_COLOUR_2}Skenaarion kuvaus: +STR_3300 :{WINDOW_COLOUR_2}Skenaarion nimi: {BLACK}{STRINGID} STR_3301 :{WINDOW_COLOUR_2}Tavoitepäivä: STR_3302 :{WINDOW_COLOUR_2}{MONTHYEAR} -STR_3303 :{WINDOW_COLOUR_2}Vieraiden määrä: +STR_3303 :{WINDOW_COLOUR_2}Kävijöiden määrä: STR_3304 :{WINDOW_COLOUR_2}Puiston arvo: STR_3305 :{WINDOW_COLOUR_2}Kuukausittainen tulo: STR_3306 :{WINDOW_COLOUR_2}Kuukausittainen tuotto: -STR_3307 :{WINDOW_COLOUR_2}Minimum length: -STR_3308 :{WINDOW_COLOUR_2}Excitement rating: +STR_3307 :{WINDOW_COLOUR_2}Vähimmäispituus: +STR_3308 :{WINDOW_COLOUR_2}Huvitustaso: STR_3309 :{WINDOW_COLOUR_2}{COMMA16} STR_3310 :{WINDOW_COLOUR_2}{LENGTH} STR_3311 :{WINDOW_COLOUR_2}{COMMA2DP32} -STR_3312 :{WINDOW_COLOUR_2}Rides/attractions under a preservation order: -STR_3313 :Scenario Name -STR_3314 :Enter name for scenario: -STR_3315 :Park/Scenario Details -STR_3316 :Enter description of this scenario: +STR_3312 :{WINDOW_COLOUR_2}Laitteet suojelumääräyksen alla: +STR_3313 :Skenaarion nimi +STR_3314 :Anna skenaariolle nimi: +STR_3315 :Skenaarion kuvaus +STR_3316 :Anna skenaariolle kuvaus: STR_3317 :Lisätietoja ei ole vielä saatavilla -STR_3318 :Select which group this scenario appears in -STR_3319 :{WINDOW_COLOUR_2}Scenario Group: -STR_3320 :Unable to save scenario file… -STR_3321 :Uusia objekteja asennettu onnistuneesti +STR_3318 :Valitse missä ryhmässä tämä skenaario esiintyy +STR_3319 :{WINDOW_COLOUR_2}Skenaarioryhmä: +STR_3320 :Skenaariotiedostoa ei voi tallentaa… +STR_3321 :Uudet esineet asennettu onnistuneesti STR_3322 :{WINDOW_COLOUR_2}Tavoite: {BLACK}{STRINGID} STR_3326 :{WINDOW_COLOUR_2}(ei kuvaa) -STR_3327 :Starting positions for people not set -STR_3328 :Can't advance to next editor stage… +STR_3327 :Ihmisten aloituspaikkaa ei ole määritetty +STR_3328 :Seuraavaan muokkaintilaan ei voi edetä… STR_3329 :Puiston sisäänkäyntiä ei ole vielä rakennettu STR_3330 :Puiston pitää omistaa edes jonkin verran maata -STR_3331 :Path from park entrance to map edge either not complete or too complex - Path must be single-width with as few junctions and corners as possible -STR_3332 :Park entrance is the wrong way round or has no path leading to the map edge -STR_3333 :Export plug-in objects with saved games -STR_3334 :Select whether to save any additional plug-in object data required (add-in data not supplied with the main product) in saved game or scenario files, allowing them to be loaded by someone who doesn't have the additional object data -STR_3335 :Roller Coaster Designer - Select Ride Types & Vehicles -STR_3336 :Track Designs Manager - Select Ride Type -STR_3338 :{BLACK}Custom-designed layout -STR_3339 :{BLACK}{COMMA16} design available, or custom-designed layout -STR_3340 :{BLACK}{COMMA16} designs available, or custom-designed layout +STR_3331 :Polku puiston sisäänkäynnistä tason reunalle on joko vaillinainen tai liian monimutkainen; polun tulee olla yhden tiilen levyinen ja mahdollisimman vähän risteyksiä ja käännöksiä +STR_3332 :Puiston sisäänkäynti on väärin päin, tai siihen ei ole polkua tason reunalta +STR_3333 :Liitä laajennusesineet tallennustiedostoihin +STR_3334 :Valitse liitetäänkö tallennuksiin ja skenaariotiedostoihin laajennuksien esineiden lisätiedot (jota ei toimiteta tuotteen mukana), jotta tiedostot voidaan avata myös pelissä, jossa ei ole samoja esinetietoja +STR_3335 :Vuoristoratamuokkain - Valitse laitteen tyyppi ja vaunu +STR_3336 :Ratamallien hallinta - Valitse laitteen tyyppi +STR_3338 :{BLACK}Mukautettu rata +STR_3339 :{BLACK}{COMMA16} malli saatavilla, tai luo omasi +STR_3340 :{BLACK}{COMMA16} mallia saatavilla, tai luo omasi STR_3341 :Pelityökalut -STR_3342 :Scenario Editor -STR_3343 :Convert Saved Game to Scenario -STR_3344 :Roller Coaster Designer -STR_3345 :Track Designs Manager -STR_3346 :Can't save track design… -STR_3347 :Ride is too large, contains too many elements, or scenery is too spread out +STR_3342 :Skenaariomuokkain +STR_3343 :Muunna tallennus skenaarioksi +STR_3344 :Vuoristoratamuokkain +STR_3345 :Ratamallien hallinta +STR_3346 :Ratamallia ei voi tallentaa… +STR_3347 :Laite on liian iso, sisältää liian monta osaa, tai maisemointi on liian laajalla alueella STR_3348 :Uudelleennimeä STR_3349 :Poista -STR_3350 :Track design name -STR_3351 :Enter new name for this track design: -STR_3352 :Can't rename track design… +STR_3350 :Ratamallin nimi +STR_3351 :Anna tälle ratamallille uusi nimi: +STR_3352 :Ratamallia ei voi uudelleennimetä… STR_3353 :Uusi nimi sisältää virheellisiä merkkejä STR_3354 :Toinen saman niminen tiedosto on jo olemassa tai tiedosto on kirjoitussuojattu STR_3355 :Tiedosto on kirjoitussuojattu tai lukittu STR_3356 :Poista tiedosto -STR_3357 :{WINDOW_COLOUR_2}Are you sure you want to permanently delete {STRING} ? -STR_3358 :Can't delete track design… -STR_3359 :{BLACK}No track designs of this type +STR_3357 :{WINDOW_COLOUR_2}Oletko varma että haluat pysyvästi poistaa ratamallin {STRING}? +STR_3358 :Ratamallia ei voi poistaa… +STR_3359 :{BLACK}Ei yhtään tämän tyyppistä ratamallia STR_3360 :Varoitus! -STR_3361 :Too many track designs of this type - Some will not be listed. +STR_3361 :Liian monta tämän tyyppistä mallia - joitain ei voida listata. STR_3364 :Edistynyt -STR_3365 :Allow selection of individual items of scenery in addition to scenery groups -STR_3366 :{BLACK}= Ajelu +STR_3365 :Salli yksittäisten maisemointiesineiden valinta maisemointiryhmien lisäksi +STR_3366 :{BLACK}= Laite STR_3367 :{BLACK}= Ruokakoju STR_3368 :{BLACK}= Juomakoju STR_3369 :{BLACK}= Matkamuistokoju -STR_3370 :{BLACK}= Info. Kiosk +STR_3370 :{BLACK}= Infokioski STR_3371 :{BLACK}= Ensiapu -STR_3372 :{BLACK}= Kassakone +STR_3372 :{BLACK}= Raha-automaatti STR_3373 :{BLACK}= Vessa -STR_3374 :Varoitus: Liian monta objektia valittuna! -STR_3375 :Not all objects in this scenery group could be selected -STR_3376 :Install new track design… -STR_3377 :Install a new track design file +STR_3374 :Varoitus: Liian monta esinettä valittuna! +STR_3375 :Tämän maisemointiryhmän kaikkia esineitä ei voi valita +STR_3376 :Asenna uusi ratamalli… +STR_3377 :Asenna uusi ratamallitiedosto STR_3378 :Asenna STR_3379 :Peruuta -STR_3380 :Unable to install this track design… -STR_3381 :File is not compatible or contains invalid data -STR_3382 :Tiedoston kopio epäonnistui -STR_3383 :Select new name for track design -STR_3384 :An existing track design already has this name - Please select a new name for this design: -STR_3389 :Unable to select additional item of scenery… +STR_3380 :Tätä ratamallia ei voi asentaa… +STR_3381 :Tiedosto ei ole yhteensopiva tai sisältää epäkelpoja tietoja +STR_3382 :Tiedoston kopiointi epäonnistui +STR_3383 :Valitse ratamallille uusi nimi +STR_3384 :Olemassa olevalla ratamallilla on sama nimi - ole hyvä ja valitse uusi nimi tälle mallille: +STR_3389 :Maisemointiesinettä ei voi valita… STR_3390 :Liian monta esinettä valittuna -STR_3437 :Clear large areas of scenery from landscape -STR_3438 :Unable to remove all scenery from here… -STR_3439 :Tyhjennä maisema -STR_3445 :Set Patrol Area -STR_3446 :Cancel Patrol Area +STR_3437 :Raivaa suuria määriä maisemointia kerralla +STR_3438 :Kaikkea maisemointia ei voi raivata tästä… +STR_3439 :Raivaa maisemointi +STR_3445 :Aseta partioalue +STR_3446 :Peruuta partioalue # New strings, cleaner STR_5120 :Talous -STR_5121 :Tutkimustyö -STR_5122 :Valitse ajelut radan tyypin mukaan (kuten RCT1:ssä) -STR_5123 :Uusi ajelut -STR_5125 :Kaikki tuhottavat -STR_5126 :Satunnainen otsikkomusiikki +STR_5121 :Kehitys +STR_5122 :Valitse laitteet radan tyypin mukaan (kuten RCT1:ssä) +STR_5123 :Uusi laitteet +STR_5125 :Kaikki romutusluvat +STR_5126 :Satunnainen STR_5127 :Estä maan korkeuden muuttaminen STR_5128 :Valinnan koko -STR_5129 :Enter selection size between {COMMA16} and {COMMA16} -STR_5130 :Kartan koko -STR_5131 :Enter map size between {COMMA16} and {COMMA16} -STR_5132 :Korjaa kaikki ajelut -STR_5133 :Adjust smaller area of land rights -STR_5134 :Adjust larger area of land rights -STR_5135 :Buy land rights and construction rights +STR_5129 :Anna valinnan koko väliltä {COMMA16}-{COMMA16} +STR_5130 :Tason koko +STR_5131 :Anna tason koko väliltä {COMMA16}-{COMMA16} +STR_5132 :Korjaa kaikki laitteet +STR_5133 :Säädä pienempää maa-aluetta +STR_5134 :Säädä laajempaa maa-aluetta +STR_5135 :Osta maata ja rakennuslupia STR_5136 :Maaoikeudet -STR_5137 :Allow lift hill and launch speeds{NEWLINE}up to {VELOCITY} -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5137 :Salli nostomäen ja laukaisun nopeuksiksi{NEWLINE}jopa {VELOCITY} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} -STR_5140 :Disable brakes failure -STR_5141 :Disable all breakdowns +STR_5140 :Estä jarruviat +STR_5141 :Estä kaikki hajoamiset STR_5142 :Normaalinopeus STR_5143 :Pikanopeus -STR_5144 :Nopeanopeus +STR_5144 :Vauhtinopeus STR_5145 :Turbonopeus STR_5146 :Hypernopeus STR_5147 :Huijaukset STR_5148 :Muuta pelin nopeus -STR_5149 :Avaa huijauksetikkuna -STR_5150 :Enable debugging tools -STR_5151 :, -STR_5152 :. +STR_5149 :Avaa huijausikkuna +STR_5150 :Näytä virheenkorjaustyökalut +STR_5151 : +STR_5152 :, STR_5153 :Muuta teemoja… -STR_5154 :Hardware display -STR_5155 :Allow testing of unfinished tracks -STR_5156 :Allows testing of most ride types even when the track is unfinished, does not apply to block sectioned modes -STR_5158 :Lopeta valikkoon +STR_5154 :Laitteistopiirto +STR_5155 :Salli keskeneräisten ratojen testaus +STR_5156 :Sallii useimpien laitetyyppien testauksen vaikka rata olisikin keskeneräinen. Ei koske lohkojarruihin perustuvia toimintatiloja. +STR_5158 :Lopeta päävalikkoon STR_5159 :Lopeta OpenRCT2 -STR_5160 :{POP16}{MONTH} {PUSH16}{PUSH16}{STRINGID}, Vuosi {POP16}{COMMA16} +STR_5160 :{POP16}{MONTH}n {PUSH16}{PUSH16}{STRINGID}, vuosi {POP16}{COMMA16} STR_5161 :Päiväyksen tyyli: -STR_5162 :Päivä/Kuukausi/Vuosi -STR_5163 :Kuukausi/Päivä/Vuosi -STR_5177 :Fullscreen mode: +STR_5162 :päivä/kuukausi/vuosi +STR_5163 :kuukausi/päivä/vuosi +STR_5177 :Näyttötila: STR_5178 :Näytä taloushuijaukset -STR_5179 :Näytä vierashuijaukset +STR_5179 :Näytä kävijähuijaukset STR_5180 :Näytä puistohuijaukset -STR_5181 :Näytä ajeluhuijaukset +STR_5181 :Näytä laitehuijaukset STR_5182 :{INT32} -STR_5183 :Base height -STR_5184 :Enter base height between {COMMA16} and {COMMA16} +STR_5183 :Pohjakorkeus +STR_5184 :Anna pohjakorkeus {COMMA16}-{COMMA16} STR_5185 :Veden taso -STR_5186 :Enter water level between {COMMA16} and {COMMA16} +STR_5186 :Anna veden taso väliltä {COMMA16}-{COMMA16} STR_5187 :Talous STR_5188 :Uusi kampanja -STR_5189 :Tutkimustyö +STR_5189 :Kehitys STR_5190 :Kartta -STR_5191 :Viewport +STR_5191 :Näkymä STR_5192 :Viimeiset uutiset STR_5193 :Maa STR_5194 :Vesi -STR_5195 :Clear Scenery +STR_5195 :Raivaa maisemointi STR_5196 :Maaoikeudet -STR_5197 :Scenery -STR_5198 :Jalkakäytävä -STR_5199 :Ride Construction -STR_5200 :Track Design Place -STR_5201 :Uusi ajelu -STR_5202 :Track Design Selection -STR_5203 :Ajelu -STR_5204 :Ajelulista -STR_5205 :Vieras -STR_5206 :Vieraslista -STR_5207 :Henkilökunta -STR_5208 :Henkilökuntalista -STR_5209 :Banner -STR_5210 :Object Selection -STR_5211 :Keksintölista -STR_5212 :Scenario Options +STR_5197 :Maisemointi +STR_5198 :Polku +STR_5199 :Laitteiden rakennus +STR_5200 :Ratamallin sijainti +STR_5201 :Uusi laita +STR_5202 :Ratamallin valinta +STR_5203 :Laite +STR_5204 :Laitelista +STR_5205 :Kävijä +STR_5206 :Kävijälista +STR_5207 :Henkilöstö +STR_5208 :Henkilöstölista +STR_5209 :Banneri +STR_5210 :Esineiden valinta +STR_5211 :Kehityslista +STR_5212 :Skenaariovalinnat STR_5213 :Tavoiteasetukset -STR_5214 :Map Generation -STR_5215 :Track Design Manager -STR_5216 :Track Design Manager List +STR_5214 :Tason luonti +STR_5215 :Ratamallien hallinta +STR_5216 :Ratamallien hallintalista STR_5217 :Huijaukset STR_5218 :Teemat STR_5219 :Asetukset @@ -2575,169 +2575,169 @@ STR_5220 :Näppäimistön pikanäppäimet STR_5221 :Muuta näppäimistön pikanäppäimiä STR_5222 :Lataa/Tallenna STR_5223 :Tallennuskehote -STR_5224 :Demolish Ride Prompt -STR_5225 :Fire Staff Prompt -STR_5226 :Track Delete Prompt -STR_5227 :Save Overwrite Prompt -STR_5228 :Main UI +STR_5224 :Laitteen romutus -kehote +STR_5225 :Henkilöstön irtisanomiskehote +STR_5226 :Radan romutus -kehote +STR_5227 :Tallennuksen ylikirjoitus -kehote +STR_5228 :Pääkäyttöliittymä STR_5229 :Puisto STR_5230 :Työkalut -STR_5231 :Rides and Peeps -STR_5232 :Editors +STR_5231 :Laitteet ja kävijät +STR_5232 :Muokkaimet STR_5233 :Sekalaiset STR_5234 :Kehotteet STR_5235 :Asetukset -STR_5236 :Ikkuna: -STR_5237 :Väripaletti: +STR_5236 :Ikkuna +STR_5237 :Väripaletti STR_5238 :Nykyinen teema: STR_5239 :Kopioi STR_5240 :Anna nimi teemalle -STR_5241 :Nimen muuttaminen ei onnistunut +STR_5241 :Teeman muuttaminen ei onnistunut STR_5242 :Teeman nimi on jo olemassa STR_5243 :Virheellisiä merkkejä käytetty STR_5244 :Teemat -STR_5245 :Ylhäällä työkalupalkki -STR_5246 :Alhaalla työkalupalkki -STR_5247 :Track Editor Bottom Toolbar -STR_5248 :Scenario Editor Bottom Toolbar -STR_5249 :Title Menu Buttons -STR_5250 :Title Exit Button -STR_5251 :Title Options Button -STR_5252 :Title Scenario Selection +STR_5245 :Yläreunan työkalupalkki +STR_5246 :Alareunan työkalupalkki +STR_5247 :Ratamuokkaimen työkalupalkki +STR_5248 :Skenaariomuokkaimen työkalupalkki +STR_5249 :Päävalikon painikkeet +STR_5250 :Päävalikon lopetuspainike +STR_5251 :Päävalikon asetukset-painike +STR_5252 :Päävalikon skenaarionvalinta STR_5253 :Puiston tiedot STR_5254 :Luo -STR_5255 :Create a new title sequence from scratch -STR_5256 :Create a new theme to make changes to -STR_5257 :Create a new theme based on the current one +STR_5255 :Luo uusi valikkotausta tyhjästä +STR_5256 :Luo uusi teema muokattavaksi +STR_5257 :Luo uusi teema nykyisestä STR_5258 :Poista nykyinen teema STR_5259 :Uudelleennimeä nykyinen teema -STR_5260 :Jättimäinen ruudunkaappaus +STR_5260 :Jättiruudunkaappaus STR_5261 :Suodatin STR_5262 :Wacky Worlds STR_5263 :Time Twister -STR_5264 :Custom -STR_5265 :Select which content sources are visible +STR_5264 :Mukautettu +STR_5265 :Valitse mitkä sisältölähteet ovat näkyvillä STR_5266 :Näyttö STR_5267 :Kulttuuri ja yksiköt STR_5268 :Ääni -STR_5269 :Controls and interface +STR_5269 :Ohjaimet ja käyttöliittymä STR_5270 :Sekalaiset # again, twitch is a name, and can't be translated -STR_5272 :Small Scenery -STR_5273 :Large Scenery -STR_5274 :Jalkakäytävä -STR_5275 :Search for Objects -STR_5276 :Enter the name of an object to search for +STR_5272 :Pienet maisemoinnit +STR_5273 :Suuret maisemoinnit +STR_5274 :Polku +STR_5275 :Etsi esinettä +STR_5276 :Anna etsittävän esineen nimi STR_5277 :Tyhjennä -STR_5278 :Sandbox mode -STR_5279 :Sandbox mode off -STR_5280 :Allow editing land ownership settings through the Map window and other options that are normally restricted to the Scenario Editor +STR_5278 :Hiekkalaatikkotila +STR_5279 :Hiekkalaatikkotila pois +STR_5280 :Sallii maanomistusasetusten muokkauksen Kartta-ikkunasta, sekä muita valintoja jotka ovat yleensä vain saatavilla skenaariomuokkaimessa STR_5281 :Ominaisuuksia -STR_5282 :RCT1 Ajelu auki/suljettu -valot -STR_5283 :RCT1 Puisto auki/kiinni -valot -STR_5284 :RCT1 Scenario Selection Font -STR_5287 :Ajelu on jo hajonnut -STR_5288 :Ajelu on suljettu -STR_5289 :No breakdowns available for this ride -STR_5290 :Korjaa ajelu -STR_5291 :Can't force breakdown -STR_5292 :Force a breakdown -STR_5293 :Close ride/attraction -STR_5294 :Test ride/attraction -STR_5295 :Open ride/attraction +STR_5282 :RCT1:n laitteiden auki/suljettu -valot +STR_5283 :RCT1:n puiston auki/suljettu -valot +STR_5284 :RCT1:n skenaarionvalintakirjaisimet +STR_5287 :Laite on jo hajonnut +STR_5288 :Laite on suljettu +STR_5289 :Tälle laitteelle ei ole hajoamistiloja +STR_5290 :Korjaa laite +STR_5291 :Hajoamistilaa ei voi pakottaa +STR_5292 :Pakota hajoamistila +STR_5293 :Sulje laite/kohde +STR_5294 :Testaa laite/kohde +STR_5295 :Avaa laite/kohde STR_5296 :Sulje puisto STR_5297 :Avaa puisto STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} -STR_5300 :Quick fire staff -STR_5301 :{MEDIUMFONT}{BLACK}Poista lainasi +STR_5300 :Pika-irtisano henkilöstöä +STR_5301 :Poista lainasi STR_5302 :Poista laina STR_5303 :Salli rakentelu pelin ollessa pysäytetty -STR_5304 :Title Sequence: +STR_5304 :Päävalikon tausta: STR_5305 :RollerCoaster Tycoon 1 STR_5306 :RollerCoaster Tycoon 1 (AA) STR_5307 :RollerCoaster Tycoon 1 (AA + LL) STR_5308 :RollerCoaster Tycoon 2 STR_5309 :OpenRCT2 STR_5310 :Satunnainen -STR_5311 :Debug tools +STR_5311 :Virheenkorjaustyökalut STR_5312 :Näytä komentokehote -STR_5313 :Show tile inspector -STR_5314 :Tile inspector -STR_5335 :Ajelun sisäänkäynti -STR_5336 :Ajelun uloskäynti +STR_5313 :Näytä ruututyökalu +STR_5314 :Ruututyökalu +STR_5335 :Laitteen sisäänkäynti +STR_5336 :Laitteen uloskäynti STR_5337 :Puiston sisäänkäynti -STR_5338 :Element type -STR_5339 :Base height -STR_5340 :Clearance height -STR_5343 :Automaattisesti aseta henkilöstö +STR_5338 :Elementtityyppi +STR_5339 :Pohjakorkeus +STR_5340 :Vapaa korkeus +STR_5343 :Sijoita työntekijät automaattisesti STR_5344 :Muutosloki STR_5345 :Taloushuijaukset -STR_5346 :Vierashuijaukset -STR_5347 :Puiston huijaukset -STR_5348 :Ajelun huijaukset -STR_5349 :Kaikki ajelut -STR_5350 :Max +STR_5346 :Kävijähuijaukset +STR_5347 :Puistohuijaukset +STR_5348 :Laitehuijaukset +STR_5349 :Kaikki laitteet +STR_5350 :Maks STR_5351 :Min -STR_5352 :{BLACK}Onnellisuus: +STR_5352 :{BLACK}Iloisuus: STR_5353 :{BLACK}Energia: STR_5354 :{BLACK}Nälkä: STR_5355 :{BLACK}Jano: STR_5356 :{BLACK}Pahoinvointi: -STR_5357 :{BLACK}Pahoinvoinnin sietoraja: +STR_5357 :{BLACK}Pahoinvoinnin sieto: STR_5358 :{BLACK}Vessa: -STR_5359 :Poista vieraat -STR_5360 :Poista kaikki vieraat kartalta -STR_5361 :Anna kaikille vieraille: -STR_5362 :{BLACK}Set all guests' preferred ride intensity to: -STR_5363 :Enemmän kuin 1 -STR_5364 :Vähemmän kuin 15 -STR_5365 :{BLACK}Henkilökunnan nopeus: +STR_5359 :Poista kävijät +STR_5360 :Poista kaikki kävijät kartalta +STR_5361 :Anna kaikille kävijöille: +STR_5362 :{BLACK}Aseta kävijöiden mieluisin intensiteetti: +STR_5363 :Yli 1 +STR_5364 :Alle 15 +STR_5365 :{BLACK}Henkilöstön nopeus: STR_5366 :Normaali STR_5367 :Nopea -STR_5368 :Reset crash status -STR_5371 :Object Selection -STR_5372 :Invert right mouse dragging +STR_5368 :Nollaa törmäykset +STR_5371 :Esineiden valinta +STR_5372 :Käänteinen oikean painikkeen raahaus STR_5373 :Nimi {STRINGID} STR_5374 :Päiväys {STRINGID} STR_5375 :▲ STR_5376 :▼ STR_5377 :Tallenteet STR_5378 :Komentosarja -STR_5379 :Skip to next wait command -STR_5380 :Start playing title sequence -STR_5381 :Stop playing title sequence -STR_5382 :Restart title sequence -STR_5383 :Create a new title sequence based on the current one -STR_5384 :Delete the current title sequence -STR_5385 :Rename the current title sequence +STR_5379 :Siirry seuraavaan odotuskomentoon +STR_5380 :Toista valikkotausta +STR_5381 :Lopeta valikkotaustan toisto +STR_5382 :Aloita valikkotausta alusta +STR_5383 :Luo uusi valikkotausta nykyisestä +STR_5384 :Poista nykyinen valikkotausta +STR_5385 :Nimeä nykyinen valikkotausta uudelleen STR_5386 :Lisää uusi komento STR_5387 :Muokkaa uusi komento STR_5388 :Poista valittu komento -STR_5389 :Skip to the selected command in the title sequence +STR_5389 :Siirry valittuun komentoon valikkotaustassa STR_5390 :Siirrä valittu komento alas STR_5391 :Siirrä valittu komento ylös -STR_5392 :Add a save to the title sequence -STR_5393 :Remove the selected save from the title sequence +STR_5392 :Lisää tallenne valikkotaustaan +STR_5393 :Poista valittu tallenne valikkotaustasta STR_5394 :Uudelleennimeä valittu tallenne STR_5395 :Lataa valittu tallenne pelissä -STR_5396 :Reload the title sequence if changes have been made to it outside of the game +STR_5396 :Lataa valikkotausta uudestaan jos siihen on tehty muutoksia pelin ulkopuolella STR_5397 :Voidaan käyttää ainoastaan otsikkoruudussa -STR_5398 :Cannot edit title sequence while it's playing -STR_5399 :Press the stop button to continue editing -STR_5400 :Can't change this title sequence -STR_5401 :Create a new title sequence to make changes to -STR_5402 :Failed to load title sequence -STR_5403 :There may be no Load or Wait command or a save may be invalid +STR_5398 :Valikkotaustaa ei voi muokata kun se on käytössä +STR_5399 :Paina stop-painiketta jatkaaksesi muokkausta +STR_5400 :Tätä valikkotaustaa ei voi muuttaa +STR_5401 :Luo uusi valikkotausta johon tehdä muutoksia +STR_5402 :Valikkotaustan lataus ei onnistunut +STR_5403 :Lataus- tai odotuskomentoa ei ole olemassa, tai tallenne on epäkelpo STR_5404 :Nimi on jo olemassa STR_5405 :Anna nimi tallenteelle -STR_5406 :Enter a name for the title sequence +STR_5406 :Anna nimi valikkotaustalle STR_5407 :Lisää STR_5408 :Poista -STR_5409 :Insert +STR_5409 :Lisää STR_5410 :Muokkaa STR_5411 :Lataa uudelleen -STR_5412 :Skip to +STR_5412 :Siirry STR_5413 :Lataa STR_5415 :Lataa{MOVE_X}{87}{STRING} STR_5416 :Lataa{MOVE_X}{87}Tallennetta ei ole valittu @@ -2745,8 +2745,8 @@ STR_5417 :Sijainti STR_5418 :Sijainti{MOVE_X}{87}{COMMA16} {COMMA16} STR_5419 :Käännä STR_5420 :Käännä{MOVE_X}{87}{COMMA16} -STR_5421 :Zoom -STR_5422 :Zoom{MOVE_X}{87}{COMMA16} +STR_5421 :Zoomaa +STR_5422 :Zoomaa{MOVE_X}{87}{COMMA16} STR_5423 :Odota STR_5424 :Odota{MOVE_X}{87}{UINT16} STR_5425 :Uudelleen käynnistä @@ -2757,86 +2757,86 @@ STR_5429 :Suurennus: STR_5430 :Sekuntia odottaa: STR_5431 :Tallenna lataakseen: STR_5432 :Komento: -STR_5433 :Title Sequences +STR_5433 :Valikkotaustat STR_5434 :Komentojenmuokkain STR_5435 :Uudelleen nimeä tallenne -STR_5436 :Edit Title Sequences… +STR_5436 :Muokkaa valikkotaustoja… STR_5437 :Tallennusta ei valittuna STR_5438 :Muutosten teko ei onnistu komentojenmuokkaimen ollessa päällä -STR_5439 :A wait command with at least 4 seconds is required with a restart command -STR_5440 :Minimise fullscreen on focus loss -STR_5441 :Identifies rides by track type,{NEWLINE}so vehicles can be changed{NEWLINE}afterwards, like in RCT1. -STR_5442 :Pakota puiston luokitus: +STR_5439 :Ainakin 4 sekunnin odotuskomento tarvitaan uudelleenkäynnistyskomennon kanssa +STR_5440 :Pienennä kokonäyttötila kohdistuksen poistuessa +STR_5441 :Tunnistaa laitteet ratatyypin perusteella, jotta vaunut voi vaihtaa jälkikäteen, kuten RCT1:ssä. +STR_5442 :Pakota puiston taso: STR_5443 :Nopeus{MOVE_X}{87}{STRINGID} STR_5444 :Nopeus: STR_5445 :Nopeus STR_5446 :Hanki STR_5447 :Tyyppi {STRINGID} -STR_5448 :Ajelu / Ajoneuvo {STRINGID} +STR_5448 :Laite / Vaunu {STRINGID} STR_5449 :Vähennä pelin nopeutta STR_5450 :Lisää pelin nopeutta STR_5451 :Avaa huijausikkuna -STR_5452 :Toggle visibility of toolbars -STR_5453 :Valitse toinen ajelu -STR_5454 :Älä rajoita FPS -STR_5455 :Enable sandbox mode -STR_5456 :Disable clearance checks -STR_5457 :Disable support limits +STR_5452 :Kytke työkalupalkkien näkyvyys +STR_5453 :Valitse eri laite +STR_5454 :Rajaton kuvataajuus +STR_5455 :Hiekkalaatikkotila päälle +STR_5456 :Poista vapaan tilan tarkistukset +STR_5457 :Poista tukirakenteiden rajat STR_5458 :Käännä myötäpäivään STR_5459 :Käännä vastapäivään STR_5460 :Käännä näkymää vastapäivään -STR_5461 :Määritä vieraiden määritteitä +STR_5461 :Määritä kävijöiden määritteitä STR_5462 :{CURRENCY} STR_5463 :Tavoite: Pidä hauskaa! STR_5464 :Yleiset STR_5465 :Ilmasto -STR_5466 :Henkilökunta +STR_5466 :Henkilöstö STR_5467 :ALT + -STR_5468 :Viimeiset viestit +STR_5468 :Uusimmat ilmoitukset STR_5469 :Vieritä karttaa ylös STR_5470 :Vieritä karttaa vasemmalle STR_5471 :Vieritä karttaa alas STR_5472 :Vieritä karttaa oikealle -STR_5473 :Cycle day / night -STR_5474 :Display text on banners in upper case +STR_5473 :Vuorokausien vaihto +STR_5474 :Näytä bannereiden teksti isoilla kirjaimilla STR_5475 :{COMMA16} viikkoa STR_5476 :Laitteisto -STR_5477 :Map rendering +STR_5477 :Kartan piirto STR_5478 :Ohjaimet STR_5479 :Työkalupalkki -STR_5480 :Show toolbar buttons for: +STR_5480 :Näytä työkalupalkin painikkeet: STR_5481 :Teemat -STR_5482 :{WINDOW_COLOUR_2}Aikaa viime tarkistuksesta: {BLACK}1 minuutti +STR_5482 :{WINDOW_COLOUR_2}Aikaa viime tarkastuksesta: {BLACK}1 minuutti STR_5483 :{BLACK}({COMMA16} viikkoa jäljellä) STR_5484 :{BLACK}({COMMA16} viikko jäljellä) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} -STR_5487 :Näytä viimeiset viestit -STR_5489 :Show only tracked guests -STR_5490 :Disable audio on focus loss -STR_5491 :Keksinnötlista -STR_5492 :Scenario options +STR_5487 :Näytä uusimmat ilmoitukset +STR_5489 :Näytä vain seuratut kävijät +STR_5490 :Mykistä ääni kohdistuksen poistuessa +STR_5491 :Kehityslista +STR_5492 :Skenaarioasetukset STR_5493 :Lähetä viesti STR_5495 :Pelaajalista -STR_5496 :Pelaaja: -STR_5497 :Ping: +STR_5496 :Pelaaja +STR_5497 :Ping STR_5498 :Palvelinlista STR_5499 :Pelaajan nimi: STR_5500 :Lisää palvelin -STR_5501 :Käynistä palvelin +STR_5501 :Perusta palvelin STR_5502 :Moninpeli STR_5503 :Anna isäntänimi tai IP-osoite: STR_5504 :Näytä moninpelin tilanne STR_5505 :Yhdistäminen ei onnistunut. -STR_5506 :Guests ignore intensities -STR_5508 :Allow loading files with incorrect checksums -STR_5509 :Allows loading scenarios and saves that have an incorrect checksum, like the scenarios from the demo or damaged saves. -STR_5510 :Oletus äänilaite +STR_5506 :Kävijät eivät piittaa intensiteetistä +STR_5508 :Salli lataus väärästä tarkistussummasta huolimatta +STR_5509 :Sallii skenaarioiden ja tallennustiedostojen latauksen vaikka tarkistussumma olisi väärä, kuten esim. demoskenaariot tai vaurioituneet tallennukset. +STR_5510 :Oletusäänilaite STR_5511 :(TUNTEMATON) STR_5512 :Tallenna peli nimellä -STR_5513 :(Pika) tallenna peli -STR_5514 :Disable vandalism -STR_5515 :Estää vieraita tärvelemästä puistoasi heidän ollessa vihaisia +STR_5513 :Pikatallennus +STR_5514 :Poista ilkivalta käytöstä +STR_5515 :Estää kävijöitä tärvelemästä puistoasi ollessaan vihaisia STR_5516 :Musta STR_5517 :Harmaa STR_5518 :Valkoinen @@ -2869,9 +2869,1632 @@ STR_5544 :Kirkkaanpunainen STR_5545 :Tummanvaaleanpunainen STR_5546 :Kirkasvaaleanpunainen STR_5547 :Vaaleanpunainen -STR_5548 :Show all operating modes -STR_5549 :Vuosi/Kuukausi/Päivä -STR_5550 :{POP16}{POP16}Vuosi {COMMA16}, {PUSH16}{PUSH16}{MONTH} {PUSH16}{PUSH16}{STRINGID} -STR_5551 :Vuosi/Päivä/Kuukausi -STR_5552 :{POP16}{POP16}Vuosi {COMMA16}, {PUSH16}{PUSH16}{PUSH16}{STRINGID} {MONTH} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_5548 :Näytä kaikki toimintatilat +STR_5549 :vuosi/kuukausi/päivä +STR_5550 :{POP16}{POP16}Vuosi {COMMA16}, {PUSH16}{PUSH16}{MONTH}n {PUSH16}{PUSH16}{STRINGID} +STR_5551 :vuosi/päivä/kuukausi +STR_5552 :{POP16}{POP16}Vuosi {COMMA16}, {PUSH16}{PUSH16}{PUSH16}{STRINGID} {MONTH}ta +STR_5553 :Pysäytä peli kun Steam-yhteisönäkymä on auki +STR_5554 :Ota vuorityökalu käyttöön +STR_5555 :Näytä muiden ratatyyppien vaunutyypit +STR_5556 :Potkaise pelaaja +STR_5557 :Pysy yhteydessä epätahdistuksessa (moninpeli) +STR_5558 :Tämä asetus tulee voimaan vasta kun uudelleenkäynnistät OpenRCT2:n +STR_5559 :10 min. tarkastukset +STR_5560 :Asettaa tarkastusvälin ‘10 minuutin välein’ kaikkiin laitteisiin +STR_5561 :Kielen lataus epäonnistui +STR_5562 :VAROITUS! +STR_5563 :Tämä ominaisuus on epävakaa, olethan varovainen +STR_5564 :Lisää vioittunut elementti +STR_5565 :Lisää ruudun pinnalle vioittuneen tasoelementin. Tämä piilottaa näkyvistä sen yläpuolella olevan elementin. +STR_5566 :Salasana: +STR_5567 :Mainosta +STR_5568 :Salasana vaaditaan +STR_5569 :Tämä palvelin vaatii salasanan +STR_5570 :Hae palvelimet +STR_5571 :Liity peliin +STR_5572 :Lisää suosikkeihin +STR_5573 :Poista suosikeista +STR_5574 :Palvelimen nimi: +STR_5575 :Maks. pelaajat: +STR_5576 :Portti: +STR_5577 :Etelä-Korean won (W) +STR_5578 :Venäjän rupla (₽) +STR_5579 :Ikkunan skaalaus: +STR_5580 :Tšekin koruna (Kč) +STR_5581 :Näytä kuvataajuus +STR_5582 :Vangitse kursori ikkunaan +STR_5583 :{COMMA1DP16} m/s +STR_5584 :SI-järjestelmä +STR_5585 :Avaa laitteen käyttörajat, sallien esim. {VELOCITY} nostomäet +STR_5586 :Avaa kojut automaattisesti +STR_5587 :Kojut avataan automaattisesti rakennuksen ohessa +STR_5588 :Pelaa muiden kanssa +STR_5589 :Ilmoitusasetukset +STR_5590 :Puiston palkinnot +STR_5591 :Markkinointikampanja on päättynyt +STR_5592 :Puistovaroitukset +STR_5593 :Puiston tason varoitukset +STR_5594 :Laite on hajonnut +STR_5595 :Laite on törmännyt +STR_5596 :Laitevaroitukset +STR_5597 :Laite tai maisemointi kehitetty +STR_5598 :Kävijävaroitukset +STR_5600 :Kävijä on lähtenyt puistosta +STR_5601 :Kävijä jonottaa laitteeseen +STR_5602 :Kävijä on laitteessa +STR_5603 :Kävijä on lähtenyt laitteesta +STR_5604 :Kävijä on ostanut tuotteen +STR_5605 :Kävijä on käyttänyt palvelua +STR_5606 :Kävijä on kuollut +STR_5607 :Poista valittu tasoelementti väkinäisesti +STR_5608 :PK +STR_5609 :VK +STR_5610 :Poista valittu tasoelementti. Tämä poistaa elementin väkinäisesti, eikä rahaa kuluteta tai tienata. Käytä varoen. +STR_5611 :K +STR_5612 :Kuvajainen +STR_5613 :H +STR_5614 :Hajonnut +STR_5615 :V +STR_5616 :Ruudun viimeinen elementti +STR_5617 :Siirrä valittu elementti ylös +STR_5618 :Siirrä valittu elementti alas +STR_5619 :RollerCoaster Tycoon +STR_5620 :Added Attractions +STR_5621 :Loopy Landscapes +STR_5622 :RollerCoaster Tycoon 2 +STR_5623 :Wacky Worlds +STR_5624 :Time Twister +STR_5625 :“Oikeat” puistot +STR_5626 :Muut puistot +STR_5627 :Skenaarioiden ryhmitys: +STR_5628 :Lähdepeli +STR_5629 :Vaikeusaste +STR_5630 :Edistyksen mukainen skenaarioiden avaus +STR_5631 :Alkuperäiset DLC-puistot +STR_5632 :Rakenna oma… +STR_5633 :CMD + +STR_5634 :OPTION + +STR_5635 :{WINDOW_COLOUR_2}Rahaa kulutettu: {BLACK}{CURRENCY2DP} +STR_5636 :{WINDOW_COLOUR_2}Komentoja suoritettu: {BLACK}{COMMA16} +STR_5637 :Tätä ei voi tehdä… +STR_5638 :Ei lupaa +STR_5639 :Näytä pelaajalista +STR_5640 :Hallitse ryhmiä +STR_5641 :Oletusryhmä: +STR_5642 :Ryhmä +STR_5643 :Lisää ryhmä +STR_5644 :Poista ryhmä +STR_5645 :Keskustelu +STR_5646 :Maansiirto +STR_5647 :Pelin pysäytys +STR_5648 :Veden tason asetus +STR_5649 :Laitteiden luonti +STR_5650 :Laitteiden poisto +STR_5651 :Laitteiden rakennus +STR_5652 :Laiteasetukset +STR_5653 :Maisemointi +STR_5654 :Polku +STR_5655 :Kävijä +STR_5656 :Henkilöstö +STR_5657 :Puistoasetukset +STR_5658 :Puiston rahoitus +STR_5659 :Pelaajan potkaus +STR_5660 :Ryhmien muokkaus +STR_5661 :Pelaajan ryhmän asetus +STR_5662 :(ei mitään) +STR_5663 :Maisemointien raivaus +STR_5664 :Huijaus +STR_5665 :Maisemointirykelmä päälle/pois +STR_5666 :Salasanaton sisäänpääsy +STR_5701 :{WINDOW_COLOUR_2}Viimeisin toiminto: {BLACK}{STRINGID} +STR_5702 :Paikanna pelaajan viimeisin toiminto +STR_5703 :Isäntää ei voi potkaista +STR_5704 :Viim. toiminto +STR_5705 :Tätä ei voida asettaa ryhmään +STR_5706 :Ryhmää johon kuuluu pelaajia ei voi poistaa +STR_5707 :Tätä ryhmää ei voi muokata +STR_5708 :Ryhmää johon isäntä kuuluu ei voi muokata +STR_5709 :Nimeä ryhmä +STR_5710 :Ryhmän nimi +STR_5711 :Anna uusi nimi ryhmälle: +STR_5712 :Et voi muokata lupaa jota sinulla ei ole +STR_5713 :Potkaise pelaaja +STR_5714 :Näytä asetukset +STR_5715 :Uusi peli +STR_5716 :Ei sallittu moninpelissä +# For identifying client network version in server list window +STR_5717 :Verkon versio: {STRING} +STR_5718 :Verkon versio: {STRING} +STR_5719 :Aurinkoista +STR_5720 :Puolipilvistä +STR_5721 :Pilvistä +STR_5722 :Sadetta +STR_5723 :Rankkasadetta +STR_5724 :Ukkosmyrsky +STR_5725 :{BLACK}Vaihda säätila: +STR_5726 :Valitsee puiston säätilan +STR_5727 :Skaalauslaatu: +STR_5731 :Lineaarinen +# tooltip for tab in options window +STR_5734 :Piirto +STR_5735 :Verkon tila +STR_5736 :Pelaaja +STR_5737 :Suljettu, {COMMA16} kävijä vielä kyydissä +STR_5738 :Suljettu, {COMMA16} kävijää vielä kyydissä +STR_5739 :{WINDOW_COLOUR_2}Asiakkaita kyydissä: {BLACK}{COMMA16} +STR_5740 :Päättymättömät markkinointikampanjat +STR_5741 :Markkinointikampanjat eivät koskaan pääty +STR_5742 :Todennetaan… +STR_5743 :Yhdistetään… +STR_5744 :Selvitetään… +STR_5745 :Verkkopelin epätahdistus havaittu +STR_5746 :Yhteys katkaistu +STR_5747 :Yhteys katkaistu: {STRING} +STR_5748 :Potkittu +STR_5749 :Poistu palvelimelta! +STR_5750 :Yhteys suljettu +STR_5751 :Ei tietoja +STR_5752 :{OUTLINE}{RED}{STRING} lähti pelistä +STR_5753 :{OUTLINE}{RED}{STRING} lähti pelistä ({STRING}) +STR_5754 :Epäkelpo pelaajanimi +STR_5755 :Väärä ohjelmistoversio (palvelimella on {STRING}) +STR_5756 :Väärä salasana +STR_5757 :Palvelin täynnä +STR_5758 :{OUTLINE}{GREEN}{STRING} liittyi peliin +STR_5759 :Ladataan tasoa… ({INT32} / {INT32}) KiB +STR_5760 :Hong Kongin dollari (HK$) +STR_5761 :Uusi Taiwanin dollari (NT$) +STR_5762 :Kiinan juan (CN¥) +STR_5763 :Kaikki tiedostot +STR_5764 :Epäkelpo laitetyyppi +STR_5765 :Epäkelvon tyyppisiä laitteita ei voi muokata +STR_5766 :Unkarin forintti (Ft) +STR_5767 :Tulot +STR_5768 :Asiakkaat yhteensä +STR_5769 :Tuotto yhteensä +STR_5770 :Asiakkaita/tunti +STR_5771 :Käyttökustannus +STR_5772 :Ikä +STR_5773 :Asiakkaat yhteensä: {COMMA32} +STR_5774 :Tuotto yhteensä: {CURRENCY2DP} +STR_5775 :Customers: {COMMA32} per tunti +STR_5776 :Rakennettu: Tänä vuonna +STR_5777 :Rakennettu: Viime vuonna +STR_5778 :Rakennettu: {COMMA16} vuotta sitten +STR_5779 :Tulot: {CURRENCY2DP} per tunti +STR_5780 :Käyttökustannus: {CURRENCY2DP} per tunti +STR_5781 :Käyttökustannus: Tuntematon +STR_5782 :Yhdistetty. Paina ‘{STRING}’ keskustellaksesi. +STR_5783 :{WINDOW_COLOUR_2}Skenaario lukittu +STR_5784 :{BLACK}Läpäise aiemmat skenaariot avataksesi tämän skenaarion. +STR_5785 :Ryhmää ei voi uudelleennimetä… +STR_5786 :Epäkelpo nimi ryhmälle +STR_5787 :{COMMA32} pelaajaa linjoilla +STR_5788 :Tarkastusvälin oletus: +STR_5789 :Poista salamatehoste +STR_5790 :RCT1-tyylinen hinnoittelu päälle/pois{NEWLINE}(sekä laitteiden että sisäänpääsyn hinnat) +STR_5791 :Asettaa kaikkien laitteiden luotettavuuden 100%:een ja niiden rakennuspäivämäärän täksi vuodeksi +STR_5792 :Korjaa kaikki hajoutuneet laitteet +STR_5793 :Nollaa laitteen törmäyshistorian, jotta kävijät eivät valita sen epäturvallisuudesta +STR_5794 :Jotkut skenaariot estävät joidenkin laitteiden muokkauksen. Tämä huijaus poistaa nämä estot. +STR_5795 :Kävijät menevät kaikkiin puiston laitteisiin, vaikka intensiteetti olisi pilvissä +STR_5796 :Pakottaa puiston avautumaan tai sulkeutumaan +STR_5797 :Estää sään muutokset ja pysyttäytyy valitussa säätilassa +STR_5798 :Sallii rakennustoiminnot pelin ollessa pysäytettynä +STR_5799 :Estää laitteita hajoamasta ja törmäämästä jarruvikojen takia +STR_5800 :Estää laitteita hajoamasta +STR_5801 :Estä roskaus +STR_5802 :Estää kävijöitä roskaamasta ja oksentamasta +STR_5803 :Käännä valittu tasoelementti +STR_5804 :Mykistä äänet +STR_5805 :Jos päällä, palvelimesi lisätään julkiseen palvelinlistaan, jotta kuka tahansa voi löytää sen +STR_5806 :Ikkunoitu tila päälle/pois +STR_5807 :{WINDOW_COLOUR_2}Laitteiden määrä: {BLACK}{COMMA16} +STR_5808 :{WINDOW_COLOUR_2}Kojujen määrä: {BLACK}{COMMA16} +STR_5809 :{WINDOW_COLOUR_2}Infokioskien ja muiden palveluiden määrä: {BLACK}{COMMA16} +STR_5810 :Poista vaunurajat +STR_5811 :Jos päällä, voit liittää jopa 255 vaunua per juna, ja 31 junaa per laite +STR_5812 :Näytä moninpeli-ikkuna +STR_5813 :“{STRING}” +STR_5814 :{WINDOW_COLOUR_1}“{STRING}” + +#tooltips +STR_5815 :Näytä kuvataajuusmittari pelissä +STR_5816 :Asettaa pelin skaalaussuhteen. Kaikista kätevin suurella resoluutiolla pelattaessa. +STR_5817 :Asettaa käyttöliittymän skaalaustyypin. Laitteistopiirto tulee olla päällä.{NEWLINE}Lineaarinen on pehmeä, mutta samea. Pehmeä lähin naapuri -skaalaus on terävä, mutta voi aiheuttaa hieman heikentynyttä suorituskykyä. +STR_5819 :[Edellyttää laitteistopiirtoa]{NEWLINE}Pysäytä peli jos Steam-yhteisönäkymä on avattu +STR_5820 :Pienennä peli jos ikkunan kohdistus poistuu kokonäyttötilassa pelatessa +STR_5822 :Näytä vuorokauden vaihtuminen. Yksi vuorokausi kestää yhden pelikuukauden +STR_5823 :Näytä bannerit isoilla kirjaimilla (kuten RCT1:ssä) +STR_5824 :Älä näytä salamatehostetta ukkosmyrskyn aikana +STR_5825 :Pidä hiiren osoitin ikkunan sisällä +STR_5826 :Käännä näkymän hiiren oikealla painikkeella raahauksen suunta +STR_5827 :Asettaa käyttöliittymän väriskeeman +STR_5828 :Asettaa mitä mittayksiköitä käytetään pituuksiin, nopeuksiin, jne +STR_5829 :Asettaa pelissä käytetyn valuutan. Lähinnä visuaalinen muutos, tarkkoja vaihtokursseja ei käytetä +STR_5830 :Asettaa pelissä käytetyn kielen +STR_5831 :Asettaa pelissä käytetyn lämpötilayksikön +STR_5832 :Näytä korkeus yleisenä numerona tarkan mittayksikön sijaan +STR_5833 :Asettaa pelissä käytetyn päivämäärämuodon +STR_5834 :Valitse mitä äänilaitetta OpenRCT2 käyttää +STR_5835 :Mykistä peli jos ikkunan kohdistus häviää +STR_5836 :Valitse päävalikossa soiva musiikki.{NEWLINE}RCT1-teemamusiikin valinta edellyttää, että joko kopioit ‘data/css17.dat’ -tiedoston RCT1-kansiosta ‘data/css50.dat’ -tiedostoksi RCT2-kansioon, tai asetat RCT1-hakemiston Lisäasetukset-välilehdellä. +STR_5837 :Luo ja hallitse mukautettuja käyttöliittymäteemoja +STR_5838 :Näytä erillinen painike työkalupalkissa Talous-ikkunaa varten +STR_5839 :Näytä erillinen painike työkalupalkissa Kehitys-ikkunaa varten +STR_5840 :Näytä erillinen painike työkalupalkissa Huijaukset-ikkunaa varten +STR_5841 :Näytä erillinen painike työkalupalkissa Uutiset-ikkunaa varten +STR_5842 :Ryhmitä skenaariot vaikeusasteen mukaan (kuten RCT2:ssa) tai alkuperäisen pelin mukaan (kuten RCT1:ssä) +STR_5843 :Uudet skenaariot avautuvat vasta kun edelliset ovat voitettu (kuten RCT1:ssä) +STR_5844 :Pysy yhteydessä moninpelipalvelimeen myös epätahdistuksen tai virheen kohdalla +STR_5845 :Lisää työkalupalkkiin painikkeen virheenkorjaustyökaluihin.{NEWLINE}Ottaa käyttöön pikanäppäimen kehittäjäkonsoliin +STR_5846 :Valitse kuinka usein OpenRCT2 tallentaa pelin automaattisesti +STR_5847 :Valitse puistotausta päävalikon taustalle.{NEWLINE}RCT1/2:n valikkotaustat tarvitsevat tuodut skenaariot toimiakseen +STR_5848 :Luo ja hallitse mukautettuja valikkotaustoja +STR_5849 :Sijoita juuri palkatut työntekijät polulle automaattisesti +STR_5851 :Asettaa oletustarkastusvälin uusille laitteille +STR_5853 :Kytke äänitehosteet päälle/pois +STR_5854 :Kytke laitemusiikki päälle/pois +STR_5855 :Valitse normaali kokonäyttötila, raamiton kokonäyttötila tai ikkunoitu näyttö +STR_5856 :Valitse pelin resoluutio kokonäyttötilassa +STR_5857 :Peliasetukset +STR_5858 :Käytä GPU:ta CPU:n sijaan. Parantaa yhteensopivuutta ruudunkaappausohjelmistojen kanssa. Saattaa heikentää suorituskykyä. +STR_5859 :Käyttää kehysten välipiirtoa sulavampaa pelattavuutta varten. Kun pois päältä, pelin kuvataajuus on 40. +STR_5860 :Alkuperäinen/purettu ratapiirto +STR_5861 :Avaimen varmistusvirhe. +STR_5862 :Estä tuntemattomat pelaajat. +STR_5863 :Salli vain pelaajat joilla on tunnetut avaimet. +STR_5864 :Tämä palvelin sallii vain hyväksyttyjen pelaajien liittyä. +STR_5865 :Keskusteluloki +STR_5866 :Kirjaa kaikki keskusteluviestit lokitiedostoihin käyttäjähakemistoosi. +STR_5867 :{WINDOW_COLOUR_2}Toimittajan nimi: {BLACK}{STRING} +STR_5868 :{WINDOW_COLOUR_2}Toimittajan s.posti: {BLACK}{STRING} +STR_5869 :{WINDOW_COLOUR_2}Toimittajan sivusto: {BLACK}{STRING} +STR_5870 :Näytä palvelimen tiedot +STR_5871 :Estä kasvien kuihtuminen +STR_5872 :Estää kasveja ikääntymästä jotta ne eivät kuihdu. +STR_5873 :Salli nostomäki kaikissa rataosissa +STR_5874 :Sallii minkä tahansa rataosan asettamisen nostomäeksi +STR_5875 :Piirtomoottori: +STR_5876 :Pelin piirtoon käytetty moottori +STR_5877 :Ohjelmisto +STR_5878 :Ohjelmisto (laitteistopiirto) +STR_5879 :OpenGL (kokeellinen) +STR_5880 :Vain valitut +STR_5881 :Vain ei-valitut +STR_5882 :Mukautettu valuutta +STR_5883 :Mukautetun valuutan asetukset +STR_5884 :{WINDOW_COLOUR_2}Vaihtokurssi: +STR_5885 :{WINDOW_COLOUR_2}on yhtä kuin {COMMA32} GBP (£) +STR_5886 :{WINDOW_COLOUR_2}Valuuttasymboli: +STR_5887 :Etuliite +STR_5888 :Pääte +STR_5889 :Mukautettu valuuttasymboli +STR_5890 :Anna näytettävä valuuttasymboli +STR_5891 :Oletus +STR_5892 :Mene oletuskansioon +STR_5893 :Vaihtokurssi +STR_5894 :Anna vaihtokurssi +STR_5895 :Tallenna rata +STR_5896 :Radan tallennus epäonnistui! +STR_5898 :{BLACK}Rataa ei voi ladata, tiedosto saattaa olla{newline}vioittunut, rikki, tai se puuttuu! +STR_5899 :Piirron virheenkorjausikkuna päälle/pois +STR_5900 :Käytä alkuperäistä piirtokoodia +STR_5901 :Näytä osien korkeudet +STR_5902 :Näytä ympäröivät kehikot +STR_5903 :Näytä piirron virheenkorjausikkuna +STR_5904 :Nollaa päivä +STR_5905 :Tasonluonnin työkalu, joka luo mukautetun maaston automaattisesti +STR_5906 :Lähennä osoitinta kohti +STR_5907 :Kun päällä, lähennys asettuu hiiren osoitinta kohti, ruudun keskikohdan sijaan. +STR_5908 :Salli mielivaltaiset laitetyyppivaihdot +STR_5909 :Sallii laitteen tyypin vapaan vaihdon. Saattaa johtaa pelin kaatumiseen. +STR_5910 :Käytä +STR_5911 :Näe polkujen läpi +STR_5912 :Näe polkujen läpi -kytkin +STR_5913 :Keskustelu +STR_5914 :Tuntematon laite +STR_5915 :Pelaaja +STR_5916 :{COMMA16} pelaaja +STR_5917 :{COMMA16} pelaajaa +STR_5918 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_5919 :{COMMA16} +STR_5920 :Piirrä säätilatehosteet +STR_5921 :Jos päällä, sade ja synkät värit piirretään myrskyjen tapahtuessa. +STR_5922 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}Maks. {STRINGID} +STR_5923 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}Maks. {COMMA16} {STRINGID} per juna +STR_5924 :Pinnan tiedot +STR_5925 :Polun tiedot +STR_5926 :Radan tiedot +STR_5927 :Maisemoinnin tiedot +STR_5928 :Sisäänkäynnin tiedot +STR_5929 :Seinän tiedot +STR_5930 :Suurmaisemoinnin tiedot +STR_5931 :Bannerin tiedot +STR_5932 :Vioittuneen elementin tiedot +STR_5933 :Ominaisuudet +STR_5934 :{WINDOW_COLOUR_2}Maastokuviointi: {BLACK}{STRINGID} +STR_5935 :{WINDOW_COLOUR_2}Maaston sivu: {BLACK}{STRINGID} +STR_5936 :{WINDOW_COLOUR_2}Maan omistajuus: {BLACK}{STRINGID} +STR_5937 :Ei omistettu eikä myynnissä +STR_5938 :{WINDOW_COLOUR_2}Veden taso: {BLACK}{COMMA16} +STR_5939 :Poista puiston aidat +STR_5940 :Palauta puiston aidat +STR_5941 :{WINDOW_COLOUR_2}Pohjakorkeus: +STR_5942 :{WINDOW_COLOUR_2}Polun nimi: {BLACK}{STRINGID} +STR_5943 :{WINDOW_COLOUR_2}Lisäosat: {BLACK}{STRINGID} +STR_5944 :{WINDOW_COLOUR_2}Lisäosat: {BLACK}Ei mitään +STR_5945 :{WINDOW_COLOUR_2}Yhdistetyt reunat: +STR_5946 :{WINDOW_COLOUR_2}Laitetyyppi: {BLACK}{STRINGID} +STR_5947 :{WINDOW_COLOUR_2}Laitetunnus: {BLACK}{COMMA16} +STR_5948 :{WINDOW_COLOUR_2}Laitteen nimi: {BLACK}{STRINGID} +STR_5949 :{WINDOW_COLOUR_2}Nostomäki +STR_5950 :{WINDOW_COLOUR_2}Sovella muutokset koko rataosaan +STR_5951 :{WINDOW_COLOUR_2}Rataosatunnus: {BLACK}{COMMA16} +STR_5952 :{WINDOW_COLOUR_2}Jaksonumero: {BLACK}{COMMA16} +STR_5953 :Järjestä tasoelementit nykyisessä ruudussa korkeuksiensa mukaan. +STR_5954 :{WINDOW_COLOUR_2}Maisemoinnin ikä: {BLACK}{COMMA16} +STR_5955 :{WINDOW_COLOUR_2}Sijoituksen neljäsosa: {BLACK}{STRINGID} +STR_5956 :Lounas +STR_5957 :Luode +STR_5958 :Koillinen +STR_5959 :Kaakko +STR_5960 :{WINDOW_COLOUR_2}Sijoituksen neljäsosa: +STR_5961 :{WINDOW_COLOUR_2}Indeksi: {BLACK}{COMMA16} +STR_5962 :{WINDOW_COLOUR_2}Törmäystunnistus: +STR_5963 :{WINDOW_COLOUR_2}Nostetut kulmat: +STR_5964 :{WINDOW_COLOUR_2}Viisto +STR_5965 :{WINDOW_COLOUR_2}Sisäänkäynnin tyyppi: {BLACK}{STRINGID} +STR_5966 :{WINDOW_COLOUR_2}Puistosisäänkäynnin osa: {BLACK}{STRINGID} +STR_5967 :Keski +STR_5968 :Vasen +STR_5969 :Oikea +STR_5970 :{WINDOW_COLOUR_2}Sisäänkäyntitunnus: {BLACK}{COMMA16} +STR_5971 :{WINDOW_COLOUR_2}Uloskäyntitunnus: {BLACK}{COMMA16} +STR_5972 :{WINDOW_COLOUR_2}Laitetunnus: {BLACK}{COMMA16} +STR_5973 :Kiinnitä seuraavaan +STR_5974 :Muuttaa perus- ja vapaakorkeuden samaan tasoon kuin tämän ruudun seuraava elementti. Tämä tekee tälle ruudulle rakentamisesta helpompaa. +STR_5975 :Mäki: +STR_5976 :Tasainen +STR_5977 :Oikea puoli ylös +STR_5978 :Vasen puoli ylös +STR_5979 :{WINDOW_COLOUR_2}Seinän tyyppi: {BLACK}{COMMA16} +STR_5980 :{WINDOW_COLOUR_2}Bannerin teksti: {BLACK}{STRINGID} +STR_5981 :{WINDOW_COLOUR_2}Ei banneri +STR_5982 :{WINDOW_COLOUR_2}Suurmaisemoinnin tyyppi: {BLACK}{COMMA16} +STR_5983 :{WINDOW_COLOUR_2}Suurmaisemoinnin tunnus: {BLACK}{COMMA16} +STR_5984 :Estetyt polut: +STR_5985 :Uusi kansio +STR_5986 :Anna nimi uudelle kansiolle. +STR_5987 :Uutta kansiota ei voi luoda +STR_5988 :Maata ei ole enää enempää myytävänä +STR_5989 :Rakennuslupia ei ole enää enempää myytävänä +STR_5990 :Maata tai rakennuslupia ei ole enää enempää myytävänä +STR_5991 :Elementtiä ei voi liittää… +STR_5992 :Tason elementtiraja on saavutettu +STR_5993 :Kopioi valittu elementti +STR_5994 :Liitä kopioitu elementti +STR_5995 :Tehostin +STR_5996 :Tehostimen nopeus +STR_5997 :Lisää/aseta rahat +STR_5998 :Lisää rahaa +STR_5999 :Aseta saldoksi +STR_6000 :Anna uusi arvo +STR_6001 :Valaistustehosteet (kokeellinen) +STR_6002 :Katuvalot ja laitteet valaistaan yöllä.{NEWLINE}Edellyttää piirtomoottorin asettamista laitteistopiirtoon. +STR_6003 :Leikattu näkymä +STR_6004 :Leikattu näkymä +STR_6005 :Näytä leikattu näkymä +STR_6006 :Leikattu näkymä näyttää vain karttaelementit leikkauskorkeuden kohdalla tai sen alla (pystysuora leikkaus) ja valitussa alueessa (vaakasuora leikkaus). +STR_6007 :Leikkauksen korkeus +STR_6008 :Klikkaa vaihtaaksesi raa’an arvon ja mittayksikön arvon välillä +STR_6009 :Valitse leikkauskorkeus +STR_6010 :{COMMA2DP32}m +STR_6011 :{COMMA1DP16}ft +STR_6012 :{COMMA1DP16} +STR_6013 :Kävijät maksavat ainoastaan puistoon sisäänpääsystä sekä palveluista.{NEWLINE}Laitteisiin pääsy on ilmaista. +STR_6014 :Kävijät maksavat ainoastaan laitteisiin pääsystä sekä palveluista.{NEWLINE}Puistoon sisäänpääsy on ilmaista. +STR_6015 :Mäki +STR_6016 :Muokkaa ruutua +STR_6017 :Hiljennä ole hyvä +STR_6018 :Rakennus - Käännös vasempaan +STR_6019 :Rakennus - Käännös oikeaan +STR_6020 :Rakennus - Käytä oletusrataa +STR_6021 :Rakennus - Mäki alas +STR_6022 :Rakennus - Mäki ylös +STR_6023 :Rakennus - Kytke nostomäki +STR_6024 :Rakennus - Kallistus vasempaan +STR_6025 :Rakennus - Kallistus oikeaan +STR_6026 :Rakennus - Edellinen rata +STR_6027 :Rakennus - Seuraava rata +STR_6028 :Rakennus - Rakenna nykyinen +STR_6029 :Rakennus - Romuta nykyinen +STR_6030 :Maisemointivalitsin. Klikkaa mitä tahansa maisemointiesinettä tasolla valitaksesi saman osan rakennettavaksi. +STR_6031 :Palvelimen kuvaus: +STR_6032 :Tervehdys: +STR_6033 :RCT1-asennuksen polku: +STR_6034 :{BLACK}{STRING} +STR_6035 :Valitse RCT1-hakemisto +STR_6036 :Tyhjennä +STR_6037 :Valittu kansio ei sisällä hyväksyttävää RollerCoaster Tycoon 1 -asennusta. +STR_6038 :Jos sinulla on RCT1 asennettuna, aseta asennushakemisto ladataksesi sen skenaariot, musiikit, ym. +STR_6039 :Pikaromuta laite +STR_6040 :Muuta skenaarioasetuksia +STR_6041 :{BLACK}Yhtään mekaanikkoa ei ole palkattu! +STR_6042 :Lataa korkeuskartta +STR_6043 :Valitse korkeuskartta +STR_6044 :Sileä korkeuskartta +STR_6045 :Voima +STR_6046 :Normalisoi korkeuskartta +STR_6047 :Sileät ruudut +STR_6048 :Korkeuskarttavirhe +STR_6049 :Virhe lukiessa PNG:tä +STR_6050 :Virhe lukiessa bittikarttakuvaa +STR_6051 :Leveyden ja pituuden tulee olla samat +STR_6052 :Korkeuskartta on liian iso, ja leikkautuu +STR_6053 :Korkeuskarttaa ei voi normalisoida +STR_6054 :Vain 24-bittisiä bittikarttakuvia tuetaan +STR_6055 :OpenRCT2 korkeuskarttatiedosto +STR_6056 :Mykistä +STR_6057 :Näytä erillinen painike työkalupalkissa mykistystä varten +STR_6058 :Mykistä +STR_6059 :» +STR_6060 :Näytä kävijöiden ostokset animaationa +STR_6061 :Näyttää animoiden rahatehosteen kun kävijät tekevät ostoksia. +STR_6062 :{OUTLINE}{GREEN}+ {CURRENCY2DP} +STR_6063 :{OUTLINE}{RED}- {CURRENCY2DP} +STR_6064 :Omista kaikki maat +STR_6065 :Toimintaloki +STR_6066 :Kirjaa kaikki pelaajien toiminnat lokitiedostoon käyttäjähakemistoosi. +STR_6067 :Palvelin käynnistetty. +STR_6068 :Palvelin sammutettu. +STR_6069 :{STRING} potkittiin palvelimelta pelaajan {STRING} toimesta. +STR_6070 :{STRING} asetettiin ryhmään ‘{STRING}’ pelaajan {STRING} toimesta. +STR_6071 :{STRING} loi uuden pelaajaryhmän ‘{STRING}’. +STR_6072 :{STRING} poisti pelaajaryhmän ‘{STRING}’. +STR_6073 :{STRING} muokkasi pelaajaryhmän ‘{STRING}’ lupia. +STR_6074 :{STRING} vaihtoi pelaajaryhmän ‘{STRING}’ nimeksi ‘{STRING}’. +STR_6075 :{STRING} vaihtoi oletuspelaajaryhmän ryhmäksi ‘{STRING}’. +STR_6076 :{STRING} käytti huijausta ‘{STRING}’. +STR_6077 :Lisää rahaa +STR_6078 :{STRING} rakensi laitteen ‘{STRING}’. +STR_6079 :{STRING} romutti laitteen ‘{STRING}’. +STR_6080 :{STRING} muutti laitteen ‘{STRING}’ ulkonäköä. +STR_6081 :{STRING} sulki laitteen ‘{STRING}’. +STR_6082 :{STRING} avasi laitteen ‘{STRING}’. +STR_6083 :{STRING} rupesi testaamaan laitetta ‘{STRING}’. +STR_6084 :{STRING} muutti laitteen ‘{STRING}’ vaunuasetuksia. +STR_6085 :{STRING} muutti laitteen ‘{STRING}’ asetuksia. +STR_6086 :{STRING} vaihtoi laitteen ‘{STRING}’ nimeksi ‘{STRING}’. +STR_6087 :{STRING} asetti laitteen ‘{STRING}’ hinnaksi {STRING} +STR_6088 :{STRING} asetti laitteen ‘{STRING}’ toissijaiseksi hinnaksi {STRING} +STR_6089 :{STRING} vaihtoi puiston ‘{STRING}’ nimeksi ‘{STRING}’. +STR_6090 :{STRING} avasi puiston. +STR_6091 :{STRING} sulki puiston. +STR_6092 :{STRING} asetti puiston sisäänpääsyhinnaksi {STRING} +STR_6093 :{STRING} sijoitti maisemoinnin. +STR_6094 :{STRING} romutti maisemoinnin. +STR_6095 :{STRING} muokkasi maisemointia. +STR_6096 :{STRING} asetti kyltin nimeksi ‘{STRING}’. +STR_6097 :{STRING} sijoitti laitteen ‘{STRING}’ radan. +STR_6098 :{STRING} poisti laitteen radan. +STR_6099 :Sinä yhdistit palvelimeen. +STR_6100 :Sinä katkaisit yhteyden palvelimeen. +STR_6101 :Laitteiden arvo ei laske ajan myötä +STR_6102 :Laitteiden arvo ei laske ajan myötä, jotta kävijät eivät yht’äkkiä pidä laitetta liian kalliina. +STR_6103 :Tämä asetus on pois käytöstä moninpeluun aikana. +STR_6105 :Hypervuoristorata +STR_6107 :Monsteriautot +STR_6109 :Hyper-Twister +STR_6111 :Klassinen minivuoristorata +STR_6113 :Korkea mutta kääntymätön vuoristorata isoilla pudotuksilla, korkeilla nopeuksilla, ja mukavilla junilla joissa on pelkät tavalliset turvakaiteet +STR_6115 :Jättimäiset moottoroidut nelivetoautot, jotka voivat kiivetä jyrkkiä mäkiä +STR_6116 :Leveät vuoristoratajunat kiitävät sileän teräsradan ja moninaisten käännösten halki +STR_6119 :Halpa ja helpporakenteinen, mutta korkeusrajoitteinen vuoristorata +STR_6120 :{BABYBLUE}Uusi vaunutyyppi saatavilla laitteelle {STRINGID}:{NEWLINE}{STRINGID} +STR_6121 :Jatkaa puiston maaoikeuksia tason reunoille saakka +STR_6122 :Tässä skenaariossa ei ole tarpeeksi vuoristoratoja! +STR_6123 :Virhe ladattaessa puiston esineitä +STR_6124 :Esineen nimi +STR_6125 :Esineen tyyppi +STR_6126 :Tuntematon tyyppi +STR_6127 :Tiedosto: {STRING} +STR_6128 :Tiedostoa ei voi ladata, koska jotkut sen tarvitsemat esineet ovat kateissa tai vioittuneita. Lista näistä esineistä alla. +STR_6129 :Kopioi +STR_6130 :Kopioi kaikki +STR_6131 :Esineen lähde +STR_6132 :Sivuuta kehitys +STR_6133 :Käytä laitteita ja maisemointeja joita ei ole vielä kehitetty +STR_6134 :Raivaa maisemointi +STR_6135 :Asiakasohjelma lähetti epäkelvon pyynnön +STR_6136 :Palvelin lähetti epäkelvon pyynnön +STR_6137 :OpenRCT2, ilmainen avoimen lähdekoodin Roller Coaster Tycoon 2 -klooni. +STR_6138 :OpenRCT2 on monen tekijän yhteistyötä. Täysi lista löytyy tiedostosta “contributors.md”. Lisätietoja osoitteessa http://github.com/OpenRCT2/OpenRCT2 +STR_6139 :Kaikki tuote- ja yritysnimet kuuluvat kullekin oikeudenomistajalleen. Niiden käyttö ei tarkoita minkäänlaista yhteistyötä tai hyväksyntää. +STR_6140 :Muutosloki… +STR_6141 :RCT1:n alapalkkityyli +STR_6142 :{WINDOW_COLOUR_2}Radan nimi: {BLACK}{STRING} +STR_6143 :{WINDOW_COLOUR_2}Laitteen tyyppi: {BLACK}{STRINGID} +STR_6144 :Näytä likaiset grafiikat +STR_6145 :Aseta nopeusrajoitus tehostimille +STR_6146 :Ota käyttöön kaikki piirrettävät rataosat +STR_6147 :Ottaa rakennusikkunassa käyttöön kaikki rataosat joihin laitetyyppi kykenee, riippumatta siitä, tukeeko vaunut niitä. +STR_6148 :Yhdistää pääpalvelimelle… +STR_6149 :Pääpalvelimeen yhdistys ei onnistunut +STR_6150 :Epäkelpo vastaus pääpalvelimelta (ei JSON-numeroa) +STR_6151 :Pääpalvelin ei palauttanut palvelinlistaa +STR_6152 :Epäkelpo vastaus pääpalvelimelta (ei JSON-taulukkoa) +STR_6153 :Maks. sisäänpääsy / maks. laitteet +STR_6154 :Turvasyistä ei ole suositeltavaa pelata OpenRCT2:a korotetuilla käyttöoikeuksilla. +STR_6155 :Sekä KDialog että Zenity eivät ole asennettuina. Ole hyvä ja asenna yksi, tai määritä komentoriviltä. +STR_6156 :Nimi on varattu +STR_6157 :Konsoli +STR_6158 :Tiedostoa ei voi ladata…{NEWLINE}Yhteensopimaton RCTC-versio: {COMMA16} +STR_6159 :Pehmeä lähin naapuri +STR_6160 :{WINDOW_COLOUR_2}Vaunutyypit saatavilla: {BLACK}{STRING} +STR_6161 :Maastoruudukko -kytkin +STR_6162 :Pyörivä villihiiri +STR_6163 :Hiiren muotoiset vaunut kiitävät tiukkojen mutkien ja lyhyiden pudotusten läpi, lempeästi pyörien matkustajien hämmennykseksi +STR_6164 :{WHITE}❌ +STR_6165 :Pystytahdistus +STR_6166 :Tahdista jokaisen kuvan piirto näytön virkistystaajuuteen, estäen screen tearing -ilmiön +STR_6167 :Lisäasetukset +STR_6168 :Päävalikon tausta +STR_6169 :Skenaarion valinta +STR_6170 :Käyttöliittymän asetukset +STR_6171 :Haku +STR_6172 :Haku +STR_6173 :Anna haettava nimi: +STR_6174 :Lataa tallennus +STR_6175 :Lataa skenaario +STR_6176 :Ladattava skenaario: +STR_6177 :Lataa{MOVE_X}{87}Ei valittua skenaariota +STR_6178 :Lataa{MOVE_X}{87}{RED}Puuttuva skenaario +STR_6179 :Valitse +STR_6180 :Ei valittua skenaariota +STR_6181 :{RED}Puuttuva skenaario +STR_6182 :Seuraa{MOVE_X}{87}{STRING} +STR_6183 :Seuraa{MOVE_X}{87}Ei valittua spriteä +STR_6184 :Seuraa spriteä +STR_6185 :Valitse sprite +STR_6186 :Ei valittua spriteä +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6188 :Oksennus +STR_6189 :Ankka +STR_6190 :Et voi valita spriteä kun päävalikko on käytössä. +STR_6191 :Pinta +STR_6192 :Seinä +STR_6193 :{COMMA16} kävijä +STR_6194 :{INLINE_SPRITE}{11}{20}{00}{00}{COMMA16} kävijä +STR_6195 :{INLINE_SPRITE}{10}{20}{00}{00}{COMMA16} kävijä +STR_6196 :{BLACK}Vuosi: +STR_6197 :{BLACK}Kuukausi: +STR_6198 :{BLACK}Päivä: +STR_6199 :Aseta päivä +STR_6200 :Nollaa päivä +STR_6201 :{MONTH} +STR_6202 :Virtuaalilattian tyyli: +STR_6203 :Kun tämä on päällä, virtuaalinen lattia ilmestyy painamalla Ctrl tai Shift, helpottaen sijoitettavan esineen korkeuden valintaa +STR_6215 :Rakennus +STR_6216 :Käyttö +STR_6217 :Laite-/ratasaatavuus +STR_6218 :Virallinen OpenRCT2 +STR_6219 :Korosta polkuongelmat +STR_6220 :Tee käytettäväksi +STR_6221 :Tämä asettaa laitteen tiedetyn sisään- tai uloskäynnin sijainnin valitulle ruudulle. Vain yksi sisäänkäynti ja yksi uloskäynti voidaan asettaa käytettäväksi per asema. +STR_6222 :Kävijöiden sisäänkäyntipistettä ei voi sijoittaa tähän… +STR_6223 :Tulee olla puiston rajojen ulkopuolella! +STR_6224 :{STRING} sijoitti kävijöiden sisäänkäyntipisteen. +STR_6225 :Ei tuettu OpenGL-piirrossa +STR_6226 :Aikainen skenaarion voitto +STR_6227 :Skenaario läväistään heti kun kaikki skenaarion tavoitteet ovat saavutettu ennen tavoitepäivämäärää. +STR_6228 :Skenaarioasetukset +STR_6229 :{WINDOW_COLOUR_2}{STRINGID}: {STRINGID} +STR_6230 :{BLACK}{STRINGID}: +STR_6231 :{WINDOW_COLOUR_2}{STRINGID}: {MOVE_X}{185}{STRINGID} +STR_6232 :Jäissä +STR_6233 :Leikattu näkymä +STR_6234 :Korosta polkuongelmat +STR_6235 :Palvelimen tiedot +STR_6236 :Pelaajat +STR_6237 :Ryhmät +STR_6238 :Moninpeliasetukset +STR_6239 :Pystysuora leikkaus +STR_6240 :Vaakasuora leikkaus +STR_6241 :Valitse alue +STR_6242 :Nollaa alue +STR_6243 :Kunnostaa laitteen kuin uudeksi +STR_6244 :Laitetta ei voi kunnostaa… +STR_6245 :Laite ei tarvitse kunnostusta +STR_6246 :Kunnosta +STR_6247 :Kunnosta laite/kohde +STR_6248 :{WINDOW_COLOUR_1}Haluatko kunnostaa kohteen {STRINGID} hintaan {CURRENCY}? +STR_6249 :{WINDOW_COLOUR_1}Haluatko kunnostaa kohteen {STRINGID}? +STR_6250 :{WINDOW_COLOUR_1}Oletko varma että haluat romuttaa kohteen {STRINGID} ja tienata {CURRENCY}? +STR_6251 :Laite ei ole vielä tyhjä +STR_6255 :URL ei ole kelpo +STR_6256 :Piirtotehosteet +STR_6257 :Lasinen (läpikuultava) +STR_6258 :Kirkas (läpinäkyvä) +STR_6259 :Pois +STR_6260 :Näytä estetyt ruudut +STR_6261 :Näytä leveät polut +STR_6262 :Pää-äänenvoimakkuus +STR_6263 :Kytke kaikki äänet päälle/pois +STR_6264 :Käytä aina järjestelmän tiedostoselainta +STR_6265 :Kun päällä, OpenRCT2 käyttää käyttöjärjestelmäsi omaa tiedostoselainta natiivin selaimen sijaan. +STR_6266 :Avaa mukautetun sisällön kansio +STR_6267 :Avaa ruututyökalu +STR_6268 :Etene seuraavaan hetkeen +STR_6269 :Epäkelpo ilmastotunnus +STR_6270 :Maastopinnat +STR_6271 :Maastoreunat +STR_6272 :Asemat +STR_6273 :Musiikki +STR_6274 :Väriskeemaa ei voi valita… +STR_6275 :{WINDOW_COLOUR_2}Aseman tyyli: +STR_6276 :{RED}Kävijät juuttuvat kohteeseen {STRINGID}, mahdollisesti väärän laitetyypin tai toimintatilan johdosta. +STR_6277 :{WINDOW_COLOUR_2}Aseman numero: {BLACK}{STRINGID} +STR_6278 :Tallennuksien määrä +STR_6279 :Kuinka monta automaattista tallennusta tulisi pitää +STR_6280 :Keskustelu +STR_6281 :Näytä erillinen painike työkalupalkissa Keskustelu-ikkunaa varten +STR_6282 :Keskustelu +STR_6283 :Keskustelu ei ole saatavilla juuri nyt. Oletko yhdistettynä palvelimeen? +STR_6293 :B +STR_6294 :KiB +STR_6295 :MiB +STR_6296 :GiB +STR_6297 :TiB +STR_6298 :{STRING}/sek +STR_6299 :Lataa kaikki +STR_6300 :Lataa kaikki puuttuvat esineet, jos ne ovat saatavilla verkosta. +STR_6301 :Kopioi valitun esineen nimi leikepöydälle. +STR_6302 :Kopioi koko puuttuvien esineiden lista leikepöydälle. +STR_6303 :Ladataan esinettä ({COMMA16} / {COMMA16}): [{STRING}] +STR_6304 :Avaa maisemointivalitsin +STR_6305 :Monisäikeisyys +STR_6306 :Kokeellinen asetus, jossa piirtoon käytetään useampaa säiettä. Saattaa olla epävakaa. +STR_6307 :Väriskeema: {BLACK}{STRINGID} +STR_6308 :{TOPAZ}“{STRINGID}{OUTLINE}{TOPAZ}”{NEWLINE}{STRINGID} +STR_6309 :Yhdistä uudelleen +STR_6310 :{WINDOW_COLOUR_2}Sijainti: {BLACK}{INT32} {INT32} {INT32} +STR_6311 :{WINDOW_COLOUR_2}Seur: {BLACK}{INT32} {INT32} {INT32} +STR_6312 :(pinta) +STR_6313 :(mäki {INT32}) +STR_6314 :{WINDOW_COLOUR_2}Kohde: {BLACK}{INT32}, {INT32} toleranssi {INT32} +STR_6315 :{WINDOW_COLOUR_2}Polunetsintä: {BLACK}{INT32}, {INT32}, {INT32} suunta {INT32} +STR_6316 :{WINDOW_COLOUR_2}Polunetsinnän historia: +STR_6317 :{BLACK}{INT32}, {INT32}, {INT32} suunta {INT32} +STR_6318 :Verkkopelin epätahdistus havaittu.{NEWLINE}Lokitiedosto: {STRING} +STR_6319 :{WINDOW_COLOUR_2}Lohkojarru kiinni +STR_6320 :{WINDOW_COLOUR_2}Hajoutumaton +STR_6321 :{WINDOW_COLOUR_2}Lisäosa on hajonnut +STR_6322 :{WINDOW_COLOUR_2}Spritetunnus: {BLACK}{INT32} +STR_6323 :Simuloidaan +STR_6324 :Simuloi +STR_6325 :Simuloi laitetta +STR_6326 :Laitetta {POP16}{POP16}{POP16}{STRINGID} ei voi simuloida… +STR_6327 :Läpinäkyvä tausta jättiruudunkaappauksissa +STR_6328 :Kun päällä, jättiruudunkaappauksissa on läpinäkyvä tausta normaalin mustan taustan sijaan. +STR_6329 :{STRING}{STRINGID} +STR_6330 :Ladataan [{STRING}] kohteesta {STRING} ({COMMA16} / {COMMA16}) +STR_6331 :Luo ankkoja +STR_6332 :Poista ankat +STR_6333 :Nosta skaalauskerrointa +STR_6334 :Laske skaalauskerrointa +STR_6335 :Ruututyökalu: Lisää vioittunut elementti +STR_6336 :Ruututyökalu: Kopioi elementti +STR_6337 :Ruututyökalu: Liitä elementti +STR_6338 :Ruututyökalu: Poista elementti +STR_6339 :Ruututyökalu: Siirrä elementti ylös +STR_6340 :Ruututyökalu: Siirrä elementti alas +STR_6341 :Ruututyökalu: Korota X-koordinaattia +STR_6342 :Ruututyökalu: Vähennä X-koordinaattia +STR_6343 :Ruututyökalu: Korota Y-koordinaattia +STR_6344 :Ruututyökalu: Vähennä Y-koordinaattia +STR_6345 :Ruututyökalu: Korota elementin korkeutta +STR_6346 :Ruututyökalu: Vähennä elementin korkeutta +STR_6347 :Polkuekstroja ei voi sijoittaa tasoristeyksiin! +STR_6348 :Poista ensiksi tasoristeys! +STR_6349 :Satunnainen valikkotausta +STR_6350 :Hajaannus +STR_6351 :Maisemoinnin hajautustyökalu +STR_6352 :Tiheys +STR_6353 :Matala tiheys +STR_6354 :Keskitiheys +STR_6355 :Korkea tiheys +STR_6356 :Luo ankkoja jos puistossa on vettä +STR_6357 :Poistaa kaikki kentän ankat +STR_6358 :Sivu {UINT16} +STR_6359 :{POP16}{POP16}Sivu {UINT16} +STR_6360 :{BLACK}{COMMA32} +STR_6361 :Valaistustehosteet laitteissa (kokeellinen) +STR_6362 :Jos päällä, kaikki radalliset laitteet valaistaan öisin. +STR_6363 :Kopioitu leikepöydälle +STR_6364 :{RED}{COMMA16} henkilö on kuollut laitteen {STRINGID} onnettomuudessa +STR_6365 :Laitteen uhrit +STR_6366 :Juuttuneet vaunut +STR_6367 :{WINDOW_COLOUR_2}Animaatiokehys: +STR_6368 :Yhteensopivuussyistä emme suosittele että käytät OpenRCT2:ta Winen kautta. OpenRCT2 tukee natiivisti macOSia, Linuxia, FreeBSD:tä ja OpenBSD:tä. +STR_6369 :Salli radan rakennus vääriin korkeuksiin +STR_6370 :Sallii radan sijoituksen mihin tahansa korkeuteen +STR_6371 :Valitussa hakemistossa on RollerCoaster Tycoon 1 -asennus, mutta “csg1i.dat” -tiedosto puuttuu. Sinun tulee kopioida tämä tiedosto RollerCoaster Tycoon 1 -CD:ltä kiintolevyllesi RollerCoaster Tycoon 1 -asennuksen “Data” -kansioon. +STR_6372 :Valitussa hakemistossa on RollerCoaster Tycoon 1 -asennus, mutta tämä versio on väärä. OpenRCT2 tarvitsee joko Loopy Landscapes tai RCT Deluxe -asennuksen käyttääkseen RollerCoaster Tycoon 1 -tiedostoja. +STR_6373 :Vapaan tilan tarkistus päälle/pois +STR_6374 :C +STR_6375 :Tuntematon laite +STR_6376 :{WINDOW_COLOUR_2}Vaunu:{NEWLINE}{BLACK}{STRINGID} laitteelle {STRINGID} +STR_6377 :{WINDOW_COLOUR_2}Tyyppi: {BLACK}{STRINGID} laitteelle {STRINGID} +STR_6378 :Vastaanotetaan esinelistaa: {INT32} / {INT32} +STR_6379 :Vastaanotettiin epäkelpoja tietoja +STR_6380 :Päivitys saatavilla! +STR_6381 :Liity OpenRCT2 -Discordiin! +STR_6382 :Uusi OpenRCT2-versio on saatavilla: {STRING}! +STR_6383 :Avaa lataussivusto +STR_6384 :Lumisade +STR_6385 :Pyry +STR_6386 :Lumimyrsky +STR_6387 :Elementtiä ei voi laskea tässä… +STR_6388 :Elementtiä ei voi nostaa tässä… +STR_6389 :Ei tilaa +STR_6390 :OpenRCT2 tarvitsee alkuperäisen RollerCoaster Tycoon 2 -pelin tiedostot toimiakseen. Ole hyvä ja valitse hakemisto johon asensit RollerCoaster Tycoon 2:n. +STR_6391 :Valitse RCT2-hakemisto +STR_6392 :{STRING} ei löydy tästä polusta. +STR_6393 :Tavoitteen valinta +STR_6394 :Tavoite +STR_6395 :Huolto +STR_6396 :Poista näytönsäästäjä ja virransäästö käytöstä +STR_6397 :Jos päällä, OpenRCT2 estää näytönsäästäjän ja muiden virransäästöominaisuuksien toiminnan peliä pelatessa +STR_6398 :Tiedosto sisältää tuntemattomia laitetyyppejä. Päivitä uudempaan OpenRCT2-versioon. +STR_6399 :OpenRCT2 tarvitsee alkuperäisen RollerCoaster Tycoon 2 -pelin tiedostot toimiakseen. Aseta “game_path” -muuttuja config.ini -tiedostossa siihen hakemistoon, johon asensit RollerCoaster Tycoon 2:n. Käynnistä sitten OpenRCT2 uudelleen. +STR_6400 :Olen ladannut GOGin offline-asentajan RollerCoaster Tycoon 2:a varten, mutta en ole asentanut +STR_6401 :Olen jo asentanut RollerCoaster Tycoon 2:n +STR_6402 :OpenRCT2 data-asennus +STR_6403 :Valitse kumpi koskee sinua paremmin +STR_6404 :Valitse GOG RollerCoaster Tycoon 2 -asentaja. +STR_6405 :Valitse GOG-asentaja +STR_6406 :GOG RollerCoaster Tycoon 2 -asentaja +STR_6407 :Tässä voi mennä muutama minuutti. +STR_6408 :Ole hyvä ja asenna “innoextract” purkaaksesi GOG-asentajan, ja käynnistä sitten OpenRCT2 uudelleen. +STR_6409 :Valittu tiedosto ei ole GOGin offline-asentajan RollerCoaster Tycoon 2:a varten. Olet saattanut ladata GOG Galaxy -lataajan, tai valinnut väärän tiedoston. +STR_6410 :Lähennä/loitonna +STR_6411 :Näytä erilliset painikkeet työkalupalkissa lähennystä ja loitonnusta varten +STR_6412 :NumPad Enter +STR_6413 :Shift +STR_6414 :Vas. Shift +STR_6415 :Oik. Shift +STR_6416 :Ctrl +STR_6417 :Vas. Ctrl +STR_6418 :Oik. Ctrl +STR_6419 :Alt +STR_6420 :Vas. Alt +STR_6421 :Oik. Alt +STR_6422 :Cmd +STR_6423 :Vas. Cmd +STR_6424 :Oik. Cmd +STR_6425 :Joy Vasen +STR_6426 :Joy Oikea +STR_6427 :Joy Ylös +STR_6428 :Joy Alas +STR_6429 :Joy {INT32} +STR_6430 :Vas. hiiri +STR_6431 :Oik. hiiri +STR_6432 :Hiiri {INT32} +STR_6433 :Poista +STR_6434 :Poista kaikki pikanäppäimet tälle komennolle +STR_6435 :{WINDOW_COLOUR_2}Vandaaleja pysäytetty: {BLACK}{COMMA16} +STR_6436 :Näkymättömyys päälle/pois +STR_6437 :Näkymätön +STR_6438 :N +STR_6439 :Ruututyökalu: Näkymättömyys päälle/pois + +############# +# Scenarios # +################ +# RCT Original # +################ + +STR_SCNR :Metsämaan mekastus +STR_PARK :Metsämaan mekastus +STR_DTLS :Metsän syövereihin on raivattu laaja alue, johon voit rakentaa kukoistavan huvipuiston + + +STR_SCNR :Dynamiittidyynit +STR_PARK :Dynamiittidyynit +STR_DTLS :Aavikon keskelle on rakennettu puisto, jossa on vain yksi vuoristorata, mutta tilaa laajennukseen + + +STR_SCNR :Juurijärvi +STR_PARK :Juurijärvi +STR_DTLS :Tyhjästä aloittaen, rakenna teemapuisto suuren järven ympärille + + +STR_SCNR :Timanttimäki +STR_PARK :Timanttimäki +STR_DTLS :Timanttimäki on jo menestyksekäs teemapuisto, jossa on hyviä laitteita - kehitä puiston arvo kaksinkertaiseksi + + +STR_SCNR :Ikivihreä puutarha +STR_PARK :Ikivihreä puutarha +STR_DTLS :Muunna kaunis puutarha menestyväksi huvipuistoksi + + +STR_SCNR :Riemuranta +STR_PARK :Riemuranta +STR_DTLS :Kehitä Riemurannan pienestä huvipuistosta kukoistava teemapuisto + + +STR_SCNR :Kolmikkosaaret +STR_PARK :Kolmikkosaaret +STR_DTLS :Tämän upouuden huvipuiston pohjana toimii tämä saariryhmä + + +STR_SCNR :Ullan unelmapuisto +STR_PARK :Ullan unelmapuisto +STR_DTLS :Pieni huvipuisto, jossa on muutama laite ja tilaa laajentaa. Tehtävänäsi on tuplata puiston arvo. + + +STR_SCNR :Pikkupuisto +STR_PARK :Pikkupuisto +STR_DTLS :Pieni ja ahdas huvipuisto, joka on kattavan laajennuksen tarpeessa + + +STR_SCNR :Valkokosken puisto +STR_PARK :Valkokosken puisto +STR_DTLS :Puisto, jossa on pari mainiota vesilaitetta kaipaa laajennusta + + +STR_SCNR :Kimalluskaivokset +STR_PARK :Kimalluskaivokset +STR_DTLS :Muunna iso hylätty kaivos matkailukohteesta teemapuistoksi + + +STR_SCNR :Ratoja ja ratoja +STR_PARK :Ratoja ja ratoja +STR_DTLS :Metsään piilotettu suuri puisto, jossa on vain mikroautoratoja ja puisia vuoristoratoja + + +STR_SCNR :Mellun maailma +STR_PARK :Mellun maailma +STR_DTLS :Tässä huvipuistossa on muutama hyvin suunniteltu moderni laite, mutta myös paljon tilaa laajennukseen + + +STR_SCNR :Salakallio +STR_PARK :Salakallio +STR_DTLS :Rakenna upouusi huvipuisto Salakallion mäkiseen metsään + + +STR_SCNR :Ponnekkaat pyramidit +STR_PARK :Ponnekkaat pyramidit +STR_DTLS :Muunna egyptiläiset rauniot menestyväksi huvipuistoksi + + +STR_SCNR :Murumetsä +STR_PARK :Murumetsä +STR_DTLS :Suuri puisto, jossa on hyvin suunniteltuja mutta aika vanhoja laitteita. Korvaa vanhat laitteet tai rakenna uusia nostaaksesi puiston suosiota. + + +STR_SCNR :Eedenlaituri +STR_PARK :Eedenlaituri +STR_DTLS :Tee tästä pikkukylän laiturista menestyvä huvipuisto + + +STR_SCNR :Ukkosvuoret +STR_PARK :Ukkosvuoret +STR_DTLS :Kauniit Ukkosvuoret ovat vaeltajien ja turistien suosiossa. Käytä vapaana olevaa maata viehättääksesi enemmän jännitystä kaipaavia asiakkaita. + + +STR_SCNR :Norsunluutornit +STR_PARK :Norsunluutornit +STR_DTLS :Pitkälle kehitetty puisto, jossa on pari ongelmaa + + +STR_SCNR :Sateenkaarilaakso +STR_PARK :Sateenkaarilaakso +STR_DTLS :Sateenkaarilaakson paikallisviranomaiset eivät anna lupaa maansiirtoon tai isojen puiden kaatamiseen, mutta sinun tulee silti kehittää alueesta iso huvipuisto + + +STR_SCNR :Jyrykallio +STR_PARK :Jyrykallio +STR_DTLS :Jyrykallio seisoo keskellä aavikkoa ja vetää puoleensa paljon turisteja. Rakenna laitteita jotka vetäisivät entistä enemmän kävijöitä. + + +STR_SCNR :Megapuisto +STR_PARK :Megapuisto +STR_DTLS :Huvin vuoksi! + +## Added Attractions + +STR_SCNR :Kuikauskalliot +STR_PARK :Kuikauskalliot +STR_DTLS :Kehitä rannikkokallioista menestyvä huvipuisto + + +STR_SCNR :Kolmen apinan puisto +STR_PARK :Kolmen apinan puisto +STR_DTLS :Tämän laajan puisto keskellä on valtava kolmintaisteleva teräsvuoristorata + + +STR_SCNR :Kanariakaivokset +STR_PARK :Kanariakaivokset +STR_DTLS :Tämä hylätty kaivos on jo hyvää vauhtia muuttumassa matkailukohteeksi pienoisjunansa ja muutaman vuoristoradansa ansiosta + + +STR_SCNR :Simpukkasilta +STR_PARK :Simpukkasilta +STR_DTLS :Kehitä sinulle annetusta vanhasta hylätystä sillasta kukoistava huvipuisto + + +STR_SCNR :Hupitopia +STR_PARK :Hupitopia +STR_DTLS :Valtatien molemmille puolille sijoittuva puisto, jossa on jo muutama laite toiminnassa + + +STR_SCNR :Kummitussatama +STR_PARK :Kummitussatama +STR_DTLS :Paikallisviranomaiset ovat suostuneet myymään maata tämän pienen rantapuiston lähistöltä halvalla, kunhan vain tiettyjä laitteita ylläpidetään + + +STR_SCNR :Ilolinna +STR_PARK :Ilolinna +STR_DTLS :Tämä linna on annettu käsiisi teemapuiston kehitystä varten + + +STR_SCNR :Tulevaisuuden maa +STR_PARK :Tulevaisuuden maa +STR_DTLS :Tässä futuristisessa puistossa on runsaasti tilaa uusia laitteita varten + + +STR_SCNR :Lempeä laakso +STR_PARK :Lempeä laakso +STR_DTLS :Paikalliset pitävät lempeämmistä laitteista, joten laajenna puistoa heidän makunsa mukaan + + +STR_SCNR :Vinkeä viidakko +STR_PARK :Vinkeä viidakko +STR_DTLS :Viidakon syvyyksissä on laaja maa-alue, valmiina teemapuiston rakentamiseen + + +STR_SCNR :Kastekukkula +STR_PARK :Kastekukkula +STR_DTLS :Eritasoisten järvien sarja muodostaa perustan tälle uudelle huvipuistolle + + +STR_SCNR :Pirteä puisto +STR_PARK :Pirteä puisto +STR_DTLS :Tässä puistovanhuksessa on monta historiallista laitetta, mutta on pahasti velkakierteessä + + +STR_SCNR :Taikakortteli +STR_PARK :Taikakortteli +STR_DTLS :Laaja alue on raivattu ja puoliksi teemattu, valmiina teemapuiston kehitykseen + + +STR_SCNR :Hedelmätila +STR_PARK :Hedelmätila +STR_DTLS :Menestyksekäs hedelmätila on rakentanut rautatien tulojen kohentamiseksi - sinun tehtävänäsi on kehittää siitä täydellinen huvipuisto + + +STR_SCNR :Perhospato +STR_PARK :Perhospato +STR_DTLS :Tätä patoa ympäröivä alue on kuin luotu huvipuiston kehittämiseen + + +STR_SCNR :Kotkakanjoni +STR_PARK :Kotkakanjoni +STR_DTLS :Muunna tämä valtava kanjoni kukoistavaksi huvipuistoksi + + +STR_SCNR :Myrskypuisto +STR_PARK :Myrskypuisto +STR_DTLS :Ilmasto on täällä niin kostea että valtava pyramidi on rakennettu jotta jotkut laitteet voidaan rakentaa suojaan + + +STR_SCNR :Harmoniamäki +STR_PARK :Harmoniamäki +STR_DTLS :Paikallisviranomaiset eivät hyväksy puun latvoja korkeampia rakennusprojekteja + + +STR_SCNR :Roomalaiskylä +STR_PARK :Roomalaiskylä +STR_DTLS :Kehitä tätä roomalaisteemaista puistoa lisäämällä laitteita ja vuoristoratoja + + +STR_SCNR :Suolahti +STR_PARK :Suolahti +STR_DTLS :Osittain rakennettu saariryhmän päälle, tässä puistossa on jo kaksi isoa vuoristorataa keskipisteenä + + +STR_SCNR :Hurjavuori +STR_PARK :Hurjavuori +STR_DTLS :Rakenna puisto, joka tyydyttää paikallisia jännityksenjanoisia hurjapäitä + + +STR_SCNR :Utopiapuisto +STR_PARK :Utopia +STR_DTLS :Aavikon keskellä tämä keidas tarjoaa erikoisen tilaisuuden rakentaa huvipuisto + + +STR_SCNR :Laholahti +STR_PARK :Laholahti +STR_DTLS :Rikkaruohoinen ja ränsistynyt, pystytkö sinä elvyttämään tämän rappeutuneen puiston? + + +STR_SCNR :Katastrofikukkula +STR_PARK :Katastrofikukkula +STR_DTLS :Täynnä huonosti suunniteltuja ja vaarallisia laitteita, sinulla on vain vähän rahaa ja aikaa korjata ongelmat ja kääntää puiston suunta parempaan päin + + +STR_SCNR :Pikkelssipuisto +STR_PARK :Pikkelssipuisto +STR_DTLS :Paikallisviranomaiset eivät suostu minkäänlaiseen markkinointiin tai mainontaan, joten tämän puiston on menestyttävä pelkällä maineella + + +STR_SCNR :Riemuravit +STR_PARK :Riemuravit +STR_DTLS :Neliratainen hevosajelu on tämän laajentuvan puiston keskipiste + + +STR_SCNR :Mineraalipuisto +STR_PARK :Mineraalipuisto +STR_DTLS :Muunna tämä hylätty kivikaivos jännitystä kaipaavien turistien matkakohteeksi + + +STR_SCNR :Vuoristoradan räminät +STR_PARK :Vuoristoradan räminät +STR_DTLS :Sinulla on rajallisesti rahaa mutta rajattomasti aikaa muuntaa tämä vuoristomaisema laajaksi vuoristoratapuistoksi + + +STR_SCNR :Urbaanipuisto +STR_PARK :Urbaanipuisto +STR_DTLS :Pikkuruinen puisto on päässyt sopimukseen puiston laajennuksesta läpi lähikylän katujen + + +STR_SCNR :Paten puutarha +STR_PARK :Paten puutarha +STR_DTLS :Valtava puutarha pitäisi muuntaa kukoistavaksi huvipuistoksi + + +## Loopy Landscapes + +STR_SCNR :Jäävuorisaaret +STR_PARK :Jäävuorisaaret +STR_DTLS :Ryhmä jäävuoria on tämän kunnianhimoisen mutta kylmän huvipuiston pohjana + + +STR_SCNR :Tappuravuori +STR_PARK :Tappuravuori +STR_DTLS :Lepotilassa oleva tulivuori on tämän vuoristoratahaasteen keskipisteenä + + +STR_SCNR :Santarinne +STR_PARK :Santarinne +STR_DTLS :Maallisista rahoitushuolista vapaana, sinun tulee kehittää tästä aavikkopuistosta kävijöitä tyydyttävä huvipuisto + + +STR_SCNR :Terälohkare +STR_PARK :Terälohkare +STR_DTLS :Tehtävänäsi on rakentaa Terälohkareiden keskuuteen valtava puisto täynnä vuoristoratoja + + +STR_SCNR :Kraaterinjärvi +STR_PARK :Kraaterinjärvi +STR_DTLS :Muinaiseen kraateriin muodostunut suuri järvi on tämän puiston sijaintina + + +STR_SCNR :Huimahuippu +STR_PARK :Huimahuippu +STR_DTLS :Tässä puistossa on jo loistava hyper-vuoristorata, mutta sinun tulee kasvattaa puiston tuottoa + + +STR_SCNR :Eedenlaituri 2 +STR_PARK :Eedenlaituri 2 +STR_DTLS :Eedenlaituri on laajentanut kulkuväylien verkostoaan meren yllä, ja tehtävänäsi on laajentaa puistoa uuteen alaan + + +STR_SCNR :Lohikäärmelahti +STR_PARK :Lohikäärmelahti +STR_DTLS :Tämä merenrannan lahti on tämän vuoristoratahaasteen sijaintina + + +STR_SCNR :Hyvän ritarin puisto +STR_PARK :Hyvän ritarin puisto +STR_DTLS :Pari vuoristorataa sisältävä linna on vailla kehitystä isompaan puistoon + + +STR_SCNR :Temmellystunneli +STR_PARK :Temmellystunneli +STR_DTLS :Puisto, jossa suuri osa poluista ja vuoristoradoista on maan alla + + +STR_SCNR :Jäätikön jäynät +STR_PARK :Jäätikön jäynät +STR_DTLS :Jäätiköitä täynnä oleva laakso on sinun huvipuiston kehitystä varten + + +STR_SCNR :Kumma kraateri +STR_PARK :Kumma kraateri +STR_DTLS :Kaukaisessa maailmassa, jossa rahalle ei ole käyttöä, sinun tulee rakentaa huvipuisto, joka pitää kävijät tyytyväisenä + + +STR_SCNR :Aava autiomaa +STR_PARK :Aava autiomaa +STR_DTLS :Viisi vuoristorataa kaipaa viimeistelyä tässä aavikkopuistossa + + +STR_SCNR :Toukkapuisto +STR_PARK :Toukkapuisto +STR_DTLS :Tämä historiallinen puisto on saanut luvan ainoastaan vanhanaikaisten laitteiden rakennukseen + + +STR_SCNR :Ikaruspuisto +STR_PARK :Ikaruspuisto +STR_DTLS :Kehitä tätä avaruusoliopuistoa korottaaksesi sen tuottoa + + +STR_SCNR :Rämeen rällätys +STR_PARK :Rämeen rällätys +STR_DTLS :Tässä hienosti maisemoidussa huvipuistossa on jo monia laitteita, mutta myös tilaa laajennukseen + + +STR_SCNR :Painajaispuisto +STR_PARK :Painajaispuisto +STR_DTLS :Pelottava puisto, jossa on valtava vuoristorata keskipisteenä + + +STR_SCNR :Jylinäkalliot +STR_PARK :Jylinäkalliot +STR_DTLS :Kaksi suurta kivenlohkaretta törröttävät hiekasta, ja niiden päälle on tarkoitus rakentaa uusi huvipuisto + + +STR_SCNR :Kahdeksankulmion puisto +STR_PARK :Kahdeksankulmion puisto +STR_DTLS :Sinun tulee suunnitella ja rakentaa kymmenen vuoristorataa tähän suureen puistoon + + +STR_SCNR :Huvisaari +STR_PARK :Huvisaari +STR_DTLS :Saaren pitkä ja kapea muoto tekee vuoristoratojen rakennuksesta haastavaa + + +STR_SCNR :Pakkaspuisto +STR_PARK :Pakkaspuisto +STR_DTLS :Jäinen maisema on kukoistavan teemapuiston pohjana + + +STR_SCNR :Etelähietikko +STR_PARK :Etelähietikko +STR_DTLS :Aavikkopuisto, jossa muutama nerokas vuoristorata on kehitettävänäsi + + +STR_SCNR :Lilliputtitorni +STR_PARK :Lilliputtitorni +STR_DTLS :Sinun tulee viimeistellä tämän pikkuruisen puiston viisi vuoristorataa + + +STR_SCNR :Mikäpuisto +STR_PARK :Mikäpuisto +STR_DTLS :Valtava puisto jota reunoittaa uraauurtava kulkuväline + + +STR_SCNR :Tyynisaari +STR_PARK :Tyynisaari +STR_DTLS :Tämä suuri saari on valmiina huvipuiston kehitykseen + + +STR_SCNR :Betoniviidakko +STR_PARK :Betoniviidakko +STR_DTLS :Jättimäinen hylätty pilvenpiirtäjä on erikoinen tilaisuus huvipuiston rakentajalle + + +STR_SCNR :Kirkuva kylä +STR_PARK :Kirkuva kylä +STR_DTLS :Tämä urbaani alue on sinun huvipuiston kehitystä varten + + +STR_SCNR :Megamaailma +STR_PARK :Megamaailma +STR_DTLS :Tämä mittava puisto on pakattu täyteen laitteita, mutta parannuksen varaa löytyy + + +STR_SCNR :Venuslampi +STR_PARK :Venuslampi +STR_DTLS :Kaukaisella planeetalla tämä alue on huvipuiston rakennusta vailla + + +STR_SCNR :Mikropuisto +STR_PARK :Mikropuisto +STR_DTLS :Kokeile rakentaa maailman pienin tuottoisa huvipuisto + +## Real Parks from RCT1 +# None of them had details + +STR_SCNR :Alton Towers +STR_PARK :Alton Towers +STR_DTLS : + + +STR_SCNR :Heide-Park +STR_PARK :Heide-Park +STR_DTLS : + + +STR_SCNR :Blackpool Pleasure Beach +STR_PARK :Blackpool Pleasure Beach +STR_DTLS : + +## Misc parks from RCT1 +# Had no details + +STR_SCNR :Anakronismilinnake +STR_PARK :Anakronismilinnake +STR_DTLS : + +########### +# Scenery # +########### + +## Start OpenRCT2 Official + +[TTPIRF02] +STR_NAME :Katto + +[TTPIRF03] +STR_NAME :Katto + +[TTPIRF04] +STR_NAME :Katto + +[TTPIRF05] +STR_NAME :Katto + +[TTPIRF07] +STR_NAME :Katto + +[TTPIRF08] +STR_NAME :Katto + +[TTRFWD01] +STR_NAME :Katto + +[TTRFWD02] +STR_NAME :Katto + +[TTRFWD03] +STR_NAME :Katto + +[TTRFWD04] +STR_NAME :Katto + +[TTRFWD05] +STR_NAME :Katto + +[TTRFWD06] +STR_NAME :Katto + +[TTRFWD07] +STR_NAME :Katto + +[TTRFWD08] +STR_NAME :Katto + +[TTRFGL01] +STR_NAME :Lasikatto + +[TTRFGL02] +STR_NAME :Lasikatto + +[TTRFGL03] +STR_NAME :Lasikatto + +[ACWW33] +STR_NAME :Puinen tolppaseinä + +[ACWWF32] +STR_NAME :Puinen tolppaseinä + +## End OpenRCT2 Official + +############################################################################### +## RCT2 Scenarios +############################################################################### + +STR_SCNR :Alppiseikkailu +STR_PARK :Alppiseikkailu +STR_DTLS :Muunna pieni vuoriston hiihtokeskus lumiteemaiseksi huvipuistoksi + + +STR_SCNR :Lennokas lentokenttä +STR_PARK :Lennokas lentokenttä +STR_DTLS :Rakenna lentoteemainen huvipuisto tämän hylätyn lentokentän kupeeseen + + +STR_SCNR :Sekasortosaari +STR_PARK :Sekasortosaari +STR_DTLS :Haasteenasi on rakentaa tuottoisa puisto tälle paratiisisaarelle + + +STR_SCNR :Rakenna oma Six Flags Belgiasi +STR_PARK :Six Flags Belgia +STR_DTLS :Rakenna oma versiosi tästä eurooppalaisesta Six Flags -puistosta + + +STR_SCNR :Rakenna oma Six Flags Great Adventuresi +STR_PARK :Six Flags Great Adventure +STR_DTLS :Käytä luovia kykyjäsi tämän Six Flags -puiston jäljennykseen + + +STR_SCNR :Rakenna oma Six Flags Hollantisi +STR_PARK :Six Flags Hollanti +STR_DTLS :Rakenna tämä eurooppalainen Six Flags -puisto kuten itse haluat + + +STR_SCNR :Rakenna oma Six Flags Magic Mountainisi +STR_PARK :Six Flags Magic Mountain +STR_DTLS :Rakenna oma versiosi tästä valtavasta Six Flags -puistosta + + +STR_SCNR :Rakenna oma Six Flags yllä Teksasisi +STR_PARK :Six Flags yllä Teksasin +STR_DTLS :Aloittaen tyhjästä, rakenna kaikki tämän Six Flags -puiston laitteet + + +STR_SCNR :Rakenna oma Six Flags -puistosi +STR_PARK :Six Flags +STR_DTLS :Rakenna oma Six Flags -puistosi - rakenna joko muiden Six Flags -puistojen laitteet, tai luo ja rakenna omat laitteesi + + +STR_SCNR :Mukavat markkinat +STR_PARK :Mukavat markkinat +STR_DTLS :Aloittaen pienestä markkinapaikasta, haasteenasi on korottaa tuottoa pelkistä kojuista rakentamalla laitteita ja vuoristoratoja kävijöitä houkuttamaan + + +STR_SCNR :Hullulinna +STR_PARK :Hullulinna +STR_DTLS :Olet perinyt ison linnan. Toimenasi on muuntaa se pieneksi teemapuistoksi. + + +STR_SCNR :Tomuviheriö +STR_PARK :Tomuviheriö +STR_DTLS :Aavikon maantien risteyksen vieressä oleva Tomuviheriö on loistava tilaisuus muuntaa pieni golf-keskus kukoistavaksi huvipuistoksi + + +STR_SCNR :Peltopuisto +STR_PARK :Peltopuisto +STR_DTLS :Olet perinyt pienen maatilan, ja haasteenasi on rakentaa pieni huvipuisto peltojen ja maatilarakennusten oheen + + +STR_SCNR :Äärivuori +STR_PARK :Äärivuori +STR_DTLS :Rahahuolien kahleista vapautettuna, haasteenasi on laajentaa tätä aavikkopuistoa houkutellen kävijöitä jotka hakevat vain kaikista jännimpiä elämyksiä + + +STR_SCNR :Tehdastemput +STR_PARK :Tehdastemput +STR_DTLS :Hylätty tehdaskompleksi on hyvä tilaisuus rakentaa mekaanisen teemainen huvipuisto + + +STR_SCNR :Sienikorpi +STR_PARK :Sienikorpi +STR_DTLS :Haasteenasi on rakentaa kukoistava teemapuisto Sienikorpeen - mutta voit ainoastaan rakentaa vanhanaikaisia puulaitteita + + +STR_SCNR :Aavekaupunki +STR_PARK :Aavekaupunki +STR_DTLS :Suuren huvipuistoketjun palkkaamana sinun tehtävänäsi on rakentaa heille mittava vuoristoratapuisto hylätyn kaivoskylän ympärille + + +STR_SCNR :Mahtilehto +STR_PARK :Mahtilehto +STR_DTLS :Haasteenasi on rakentaa vuoristoratapuisto kauniiseen Mahtilehtoon. Ei muita laitteita, ainoastaan vuoristoratoja! + + +STR_SCNR :Hiisipuisto +STR_PARK :Hiisipuisto +STR_DTLS :Puisto, joka on arveluttavasti rakennettu laavakiven päälle magmavirtojen oheen + + +STR_SCNR :Onnenjärvi +STR_PARK :Onnenjärvi +STR_DTLS :Tätä rajattomilla rahoilla mutta vaikealla järvisijainnilla varustettua puistoa on haastaavaa laajentaa ja johtaa + + +STR_SCNR :Sateenkaarikukkula +STR_PARK :Sateenkaarikukkula +STR_DTLS :Tällä mäen reunaan rakennetulla puistolla ei ole lupaa rakentaa mitään korkeaa. Pystytkö sinä laajentamaan puistoa ja tehdä siitä menestyksen? + + +STR_SCNR :Six Flags Belgia +STR_PARK :Six Flags Belgia +STR_DTLS :Kokeile tämän Six Flags -puiston johtamista ja kehitystä + + +STR_SCNR :Six Flags Great Adventure +STR_PARK :Six Flags Great Adventure +STR_DTLS :Rakenna puuttuvat Six Flags -laitteet, tai tee omat luomuksesi puiston parantamiseksi! Mutta älä unohda tärkeintä tavoitettasi: houkuttele lisää kävijöitä puistoon! + + +STR_SCNR :Six Flags Hollanti +STR_PARK :Six Flags Hollanti +STR_DTLS :Kokeile tämän Six Flags -puiston johtamista ja kehitystä + + +STR_SCNR :Six Flags Magic Mountain +STR_PARK :Six Flags Magic Mountain +STR_DTLS :Rakenna puuttuvat Six Flags -laitteet, tai tee omat luomuksesi puiston parantamiseksi! Mutta älä unohda tärkeintä tavoitettasi: maksa velkasi pitäen puiston arvon korkealla! + + +STR_SCNR :Six Flags yllä Teksasin +STR_PARK :Six Flags yllä Teksasin +STR_DTLS :Rakenna puuttuvat Six Flags -laitteet, tai tee omat luomuksesi puiston parantamiseksi! Mutta älä unohda tärkeintä tavoitettasi: houkuttele lisää kävijöitä puistoon! + +############################################################################### +## Wacky Worlds Scenarios +############################################################################### + +STR_SCNR :Afrikka - Afrikkalainen timanttikaivos +STR_PARK :Afrikan kaivokset +STR_DTLS :Olet perinyt lopetetun timanttikaivoksen, ja löydät arvokkaan timantin. Päätät sijoittaa rahat maailmankuulun teemapuiston rakentamiseen. + + +STR_SCNR :Afrikka - Keidas +STR_PARK :Kangastuskivaa +STR_DTLS :Aavikosta on löydetty keidas, joka olisi loistava paikka huvipuistolle. Kuljetus keitaalle on jo hoidettu. + + +STR_SCNR :Afrikka - Victorian putoukset +STR_PARK :Yli reunan +STR_DTLS :Juuri rakennettu pato tuottaa paljon halpaa vesivoimaa, jolla voi pyörittää huvipuistoa. Sinun täytyy nostaa puiston arvoa jotta voit maksaa takaisin padon rakennuslainan. + + +STR_SCNR :Etelämanner - Ekologinen pelastus +STR_PARK :Jäinen seikkailu +STR_DTLS :Ympäristövirasto on kääntynyt puoleesi jotta vanhan öljynjalostamon rumilus voitaisiin muuttaa huippuluokan matkailukohteeksi. Maa on halpaa mutta lainakorot pilvissä. Voit myydä vanhat rakennukset. + + +STR_SCNR :Aasia - Kiinan muurin matkailuedistys +STR_PARK :Kiinan muuri +STR_DTLS :Viranomaiset ovat päättäneet kehittää muurin alueen matkailua rakentamalla teemapuisto viereiselle tontille. Rahoista viis! + + +STR_SCNR :Aasia - Japanin rannikko +STR_PARK :Okinawan ranta +STR_DTLS :Rannikon puistolta on loppunut tila. Ainoa mahdollisuutesi on rakentaa mereen, joten olet ottanut lainan. Korkeusrajoitukset ovat voimassa perustojen ja maanjäristyksien takia. + + +STR_SCNR :Aasia - Maharajan palatsi +STR_PARK :Maharaja-puisto +STR_DTLS :Maharaja on käskenyt sinut tuomaan hupia ja viihdettä suurelle paikallisväestölle. Rakenna puisto Maharajan palatsin innoittamana. + + +STR_SCNR :Australaasia - Uluru +STR_PARK :Uluru-seikkailu +STR_DTLS :Autat aboriginaaleja rakentamaan puiston osana heidän kulttuurinedistämisohjelmaa. Sinun täytyy houkutella suuri määrä kävijöitä opettaaksesi heille aboriginaalien kulttuuriperintöä. + + +STR_SCNR :Australaasia - Rantakivaa +STR_PARK :Rantakivaa +STR_DTLS :Paikallisen yrittäjän akvaario on mennyt konkurssiin. Sinulla on jo pieni huvipuisto vastarannalla, ja ostat konkurssipesän rakennusyhtiöltä. Kehitä yksi yhtenäinen puisto. + + +STR_SCNR :Eurooppa - Euroopan kulttuurifestivaali +STR_PARK :Euro-elämyksiä +STR_DTLS :Sinut on tuotu ottamaan haltuun yksi Euroopan kulttuurimatkakohteista, ja sinun tulee nostaa kävijämäärää jotta voit maksaa EU-tuen takaisin ennen Euroopan parlamentin vaalikauden loppua. + + +STR_SCNR :Eurooppa - Peruskorjaus +STR_PARK :Tuhkista nousee +STR_DTLS :Vanha puisto on päässyt ränsistymään. Saat Euroopan unionilta apurahaa tämän puutteellisen alueen kunnostamiseen! Sinun täytyy kunnostaa puisto ja maksaa apuraha takaisin. + + +STR_SCNR :Pohjois-Amerikka - Extreme-havaijilaissaari +STR_PARK :Waikikileikki +STR_DTLS :Havaijin ihmiset ovat tylsistyneitä surffaukseen, ja haluavat jotain jännittävämpää. Pidä tämä mielessä kun rakennat puistoa, joka ylläpitää alueen turistiluokitusta. + + +STR_SCNR :Pohjois-Amerikka - Grand Canyon +STR_PARK :Kanjonikepposet +STR_DTLS :Sinun tulee rakentaa puisto rajallisen kokoiselle alueelle tämän luonnon arteen molemmin puolin. Voit ostaa lisää tilaa naapurissa olevalta alkuperäiskansalta. Tavoitteen saavutus takaa paikalliskylän selviytymisen. + + +STR_SCNR :Pohjois-Amerikka - Vuoristoratojen mekka +STR_PARK :Vuoristoratojen mekka +STR_DTLS :Olet menestyksekäs liikemies sapattivapaalla, ja haluat käyttää tämän ajan kaupunginpuiston muuttamiseksi vuoristoratojen mekaksi. Raha ei ole este! + + +STR_SCNR :Etelä-Amerikka - Inkojen kadonnut kaupunki +STR_PARK :Kadonnut kaupunki +STR_DTLS :Edistääksesi paikallista turismia, sinun tulee rakentaa puisto, joka on ympäristönsä kaltainen, vaikka korkeusrajoitukset ovatkin voimassa. + + +STR_SCNR :Etelä-Amerikka - Sademetsän tasanko +STR_PARK :Sademetsän seikkailu +STR_DTLS :Tila on niukassa tässä korvaamattomassa sademetsässä - sinun täytyy ahtaa mahdollisimman paljon jo raivattuun alueeseen, jotta paikalliselle puuteollisuudelle olisi kannattava vaihtoehto. + + +STR_SCNR :Etelä-Amerikka - Rion karnevaalit +STR_PARK :Sokerileipärannikko +STR_DTLS :Johdat pientä puisto Rion läheisyydessä, mutta pankki vaatii lainan takaisinmaksua. Sinun täytyy pikaisesti nostaa tuottotasoa jotta voit maksaa tämän ennakoimattoman menoerän. + +############################################################################### +## Time Twister Scenarios +############################################################################### + +STR_SCNR :Keskiaika - Linna +STR_PARK :Linnaranta +STR_DTLS :Paikallinen historian elävöitysryhmä ottavat harrastuksensa aika tosissaan. He ovat luottaneet tämän rannikkolinnan käsiisi, jotta voit rakentaa uuden keskiajan teemapuiston. + + +STR_SCNR :Keskiaika - Robin Hood +STR_PARK :Sherwoodin metsä +STR_DTLS :Vapauttaaksesi rahat rikkailta ja jakaaksesi ne köyhille, sinä ja iloiset veikkosi olette päättäneet rakentaa huvipuiston Sherwoodin metsään. + + +STR_SCNR :Tulevaisuus - Ensitapaaminen +STR_PARK :Avaruusolentojen aukio +STR_DTLS :Kaukaisella planeetalla on sittenkin elämää! Rakenna avaruusolio-teemapuisto lyödäksesi rahoiksi tämän ennennäkemättömän kiinnostuksen ansiosta. + + +STR_SCNR :Tulevaisuus - Tulevaisuuden maailma +STR_PARK :Kaksoskaupunki +STR_DTLS :Näytä kekseliäs utooppinen tulevaisuuden mielikuvasi - luo futuristinen puisto, jossa on kaikki huipputekniset laitteet. + + +STR_SCNR :Mytologia - Animatroninen filmistudio +STR_PARK :Animatronian antia +STR_DTLS :Sinulle on annettu tehtäväksi vanhan filmistudion paikalle rakennetun toimivan teemapuiston hoito ja laajennus. Rakenna kunnianosoitus niille stop motion -animaattoreille jotka toivat myyttiset hahmot ensi kertaa valkokankaalle. + + +STR_SCNR :Mytologia - Sivilisaation alku +STR_PARK :Mytologian magiaa +STR_DTLS :Omistat saaren jolla on jonkinlaista arkeologista arvoa. Olet päättänyt rahoittaa tämän kulttuuriperinnön suojelua rakentamalla alueen rikkaaseen mytologiaan perustuvan teemapuiston. + + +STR_SCNR :Esihistoria - Asteroidin jälkeen +STR_PARK :Kraaterikivaa +STR_DTLS :Omistat pölyisen meteorikraaterin. Bisneselämän tosimiehenä olet päättänyt rakentaa asteroidin teemapuiston ja muuntaa näennäisesti arvottoman maatilkkusi mittavaksi omaisuudeksi. + + +STR_SCNR :Esihistoria - Jurassinen safari +STR_PARK :Vuoristosaurus +STR_DTLS :Tehtävänäsi on rakentaa jurassisen kauden teemapuisto. Jotta kävijät pääsevät helposti näkemään eksoottisia kasveja ja eläimiä, sinun tulee rakentaa laitteita joilla pääsee laakson yli ja alle. + + +STR_SCNR :Esihistoria - Kivikausi +STR_PARK :Kivikepposet +STR_DTLS :Estääksesi maantien rakennuksen ja mystisten kivirenkaiden tuhoamisen, sinun pitää rakentaa kivikauden teemapuisto ja tehdä voittoa. Kävijöiden houkutus saattaa tosin olla vaikeaa, koska maasto ei ole kovin vieraanvaraista. + + +STR_SCNR :Kuohuva 20-luku - Vankisaari +STR_PARK :Alcatraz +STR_DTLS :Surullisenkuuluisa Vankisaari - joka oli muinoin tupaten täynnä trokareita ja gangstereita - on nyt myynnissä. Olet päättänyt muodostaa siitä korkean luokan matkailukohteen, eikä rahalla ole niinkään väliä. + + +STR_SCNR :Kuohuva 20-luku - Schneider-kilvat +STR_PARK :Schneiderrannat +STR_DTLS :Isoisäsi Schneider-nopeuskisan voitosta tulee kohta 75 vuotta täyteen. Kunnioita hänen saavutustaan rakentamalla teemapuisto tämän maineikkaan vesilentokonekilvan ympärille. + + +STR_SCNR :Kuohuva 20-luku - Pilvenpiirtäjät +STR_PARK :Metropoli +STR_DTLS :Omistat tyhjän tontin pienasutusalueen vieressä. 20-luvun art deco -arkkitehtuurin innoittamana rakenna pilvenpiirtäjien teemapuisto puristaaksesi kaupunkitontistasi viimeisetkin tuoton pisarat. + + +STR_SCNR :Rock ’n’ roll - Kukkavoimaa +STR_PARK :Woodstock +STR_DTLS :Suuri vuosittainen musiikkifestivaali järjestetään maillasi. Rakenna tajuntaa laajentava huvipuisto vapaamielisen yleisön viihdyttämiseen. + + +STR_SCNR :Rock ’n’ roll - Rock ’n’ roll +STR_PARK :Rock ’n’ rollin kukoistus +STR_DTLS :Tämä vanha huvipuisto on nähnyt parempia päiviä. Auta sen omistajaa antamalla sille retron rock ’n’ roll -muodonmuutoksen, joka tekee puistosta menestyksekkään viihdekeskuksen. + +############################################################################### +## Official Custom Content Scenarios +############################################################################### + +STR_SCNR :Pandamaailma +STR_PARK :Pandamaailma +STR_DTLS :Rakenna lisää laitteita ja houkuttele lisää kävijöitä tähän panda-teemaiseen puistoon \ No newline at end of file diff --git a/data/language/fr-FR.txt b/data/language/fr-FR.txt index a714e435b3..acd1dcf617 100644 --- a/data/language/fr-FR.txt +++ b/data/language/fr-FR.txt @@ -95,6 +95,7 @@ STR_0090 :Mineur STR_0091 :Manège Inconnu (59) STR_0092 :Moteur à induction linéaire STR_0093 :Montagnes russes hybrides +STR_0094 :Montagnes russes à rail unique STR_0512 :Des voitures individuelles descendent des pentes régulières en virage STR_0513 :Grand huit que les passagers parcourent debout STR_0514 :Des voitures suspendues sous la voie se balancent dans les virages des montagnes russes @@ -175,6 +176,7 @@ STR_0599 :Des voitures individuelles descendent des pentes régulières en vi STR_0600 :Train de mine à propulsion franchissant une voie régulière et alambiquée STR_0602 :Train de montagnes russes propulsé hors de la station par des moteurs à induction linéaire et fonçant dans des inversions renversantes STR_0603 :Train de montagnes russes en bois avec des rails en acier, permettant des grandes chutes et des inversions. +STR_0604 :Les passagers parcourent une voie à rail unique dans des voitures mono-places, à travers des inversions et des virages serrés STR_0767 :Visiteur {INT32} STR_0768 :Agent d’entretien {INT32} STR_0769 :Mécanicien {INT32} @@ -798,14 +800,14 @@ STR_1410 :Tour verticale STR_1411 :{STRINGID} dans le passage STR_1412 :{WINDOW_COLOUR_3}Inscription des données non disponible pour ce type d’attraction STR_1413 :{WINDOW_COLOUR_3}Début inscript. données quand {STRINGID} partira de {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Vitesse STR_1416 :{WINDOW_COLOUR_2}Altitude STR_1417 :{WINDOW_COLOUR_2}G. vert. STR_1418 :{WINDOW_COLOUR_2}G. lat. -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Enregistrement des données de {POP16}{STRINGID} STR_1423 :Chemin de la file d’attente STR_1424 :Chemin @@ -864,131 +866,131 @@ STR_1476 :{WINDOW_COLOUR_2}Niveau d’intensité : {BLACK}Pas encore disponi STR_1477 :{WINDOW_COLOUR_2}Niveau d’intensité : {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Niveau de nausée : {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Niveau de nausée : {BLACK}Pas encore disponible -STR_1480 :{SMALLFONT}“Je ne peux pas me payer {STRINGID}” -STR_1481 :{SMALLFONT}“J’ai dépensé tout mon argent” -STR_1482 :{SMALLFONT}“Je me sens mal” -STR_1483 :{SMALLFONT}“Je me sens vraiment très mal” -STR_1484 :{SMALLFONT}“Je veux faire quelque chose de plus excitant que {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} a l’air trop intense pour moi” -STR_1486 :{SMALLFONT}“Je n’ai pas encore fini mon {STRINGID} ” -STR_1487 :{SMALLFONT}“Rien que le fait de regarder {STRINGID} me rend malade” -STR_1488 :{SMALLFONT}“Je ne paierai pas si cher pour aller sur {STRINGID}” -STR_1489 :{SMALLFONT}“Je veux rentrer chez moi” -STR_1490 :{SMALLFONT}“{STRINGID} est un très bon choix” -STR_1491 :{SMALLFONT}“J’ai déjà {STRINGID}” -STR_1492 :{SMALLFONT}“Je ne peux pas me payer {STRINGID}” -STR_1493 :{SMALLFONT}“Je n’ai pas faim” -STR_1494 :{SMALLFONT}“Je n’ai pas soif” -STR_1495 :{SMALLFONT}“À l’aide ! Je me noie !” -STR_1496 :{SMALLFONT}“Je suis perdu !” -STR_1497 :{SMALLFONT}“{STRINGID} était génial” -STR_1498 :{SMALLFONT}“Je fais la queue pour {STRINGID} depuis des heures” -STR_1499 :{SMALLFONT}“Je suis fatigué” -STR_1500 :{SMALLFONT}“J’ai faim” -STR_1501 :{SMALLFONT}“J’ai soif” -STR_1502 :{SMALLFONT}“Je dois aller aux toilettes” -STR_1503 :{SMALLFONT}“Je ne trouve pas {STRINGID}” -STR_1504 :{SMALLFONT}“Je ne paierai pas si cher pour utiliser {STRINGID}” -STR_1505 :{SMALLFONT}“Je n’irai pas sur {STRINGID} tant qu’il pleuvra” -STR_1506 :{SMALLFONT}“Les poubelles ne sont pas vidées ici” -STR_1507 :{SMALLFONT}“Je trouve pas la sortie du parc” -STR_1508 :{SMALLFONT}“Je veux descendre de {STRINGID}” -STR_1509 :{SMALLFONT}“Je veux sortir de {STRINGID}” -STR_1510 :{SMALLFONT}“Je n’irai pas sur {STRINGID} - C’est trop risqué” -STR_1511 :{SMALLFONT}“Cette allée est dégoûtante” -STR_1512 :{SMALLFONT}“Il y a trop de monde ici” -STR_1513 :{SMALLFONT}“Il y a beaucoup de vandalisme ici” -STR_1514 :{SMALLFONT}“Quel beau décor !” -STR_1515 :{SMALLFONT}“Ce parc est d’une propreté exemplaire” -STR_1516 :{SMALLFONT}“Les jets d’eau sont super” -STR_1517 :{SMALLFONT}“La musique est sympa ici” -STR_1518 :{SMALLFONT}“Ce ballon de {STRINGID} est un très bon choix” -STR_1519 :{SMALLFONT}“Cette peluche de {STRINGID} est un très bon choix” -STR_1520 :{SMALLFONT}“Ce plan du parc de {STRINGID} est un très bon choix” -STR_1521 :{SMALLFONT}“Cette photo sur le vif de {STRINGID} est un très bon choix” -STR_1522 :{SMALLFONT}“Ce parapluie de {STRINGID} est un très bon choix” -STR_1523 :{SMALLFONT}“Cette boisson de {STRINGID} est un très bon choix” -STR_1524 :{SMALLFONT}“Cet hamburger de {STRINGID} est un très bon choix” -STR_1525 :{SMALLFONT}“Ces frites de {STRINGID} sont un très bon choix” -STR_1526 :{SMALLFONT}“Cette glace de {STRINGID} est un très bon choix” -STR_1527 :{SMALLFONT}“Cette barbe-à-papa de {STRINGID} est un très bon choix” +STR_1480 :“Je ne peux pas me payer {STRINGID}” +STR_1481 :“J’ai dépensé tout mon argent” +STR_1482 :“Je me sens mal” +STR_1483 :“Je me sens vraiment très mal” +STR_1484 :“Je veux faire quelque chose de plus excitant que {STRINGID}” +STR_1485 :“{STRINGID} a l’air trop intense pour moi” +STR_1486 :“Je n’ai pas encore fini mon {STRINGID} ” +STR_1487 :“Rien que le fait de regarder {STRINGID} me rend malade” +STR_1488 :“Je ne paierai pas si cher pour aller sur {STRINGID}” +STR_1489 :“Je veux rentrer chez moi” +STR_1490 :“{STRINGID} est un très bon choix” +STR_1491 :“J’ai déjà {STRINGID}” +STR_1492 :“Je ne peux pas me payer {STRINGID}” +STR_1493 :“Je n’ai pas faim” +STR_1494 :“Je n’ai pas soif” +STR_1495 :“À l’aide ! Je me noie !” +STR_1496 :“Je suis perdu !” +STR_1497 :“{STRINGID} était génial” +STR_1498 :“Je fais la queue pour {STRINGID} depuis des heures” +STR_1499 :“Je suis fatigué” +STR_1500 :“J’ai faim” +STR_1501 :“J’ai soif” +STR_1502 :“Je dois aller aux toilettes” +STR_1503 :“Je ne trouve pas {STRINGID}” +STR_1504 :“Je ne paierai pas si cher pour utiliser {STRINGID}” +STR_1505 :“Je n’irai pas sur {STRINGID} tant qu’il pleuvra” +STR_1506 :“Les poubelles ne sont pas vidées ici” +STR_1507 :“Je trouve pas la sortie du parc” +STR_1508 :“Je veux descendre de {STRINGID}” +STR_1509 :“Je veux sortir de {STRINGID}” +STR_1510 :“Je n’irai pas sur {STRINGID} - C’est trop risqué” +STR_1511 :“Cette allée est dégoûtante” +STR_1512 :“Il y a trop de monde ici” +STR_1513 :“Il y a beaucoup de vandalisme ici” +STR_1514 :“Quel beau décor !” +STR_1515 :“Ce parc est d’une propreté exemplaire” +STR_1516 :“Les jets d’eau sont super” +STR_1517 :“La musique est sympa ici” +STR_1518 :“Ce ballon de {STRINGID} est un très bon choix” +STR_1519 :“Cette peluche de {STRINGID} est un très bon choix” +STR_1520 :“Ce plan du parc de {STRINGID} est un très bon choix” +STR_1521 :“Cette photo sur le vif de {STRINGID} est un très bon choix” +STR_1522 :“Ce parapluie de {STRINGID} est un très bon choix” +STR_1523 :“Cette boisson de {STRINGID} est un très bon choix” +STR_1524 :“Cet hamburger de {STRINGID} est un très bon choix” +STR_1525 :“Ces frites de {STRINGID} sont un très bon choix” +STR_1526 :“Cette glace de {STRINGID} est un très bon choix” +STR_1527 :“Cette barbe-à-papa de {STRINGID} est un très bon choix” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Cette pizza de {STRINGID} est un très bon choix” +STR_1531 :“Cette pizza de {STRINGID} est un très bon choix” STR_1532 : -STR_1533 :{SMALLFONT}“Ce popcorn de {STRINGID} est un très bon choix” -STR_1534 :{SMALLFONT}“Ce hot-dog de {STRINGID} est un très bon choix” -STR_1535 :{SMALLFONT}“Ce poulpe de {STRINGID} est un très bon choix” -STR_1536 :{SMALLFONT}“Ce chapeau de {STRINGID} est un très bon choix” -STR_1537 :{SMALLFONT}“Cette pomme d’amour de {STRINGID} est un très bon choix” -STR_1538 :{SMALLFONT}“Ce T-shirt de {STRINGID} est un très bon choix” -STR_1539 :{SMALLFONT}“Ce donut de {STRINGID} est un très bon choix” -STR_1540 :{SMALLFONT}“Ce café de {STRINGID} est un très bon choix” +STR_1533 :“Ce popcorn de {STRINGID} est un très bon choix” +STR_1534 :“Ce hot-dog de {STRINGID} est un très bon choix” +STR_1535 :“Ce poulpe de {STRINGID} est un très bon choix” +STR_1536 :“Ce chapeau de {STRINGID} est un très bon choix” +STR_1537 :“Cette pomme d’amour de {STRINGID} est un très bon choix” +STR_1538 :“Ce T-shirt de {STRINGID} est un très bon choix” +STR_1539 :“Ce donut de {STRINGID} est un très bon choix” +STR_1540 :“Ce café de {STRINGID} est un très bon choix” STR_1541 : -STR_1542 :{SMALLFONT}“Ce poulet frit de {STRINGID} est un très bon choix” -STR_1543 :{SMALLFONT}“Cette limonade de {STRINGID} est un très bon choix” +STR_1542 :“Ce poulet frit de {STRINGID} est un très bon choix” +STR_1543 :“Cette limonade de {STRINGID} est un très bon choix” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Ouah !” -STR_1551 :{SMALLFONT}“J’ai l’étrange impression que quelqu’un m’observe” -STR_1552 :{SMALLFONT}“Je ne paierai pas si cher pour un ballon de {STRINGID}” -STR_1553 :{SMALLFONT}“Je ne paierai pas si cher pour une peluche de {STRINGID}” -STR_1554 :{SMALLFONT}“Je ne paierai pas si cher pour un plan du parc de {STRINGID}” -STR_1555 :{SMALLFONT}“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” -STR_1556 :{SMALLFONT}“Je ne paierai pas si cher pour un parapluie de {STRINGID}” -STR_1557 :{SMALLFONT}“Je ne paierai pas si cher pour une boisson de {STRINGID}” -STR_1558 :{SMALLFONT}“Je ne paierai pas si cher pour un hamburger de {STRINGID}” -STR_1559 :{SMALLFONT}“Je ne paierai pas si cher pour des frites de {STRINGID}” -STR_1560 :{SMALLFONT}“Je ne paierai pas si cher pour une glace de {STRINGID}” -STR_1561 :{SMALLFONT}“Je ne paierai pas si cher pour une barbe-à-papa de {STRINGID}” +STR_1550 :“Ouah !” +STR_1551 :“J’ai l’étrange impression que quelqu’un m’observe” +STR_1552 :“Je ne paierai pas si cher pour un ballon de {STRINGID}” +STR_1553 :“Je ne paierai pas si cher pour une peluche de {STRINGID}” +STR_1554 :“Je ne paierai pas si cher pour un plan du parc de {STRINGID}” +STR_1555 :“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” +STR_1556 :“Je ne paierai pas si cher pour un parapluie de {STRINGID}” +STR_1557 :“Je ne paierai pas si cher pour une boisson de {STRINGID}” +STR_1558 :“Je ne paierai pas si cher pour un hamburger de {STRINGID}” +STR_1559 :“Je ne paierai pas si cher pour des frites de {STRINGID}” +STR_1560 :“Je ne paierai pas si cher pour une glace de {STRINGID}” +STR_1561 :“Je ne paierai pas si cher pour une barbe-à-papa de {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Je ne paierai pas si cher pour une pizza de {STRINGID}” +STR_1565 :“Je ne paierai pas si cher pour une pizza de {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Je ne paierai pas si cher pour du popcorn de {STRINGID}” -STR_1568 :{SMALLFONT}“Je ne paierai pas si cher pour un hot dog de {STRINGID}” -STR_1569 :{SMALLFONT}“Je ne paierai pas si cher pour du poulpe de {STRINGID}” -STR_1570 :{SMALLFONT}“Je ne paierai pas si cher pour un chapeau de {STRINGID}” -STR_1571 :{SMALLFONT}“Je ne paierai pas si cher pour une pomme d’amour de {STRINGID}” -STR_1572 :{SMALLFONT}“Je ne paierai pas si cher pour un T-shirt de {STRINGID}” -STR_1573 :{SMALLFONT}“Je ne paierai pas si cher pour un donut de {STRINGID}” -STR_1574 :{SMALLFONT}“Je ne paierai pas si cher pour un café de {STRINGID}” +STR_1567 :“Je ne paierai pas si cher pour du popcorn de {STRINGID}” +STR_1568 :“Je ne paierai pas si cher pour un hot dog de {STRINGID}” +STR_1569 :“Je ne paierai pas si cher pour du poulpe de {STRINGID}” +STR_1570 :“Je ne paierai pas si cher pour un chapeau de {STRINGID}” +STR_1571 :“Je ne paierai pas si cher pour une pomme d’amour de {STRINGID}” +STR_1572 :“Je ne paierai pas si cher pour un T-shirt de {STRINGID}” +STR_1573 :“Je ne paierai pas si cher pour un donut de {STRINGID}” +STR_1574 :“Je ne paierai pas si cher pour un café de {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Je ne paierai pas si cher pour du poulet frit de {STRINGID}” -STR_1577 :{SMALLFONT}“Je ne paierai pas si cher pour un limonade de {STRINGID}” +STR_1576 :“Je ne paierai pas si cher pour du poulet frit de {STRINGID}” +STR_1577 :“Je ne paierai pas si cher pour un limonade de {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Cette photo sur le vif de {STRINGID} est un très bon choix” -STR_1585 :{SMALLFONT}“Cette photo sur le vif de {STRINGID} est un très bon choix” -STR_1586 :{SMALLFONT}“Cette photo sur le vif de {STRINGID} est un très bon choix” -STR_1587 :{SMALLFONT}“Ce bretzel de {STRINGID} est un très bon choix” -STR_1588 :{SMALLFONT}“Ce chocolat chaud de {STRINGID} est un très bon choix” -STR_1589 :{SMALLFONT}“Ce thé glacé de {STRINGID} est un très bon choix” -STR_1590 :{SMALLFONT}“Ce funnel cake de {STRINGID} est un très bon choix” -STR_1591 :{SMALLFONT}“Ces lunettes de soleil de {STRINGID} sont un très bon choix” -STR_1592 :{SMALLFONT}“Ces nouilles au boeuf de {STRINGID} sont un très bon choix” -STR_1593 :{SMALLFONT}“Ces nouilles au riz frit de {STRINGID} sont un très bon choix” -STR_1594 :{SMALLFONT}“Cette soupe aux raviolis de {STRINGID} est un très bon choix” -STR_1595 :{SMALLFONT}“Cette soupe aux boulettes de viande de {STRINGID} est un très bon choix” -STR_1596 :{SMALLFONT}“Ce jus de fruits de {STRINGID} est un très bon choix” -STR_1597 :{SMALLFONT}“Ce lait de soja de {STRINGID} est un très bon choix” -STR_1598 :{SMALLFONT}“Ce sujongkwa de {STRINGID} est un très bon choix” -STR_1599 :{SMALLFONT}“Ce sandwich de {STRINGID} est un très bon choix” -STR_1600 :{SMALLFONT}“Ce cookie de {STRINGID} est un très bon choix” +STR_1584 :“Cette photo sur le vif de {STRINGID} est un très bon choix” +STR_1585 :“Cette photo sur le vif de {STRINGID} est un très bon choix” +STR_1586 :“Cette photo sur le vif de {STRINGID} est un très bon choix” +STR_1587 :“Ce bretzel de {STRINGID} est un très bon choix” +STR_1588 :“Ce chocolat chaud de {STRINGID} est un très bon choix” +STR_1589 :“Ce thé glacé de {STRINGID} est un très bon choix” +STR_1590 :“Ce funnel cake de {STRINGID} est un très bon choix” +STR_1591 :“Ces lunettes de soleil de {STRINGID} sont un très bon choix” +STR_1592 :“Ces nouilles au boeuf de {STRINGID} sont un très bon choix” +STR_1593 :“Ces nouilles au riz frit de {STRINGID} sont un très bon choix” +STR_1594 :“Cette soupe aux raviolis de {STRINGID} est un très bon choix” +STR_1595 :“Cette soupe aux boulettes de viande de {STRINGID} est un très bon choix” +STR_1596 :“Ce jus de fruits de {STRINGID} est un très bon choix” +STR_1597 :“Ce lait de soja de {STRINGID} est un très bon choix” +STR_1598 :“Ce sujongkwa de {STRINGID} est un très bon choix” +STR_1599 :“Ce sandwich de {STRINGID} est un très bon choix” +STR_1600 :“Ce cookie de {STRINGID} est un très bon choix” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Cette saucisse grillée de {STRINGID} est un très bon choix” +STR_1604 :“Cette saucisse grillée de {STRINGID} est un très bon choix” STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1002,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” -STR_1617 :{SMALLFONT}“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” -STR_1618 :{SMALLFONT}“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” -STR_1619 :{SMALLFONT}“Je ne paierai pas si cher pour un bretzel de {STRINGID}” -STR_1620 :{SMALLFONT}“Je ne paierai pas si cher pour un chocolat chaud de {STRINGID}” -STR_1621 :{SMALLFONT}“Je ne paierai pas si cher pour du thé glacé de {STRINGID}” -STR_1622 :{SMALLFONT}“Je ne paierai pas si cher pour un funnel cake de {STRINGID}” -STR_1623 :{SMALLFONT}“Je ne paierai pas si cher pour des lunettes de soleil de {STRINGID}” -STR_1624 :{SMALLFONT}“Je ne paierai pas si cher pour des nouilles au boeuf de {STRINGID}” -STR_1625 :{SMALLFONT}“Je ne paierai pas si cher pour des nouilles au riz frit de {STRINGID}” -STR_1626 :{SMALLFONT}“Je ne paierai pas si cher pour une soupe aux raviolis de {STRINGID}” -STR_1627 :{SMALLFONT}“Je ne paierai pas si cher pour une soupe aux boulettes de viandes de {STRINGID}” -STR_1628 :{SMALLFONT}“Je ne paierai pas si cher pour un jus de fruits de {STRINGID}” -STR_1629 :{SMALLFONT}“Je ne paierai pas si cher pour du lait de soja de {STRINGID}” -STR_1630 :{SMALLFONT}“Je ne paierai pas si cher pour un sujongkwa de {STRINGID}” -STR_1631 :{SMALLFONT}“Je ne paierai pas si cher pour un sandwich de {STRINGID}” -STR_1632 :{SMALLFONT}“Je ne paierai pas si cher pour un cookie de {STRINGID}” +STR_1616 :“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” +STR_1617 :“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” +STR_1618 :“Je ne paierai pas si cher pour une photo sur le vif de {STRINGID}” +STR_1619 :“Je ne paierai pas si cher pour un bretzel de {STRINGID}” +STR_1620 :“Je ne paierai pas si cher pour un chocolat chaud de {STRINGID}” +STR_1621 :“Je ne paierai pas si cher pour du thé glacé de {STRINGID}” +STR_1622 :“Je ne paierai pas si cher pour un funnel cake de {STRINGID}” +STR_1623 :“Je ne paierai pas si cher pour des lunettes de soleil de {STRINGID}” +STR_1624 :“Je ne paierai pas si cher pour des nouilles au boeuf de {STRINGID}” +STR_1625 :“Je ne paierai pas si cher pour des nouilles au riz frit de {STRINGID}” +STR_1626 :“Je ne paierai pas si cher pour une soupe aux raviolis de {STRINGID}” +STR_1627 :“Je ne paierai pas si cher pour une soupe aux boulettes de viandes de {STRINGID}” +STR_1628 :“Je ne paierai pas si cher pour un jus de fruits de {STRINGID}” +STR_1629 :“Je ne paierai pas si cher pour du lait de soja de {STRINGID}” +STR_1630 :“Je ne paierai pas si cher pour un sujongkwa de {STRINGID}” +STR_1631 :“Je ne paierai pas si cher pour un sandwich de {STRINGID}” +STR_1632 :“Je ne paierai pas si cher pour un cookie de {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Je ne paierai pas si cher pour une saucisse grillée de {STRINGID}” +STR_1636 :“Je ne paierai pas si cher pour une saucisse grillée de {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1032,11 +1034,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“À l’aide ! Déposez-moi !” -STR_1649 :{SMALLFONT}“Je n’ai plus d’argent !” -STR_1650 :{SMALLFONT}“Ouah ! Ils construisent une nouvelle attraction !” +STR_1648 :“À l’aide ! Déposez-moi !” +STR_1649 :“Je n’ai plus d’argent !” +STR_1650 :“Ouah ! Ils construisent une nouvelle attraction !” # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}“… et là nous sommes sur {STRINGID} !” +STR_1653 :“… et là nous sommes sur {STRINGID} !” STR_1654 :{WINDOW_COLOUR_2}Pensées récentes : STR_1655 :Construire une allée sur le terrain STR_1656 :Construire un pont ou un tunnel @@ -1188,7 +1190,7 @@ STR_1808 :{WINDOW_COLOUR_2}Dernière panne : {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Panne actuelle : {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Transporte : STR_1811 :Impossible de construire ça ici… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Objets divers STR_1814 :Actions STR_1815 :Pensées @@ -1197,7 +1199,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tous les visiteurs STR_1819 :{WINDOW_COLOUR_2}Tous les visiteurs (résumé) STR_1820 :{WINDOW_COLOUR_2}Visiteurs {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Visiteurs pensant {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Visiteurs pensant {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visiteurs pensant à {POP16}{STRINGID} STR_1823 :Voir les opinions des visiteurs sur cette attraction STR_1824 :Voir les visiteurs sur cette attraction @@ -1300,7 +1302,6 @@ STR_1921 :Commencer une nouvelle partie STR_1922 :Continuer une partie sauvegardée STR_1924 :Quitter STR_1925 :Impossible de placer quelqu’un ici… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} est tombé en panne STR_1928 :{RED}{STRINGID} a eu un accident! STR_1929 :{RED}{STRINGID} n’est toujours pas réparé{NEWLINE}Vérifiez où sont vos mécaniciens et pensez à leur attribuer des zones de patrouilles @@ -1581,7 +1582,7 @@ STR_2218 :{RED}{STRINGID} sur {STRINGID} n’est pas encore revenu à {STRING STR_2219 :{RED}{COMMA16} personnes sont décédées dans un accident sur {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Evaluation du parc : {BLACK}{COMMA16} STR_2221 :Evaluation du parc : {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Visiteurs dans le parc : {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Argent : {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Argent : {RED}{CURRENCY2DP} @@ -1594,7 +1595,7 @@ STR_2231 :Maint. frein en chute STR_2232 :Remontée à chaîne STR_2233 :Informations sur le parc STR_2234 :Messages récents -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :janvier STR_2237 :février STR_2238 :mars @@ -1798,7 +1799,7 @@ STR_2450 :{YELLOW}Votre campagne marketing pour le parc est terminée STR_2451 :{YELLOW}Votre campagne marketing pour {STRINGID} est terminée STR_2452 :{WINDOW_COLOUR_2}Argent (moins l’emprunt) : {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Argent (moins l’emprunt) : {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Voir comptes financiers STR_2458 :Voir graphique Argent (moins emprunt) sur durée STR_2459 :Voir graphique Valeur du parc sur durée @@ -1908,7 +1909,6 @@ STR_2636 :/ (pavé numérique) STR_2669 :Verr num STR_2670 :Défil. STR_2680 :Toutes les recherches effectuées -STR_2681 :{MEDIUMFONT}{BLACK}Augmenter votre argent de {CURRENCY} STR_2684 :Un grand groupe de visiteurs arrive STR_2685 :Paramètres de bruit Simplex STR_2686 :Graves : @@ -1995,7 +1995,7 @@ STR_2789 :{WINDOW_COLOUR_2}Vous n’avez pas atteint votre objectif ! STR_2790 :Saisir nom dans le tableau de scénarios STR_2791 :Saisir nom STR_2792 :Veuillez saisir votre nom pour le tableau de scénarios : -STR_2793 :{SMALLFONT}(Réussi par {STRINGID}) +STR_2793 :(Réussi par {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Réussi par : {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} avec une valeur de société de : {BLACK}{CURRENCY} STR_2795 :Trier STR_2796 :Trier la liste des attractions dans l’ordre avec le type d’informations affiché @@ -2502,7 +2502,7 @@ STR_5134 :Ajuster zone achat + grande STR_5135 :Acheter du terrain et des droits de construction STR_5136 :Achat STR_5137 :Autoriser remontées et vitesse de {NEWLINE}lancement jusqu’à {VELOCITY} -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Désactiver pannes de freins STR_5141 :Désactiver toutes les pannes @@ -2650,7 +2650,7 @@ STR_5297 :Ouvrir le parc STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Licenciement rapide -STR_5301 :{MEDIUMFONT}{BLACK}Effacer votre emprunt +STR_5301 :Effacer votre emprunt STR_5302 :Effacer emprunt STR_5303 :Autoriser construction en mode pause STR_5304 :Séquence titre : @@ -2809,7 +2809,7 @@ STR_5481 :Thèmes STR_5482 :{WINDOW_COLOUR_2}Temps écoulé depuis la dernière inspection : {BLACK}une minute STR_5483 :{BLACK}({COMMA16} semaines restantes) STR_5484 :{BLACK}({COMMA16} semaine restante) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Afficher les messages récents STR_5489 :Afficher seulement les visiteurs surveillés @@ -3298,23 +3298,23 @@ STR_6014 :Les visiteurs ne paieront que les tickets pour entrer dans les attr STR_6015 :Incliné STR_6016 :Modifier case STR_6017 :Merci de ralentir un peu -STR_6018 :Construction d’attraction - Tourner à gauche -STR_6019 :Construction d’attraction - Tourner à droite -STR_6020 :Construction d’attraction - Utiliser la voie par défaut -STR_6021 :Construction d’attraction - Pente descendante -STR_6022 :Construction d’attraction - Pente ascendante -STR_6023 :Construction d’attraction - Activer/désactiver la remontée à chaîne -STR_6024 :Construction d’attraction - Incliner à gauche -STR_6025 :Construction d’attraction - Incliner à droite -STR_6026 :Construction d’attraction - Morceau précédent -STR_6027 :Construction d’attraction - Morceau suivante -STR_6028 :Construction d’attraction - Construire l’actuel -STR_6029 :Construction d’attraction - Démolir l’actuel +STR_6018 :Construction - Tourner à gauche +STR_6019 :Construction - Tourner à droite +STR_6020 :Construction - Utiliser la voie par défaut +STR_6021 :Construction - Pente descendante +STR_6022 :Construction - Pente ascendante +STR_6023 :Construction - Activer/désactiver la remontée à chaîne +STR_6024 :Construction - Incliner à gauche +STR_6025 :Construction - Incliner à droite +STR_6026 :Construction - Morceau précédent +STR_6027 :Construction - Morceau suivante +STR_6028 :Construction - Construire l’actuel +STR_6029 :Construction - Démolir l’actuel STR_6030 :Pipette de décor. Cliquez sur un décor sur la carte afin de sélectionner la même pièce et la construire. STR_6031 :Description du serveur : STR_6032 :Message de bienvenue du serveur : STR_6033 :Chemin vers l’installation de RCT1 : -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Veuillez choisir votre installation de RCT1 STR_6036 :Vider STR_6037 :Le dossier sélectionné ne contient pas une installation valide de RollerCoaster Tycoon 1. @@ -3459,7 +3459,7 @@ STR_6183 :Suivre{MOVE_X}{87}Aucune image-objet sélectionnée STR_6184 :Suivre image-objet STR_6185 :Sélectionner image-objet STR_6186 :Aucune image-objet sélectionnée -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vomi STR_6189 :Canard STR_6190 :Vous ne pouvez pas sélectionner une image-objet lorsque l’écran titre est actif. @@ -3609,7 +3609,7 @@ STR_6356 :Fait apparaitre des canards si le parc contient de l’eau. STR_6357 :Supprime tous les cannards de la carte. STR_6358 :Page {UINT16} STR_6359 :{POP16}{POP16}Page {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Activer les effets de lumières sur les{NEWLINE}attractions (expérimental) STR_6362 :Si activé, les véhicules sur les attractions sur rails seront éclairés la nuit. STR_6363 :Texte copié dans le presse-papier @@ -3645,20 +3645,64 @@ STR_6392 :Impossible de trouver {STRING} à cet emplacement. STR_6393 :Choix des objectifs STR_6394 :Objectif STR_6395 :Maintenance -STR_6396 :Désactiver écran de veille et économie d’énergie pour moniteur -STR_6397 :Si coché, l’écran de veille et autres paramètres d’économie d’énergie pour moniteur seront désactivés pendant qu’OpenRCT2 tourne -STR_6398 :Le fichier contient des types d'attractions non-supportés. Veuillez mettre à jour OpenRCT2. -STR_6399 :OpenRCT2 a besoin des fichiers originaux de RollerCoaster Tycoon 2 pour fonctionner. Veuillez indiquez le chemin où vous avez installé RollerCoaster Tycoon 2 dans la variable "game_path" dans le fichier config.ini, puis redémarrez OpenRCT2. -STR_6400 :J'ai téléchargé l'installeur GOG hors-ligne de RollerCoaster Tycoon 2, mais je ne l'ai pas encoré installé -STR_6401 :J'ai déjà installé RollerCoaster Tycoon 2 +STR_6396 :Désactiver écr. de veille et éco. d’énergie du moniteur +STR_6397 :Si coché, l’écran de veille et d’autres fonctionnalités d’économie d’énergie du moniteur seront désactivés pendant qu’OpenRCT2 est lancé. +STR_6398 :Le fichier contient des types d’attractions non supportés. Veuillez mettre à jour OpenRCT2 vers une version plus récente. +STR_6399 :OpenRCT2 a besoin des fichiers originaux de RollerCoaster Tycoon 2 pour fonctionner. Veuillez indiquer le chemin où vous avez installé RollerCoaster Tycoon 2 dans la variable “game_path” dans le fichier config.ini, puis redémarrez OpenRCT2. +STR_6400 :J’ai téléchargé l’installeur GOG hors-ligne de RollerCoaster Tycoon 2, mais je ne l’ai pas encore installé +STR_6401 :J’ai déjà installé RollerCoaster Tycoon 2 STR_6402 :Configuration des données OpenRCT2 -STR_6403 :Sélectionnez la situation qui s'applique dans votre cas -STR_6404 :Veuillez sélectionnez l'installeur GOG de RollerCoaster Tycoon 2. -STR_6405 :Selection installeur GOG +STR_6403 :Sélectionnez la situation qui s’applique à votre cas +STR_6404 :Veuillez sélectionnez l’installeur GOG de RollerCoaster Tycoon 2. +STR_6405 :Sélectionner l’installeur GOG STR_6406 :Installeur GOG RollerCoaster Tycoon 2 STR_6407 :Ceci peut prendre quelques minutes. -STR_6408 :Veuillez installer "innoextract" pour extraire l'installeur GOG, et redémarrez OpenRCT2. -STR_6409 :Le fichier sélectionné n'est pas l'installeur GOG hors-ligne de RollerCoaster Tycoon 2. Soit vous avez téléchargé l'installeur de GOG Galaxy ou vous avez sélectionné le mauvais fichier. +STR_6408 :Veuillez installer “innoextract” pour extraire l’installeur GOG, et redémarrez OpenRCT2. +STR_6409 :Le fichier sélectionné n’est pas l’installeur GOG hors-ligne de RollerCoaster Tycoon 2. Vous avez peut-être téléchargé l’installeur de GOG Galaxy ou sélectionné le mauvais fichier. +STR_6410 :Zoom avant/arrière +STR_6411 :Afficher les boutons de zoom dans la barre d’outils +STR_6412 :Entrée pavé numérique +STR_6413 :Maj +STR_6414 :Maj gauche +STR_6415 :Maj droite +STR_6416 :Ctrl +STR_6417 :Ctrl gauche +STR_6418 :Ctrl droite +STR_6419 :Alt +STR_6420 :Alt gauche +STR_6421 :Alt droite +STR_6422 :Cmd +STR_6423 :Cmd gauche +STR_6424 :Cmd droite +STR_6425 :Joystick gauche +STR_6426 :Joystick droite +STR_6427 :Joystick haut +STR_6428 :Joystick bas +STR_6429 :Joystick {INT32} +STR_6430 :Bouton gauche souris +STR_6431 :Bouton droite souris +STR_6432 :Bouton souris {INT32} +STR_6433 :Supprimer +STR_6434 :Supprimer toutes les combinaisons pour ce raccourci. +STR_6435 :{WINDOW_COLOUR_2}Vandales arrêtés : {BLACK}{COMMA16} +STR_6436 :Permuter la visibilité +STR_6437 :Invisible +STR_6438 :I +STR_6439 :Inspecteur de cases - Permuter la visibilité +STR_6440 :Eau transparente +STR_6441 :Au moins un objet de surface d’allée (hors file d’attente) doit être sélectionné. +STR_6442 :Au moins un objet de surface de file d’attente doit être sélectionné. +STR_6443 :Au moins un object de rambarde doit être sélectionné. +STR_6444 :Surfaces d’allée +STR_6445 :Rambardes +STR_6446 :{WINDOW_COLOUR_2}Nom de la surface : {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Nom de la rambarde : {BLACK}{STRINGID} +STR_6448 :Format d’objet non supporté +STR_6449 :{WINDOW_COLOUR_2}Pistes : +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Vend : {BLACK}{STRING} +STR_6453 :Copier les informations de version ############# # Scenarios # diff --git a/data/language/hu-HU.txt b/data/language/hu-HU.txt index 4bbf137314..1080211dd0 100644 --- a/data/language/hu-HU.txt +++ b/data/language/hu-HU.txt @@ -229,8 +229,8 @@ STR_0831 :Kicsinyítés STR_0832 :Forgatás 90°-kal órajárás szerint STR_0833 :A játék megállítása STR_0834 :Mentési és játékbeállítások -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} STR_0847 :Az ’OpenRCT2’ névjegye STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, minden jog fenntartva STR_0851 :{WINDOW_COLOUR_2}Tervezés és programozás: Chris Sawyer @@ -792,14 +792,14 @@ STR_1410 :Függőleges torony STR_1411 :{STRINGID} útban van STR_1412 :{WINDOW_COLOUR_3}A játéktípus számára nem elérhető az adatnaplózás STR_1413 :{WINDOW_COLOUR_3}Az adatnaplózás akkor indul, amikor a következő {STRINGID} elhagyja ezt: {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Sebesség STR_1416 :{WINDOW_COLOUR_2}Magasság STR_1417 :{WINDOW_COLOUR_2}Függ. gyors. STR_1418 :{WINDOW_COLOUR_2}Old.ir. gyors. -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Adatnaplózás: {POP16}{STRINGID} STR_1423 :Várósor STR_1424 :Út @@ -858,131 +858,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intenzitási érték: {BLACK}Még nem áll rendelk STR_1477 :{WINDOW_COLOUR_2}Intenzitási érték: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Émelygési érték: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Émelygési érték: {BLACK}Még nem áll rendelkezésre -STR_1480 :{SMALLFONT}„Nincs elég pénzem erre: {STRINGID}” -STR_1481 :{SMALLFONT}„Minden pénzem elköltöttem” -STR_1482 :{SMALLFONT}„Rosszul érzem magam” -STR_1483 :{SMALLFONT}„Nagyon rosszul érzem magam” -STR_1484 :{SMALLFONT}„Valami izgalmasabbra vágyom, mint {STRINGID}” -STR_1485 :{SMALLFONT}„{STRINGID} túl intenzívnek tűnik számomra” -STR_1486 :{SMALLFONT}„Még nem fogyasztottam el ezt: {STRINGID}” -STR_1487 :{SMALLFONT}„{STRINGID} már ránézésre is rosszullétet keltő” -STR_1488 :{SMALLFONT}„{STRINGID} túl sokba kerül számomra” -STR_1489 :{SMALLFONT}„Haza akarok menni” -STR_1490 :{SMALLFONT}„{STRINGID} igazán megéri az árát” -STR_1491 :{SMALLFONT}„Már van nálam {STRINGID}” -STR_1492 :{SMALLFONT}„Nincs elég pénzem erre: {STRINGID}” -STR_1493 :{SMALLFONT}„Nem vagyok éhes” -STR_1494 :{SMALLFONT}„Nem vagyok szomjas” -STR_1495 :{SMALLFONT}„Segítség! Megfulladok!” -STR_1496 :{SMALLFONT}„Eltévedtem!” -STR_1497 :{SMALLFONT}„{STRINGID} remek volt” -STR_1498 :{SMALLFONT}„Már túl régóta állok a sorban {STRINGID} előtt” -STR_1499 :{SMALLFONT}„Fáradt vagyok” -STR_1500 :{SMALLFONT}„Éhes vagyok” -STR_1501 :{SMALLFONT}„Szomjas vagyok” -STR_1502 :{SMALLFONT}„WC-re kell mennem” -STR_1503 :{SMALLFONT}„Merre lehet {STRINGID}?” -STR_1504 :{SMALLFONT}„Nem fizetek ennyit {STRINGID} használatáért” -STR_1505 :{SMALLFONT}„{STRINGID} esőben nem tűnik jó választásnak” -STR_1506 :{SMALLFONT}„Túl sok itt a szemét” -STR_1507 :{SMALLFONT}„Nem találom a park kijáratát” -STR_1508 :{SMALLFONT}„Le akarok szállni erről: {STRINGID}” -STR_1509 :{SMALLFONT}„Ki akarok jönni ebből: {STRINGID}” -STR_1510 :{SMALLFONT}„Nem szállok fel erre: {STRINGID} - Nem biztonságos” -STR_1511 :{SMALLFONT}„Ez az út gyomorforgató” -STR_1512 :{SMALLFONT}„Túl nagy itt a tömeg” -STR_1513 :{SMALLFONT}„Nagyon elharapódzott itt a vandalizmus” -STR_1514 :{SMALLFONT}„Csodásak a díszletek!” -STR_1515 :{SMALLFONT}„Ez a park nagyon tiszta és rendezett” -STR_1516 :{SMALLFONT}„Nagyszerűek ezek az ugráló szökőkutak” -STR_1517 :{SMALLFONT}„Jó itt a zene” -STR_1518 :{SMALLFONT}„{STRINGID} lufija igazán megéri az árát” -STR_1519 :{SMALLFONT}„{STRINGID} plüssállata igazán megéri az árát” -STR_1520 :{SMALLFONT}„{STRINGID} parktérképe igazán megéri az árát” -STR_1521 :{SMALLFONT}„{STRINGID} élményfotója igazán megéri az árát” -STR_1522 :{SMALLFONT}„{STRINGID} esernyője igazán megéri az árát” -STR_1523 :{SMALLFONT}„{STRINGID} üdítője igazán megéri az árát” -STR_1524 :{SMALLFONT}„{STRINGID} hamburgere igazán megéri az árát” -STR_1525 :{SMALLFONT}„{STRINGID} sült krumplija igazán megéri az árát” -STR_1526 :{SMALLFONT}„{STRINGID} jégkréme igazán megéri az árát” -STR_1527 :{SMALLFONT}„{STRINGID} vattacukra igazán megéri az árát” +STR_1480 :„Nincs elég pénzem erre: {STRINGID}” +STR_1481 :„Minden pénzem elköltöttem” +STR_1482 :„Rosszul érzem magam” +STR_1483 :„Nagyon rosszul érzem magam” +STR_1484 :„Valami izgalmasabbra vágyom, mint {STRINGID}” +STR_1485 :„{STRINGID} túl intenzívnek tűnik számomra” +STR_1486 :„Még nem fogyasztottam el ezt: {STRINGID}” +STR_1487 :„{STRINGID} már ránézésre is rosszullétet keltő” +STR_1488 :„{STRINGID} túl sokba kerül számomra” +STR_1489 :„Haza akarok menni” +STR_1490 :„{STRINGID} igazán megéri az árát” +STR_1491 :„Már van nálam {STRINGID}” +STR_1492 :„Nincs elég pénzem erre: {STRINGID}” +STR_1493 :„Nem vagyok éhes” +STR_1494 :„Nem vagyok szomjas” +STR_1495 :„Segítség! Megfulladok!” +STR_1496 :„Eltévedtem!” +STR_1497 :„{STRINGID} remek volt” +STR_1498 :„Már túl régóta állok a sorban {STRINGID} előtt” +STR_1499 :„Fáradt vagyok” +STR_1500 :„Éhes vagyok” +STR_1501 :„Szomjas vagyok” +STR_1502 :„WC-re kell mennem” +STR_1503 :„Merre lehet {STRINGID}?” +STR_1504 :„Nem fizetek ennyit {STRINGID} használatáért” +STR_1505 :„{STRINGID} esőben nem tűnik jó választásnak” +STR_1506 :„Túl sok itt a szemét” +STR_1507 :„Nem találom a park kijáratát” +STR_1508 :„Le akarok szállni erről: {STRINGID}” +STR_1509 :„Ki akarok jönni ebből: {STRINGID}” +STR_1510 :„Nem szállok fel erre: {STRINGID} - Nem biztonságos” +STR_1511 :„Ez az út gyomorforgató” +STR_1512 :„Túl nagy itt a tömeg” +STR_1513 :„Nagyon elharapódzott itt a vandalizmus” +STR_1514 :„Csodásak a díszletek!” +STR_1515 :„Ez a park nagyon tiszta és rendezett” +STR_1516 :„Nagyszerűek ezek az ugráló szökőkutak” +STR_1517 :„Jó itt a zene” +STR_1518 :„{STRINGID} lufija igazán megéri az árát” +STR_1519 :„{STRINGID} plüssállata igazán megéri az árát” +STR_1520 :„{STRINGID} parktérképe igazán megéri az árát” +STR_1521 :„{STRINGID} élményfotója igazán megéri az árát” +STR_1522 :„{STRINGID} esernyője igazán megéri az árát” +STR_1523 :„{STRINGID} üdítője igazán megéri az árát” +STR_1524 :„{STRINGID} hamburgere igazán megéri az árát” +STR_1525 :„{STRINGID} sült krumplija igazán megéri az árát” +STR_1526 :„{STRINGID} jégkréme igazán megéri az árát” +STR_1527 :„{STRINGID} vattacukra igazán megéri az árát” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}„{STRINGID} pizzája igazán megéri az árát” +STR_1531 :„{STRINGID} pizzája igazán megéri az árát” STR_1532 : -STR_1533 :{SMALLFONT}„{STRINGID} pattogatott kukoricája igazán megéri az árát” -STR_1534 :{SMALLFONT}„{STRINGID} hot dogja igazán megéri az árát” -STR_1535 :{SMALLFONT}„{STRINGID} csápja igazán megéri az árát” -STR_1536 :{SMALLFONT}„{STRINGID} sapkája igazán megéri az árát” -STR_1537 :{SMALLFONT}„{STRINGID} karamellás almája igazán megéri az árát” -STR_1538 :{SMALLFONT}„{STRINGID} pólója igazán megéri az árát” -STR_1539 :{SMALLFONT}„{STRINGID} fánkja igazán megéri az árát” -STR_1540 :{SMALLFONT}„{STRINGID} kávéja igazán megéri az árát” +STR_1533 :„{STRINGID} pattogatott kukoricája igazán megéri az árát” +STR_1534 :„{STRINGID} hot dogja igazán megéri az árát” +STR_1535 :„{STRINGID} csápja igazán megéri az árát” +STR_1536 :„{STRINGID} sapkája igazán megéri az árát” +STR_1537 :„{STRINGID} karamellás almája igazán megéri az árát” +STR_1538 :„{STRINGID} pólója igazán megéri az árát” +STR_1539 :„{STRINGID} fánkja igazán megéri az árát” +STR_1540 :„{STRINGID} kávéja igazán megéri az árát” STR_1541 : -STR_1542 :{SMALLFONT}„{STRINGID} sült csirkéje igazán megéri az árát” -STR_1543 :{SMALLFONT}„{STRINGID} limonádéja igazán megéri az árát” +STR_1542 :„{STRINGID} sült csirkéje igazán megéri az árát” +STR_1543 :„{STRINGID} limonádéja igazán megéri az árát” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}„Hűha!” -STR_1551 :{SMALLFONT}„Az a felettébb különös érzésem van, hogy valaki figyel” -STR_1552 :{SMALLFONT}„{STRINGID} lufija túl sokba kerül számomra” -STR_1553 :{SMALLFONT}„{STRINGID} plüssállata túl sokba kerül számomra” -STR_1554 :{SMALLFONT}„{STRINGID} parktérképe túl sokba kerül számomra” -STR_1555 :{SMALLFONT}„{STRINGID} élményfotója túl sokba kerül számomra” -STR_1556 :{SMALLFONT}„{STRINGID} esernyője túl sokba kerül számomra” -STR_1557 :{SMALLFONT}„{STRINGID} üdítője túl sokba kerül számomra” -STR_1558 :{SMALLFONT}„{STRINGID} hamburgere túl sokba kerül számomra” -STR_1559 :{SMALLFONT}„{STRINGID} sült krumplija túl sokba kerül számomra” -STR_1560 :{SMALLFONT}„{STRINGID} jégkréme túl sokba kerül számomra” -STR_1561 :{SMALLFONT}„{STRINGID} vattacukra túl sokba kerül számomra” +STR_1550 :„Hűha!” +STR_1551 :„Az a felettébb különös érzésem van, hogy valaki figyel” +STR_1552 :„{STRINGID} lufija túl sokba kerül számomra” +STR_1553 :„{STRINGID} plüssállata túl sokba kerül számomra” +STR_1554 :„{STRINGID} parktérképe túl sokba kerül számomra” +STR_1555 :„{STRINGID} élményfotója túl sokba kerül számomra” +STR_1556 :„{STRINGID} esernyője túl sokba kerül számomra” +STR_1557 :„{STRINGID} üdítője túl sokba kerül számomra” +STR_1558 :„{STRINGID} hamburgere túl sokba kerül számomra” +STR_1559 :„{STRINGID} sült krumplija túl sokba kerül számomra” +STR_1560 :„{STRINGID} jégkréme túl sokba kerül számomra” +STR_1561 :„{STRINGID} vattacukra túl sokba kerül számomra” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}„{STRINGID} pizzája túl sokba kerül számomra” +STR_1565 :„{STRINGID} pizzája túl sokba kerül számomra” STR_1566 : -STR_1567 :{SMALLFONT}„{STRINGID} pattogatott kukoricája túl sokba kerül számomra” -STR_1568 :{SMALLFONT}„{STRINGID} hot dogja túl sokba kerül számomra” -STR_1569 :{SMALLFONT}„{STRINGID} csápja túl sokba kerül számomra” -STR_1570 :{SMALLFONT}„{STRINGID} sapkája túl sokba kerül számomra” -STR_1571 :{SMALLFONT}„{STRINGID} karamellás almája túl sokba kerül számomra” -STR_1572 :{SMALLFONT}„{STRINGID} pólója túl sokba kerül számomra” -STR_1573 :{SMALLFONT}„{STRINGID} fánkja túl sokba kerül számomra” -STR_1574 :{SMALLFONT}„{STRINGID} kávéja túl sokba kerül számomra” +STR_1567 :„{STRINGID} pattogatott kukoricája túl sokba kerül számomra” +STR_1568 :„{STRINGID} hot dogja túl sokba kerül számomra” +STR_1569 :„{STRINGID} csápja túl sokba kerül számomra” +STR_1570 :„{STRINGID} sapkája túl sokba kerül számomra” +STR_1571 :„{STRINGID} karamellás almája túl sokba kerül számomra” +STR_1572 :„{STRINGID} pólója túl sokba kerül számomra” +STR_1573 :„{STRINGID} fánkja túl sokba kerül számomra” +STR_1574 :„{STRINGID} kávéja túl sokba kerül számomra” STR_1575 : -STR_1576 :{SMALLFONT}„{STRINGID} sült csirkéje túl sokba kerül számomra” -STR_1577 :{SMALLFONT}„{STRINGID} limonádéja túl sokba kerül számomra” +STR_1576 :„{STRINGID} sült csirkéje túl sokba kerül számomra” +STR_1577 :„{STRINGID} limonádéja túl sokba kerül számomra” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}„{STRINGID} élményfotója igazán megéri az árát” -STR_1585 :{SMALLFONT}„{STRINGID} élményfotója igazán megéri az árát” -STR_1586 :{SMALLFONT}„{STRINGID} élményfotója igazán megéri az árát” -STR_1587 :{SMALLFONT}„{STRINGID} perece igazán megéri az árát” -STR_1588 :{SMALLFONT}„{STRINGID} forró csokija igazán megéri az árát” -STR_1589 :{SMALLFONT}„{STRINGID} jeges teája igazán megéri az árát” -STR_1590 :{SMALLFONT}„{STRINGID} tölcsérfánkja igazán megéri az árát” -STR_1591 :{SMALLFONT}„{STRINGID} napszemüvege igazán megéri az árát” -STR_1592 :{SMALLFONT}„{STRINGID} marhahúsos tésztája igazán megéri az árát” -STR_1593 :{SMALLFONT}„{STRINGID} pirított rizstésztája igazán megéri az árát” -STR_1594 :{SMALLFONT}„{STRINGID} wonton levese igazán megéri az árát” -STR_1595 :{SMALLFONT}„{STRINGID} húsgombóclevese igazán megéri az árát” -STR_1596 :{SMALLFONT}„{STRINGID} gyümölcsleve igazán megéri az árát” -STR_1597 :{SMALLFONT}„{STRINGID} szójateje igazán megéri az árát” -STR_1598 :{SMALLFONT}„{STRINGID} szudzsonggvája igazán megéri az árát” -STR_1599 :{SMALLFONT}„{STRINGID} szendvicse igazán megéri az árát” -STR_1600 :{SMALLFONT}„{STRINGID} sütije igazán megéri az árát” +STR_1584 :„{STRINGID} élményfotója igazán megéri az árát” +STR_1585 :„{STRINGID} élményfotója igazán megéri az árát” +STR_1586 :„{STRINGID} élményfotója igazán megéri az árát” +STR_1587 :„{STRINGID} perece igazán megéri az árát” +STR_1588 :„{STRINGID} forró csokija igazán megéri az árát” +STR_1589 :„{STRINGID} jeges teája igazán megéri az árát” +STR_1590 :„{STRINGID} tölcsérfánkja igazán megéri az árát” +STR_1591 :„{STRINGID} napszemüvege igazán megéri az árát” +STR_1592 :„{STRINGID} marhahúsos tésztája igazán megéri az árát” +STR_1593 :„{STRINGID} pirított rizstésztája igazán megéri az árát” +STR_1594 :„{STRINGID} wonton levese igazán megéri az árát” +STR_1595 :„{STRINGID} húsgombóclevese igazán megéri az árát” +STR_1596 :„{STRINGID} gyümölcsleve igazán megéri az árát” +STR_1597 :„{STRINGID} szójateje igazán megéri az árát” +STR_1598 :„{STRINGID} szudzsonggvája igazán megéri az árát” +STR_1599 :„{STRINGID} szendvicse igazán megéri az árát” +STR_1600 :„{STRINGID} sütije igazán megéri az árát” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}{OPENQUOTES{STRINGID} sült kolbásza igazán megéri az árát” +STR_1604 :{OPENQUOTES{STRINGID} sült kolbásza igazán megéri az árát” STR_1605 : STR_1606 : STR_1607 : @@ -994,27 +994,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}„{STRINGID} élményfotója túl sokba kerül számomra” -STR_1617 :{SMALLFONT}„{STRINGID} élményfotója túl sokba kerül számomra” -STR_1618 :{SMALLFONT}„{STRINGID} élményfotója túl sokba kerül számomra” -STR_1619 :{SMALLFONT}„{STRINGID} perece túl sokba kerül számomra” -STR_1620 :{SMALLFONT}„{STRINGID} forró csokija túl sokba kerül számomra” -STR_1621 :{SMALLFONT}„{STRINGID} jeges teája túl sokba kerül számomra” -STR_1622 :{SMALLFONT}„{STRINGID} tölcsérfánkja túl sokba kerül számomra” -STR_1623 :{SMALLFONT}„{STRINGID} napszemüvege túl sokba kerül számomra” -STR_1624 :{SMALLFONT}„{STRINGID} marhahúsos tésztája túl sokba kerül számomra” -STR_1625 :{SMALLFONT}„{STRINGID} pirított rizstésztája túl sokba kerül számomra” -STR_1626 :{SMALLFONT}„{STRINGID} wonton levese túl sokba kerül számomra” -STR_1627 :{SMALLFONT}„{STRINGID} húsgombóclevese túl sokba kerül számomra” -STR_1628 :{SMALLFONT}„{STRINGID} gyümölcsleve túl sokba kerül számomra” -STR_1629 :{SMALLFONT}„{STRINGID} szójateje túl sokba kerül számomra” -STR_1630 :{SMALLFONT}„{STRINGID} szudzsonggvája túl sokba kerül számomra” -STR_1631 :{SMALLFONT}„{STRINGID} szendvicse túl sokba kerül számomra” -STR_1632 :{SMALLFONT}„{STRINGID} sütije túl sokba kerül számomra” +STR_1616 :„{STRINGID} élményfotója túl sokba kerül számomra” +STR_1617 :„{STRINGID} élményfotója túl sokba kerül számomra” +STR_1618 :„{STRINGID} élményfotója túl sokba kerül számomra” +STR_1619 :„{STRINGID} perece túl sokba kerül számomra” +STR_1620 :„{STRINGID} forró csokija túl sokba kerül számomra” +STR_1621 :„{STRINGID} jeges teája túl sokba kerül számomra” +STR_1622 :„{STRINGID} tölcsérfánkja túl sokba kerül számomra” +STR_1623 :„{STRINGID} napszemüvege túl sokba kerül számomra” +STR_1624 :„{STRINGID} marhahúsos tésztája túl sokba kerül számomra” +STR_1625 :„{STRINGID} pirított rizstésztája túl sokba kerül számomra” +STR_1626 :„{STRINGID} wonton levese túl sokba kerül számomra” +STR_1627 :„{STRINGID} húsgombóclevese túl sokba kerül számomra” +STR_1628 :„{STRINGID} gyümölcsleve túl sokba kerül számomra” +STR_1629 :„{STRINGID} szójateje túl sokba kerül számomra” +STR_1630 :„{STRINGID} szudzsonggvája túl sokba kerül számomra” +STR_1631 :„{STRINGID} szendvicse túl sokba kerül számomra” +STR_1632 :„{STRINGID} sütije túl sokba kerül számomra” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}„{STRINGID} sült kolbásza túl sokba kerül számomra” +STR_1636 :„{STRINGID} sült kolbásza túl sokba kerül számomra” STR_1637 : STR_1638 : STR_1639 : @@ -1026,10 +1026,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}„Segítség! Tegyél le!” -STR_1649 :{SMALLFONT}„Mindjárt elfogy a pénzem!” -STR_1650 :{SMALLFONT}„Hű! Egy új játék épül!” -STR_1653 :{SMALLFONT}„…és itt vagyunk ezen: {STRINGID}!” +STR_1648 :„Segítség! Tegyél le!” +STR_1649 :„Mindjárt elfogy a pénzem!” +STR_1650 :„Hű! Egy új játék épül!” +STR_1653 :„…és itt vagyunk ezen: {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Legutóbbi gondolatok: STR_1655 :Út építése a földön STR_1656 :Út építése hídon vagy alagútban @@ -1059,12 +1059,12 @@ STR_1679 :Spirálpálya felfelé (balra) STR_1680 :Spirálpálya felfelé (jobbra) STR_1681 :Spirálpálya lefelé (balra) STR_1682 :Spirálpálya lefelé (jobbra) -STR_1683 :Alapméret 2 x 2 -STR_1684 :Alapméret 4 x 4 -STR_1685 :Alapméret 2 x 4 -STR_1686 :Alapméret 5 x 1 +STR_1683 :Alapméret 2 × 2 +STR_1684 :Alapméret 4 × 4 +STR_1685 :Alapméret 2 × 4 +STR_1686 :Alapméret 5 × 1 STR_1687 :Vízcsobbanás -STR_1688 :Alapméret 4 x 1 +STR_1688 :Alapméret 4 × 1 STR_1689 :Blokkolófékek STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Ár: {BLACK}{CURRENCY} @@ -1181,7 +1181,7 @@ STR_1808 :{WINDOW_COLOUR_2}Előző meghibásodás: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Jelenlegi meghibásodás: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Nála lévő dolgok: STR_1811 :Nem építheted ide… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Egyéb objektumok STR_1814 :Tevékenységek STR_1815 :Gondolatok @@ -1190,7 +1190,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Minden vendég STR_1819 :{WINDOW_COLOUR_2}Minden vendég (összegezve) STR_1820 :{WINDOW_COLOUR_2}{STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Akik ezt gondolják: {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Akik ezt gondolják: {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Akik erre gondolnak: {POP16}{STRINGID} STR_1823 :A vendégek gondolatai erről a játékról/épületről STR_1824 :A játékon/épületben lévő vendégek @@ -1291,7 +1291,6 @@ STR_1921 :Új játék indítása STR_1922 :Mentett játék folytatása STR_1924 :Kilépés STR_1925 :Nem helyezhető ide ember… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} meghibásodott STR_1928 :{RED}{STRINGID} ütközött! STR_1929 :{RED}{STRINGID} még mindig nincs megjavítva{NEWLINE}Nézd meg hol vannak a gépészeid és próbáld meg jobban szervezni őket @@ -1572,7 +1571,7 @@ STR_2218 :{RED}{STRINGID} itt van: {STRINGID} és még nem érkezett vissza i STR_2219 :{RED}{STRINGID} balesete közben {COMMA16} ember meghalt STR_2220 :{WINDOW_COLOUR_2}Park értékelése: {BLACK}{COMMA16} STR_2221 :Park értékelése: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Vendégek a parkban: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Pénz: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Pénz: {RED}{CURRENCY2DP} @@ -1585,7 +1584,7 @@ STR_2231 :Rögzítőfék eséshez STR_2232 :Kábeles felvonószakasz STR_2233 :Park információk STR_2234 :Legutóbbi üzenetek -STR_2235 :{SMALLFONT}{POP16}{STRINGID} {PUSH16}{PUSH16}{STRINGID} +STR_2235 :{POP16}{STRINGID} {PUSH16}{PUSH16}{STRINGID} STR_2236 :január STR_2237 :február STR_2238 :március @@ -1787,7 +1786,7 @@ STR_2448 :{YELLOW}Az félárú parkbelépés marketingkampánya befejeződöt STR_2449 :{YELLOW}Az ingyen {STRINGID} marketingkampánya befejeződött STR_2450 :{YELLOW}A park reklámkampánya befejeződött STR_2451 :{YELLOW}{STRINGID} reklámkampánya befejeződött -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2452 :{WINDOW_COLOUR_2}Pénz (kölcsön nélkül): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Pénz (kölcsön nélkül): {RED}{CURRENCY2DP} STR_2457 :A pénzügyi számlák adatai @@ -1899,7 +1898,6 @@ STR_2636 :Num. bill. / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Minden kutatás kész -STR_2681 :{MEDIUMFONT}{BLACK}Ennyivel növeli a pénzed: {CURRENCY} STR_2684 :Egy nagy csoport vendég érkezik STR_2685 :Szimplex zajparaméterek STR_2686 :Alacsony: @@ -1986,7 +1984,7 @@ STR_2789 :{WINDOW_COLOUR_2}Nem sikerült teljesítened a kitűzött célt ! STR_2790 :Írd be a neved az eredménytáblába STR_2791 :Írd be a neved STR_2792 :Kérlek írd be a neved az eredménytáblába: -STR_2793 :{SMALLFONT}(Teljesítette: {STRINGID}) +STR_2793 :(Teljesítette: {STRINGID}) STR_2794 :{BLACK}{STRINGID} {WINDOW_COLOUR_2}teljesítette{NEWLINE}{WINDOW_COLOUR_2}egy {BLACK}{CURRENCY} {WINDOW_COLOUR_2}értékű vállalattal STR_2795 :Rendezés STR_2796 :A játékok listájának rendezése a megjelenített információtípus szerint @@ -2486,7 +2484,7 @@ STR_5134 :Vásárlás nagyobb területen STR_5135 :Földterületek és építési jogok vásárlása STR_5136 :Földjogok STR_5137 :Működési limitek feloldása -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Fékhibák kikapcsolása STR_5141 :Meghibásodások kikapcsolása @@ -2631,7 +2629,7 @@ STR_5297 :A park megnyitása STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Az alkalmazottak gyors kirúgása -STR_5301 :{MEDIUMFONT}{BLACK}A kölcsönöd törlése +STR_5301 :A kölcsönöd törlése STR_5302 :Kölcsön törlése STR_5303 :Szünet alatti építkezés engedélyezése STR_5304 :Főcím: @@ -2788,7 +2786,7 @@ STR_5481 :Témák STR_5482 :{WINDOW_COLOUR_2}Legutóbbi ellenőrzés óta eltelt idő: {BLACK}1 perc STR_5483 :{BLACK}({COMMA16} hét van vissza) STR_5484 :{BLACK}({COMMA16} hét van vissza) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :A legutóbbi üzenetek megjelenítése STR_5489 :Csak a követett vendégek megjelenítése @@ -3276,7 +3274,7 @@ STR_6030 :Díszletválasztó. Kattints bármelyik díszletre a térképen, ho STR_6031 :Szerver leírása: STR_6032 :Szerver üdvözlés: STR_6033 :Az RCT1 telepítési útvonala: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Kérlek válaszd ki az RCT1 mappádat STR_6036 :Törlés STR_6037 :A kiválasztott könyvtár nem tartalmaz érvényes RollerCoaster Tycoon 1 telepítést. @@ -3416,7 +3414,7 @@ STR_6183 :Követés{MOVE_X}{87}Nincs sprite kiválasztva STR_6184 :Követés STR_6185 :Sprite kiválasztása STR_6186 :Nincs sprite kiválasztva -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Hányás STR_6189 :Kacsa STR_6190 :Nem választhatsz ki sprite-ot, amíg a főcímképernyő aktív. @@ -3566,7 +3564,7 @@ STR_6356 :Kacsákat rak le, ha van víz a parkban STR_6357 :Eltávolít minden kacsát a térképről STR_6358 :{UINT16}. oldal STR_6359 :{POP16}{POP16}{UINT16}. oldal -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Fényhatások a játékokon (kísérleti) STR_6362 :Ha be van kapcsolva, a pályával rendlekező játékokon a járművek éjjel ki lesznek világítva. STR_6363 :A szöveg a vágólapra másolva diff --git a/data/language/it-IT.txt b/data/language/it-IT.txt index 0e3e2c67c9..692635e7c2 100644 --- a/data/language/it-IT.txt +++ b/data/language/it-IT.txt @@ -95,6 +95,7 @@ STR_0090 :Corsa nella miniera STR_0091 :Attrazione sconosciuta (59) STR_0092 :Ottovolante a lancio MIL STR_0093 :Ottovolante ibrido +STR_0094 :Ottovolante a binario singolo STR_0512 :Un ottovolante compatto con una salita a spirale e cadute fluide e tortuose. STR_0513 :Un ottovolante con giro della morte dove i passeggeri si trovano in una posizione eretta STR_0514 :I treni, sospesi sotto l'ottovolante, durante le curve oscillano lateralmente @@ -175,6 +176,7 @@ STR_0599 :Un ottovolante compatto con carrozze individuali e rapide curve in STR_0600 :I treni della miniera motorizzati scorrono lungo un percorso fluido e pieno di curve STR_0602 :I treni dell'ottovolante sono spinti fuori dalla stazione tramite motori a induzione lineare per correre lungo avvitamenti e inversioni STR_0603 :Un ottovolante in legno con i binari in acciaio, in grado di avere ripide discese e inversioni. +STR_0604 :I visitatori viaggiano lungo un sottile tracciato da monorotaia, attraverso strette inversioni e cambi di direzione. STR_0767 :Visitatore {INT32} STR_0768 :Tuttofare {INT32} STR_0769 :Meccanico {INT32} @@ -798,14 +800,14 @@ STR_1410 :Torre verticale STR_1411 :{STRINGID} è d'intralcio STR_1412 :{WINDOW_COLOUR_3}La registrazione dei dati non è disponibile per questo tipo di attrazione STR_1413 :{WINDOW_COLOUR_3}La registrazione dati inizierà quando il prossimo {STRINGID} partirà da {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Velocità STR_1416 :{WINDOW_COLOUR_2}Altitud. STR_1417 :{WINDOW_COLOUR_2}G vertic. STR_1418 :{WINDOW_COLOUR_2}G lat. -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}G +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}G STR_1422 :Registraz. dati {POP16}{STRINGID} STR_1423 :Percorso della corsia d'attesa STR_1424 :Sentiero @@ -864,131 +866,131 @@ STR_1476 :{WINDOW_COLOUR_2}Livello d'intensità: {BLACK}Non disponibile STR_1477 :{WINDOW_COLOUR_2}Livello d'intensità: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Livello di nausea: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Livello di nausea: {BLACK}Non disponibile -STR_1480 :{SMALLFONT}“Non posso permettermi {STRINGID}” -STR_1481 :{SMALLFONT}“Ho speso tutti i miei soldi” -STR_1482 :{SMALLFONT}“Mi sento male” -STR_1483 :{SMALLFONT}“Mi sento molto male” -STR_1484 :{SMALLFONT}“Voglio provare qualcosa di più eccitante {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID}sembra troppo intenso per me” -STR_1486 :{SMALLFONT}“Non ho ancora finito {STRINGID}” -STR_1487 :{SMALLFONT}“Solo guardando {STRINGID} mi sento male” -STR_1488 :{SMALLFONT}“Non pagherò così tanto per andare su {STRINGID}” -STR_1489 :{SMALLFONT}“Voglio tornare a casa” -STR_1490 :{SMALLFONT}“{STRINGID} è a buon mercato” -STR_1491 :{SMALLFONT}“Ho già: {STRINGID}” -STR_1492 :{SMALLFONT}“Non posso permettermi: {STRINGID}” -STR_1493 :{SMALLFONT}“Non ho fame” -STR_1494 :{SMALLFONT}“Non ho sete” -STR_1495 :{SMALLFONT}“Aiuto!!! Sto annegando!” -STR_1496 :{SMALLFONT}“Mi sono perso!” -STR_1497 :{SMALLFONT}“{STRINGID} è stato divertentissimo” -STR_1498 :{SMALLFONT}“Sono in fila per {STRINGID} da secoli” -STR_1499 :{SMALLFONT}“Sono stanco” -STR_1500 :{SMALLFONT}“Ho fame” -STR_1501 :{SMALLFONT}“Ho sete” -STR_1502 :{SMALLFONT}“Devo andare in bagno” -STR_1503 :{SMALLFONT}“Non riesco a trovare: {STRINGID}” -STR_1504 :{SMALLFONT}“Non pagherò così tanto per usare: {STRINGID}” -STR_1505 :{SMALLFONT}“Non andrò su {STRINGID} durante un temporale” -STR_1506 :{SMALLFONT}“C'è troppa spazzatura in giro” -STR_1507 :{SMALLFONT}“Non riesco a trovare l'uscita del parco” -STR_1508 :{SMALLFONT}“Voglio scendere da {STRINGID}” -STR_1509 :{SMALLFONT}“Voglio uscire da {STRINGID}” -STR_1510 :{SMALLFONT}“Non andrò su {STRINGID} - Non è sicuro” -STR_1511 :{SMALLFONT}“Questo percorso è disgustoso” -STR_1512 :{SMALLFONT}“È troppo affollato qui” -STR_1513 :{SMALLFONT}“Ci sono troppi atti vandalici” -STR_1514 :{SMALLFONT}“Bello scenario!” -STR_1515 :{SMALLFONT}“Questo parco è davvero pulito e ordinato” -STR_1516 :{SMALLFONT}“Le fontane zampillanti sono fantastiche” -STR_1517 :{SMALLFONT}“La musica qui è gradevole” -STR_1518 :{SMALLFONT}“Questo palloncino comprato da {STRINGID} costa davvero poco” -STR_1519 :{SMALLFONT}“Questo peluche comprato da {STRINGID} costa davvero poco” -STR_1520 :{SMALLFONT}“Questa mappa del parco comprata da {STRINGID} costa davvero poco” -STR_1521 :{SMALLFONT}“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” -STR_1522 :{SMALLFONT}“Quest'ombrello comprato da {STRINGID} costa davvero poco” -STR_1523 :{SMALLFONT}“Questa bevanda comprata da {STRINGID} costa davvero poco” -STR_1524 :{SMALLFONT}“Questo panino comprato da {STRINGID} costa davvero poco” -STR_1525 :{SMALLFONT}“Queste patatine comprate da {STRINGID} costano davvero poco” -STR_1526 :{SMALLFONT}“Questo gelato comprato da {STRINGID} costa davvero poco” -STR_1527 :{SMALLFONT}“Questo zucchero filato comprato da {STRINGID} costa davvero poco” +STR_1480 :“Non posso permettermi {STRINGID}” +STR_1481 :“Ho speso tutti i miei soldi” +STR_1482 :“Mi sento male” +STR_1483 :“Mi sento molto male” +STR_1484 :“Voglio provare qualcosa di più eccitante {STRINGID}” +STR_1485 :“{STRINGID}sembra troppo intenso per me” +STR_1486 :“Non ho ancora finito {STRINGID}” +STR_1487 :“Solo guardando {STRINGID} mi sento male” +STR_1488 :“Non pagherò così tanto per andare su {STRINGID}” +STR_1489 :“Voglio tornare a casa” +STR_1490 :“{STRINGID} è a buon mercato” +STR_1491 :“Ho già: {STRINGID}” +STR_1492 :“Non posso permettermi: {STRINGID}” +STR_1493 :“Non ho fame” +STR_1494 :“Non ho sete” +STR_1495 :“Aiuto!!! Sto annegando!” +STR_1496 :“Mi sono perso!” +STR_1497 :“{STRINGID} è stato divertentissimo” +STR_1498 :“Sono in fila per {STRINGID} da secoli” +STR_1499 :“Sono stanco” +STR_1500 :“Ho fame” +STR_1501 :“Ho sete” +STR_1502 :“Devo andare in bagno” +STR_1503 :“Non riesco a trovare: {STRINGID}” +STR_1504 :“Non pagherò così tanto per usare: {STRINGID}” +STR_1505 :“Non andrò su {STRINGID} durante un temporale” +STR_1506 :“C'è troppa spazzatura in giro” +STR_1507 :“Non riesco a trovare l'uscita del parco” +STR_1508 :“Voglio scendere da {STRINGID}” +STR_1509 :“Voglio uscire da {STRINGID}” +STR_1510 :“Non andrò su {STRINGID} - Non è sicuro” +STR_1511 :“Questo percorso è disgustoso” +STR_1512 :“È troppo affollato qui” +STR_1513 :“Ci sono troppi vandalismi” +STR_1514 :“Bello scenario!” +STR_1515 :“Questo parco è davvero pulito e ordinato” +STR_1516 :“Le fontane zampillanti sono fantastiche” +STR_1517 :“La musica qui è gradevole” +STR_1518 :“Questo palloncino comprato da {STRINGID} costa davvero poco” +STR_1519 :“Questo peluche comprato da {STRINGID} costa davvero poco” +STR_1520 :“Questa mappa del parco comprata da {STRINGID} costa davvero poco” +STR_1521 :“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” +STR_1522 :“Quest'ombrello comprato da {STRINGID} costa davvero poco” +STR_1523 :“Questa bevanda comprata da {STRINGID} costa davvero poco” +STR_1524 :“Questo panino comprato da {STRINGID} costa davvero poco” +STR_1525 :“Queste patatine comprate da {STRINGID} costano davvero poco” +STR_1526 :“Questo gelato comprato da {STRINGID} costa davvero poco” +STR_1527 :“Questo zucchero filato comprato da {STRINGID} costa davvero poco” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Questa pizza comprata da {STRINGID} costa davvero poco” +STR_1531 :“Questa pizza comprata da {STRINGID} costa davvero poco” STR_1532 : -STR_1533 :{SMALLFONT}“Questi pop-corn comprati da {STRINGID} costano davvero poco” -STR_1534 :{SMALLFONT}“Questo hot dog comprato da {STRINGID} costa davvero poco” -STR_1535 :{SMALLFONT}“Questo tentacolo comprato da {STRINGID} costa davvero poco” -STR_1536 :{SMALLFONT}“Questo cappellino comprato da {STRINGID} costa davvero poco” -STR_1537 :{SMALLFONT}“Questa mela caramellata comprata da {STRINGID} costa davvero poco” -STR_1538 :{SMALLFONT}“Questa maglietta comprata da {STRINGID} costa davvero poco” -STR_1539 :{SMALLFONT}“Questa ciambella comprata da {STRINGID} costa davvero poco” -STR_1540 :{SMALLFONT}“Questo caffè comprato da {STRINGID} costa davvero poco” +STR_1533 :“Questi pop-corn comprati da {STRINGID} costano davvero poco” +STR_1534 :“Questo hot dog comprato da {STRINGID} costa davvero poco” +STR_1535 :“Questo tentacolo comprato da {STRINGID} costa davvero poco” +STR_1536 :“Questo cappellino comprato da {STRINGID} costa davvero poco” +STR_1537 :“Questa mela caramellata comprata da {STRINGID} costa davvero poco” +STR_1538 :“Questa maglietta comprata da {STRINGID} costa davvero poco” +STR_1539 :“Questa ciambella comprata da {STRINGID} costa davvero poco” +STR_1540 :“Questo caffè comprato da {STRINGID} costa davvero poco” STR_1541 : -STR_1542 :{SMALLFONT}“Questo pollo fritto comprato da {STRINGID} costa davvero poco” -STR_1543 :{SMALLFONT}“Questa limonata comprata da {STRINGID} costa davvero poco” +STR_1542 :“Questo pollo fritto comprato da {STRINGID} costa davvero poco” +STR_1543 :“Questa limonata comprata da {STRINGID} costa davvero poco” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Wow!” -STR_1551 :{SMALLFONT}“Ho la strana sensazione che qualcuno mi stia osservando” -STR_1552 :{SMALLFONT}“Non ho intenzione di pagare così tanto un palloncino da {STRINGID}” -STR_1553 :{SMALLFONT}“Non ho intenzione di pagare così tanto un peluche da {STRINGID}” -STR_1554 :{SMALLFONT}“Non ho intenzione di pagare così tanto una mappa del parco da {STRINGID}” -STR_1555 :{SMALLFONT}“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” -STR_1556 :{SMALLFONT}“Non ho intenzione di pagare così tanto un ombrello da {STRINGID}” -STR_1557 :{SMALLFONT}“Non ho intenzione di pagare così tanto una bevanda da {STRINGID}” -STR_1558 :{SMALLFONT}“Non ho intenzione di pagare così tanto un panino da {STRINGID}” -STR_1559 :{SMALLFONT}“Non ho intenzione di pagare così tanto delle patatine da {STRINGID}” -STR_1560 :{SMALLFONT}“Non ho intenzione di pagare così tanto un gelato da {STRINGID}” -STR_1561 :{SMALLFONT}“Non ho intenzione di pagare così tanto dello zucchero filato da {STRINGID}” +STR_1550 :“Wow!” +STR_1551 :“Ho la strana sensazione che qualcuno mi stia osservando” +STR_1552 :“Non ho intenzione di pagare così tanto un palloncino da {STRINGID}” +STR_1553 :“Non ho intenzione di pagare così tanto un peluche da {STRINGID}” +STR_1554 :“Non ho intenzione di pagare così tanto una mappa del parco da {STRINGID}” +STR_1555 :“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” +STR_1556 :“Non ho intenzione di pagare così tanto un ombrello da {STRINGID}” +STR_1557 :“Non ho intenzione di pagare così tanto una bevanda da {STRINGID}” +STR_1558 :“Non ho intenzione di pagare così tanto un panino da {STRINGID}” +STR_1559 :“Non ho intenzione di pagare così tanto delle patatine da {STRINGID}” +STR_1560 :“Non ho intenzione di pagare così tanto un gelato da {STRINGID}” +STR_1561 :“Non ho intenzione di pagare così tanto dello zucchero filato da {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Non ho intenzione di pagare così tanto per una pizza da {STRINGID}” +STR_1565 :“Non ho intenzione di pagare così tanto per una pizza da {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Non ho intenzione di pagare così tanto dei pop-corn da {STRINGID}” -STR_1568 :{SMALLFONT}“Non ho intenzione di pagare così tanto un hot dog da {STRINGID}” -STR_1569 :{SMALLFONT}“Non ho intenzione di pagare così tanto un tentacolo da {STRINGID}” -STR_1570 :{SMALLFONT}“Non ho intenzione di pagare così tanto un cappellino da {STRINGID}” -STR_1571 :{SMALLFONT}“Non ho intenzione di pagare così tanto una mela caramellata da {STRINGID}” -STR_1572 :{SMALLFONT}“Non ho intenzione di pagare così tanto una maglietta da {STRINGID}” -STR_1573 :{SMALLFONT}“Non ho intenzione di pagare così tanto una ciambella da {STRINGID}” -STR_1574 :{SMALLFONT}“Non ho intenzione di pagare così tanto un caffè da {STRINGID}” +STR_1567 :“Non ho intenzione di pagare così tanto dei pop-corn da {STRINGID}” +STR_1568 :“Non ho intenzione di pagare così tanto un hot dog da {STRINGID}” +STR_1569 :“Non ho intenzione di pagare così tanto un tentacolo da {STRINGID}” +STR_1570 :“Non ho intenzione di pagare così tanto un cappellino da {STRINGID}” +STR_1571 :“Non ho intenzione di pagare così tanto una mela caramellata da {STRINGID}” +STR_1572 :“Non ho intenzione di pagare così tanto una maglietta da {STRINGID}” +STR_1573 :“Non ho intenzione di pagare così tanto una ciambella da {STRINGID}” +STR_1574 :“Non ho intenzione di pagare così tanto un caffè da {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Non ho intenzione di pagare così tanto del pollo fritto da {STRINGID}” -STR_1577 :{SMALLFONT}“Non ho intenzione di pagare così tanto della limonata da {STRINGID}” +STR_1576 :“Non ho intenzione di pagare così tanto del pollo fritto da {STRINGID}” +STR_1577 :“Non ho intenzione di pagare così tanto della limonata da {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” -STR_1585 :{SMALLFONT}“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” -STR_1586 :{SMALLFONT}“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” -STR_1587 :{SMALLFONT}“Questo biscottino comprato da {STRINGID} costa davvero poco” -STR_1588 :{SMALLFONT}“Questa cioccolata calda comprata da {STRINGID} costa davvero poco” -STR_1589 :{SMALLFONT}“Questo tè freddo comprato da {STRINGID} costa davvero poco” -STR_1590 :{SMALLFONT}“Questa torta a ciambella comprata da {STRINGID} costa davvero poco” -STR_1591 :{SMALLFONT}“Questi occhiali da sole comprati da {STRINGID} costa davvero poco” -STR_1592 :{SMALLFONT}“Questi spaghetti al ragù comprati da {STRINGID} costa davvero poco” -STR_1593 :{SMALLFONT}“Questi spaghetti di riso fritto comprati da {STRINGID} costa davvero poco” -STR_1594 :{SMALLFONT}“Questa zuppa di wonton comprata da {STRINGID} costa davvero poco” -STR_1595 :{SMALLFONT}“Queste polpette in salsa comprate da {STRINGID} costa davvero poco” -STR_1596 :{SMALLFONT}“Questo succo di frutta comprato da {STRINGID} costa davvero poco” -STR_1597 :{SMALLFONT}“Questo latte di soia comprato da {STRINGID} costa davvero poco” -STR_1598 :{SMALLFONT}“Questo sujongkwa {STRINGID} costa davvero poco” -STR_1599 :{SMALLFONT}“Questo sandwich comprato da {STRINGID} costa davvero poco” -STR_1600 :{SMALLFONT}“Questo biscotto comprato da {STRINGID} costa davvero poco” +STR_1584 :“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” +STR_1585 :“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” +STR_1586 :“Questa foto-in-corsa comprata da {STRINGID} costa davvero poco” +STR_1587 :“Questo biscottino comprato da {STRINGID} costa davvero poco” +STR_1588 :“Questa cioccolata calda comprata da {STRINGID} costa davvero poco” +STR_1589 :“Questo tè freddo comprato da {STRINGID} costa davvero poco” +STR_1590 :“Questa torta a ciambella comprata da {STRINGID} costa davvero poco” +STR_1591 :“Questi occhiali da sole comprati da {STRINGID} costa davvero poco” +STR_1592 :“Questi spaghetti al ragù comprati da {STRINGID} costa davvero poco” +STR_1593 :“Questi spaghetti di riso fritto comprati da {STRINGID} costa davvero poco” +STR_1594 :“Questa zuppa di wonton comprata da {STRINGID} costa davvero poco” +STR_1595 :“Queste polpette in salsa comprate da {STRINGID} costa davvero poco” +STR_1596 :“Questo succo di frutta comprato da {STRINGID} costa davvero poco” +STR_1597 :“Questo latte di soia comprato da {STRINGID} costa davvero poco” +STR_1598 :“Questo sujongkwa {STRINGID} costa davvero poco” +STR_1599 :“Questo sandwich comprato da {STRINGID} costa davvero poco” +STR_1600 :“Questo biscotto comprato da {STRINGID} costa davvero poco” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Queste salsicce comprate da {STRINGID} costano davvero poco” +STR_1604 :“Queste salsicce comprate da {STRINGID} costano davvero poco” STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1002,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” -STR_1617 :{SMALLFONT}“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” -STR_1618 :{SMALLFONT}“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” -STR_1619 :{SMALLFONT}“Non ho intenzione di pagare così tanto un biscottino da {STRINGID}” -STR_1620 :{SMALLFONT}“Non ho intenzione di pagare così tanto una cioccolata calda da {STRINGID}” -STR_1621 :{SMALLFONT}“Non ho intenzione di pagare così tanto del tè freddo da {STRINGID}” -STR_1622 :{SMALLFONT}“Non ho intenzione di pagare così tanto una torta a ciambella da {STRINGID}” -STR_1623 :{SMALLFONT}“Non ho intenzione di pagare così tanto un paio di occhiali da sole da {STRINGID}” -STR_1624 :{SMALLFONT}“Non ho intenzione di pagare così tanto degli spaghetti al ragù da {STRINGID}” -STR_1625 :{SMALLFONT}“Non ho intenzione di pagare così tanto degli spaghetti di riso fritto da {STRINGID}” -STR_1626 :{SMALLFONT}“Non ho intenzione di pagare così tanto della zuppa di wonton da {STRINGID}” -STR_1627 :{SMALLFONT}“Non ho intenzione di pagare così tanto delle polpette in salsa da {STRINGID}” -STR_1628 :{SMALLFONT}“Non ho intenzione di pagare così tanto un succo di frutta da {STRINGID}” -STR_1629 :{SMALLFONT}“Non ho intenzione di pagare così tanto del latte di soia da {STRINGID}” -STR_1630 :{SMALLFONT}“Non ho intenzione di pagare così tanto un sujongkwa da {STRINGID}” -STR_1631 :{SMALLFONT}“Non ho intenzione di pagare così tanto un sandwich da {STRINGID}” -STR_1632 :{SMALLFONT}“Non ho intenzione di pagare così tanto un biscotto da {STRINGID}” +STR_1616 :“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” +STR_1617 :“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” +STR_1618 :“Non ho intenzione di pagare così tanto una foto-in-corsa da {STRINGID}” +STR_1619 :“Non ho intenzione di pagare così tanto un biscottino da {STRINGID}” +STR_1620 :“Non ho intenzione di pagare così tanto una cioccolata calda da {STRINGID}” +STR_1621 :“Non ho intenzione di pagare così tanto del tè freddo da {STRINGID}” +STR_1622 :“Non ho intenzione di pagare così tanto una torta a ciambella da {STRINGID}” +STR_1623 :“Non ho intenzione di pagare così tanto un paio di occhiali da sole da {STRINGID}” +STR_1624 :“Non ho intenzione di pagare così tanto degli spaghetti al ragù da {STRINGID}” +STR_1625 :“Non ho intenzione di pagare così tanto degli spaghetti di riso fritto da {STRINGID}” +STR_1626 :“Non ho intenzione di pagare così tanto della zuppa di wonton da {STRINGID}” +STR_1627 :“Non ho intenzione di pagare così tanto delle polpette in salsa da {STRINGID}” +STR_1628 :“Non ho intenzione di pagare così tanto un succo di frutta da {STRINGID}” +STR_1629 :“Non ho intenzione di pagare così tanto del latte di soia da {STRINGID}” +STR_1630 :“Non ho intenzione di pagare così tanto un sujongkwa da {STRINGID}” +STR_1631 :“Non ho intenzione di pagare così tanto un sandwich da {STRINGID}” +STR_1632 :“Non ho intenzione di pagare così tanto un biscotto da {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Non ho intenzione di pagare così tanto delle salsicce da {STRINGID}” +STR_1636 :“Non ho intenzione di pagare così tanto delle salsicce da {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1032,10 +1034,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Aiuto! Voglio scendere!” -STR_1649 :{SMALLFONT}“Sto finendo i soldi!” -STR_1650 :{SMALLFONT}“Wow! Presto ci sarà una nuova attrazione!” -STR_1653 :{SMALLFONT}“…e qui siamo su {STRINGID}!” +STR_1648 :“Aiuto! Voglio scendere!” +STR_1649 :“Sto finendo i soldi!” +STR_1650 :“Wow! Presto ci sarà una nuova attrazione!” +STR_1653 :“…e qui siamo su {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Pensieri più recenti: STR_1655 :Costruisci un sentiero sul terreno STR_1656 :Costruisci un sentiero sopraelevato o una galleria @@ -1187,7 +1189,7 @@ STR_1808 :{WINDOW_COLOUR_2}Ultimo guasto: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Guasto attuale: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Sta trasportando: STR_1811 :Impossibile costruirlo qui… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Oggetti vari STR_1814 :Azioni STR_1815 :Pensieri @@ -1196,7 +1198,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tutti i visitatori STR_1819 :{WINDOW_COLOUR_2}Tutti i visitatori (riassunto) STR_1820 :{WINDOW_COLOUR_2}Visitatori {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Pensiero dei visitatori {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Pensiero dei visitatori {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Pensiero dei visitatori su {POP16}{STRINGID} STR_1823 :Mostra i pensieri dei visitatori relativi a quest'attrazione STR_1824 :Mostra i visitatori a bordo di quest'attrazione @@ -1299,7 +1301,6 @@ STR_1921 :Inizia una nuova partita STR_1922 :Continua a giocare alla partita salvata STR_1924 :Esci STR_1925 :Impossibile collocare una persona qui… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} si è guastato/a STR_1928 :{RED}{STRINGID} ha avuto un incidente! STR_1929 :{RED}{STRINGID} ancora non è stato riparato{NEWLINE}Guarda dove si trovano i tuoi meccanici e prendi in considerazione l'idea di organizzarli meglio @@ -1580,7 +1581,7 @@ STR_2218 :{RED}{STRINGID} sull'attrazione {STRINGID} non ha ancora fatto rito STR_2219 :{RED}{COMMA16} persone sono rimaste uccise in un incidente su {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Valutazione del parco: {BLACK}{COMMA16} STR_2221 :Valutazione del parco: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Visitatori nel parco: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Denaro: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Denaro: {RED}{CURRENCY2DP} @@ -1593,7 +1594,7 @@ STR_2231 :Frenare in discesa STR_2232 :Sal. traino con cavo STR_2233 :Informazioni sul parco STR_2234 :Messaggi recenti -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Gennaio STR_2237 :Febbraio STR_2238 :Marzo @@ -1797,7 +1798,7 @@ STR_2450 :{YELLOW}La campagna pubblicitaria per il parco è terminata STR_2451 :{YELLOW}La campagna pubblicitaria per {STRINGID} è terminata STR_2452 :{WINDOW_COLOUR_2}Denaro (sottratti i prestiti): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Denaro (sottratti i prestiti): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Mostra i conti economici STR_2458 :Mostra il grafico di cassa (sottratti i prestiti) nel tempo STR_2459 :Mostra il grafico del valore del parco nel tempo @@ -1907,7 +1908,6 @@ STR_2636 :Tastierino numerico / STR_2669 :BlocNum STR_2670 :Scorr STR_2680 :Tutte le ricerche sono completate -STR_2681 :{MEDIUMFONT}{BLACK}Incrementa il tuo denaro di {CURRENCY} STR_2684 :Arriva un largo numero di visitatori STR_2685 :Simplex Noise Parameters STR_2686 :Basso: @@ -1993,7 +1993,7 @@ STR_2789 :{WINDOW_COLOUR_2}Non hai raggiunto il tuo obiettivo! STR_2790 :Inserimento nome nella classifica scenari STR_2791 :Inserire il nome STR_2792 :Digitare il proprio nome per la classifica degli scenari: -STR_2793 :{SMALLFONT}(Completato da {STRINGID}) +STR_2793 :(Completato da {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Completato da: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} con un valore societario di: {BLACK}{CURRENCY} STR_2795 :Ordina STR_2796 :Ordina la lista delle attrazioni secondo il tipo di informazioni visualizzate @@ -2500,7 +2500,7 @@ STR_5134 :Modifica un'area più grande dei terreni del parco STR_5135 :Acquista nuovi terreni o permessi di costruzione STR_5136 :Terreni del parco STR_5137 :Sblocca limiti operativi -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Disattiva rotture dei freni STR_5141 :Disattiva tutte le rotture @@ -2650,7 +2650,7 @@ STR_5297 :Apri parco STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Licenzia velocemente il personale -STR_5301 :{MEDIUMFONT}{BLACK}Cancella il prestito +STR_5301 :Cancella il prestito STR_5302 :Azzera prestito STR_5303 :Permetti la costruzione in pausa STR_5304 :Sequenza del titolo: @@ -2809,7 +2809,7 @@ STR_5481 :Temi STR_5482 :{WINDOW_COLOUR_2}Tempo dall'ultima ispezione: {BLACK}1 minuto STR_5483 :{BLACK}({COMMA16} settimane rimaste) STR_5484 :{BLACK}({COMMA16} settimana rimasta) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Mostra i messaggi recenti STR_5489 :Mostra solo i visitatori seguiti @@ -2836,7 +2836,7 @@ STR_5511 :(UNKNOWN) STR_5512 :Salva partita con nome… STR_5513 :Salvataggio veloce STR_5514 :Disattiva vandalismi -STR_5515 :Impedisce ai visitatori del parco di compiere atti vandalici quando sono arrabbiati +STR_5515 :Impedisce ai visitatori del parco di compiere vandalismi quando sono arrabbiati STR_5516 :Nero STR_5517 :Grigio STR_5518 :Bianco @@ -3298,23 +3298,23 @@ STR_6014 :I visitatori pagheranno solo l'ingresso nelle attrazioni.{NEWLINE}L STR_6015 :Inclinato STR_6016 :Modifica cella STR_6017 :Si prega di rallentare -STR_6018 :Costruzione percorso - Curva a sinistra -STR_6019 :Costruzione percorso - Curva a destra -STR_6020 :Costruzione percorso - Usa percorso predefinito -STR_6021 :Costruzione percorso - Discesa -STR_6022 :Costruzione percorso - Salita -STR_6023 :Costruzione percorso - Attiva catena di traino -STR_6024 :Costruzione percorso - Inclina a sinistra -STR_6025 :Costruzione percorso - Inclina a destra -STR_6026 :Costruzione percorso - Pezzo precedente -STR_6027 :Costruzione percorso - Pezzo successivo -STR_6028 :Costruzione percorso - Costruisci attuale -STR_6029 :Costruzione percorso - Demolisci attuale +STR_6018 :Costruzione - Curva a sinistra +STR_6019 :Costruzione - Curva a destra +STR_6020 :Costruzione - Usa percorso predefinito +STR_6021 :Costruzione - Discesa +STR_6022 :Costruzione - Salita +STR_6023 :Costruzione - Attiva catena di traino +STR_6024 :Costruzione - Inclina a sinistra +STR_6025 :Costruzione - Inclina a destra +STR_6026 :Costruzione - Percorso precedente +STR_6027 :Costruzione - Percorso successivo +STR_6028 :Costruzione - Costruisci attuale +STR_6029 :Costruzione - Demolisci attuale STR_6030 :Contagocce scenario. Fare clic su un qualsiasi elemento dello scenario per attivare la costruzione di quel pezzo. STR_6031 :Descrizione server: STR_6032 :Messaggio di benvenuto server: STR_6033 :Cartella di RCT1: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Selezionare la cartella di installazione di RCT1 STR_6036 :Pulisci STR_6037 :Selezionare una cartella di installazione di RCT1 valida @@ -3460,7 +3460,7 @@ STR_6183 :Segui{MOVE_X}{87}Nessuno sprite selezionato STR_6184 :Segui sprite STR_6185 :Seleziona sprite STR_6186 :Nessuno sprite selezionato -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vomito STR_6189 :Anatra STR_6190 :Non è possibile selezionare uno sprite mentre la schermata del titolo è attiva. @@ -3610,7 +3610,7 @@ STR_6356 :Fa apparire anatre se il parco contiene acqua STR_6357 :Rimuove tutte le anatre dalla mappa STR_6358 :Pagina {UINT16} STR_6359 :{POP16}{POP16}Pagina {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Attiva effetti luce su attrazioni (sperimentale) STR_6362 :Se abilitato, i veicoli delle attrazioni con percorso saranno illuminati di notte. STR_6363 :Testo copiato negli appunti @@ -3648,6 +3648,62 @@ STR_6394 :Obiettivo STR_6395 :Manutenzione STR_6396 :Disattiva screensaver e risparmio energetico dello schermo STR_6397 :Se attivato, le funzionalità di screensaver e di risparmio energetico dello schermo saranno disabilitate mentre OpenRCT2 è in esecuzione. +STR_6398 :Il file contiene tipi di percorsi non supportati. Aggiornare a una nuova versione di OpenRCT2. +STR_6399 :OpenRCT2 necessita dei file originali di RollerCoaster Tycoon 2 per funzionare. Impostare la variabile “game_path” nel file config.ini al percorso nel quale è installato RollerCoaster Tycoon 2, dopodiché riavviare OpenRCT2. +STR_6400 :Si è in possesso dell'installatore offline di GOG per RollerCoaster Tycoon 2, ma non è installato +STR_6401 :RollerCoaster Tycoon 2 è già installato +STR_6402 :Installazione dati di OpenRCT2 +STR_6403 :Selezionare l'opzione più adatta +STR_6404 :Selezionare l'installatore di GOG per RollerCoaster Tycoon 2. +STR_6405 :Selezionare l'installatore di GOG +STR_6406 :Installatore di GOG per RollerCoaster Tycoon 2 +STR_6407 :Quest’operazione richiederà alcuni minuti. +STR_6408 :Installare “innoextract” per estrarre l'installatore di GOG, dopodiché riavviare OpenRCT2. +STR_6409 :Il file selezionato non è l’installatore offline di GOG per RollerCoaster Tycoon 2. Potrebbe essere stato selezionato un file sbagliato o il downloader incompleto di GOG Galaxy. +STR_6410 :Zoom avanti/indietro +STR_6411 :Mostra bottoni per zoomare avanti e indietro nella barra degli strumenti +STR_6412 :Invio BlocNum +STR_6413 :Maiusc +STR_6414 :Maiusc sx +STR_6415 :Maiusc dx +STR_6416 :Ctrl +STR_6417 :Ctrl sx +STR_6418 :Ctrl dx +STR_6419 :Alt +STR_6420 :Alt sx +STR_6421 :Alt dx +STR_6422 :Cmd +STR_6423 :Cmd sx +STR_6424 :Cmd dx +STR_6425 :Sinistra joy +STR_6426 :Destra joy +STR_6427 :Su joy +STR_6428 :Giù joy +STR_6429 :Joy {INT32} +STR_6430 :Clic sx +STR_6431 :Clic dx +STR_6432 :Mouse {INT32} +STR_6433 :Rimuovi +STR_6434 :Rimuovi tutte le associazioni per questa scorciatoia. +STR_6435 :{WINDOW_COLOUR_2}Vandalismi fermati: {BLACK}{COMMA16} +STR_6436 :Attiva/disattiva invisibilità +STR_6437 :Invisibile +STR_6438 :I +STR_6439 :Analizzatore celle: Attiva/disattiva invisibilità +STR_6440 :Acqua trasparente +STR_6441 :Occorre selezionare almeno un oggetto di superficie sentiero di tipo non coda. +STR_6442 :Occorre selezionare almeno un oggetto di superficie sentiero code. +STR_6443 :Occorre selezionare almeno un oggetto di parapetto sentieri. +STR_6444 :Superfici sentieri +STR_6445 :Parapetti sentieri +STR_6446 :{WINDOW_COLOUR_2}Nome superficie: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Nome parapetto: {BLACK}{STRINGID} +STR_6448 :Formato oggetto non supportato +STR_6449 :{WINDOW_COLOUR_2}Tracce: +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Vende: {BLACK}{STRING} +STR_6453 :Copia info versione ############# diff --git a/data/language/ja-JP.txt b/data/language/ja-JP.txt index 2ba970ef4d..c5620c9683 100644 --- a/data/language/ja-JP.txt +++ b/data/language/ja-JP.txt @@ -794,14 +794,14 @@ STR_1410 :垂直の塔 STR_1411 :{STRINGID} が邪魔になっています STR_1412 :{WINDOW_COLOUR_3}データロギングはこのライドには利用できません。 STR_1413 :{WINDOW_COLOUR_3}{STRINGID}が{STRINGID}出発時にデータロギングが始まります。 -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}速度 STR_1416 :{WINDOW_COLOUR_2}高度 STR_1417 :{WINDOW_COLOUR_2}垂直G STR_1418 :{WINDOW_COLOUR_2}側方G -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :{POP16}{STRINGID}からのデータのロギング中 STR_1423 :行列の歩道 STR_1424 :歩道 @@ -860,131 +860,131 @@ STR_1476 :{WINDOW_COLOUR_2}強烈度: {BLACK}まだ結果がない STR_1477 :{WINDOW_COLOUR_2}強烈度: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}ゲロ度: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}ゲロ度: {BLACK}まだ結果がない -STR_1480 :{SMALLFONT}「{STRINGID}には手が出ない」 -STR_1481 :{SMALLFONT}「お金をすべて使っちゃった…」 -STR_1482 :{SMALLFONT}「気分が悪い…」 -STR_1483 :{SMALLFONT}「ひどく気分が悪い!」 -STR_1484 :{SMALLFONT}「{STRINGID}よりももっとスリルのあるのに乗りたい」 -STR_1485 :{SMALLFONT}「{STRINGID}は私には激しすぎる!」 -STR_1486 :{SMALLFONT}「{STRINGID}がまだ終わってない」 -STR_1487 :{SMALLFONT}「{STRINGID}を見て気分が悪くなった」 -STR_1488 :{SMALLFONT}「{STRINGID}に乗るのにそんなに払えないよ!」 -STR_1489 :{SMALLFONT}「家に帰りたい」 -STR_1490 :{SMALLFONT}「{STRINGID}の値段は本当にお得だよ」 -STR_1491 :{SMALLFONT}「{STRINGID}の一つはもう持ってるよ」 -STR_1492 :{SMALLFONT}「 {STRINGID}には手が出ない」 -STR_1493 :{SMALLFONT}「お腹は空いてないよ」 -STR_1494 :{SMALLFONT}「喉は渇いてないよ] -STR_1495 :{SMALLFONT}「助けて!溺れている!」 -STR_1496 :{SMALLFONT}「迷っちゃった!」 -STR_1497 :{SMALLFONT}「{STRINGID}はすごかった!」 -STR_1498 :{SMALLFONT}「{STRINGID}にもう何年も並んでるよ」 -STR_1499 :{SMALLFONT}「疲れた」 -STR_1500 :{SMALLFONT}「お腹が減った」 -STR_1501 :{SMALLFONT}「喉が渇いた」 -STR_1502 :{SMALLFONT}「トイレに行きたい」 -STR_1503 :{SMALLFONT}「{STRINGID}はどこにあるの?」 -STR_1504 :{SMALLFONT}「{STRINGID}を使うのにそんなに払えないよ!」 -STR_1505 :{SMALLFONT}「雨が降ってる間は{STRINGID}には乗りたくない」 -STR_1506 :{SMALLFONT}「この場所はゴミであふれてる」 -STR_1507 :{SMALLFONT}「パークの出口はどこ?」 -STR_1508 :{SMALLFONT}「{STRINGID}を降りたい」 -STR_1509 :{SMALLFONT}「{STRINGID}から出たい」 -STR_1510 :{SMALLFONT}「{STRINGID}には乗りたくない――危ないよ!」 -STR_1511 :{SMALLFONT}「この道は胸が悪くなるな!」 -STR_1512 :{SMALLFONT}「ここはは混雑しすぎ…」 -STR_1513 :{SMALLFONT}「この道は壊れてる」 -STR_1514 :{SMALLFONT}「いい景色だな!」 -STR_1515 :{SMALLFONT}「このパークは本当に綺麗です!」 -STR_1516 :{SMALLFONT}「すごいジャンプ噴水だ!」 -STR_1517 :{SMALLFONT}「この音楽はいいな」 -STR_1518 :{SMALLFONT}「この{STRINGID}で買った風船の値段は本当にお得だよ」 -STR_1519 :{SMALLFONT}「この{STRINGID}で買った縫い包みの値段は本当にお得だよ」 -STR_1520 :{SMALLFONT}「この{STRINGID}で買った地図の値段は本当にお得だよ」 -STR_1521 :{SMALLFONT}「{STRINGID}のライドフォトの値段は本当にお得だよ」 -STR_1522 :{SMALLFONT}「この{STRINGID}で買った傘の値段は本当にお得だよ」 -STR_1523 :{SMALLFONT}「この{STRINGID}で買った飲み物の値段は本当にお得だよ」 -STR_1524 :{SMALLFONT}「この{STRINGID}で買ったハンバーガーの値段は本当にお得だよ」 -STR_1525 :{SMALLFONT}「この{STRINGID}で買ったポテトフライの値段は本当にお得だよ」 -STR_1526 :{SMALLFONT}「この{STRINGID}で買ったソフトクリームの値段は本当にお得だよ」 -STR_1527 :{SMALLFONT}「この{STRINGID}で買った綿菓子の値段は本当にお得だよ」 +STR_1480 :「{STRINGID}には手が出ない」 +STR_1481 :「お金をすべて使っちゃった…」 +STR_1482 :「気分が悪い…」 +STR_1483 :「ひどく気分が悪い!」 +STR_1484 :「{STRINGID}よりももっとスリルのあるのに乗りたい」 +STR_1485 :「{STRINGID}は私には激しすぎる!」 +STR_1486 :「{STRINGID}がまだ終わってない」 +STR_1487 :「{STRINGID}を見て気分が悪くなった」 +STR_1488 :「{STRINGID}に乗るのにそんなに払えないよ!」 +STR_1489 :「家に帰りたい」 +STR_1490 :「{STRINGID}の値段は本当にお得だよ」 +STR_1491 :「{STRINGID}の一つはもう持ってるよ」 +STR_1492 :「 {STRINGID}には手が出ない」 +STR_1493 :「お腹は空いてないよ」 +STR_1494 :「喉は渇いてないよ] +STR_1495 :「助けて!溺れている!」 +STR_1496 :「迷っちゃった!」 +STR_1497 :「{STRINGID}はすごかった!」 +STR_1498 :「{STRINGID}にもう何年も並んでるよ」 +STR_1499 :「疲れた」 +STR_1500 :「お腹が減った」 +STR_1501 :「喉が渇いた」 +STR_1502 :「トイレに行きたい」 +STR_1503 :「{STRINGID}はどこにあるの?」 +STR_1504 :「{STRINGID}を使うのにそんなに払えないよ!」 +STR_1505 :「雨が降ってる間は{STRINGID}には乗りたくない」 +STR_1506 :「この場所はゴミであふれてる」 +STR_1507 :「パークの出口はどこ?」 +STR_1508 :「{STRINGID}を降りたい」 +STR_1509 :「{STRINGID}から出たい」 +STR_1510 :「{STRINGID}には乗りたくない――危ないよ!」 +STR_1511 :「この道は胸が悪くなるな!」 +STR_1512 :「ここはは混雑しすぎ…」 +STR_1513 :「この道は壊れてる」 +STR_1514 :「いい景色だな!」 +STR_1515 :「このパークは本当に綺麗です!」 +STR_1516 :「すごいジャンプ噴水だ!」 +STR_1517 :「この音楽はいいな」 +STR_1518 :「この{STRINGID}で買った風船の値段は本当にお得だよ」 +STR_1519 :「この{STRINGID}で買った縫い包みの値段は本当にお得だよ」 +STR_1520 :「この{STRINGID}で買った地図の値段は本当にお得だよ」 +STR_1521 :「{STRINGID}のライドフォトの値段は本当にお得だよ」 +STR_1522 :「この{STRINGID}で買った傘の値段は本当にお得だよ」 +STR_1523 :「この{STRINGID}で買った飲み物の値段は本当にお得だよ」 +STR_1524 :「この{STRINGID}で買ったハンバーガーの値段は本当にお得だよ」 +STR_1525 :「この{STRINGID}で買ったポテトフライの値段は本当にお得だよ」 +STR_1526 :「この{STRINGID}で買ったソフトクリームの値段は本当にお得だよ」 +STR_1527 :「この{STRINGID}で買った綿菓子の値段は本当にお得だよ」 STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}「この{STRINGID}で買ったピザの値段は本当にお得だよ」 +STR_1531 :「この{STRINGID}で買ったピザの値段は本当にお得だよ」 STR_1532 : -STR_1533 :{SMALLFONT}「この{STRINGID}で買ったポップコーンの値段は本当にお得だよ」 -STR_1534 :{SMALLFONT}「この{STRINGID}で買ったホットドッグの値段は本当にお得だよ」 -STR_1535 :{SMALLFONT}「この{STRINGID}で買った触手の値段は本当にお得だよ」 -STR_1536 :{SMALLFONT}「この{STRINGID}で買った帽子の値段は本当にお得だよ」 -STR_1537 :{SMALLFONT}「この{STRINGID}で買ったリンゴ飴の値段は本当にお得だよ」 -STR_1538 :{SMALLFONT}「この{STRINGID}で買ったTシャツの値段は本当にお得だよ」 -STR_1539 :{SMALLFONT}「この{STRINGID}で買ったドーナツの値段は本当にお得だよ」 -STR_1540 :{SMALLFONT}「この{STRINGID}で買ったコーヒの値段は本当にお得だよ」 +STR_1533 :「この{STRINGID}で買ったポップコーンの値段は本当にお得だよ」 +STR_1534 :「この{STRINGID}で買ったホットドッグの値段は本当にお得だよ」 +STR_1535 :「この{STRINGID}で買った触手の値段は本当にお得だよ」 +STR_1536 :「この{STRINGID}で買った帽子の値段は本当にお得だよ」 +STR_1537 :「この{STRINGID}で買ったリンゴ飴の値段は本当にお得だよ」 +STR_1538 :「この{STRINGID}で買ったTシャツの値段は本当にお得だよ」 +STR_1539 :「この{STRINGID}で買ったドーナツの値段は本当にお得だよ」 +STR_1540 :「この{STRINGID}で買ったコーヒの値段は本当にお得だよ」 STR_1541 : -STR_1542 :{SMALLFONT}「この{STRINGID}で買ったフライドチキンの値段は本当にお得だよ」 -STR_1543 :{SMALLFONT}「この{STRINGID}で買ったレモネードの値段は本当にお得だよ」 +STR_1542 :「この{STRINGID}で買ったフライドチキンの値段は本当にお得だよ」 +STR_1543 :「この{STRINGID}で買ったレモネードの値段は本当にお得だよ」 STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}「すごい!」 -STR_1551 :{SMALLFONT}「不思議な気持ちがある…誰かが私を見ているというかも?」 -STR_1552 :{SMALLFONT}「{STRINGID}の風船にそんなに払えないよ!」 -STR_1553 :{SMALLFONT}「{STRINGID}の縫い包みにそんなに払えないよ!」 -STR_1554 :{SMALLFONT}「{STRINGID}の地図にそんなに払えないよ!」 -STR_1555 :{SMALLFONT}「{STRINGID}のライドフォトにそんなに払えないよ!」 -STR_1556 :{SMALLFONT}「{STRINGID}の傘にそんなに払えないよ!」 -STR_1557 :{SMALLFONT}「{STRINGID}の飲み物にそんなに払えないよ!」 -STR_1558 :{SMALLFONT}「{STRINGID}のハンバーガーにそんなに払えないよ!」 -STR_1559 :{SMALLFONT}「{STRINGID}のポテトフライにそんなに払えないよ!」 -STR_1560 :{SMALLFONT}「{STRINGID}のソフトクリームにそんなに払えないよ!」 -STR_1561 :{SMALLFONT}「{STRINGID}の綿菓子にそんなに払えないよ!」 +STR_1550 :「すごい!」 +STR_1551 :「不思議な気持ちがある…誰かが私を見ているというかも?」 +STR_1552 :「{STRINGID}の風船にそんなに払えないよ!」 +STR_1553 :「{STRINGID}の縫い包みにそんなに払えないよ!」 +STR_1554 :「{STRINGID}の地図にそんなに払えないよ!」 +STR_1555 :「{STRINGID}のライドフォトにそんなに払えないよ!」 +STR_1556 :「{STRINGID}の傘にそんなに払えないよ!」 +STR_1557 :「{STRINGID}の飲み物にそんなに払えないよ!」 +STR_1558 :「{STRINGID}のハンバーガーにそんなに払えないよ!」 +STR_1559 :「{STRINGID}のポテトフライにそんなに払えないよ!」 +STR_1560 :「{STRINGID}のソフトクリームにそんなに払えないよ!」 +STR_1561 :「{STRINGID}の綿菓子にそんなに払えないよ!」 STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}「{STRINGID}のピザにそんなに払えないよ!」 +STR_1565 :「{STRINGID}のピザにそんなに払えないよ!」 STR_1566 : -STR_1567 :{SMALLFONT}「{STRINGID}のポップコーンにそんなに払えないよ!」 -STR_1568 :{SMALLFONT}「{STRINGID}のホットドッグにそんなに払えないよ!」 -STR_1569 :{SMALLFONT}「{STRINGID}の触手にそんなに払えないよ!」 -STR_1570 :{SMALLFONT}「{STRINGID}の帽子にそんなに払えないよ!」 -STR_1571 :{SMALLFONT}「{STRINGID}のリンゴ飴にそんなに払えないよ!」 -STR_1572 :{SMALLFONT}「{STRINGID}のTシャツにそんなに払えないよ!」 -STR_1573 :{SMALLFONT}「{STRINGID}のドーナツにそんなに払えないよ!」 -STR_1574 :{SMALLFONT}「{STRINGID}のコーヒにそんなに払えないよ!」 +STR_1567 :「{STRINGID}のポップコーンにそんなに払えないよ!」 +STR_1568 :「{STRINGID}のホットドッグにそんなに払えないよ!」 +STR_1569 :「{STRINGID}の触手にそんなに払えないよ!」 +STR_1570 :「{STRINGID}の帽子にそんなに払えないよ!」 +STR_1571 :「{STRINGID}のリンゴ飴にそんなに払えないよ!」 +STR_1572 :「{STRINGID}のTシャツにそんなに払えないよ!」 +STR_1573 :「{STRINGID}のドーナツにそんなに払えないよ!」 +STR_1574 :「{STRINGID}のコーヒにそんなに払えないよ!」 STR_1575 : -STR_1576 :{SMALLFONT}「{STRINGID}のフライドチキンにそんなに払えないよ!」 -STR_1577 :{SMALLFONT}「{STRINGID}のレモネードにそんなに払えないよ!」 +STR_1576 :「{STRINGID}のフライドチキンにそんなに払えないよ!」 +STR_1577 :「{STRINGID}のレモネードにそんなに払えないよ!」 STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}「{STRINGID}のライドフォトの値段は本当にお得だよ」 -STR_1585 :{SMALLFONT}「{STRINGID}のライドフォトの値段は本当にお得だよ」 -STR_1586 :{SMALLFONT}「{STRINGID}のライドフォトの値段は本当にお得だよ」 -STR_1587 :{SMALLFONT}「{STRINGID}のプレッツェルの値段は本当にお得だよ」 -STR_1588 :{SMALLFONT}「{STRINGID}のホットココアの値段は本当にお得だよ」 -STR_1589 :{SMALLFONT}「{STRINGID}のアイスティーの値段は本当にお得だよ」 -STR_1590 :{SMALLFONT}「{STRINGID}のファンネルケーキの値段は本当にお得だよ」 -STR_1591 :{SMALLFONT}「{STRINGID}のサングラスの値段は本当にお得だよ」 -STR_1592 :{SMALLFONT}「{STRINGID}の牛肉ヌードルの値段は本当にお得だよ」 -STR_1593 :{SMALLFONT}「{STRINGID}の焼飯ヌードルの値段は本当にお得だよ」 -STR_1594 :{SMALLFONT}「{STRINGID}のワンタンスープの値段は本当にお得だよ」 -STR_1595 :{SMALLFONT}「{STRINGID}の肉団子スープの値段は本当にお得だよ」 -STR_1596 :{SMALLFONT}「{STRINGID}のフルーツジュースの値段は本当にお得だよ」 -STR_1597 :{SMALLFONT}「{STRINGID}の豆乳の値段は本当にお得だよ」 -STR_1598 :{SMALLFONT}「{STRINGID}のスジョングァの値段は本当にお得だよ」 -STR_1599 :{SMALLFONT}「{STRINGID}のサンドイッチの値段は本当にお得だよ」 -STR_1600 :{SMALLFONT}「{STRINGID}のクッキーの値段は本当にお得だよ」 +STR_1584 :「{STRINGID}のライドフォトの値段は本当にお得だよ」 +STR_1585 :「{STRINGID}のライドフォトの値段は本当にお得だよ」 +STR_1586 :「{STRINGID}のライドフォトの値段は本当にお得だよ」 +STR_1587 :「{STRINGID}のプレッツェルの値段は本当にお得だよ」 +STR_1588 :「{STRINGID}のホットココアの値段は本当にお得だよ」 +STR_1589 :「{STRINGID}のアイスティーの値段は本当にお得だよ」 +STR_1590 :「{STRINGID}のファンネルケーキの値段は本当にお得だよ」 +STR_1591 :「{STRINGID}のサングラスの値段は本当にお得だよ」 +STR_1592 :「{STRINGID}の牛肉ヌードルの値段は本当にお得だよ」 +STR_1593 :「{STRINGID}の焼飯ヌードルの値段は本当にお得だよ」 +STR_1594 :「{STRINGID}のワンタンスープの値段は本当にお得だよ」 +STR_1595 :「{STRINGID}の肉団子スープの値段は本当にお得だよ」 +STR_1596 :「{STRINGID}のフルーツジュースの値段は本当にお得だよ」 +STR_1597 :「{STRINGID}の豆乳の値段は本当にお得だよ」 +STR_1598 :「{STRINGID}のスジョングァの値段は本当にお得だよ」 +STR_1599 :「{STRINGID}のサンドイッチの値段は本当にお得だよ」 +STR_1600 :「{STRINGID}のクッキーの値段は本当にお得だよ」 STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}「{STRINGID}のローストソーセージの値段は本当にお得だよ」 +STR_1604 :「{STRINGID}のローストソーセージの値段は本当にお得だよ」 STR_1605 : STR_1606 : STR_1607 : @@ -996,27 +996,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}「{STRINGID}のライドフォトにそんなに払えないよ!」 -STR_1617 :{SMALLFONT}「{STRINGID}のライドフォトにそんなに払えないよ!」 -STR_1618 :{SMALLFONT}「{STRINGID}のライドフォトにそんなに払えないよ!」 -STR_1619 :{SMALLFONT}「{STRINGID}のプレッツェルにそんなに払えないよ!」 -STR_1620 :{SMALLFONT}「{STRINGID}のホットココアにそんなに払えないよ!」 -STR_1621 :{SMALLFONT}「{STRINGID}のアイスティーにそんなに払えないよ!」 -STR_1622 :{SMALLFONT}「{STRINGID}のファンネルケーキにそんなに払えないよ!」 -STR_1623 :{SMALLFONT}「{STRINGID}のサングラスにそんなに払えないよ!」 -STR_1624 :{SMALLFONT}「{STRINGID}の牛肉ヌードルにそんなに払えないよ!」 -STR_1625 :{SMALLFONT}「{STRINGID}の焼飯ヌードルにそんなに払えないよ!」 -STR_1626 :{SMALLFONT}「{STRINGID}のワンタンスープにそんなに払えないよ!」 -STR_1627 :{SMALLFONT}「{STRINGID}の肉団子スープにそんなに払えないよ!」 -STR_1628 :{SMALLFONT}「{STRINGID}のフルーツジュースにそんなに払えないよ!」 -STR_1629 :{SMALLFONT}「{STRINGID}の豆乳にそんなに払えないよ!」 -STR_1630 :{SMALLFONT}「{STRINGID}のスジョングァにそんなに払えないよ!」 -STR_1631 :{SMALLFONT}「{STRINGID}のサンドイッチにそんなに払えないよ!」 -STR_1632 :{SMALLFONT}「{STRINGID}のクッキーにそんなに払えないよ!」 +STR_1616 :「{STRINGID}のライドフォトにそんなに払えないよ!」 +STR_1617 :「{STRINGID}のライドフォトにそんなに払えないよ!」 +STR_1618 :「{STRINGID}のライドフォトにそんなに払えないよ!」 +STR_1619 :「{STRINGID}のプレッツェルにそんなに払えないよ!」 +STR_1620 :「{STRINGID}のホットココアにそんなに払えないよ!」 +STR_1621 :「{STRINGID}のアイスティーにそんなに払えないよ!」 +STR_1622 :「{STRINGID}のファンネルケーキにそんなに払えないよ!」 +STR_1623 :「{STRINGID}のサングラスにそんなに払えないよ!」 +STR_1624 :「{STRINGID}の牛肉ヌードルにそんなに払えないよ!」 +STR_1625 :「{STRINGID}の焼飯ヌードルにそんなに払えないよ!」 +STR_1626 :「{STRINGID}のワンタンスープにそんなに払えないよ!」 +STR_1627 :「{STRINGID}の肉団子スープにそんなに払えないよ!」 +STR_1628 :「{STRINGID}のフルーツジュースにそんなに払えないよ!」 +STR_1629 :「{STRINGID}の豆乳にそんなに払えないよ!」 +STR_1630 :「{STRINGID}のスジョングァにそんなに払えないよ!」 +STR_1631 :「{STRINGID}のサンドイッチにそんなに払えないよ!」 +STR_1632 :「{STRINGID}のクッキーにそんなに払えないよ!」 STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}「{STRINGID}のローストソーセージにそんなに払えないよ!」 +STR_1636 :「{STRINGID}のローストソーセージにそんなに払えないよ!」 STR_1637 : STR_1638 : STR_1639 : @@ -1028,10 +1028,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}「助けて!地上に降ろして!」 -STR_1649 :{SMALLFONT}「お金がなくなっちゃった!」 -STR_1650 :{SMALLFONT}「ワオ!新しい乗物ができてる!」 -STR_1653 :{SMALLFONT}「…さあ、{STRINGID}に乗ったぞ!」 +STR_1648 :「助けて!地上に降ろして!」 +STR_1649 :「お金がなくなっちゃった!」 +STR_1650 :「ワオ!新しい乗物ができてる!」 +STR_1653 :「…さあ、{STRINGID}に乗ったぞ!」 STR_1654 :{WINDOW_COLOUR_2}最近の思考: STR_1655 :土地に歩道を敷設する STR_1656 :橋やトンネル型の歩道を敷設する @@ -1183,7 +1183,7 @@ STR_1808 :{WINDOW_COLOUR_2}最後の故障: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}今の故障: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}所持品: STR_1811 :ここで建てることはできません。 -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :雑貨のオブジェックト STR_1814 :活動 STR_1815 :思考 @@ -1192,7 +1192,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}全てのゲスト STR_1819 :{WINDOW_COLOUR_2}全てのゲスト (要約) STR_1820 :{WINDOW_COLOUR_2}{STRINGID}のゲスト -STR_1821 :{WINDOW_COLOUR_2}{STRINGID}を考えるのゲスト +STR_1821 :{WINDOW_COLOUR_2}{SMALLFONT}{STRINGID}{MEDIUMFONT}を考えるのゲスト STR_1822 :{WINDOW_COLOUR_2}{POP16}{STRINGID}を考えるのゲスト STR_1823 :この乗物/施設についての来園客の感想を表示 STR_1824 :この乗物/施設の乗客を表示 @@ -1293,7 +1293,6 @@ STR_1921 :新しいゲームを始める STR_1922 :ゲームを再開する STR_1924 :終了 STR_1925 :ゲストはここに置けません… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID}は壊れています。 STR_1928 :{RED}{STRINGID}がクラッシュしました! STR_1929 :{RED}{STRINGID}はまだ修理しませんでした。{NEWLINE}整備士がどこにいるのかを確認し、それらを整理することを検討して下さい。 @@ -1574,7 +1573,7 @@ STR_2218 :{RED}{STRINGID}の{STRINGID}が{STRINGID}にまだ戻ってきて STR_2219 :{RED}{COMMA16}人の来客は{STRINGID}上の事故で死亡してしまいました。 STR_2220 :{WINDOW_COLOUR_2}パーク評価値: {BLACK}{COMMA16} STR_2221 :パーク評価値: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}パーク内の人: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}現金: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}現金: {RED}{CURRENCY2DP} @@ -1587,7 +1586,7 @@ STR_2231 :ドロップに・ホールド・ブレーキ STR_2232 :ケーブル・リフト・ヒル STR_2233 :パーク・インフォメーション STR_2234 :最近のメッセージ -STR_2235 :{SMALLFONT}{POP16}{MONTH} {PUSH16}{PUSH16}{STRINGID} +STR_2235 :{POP16}{MONTH} {PUSH16}{PUSH16}{STRINGID} STR_2236 :1月 STR_2237 :2月 STR_2238 :3月 @@ -1791,7 +1790,7 @@ STR_2450 :{YELLOW}パークの広告キャンペーンが終わりました STR_2451 :{YELLOW}{STRINGID}の広告キャンペーンが終わりました。 STR_2452 :{WINDOW_COLOUR_2}資金/借入: {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}資金/借入: {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :財務状況を表示 STR_2458 :キャッシュ (ローン除く)の推移グラフを表示 STR_2459 :遊園地評価額の推移グラフを表示 @@ -1901,7 +1900,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :All research complete -STR_2681 :{MEDIUMFONT}{BLACK}Increases your money by {CURRENCY} STR_2684 :Large group of guests arrive STR_2685 :Simplex Noise Parameters STR_2686 :Low: @@ -1988,7 +1986,7 @@ STR_2789 :{WINDOW_COLOUR_2}残念!目的に失敗しました! STR_2790 :シナリオリストに名前を入力 STR_2791 :名前の入力 STR_2792 :シナリオリストのために名前を入力して下さい。 -STR_2793 :{SMALLFONT}({STRINGID}の勝利) +STR_2793 :({STRINGID}の勝利) STR_2794 :{WINDOW_COLOUR_2}勝者の名前: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2}会社評価額: {BLACK}{CURRENCY} STR_2795 :並べ替える STR_2796 :表示されている情報の種類によって乗物リストを並び替える @@ -2495,7 +2493,7 @@ STR_5134 :パーク敷地のもっと大量の調整 STR_5135 :パーク敷地や土地利用権を購入する STR_5136 :パーク敷地 STR_5137 :Unlock operating limits -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Disable brakes failure STR_5141 :Disable all breakdowns @@ -2641,7 +2639,7 @@ STR_5297 :遊園地を開ける STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Quick fire staff -STR_5301 :{MEDIUMFONT}{BLACK}Clear your loan +STR_5301 :Clear your loan STR_5302 :借入額をクリアする STR_5303 :Allow building in pause mode STR_5304 :タイトル順序: @@ -2800,7 +2798,7 @@ STR_5481 :スタイル STR_5482 :{WINDOW_COLOUR_2}最後の点検からの経過時間: {BLACK}1分 STR_5483 :{BLACK}(残り{COMMA16}週間) STR_5484 :{BLACK}(残り{COMMA16}週間) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :最近のメッセージの表示 STR_5489 :Show only tracked guests @@ -3305,7 +3303,7 @@ STR_6030 :Scenery picker. Click any scenery on the map to select the same pie STR_6031 :サーバの説明: STR_6032 :サーバの挨拶: STR_6033 :RCT1インストールのパス: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :RCT1のダイレクトリーを選定します。 STR_6036 :クリア STR_6037 :Please select a valid RCT1 directory @@ -3450,7 +3448,7 @@ STR_6183 :フォーロー{MOVE_X}{87}スプライト選択なし STR_6184 :スプライトのフォロー STR_6185 :スプライトを選ぶ STR_6186 :スプライト選択なし -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :嘔吐物 STR_6189 :鴨 STR_6190 :タイトルスクリーンからスプライトに選択はでしかせん。 @@ -3600,7 +3598,7 @@ STR_6356 :パークに水があれば、カモを投入する STR_6357 :全部のカモを取り除く STR_6358 :{UINT16}ページ目 STR_6359 :{POP16}{POP16}{UINT16}ページ目 -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :乗り物のライトの効果を表示にする(試験的) STR_6362 :有効になっている場合、追跡された乗り物の車両は夜間にライトアップされます。 STR_6363 :テキストをクリップボードにコピーしました。 diff --git a/data/language/ko-KR.txt b/data/language/ko-KR.txt index 15e4746e35..32dd21608e 100644 --- a/data/language/ko-KR.txt +++ b/data/language/ko-KR.txt @@ -4,7 +4,7 @@ STR_0000 : STR_0001 :{STRINGID} {COMMA16} STR_0002 :스파이럴 롤러코스터 -STR_0003 :스탠드업 롤러코스터 +STR_0003 :스탠드 업 롤러코스터 STR_0004 :서스펜디드 스윙잉 코스터 STR_0005 :인버티드 롤러코스터 STR_0006 :주니어 롤러코스터 @@ -240,8 +240,8 @@ STR_0831 :화면 축소하기 STR_0832 :게임 화면을 시계방향으로 90° 회전하기 STR_0833 :게임 일시정지 STR_0834 :디스크 및 게임 설정 -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :‘OpenRCT2’에 대해서 STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, all rights reserved @@ -324,7 +324,7 @@ STR_0935 :놀이기구 출구가 있습니다 STR_0936 :공원 입구가 있습니다 STR_0937 :보기 설정 STR_0938 :지형의 높이나 경사를 조정합니다. -STR_0939 :지하/내부 시야 +STR_0939 :지하/내부 보기 STR_0940 :땅 표면 감추기 STR_0941 :절벽 감추기 STR_0942 :놀이기구 감추기 @@ -559,7 +559,7 @@ STR_1170 :{STRING} STR_1171 :{RED}닫힘 STR_1172 :{YELLOW}{STRINGID} STR_1173 :보도와 대기 줄을 만듭니다 -STR_1174 :전광판 사인이 있습니다 +STR_1174 :팻말이 있습니다 STR_1175 :경사진 보도 위에 건설할 수 없습니다 STR_1176 :보도를 여기에 건설할 수 없습니다… STR_1177 :보도를 제거할 수 없습니다… @@ -799,21 +799,21 @@ STR_1410 :버티컬 타워 STR_1411 :{STRINGID}(이)가 중간에 있습니다 STR_1412 :{WINDOW_COLOUR_3}이 종류의 놀이기구는 데이터를 기록할 수 없습니다 STR_1413 :{WINDOW_COLOUR_3}다음 {STRINGID}(이)가 {STRINGID}(을)를 출발할 때 데이터를 기록합니다 -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}속력 STR_1416 :{WINDOW_COLOUR_2}고도 STR_1417 :{WINDOW_COLOUR_2}수직 중력 STR_1418 :{WINDOW_COLOUR_2}측면 중력 -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :{POP16}{STRINGID} 기준으로 데이터 기록 중 STR_1423 :대기 줄 STR_1424 :보도 STR_1425 :보도 STR_1426 :대기 줄 STR_1427 :{WINDOW_COLOUR_2}손님: {BLACK}{COMMA32}명/시간 -STR_1428 :{WINDOW_COLOUR_2}입장료: +STR_1428 :{WINDOW_COLOUR_2}탑승료: STR_1429 :{POP16}{POP16}{POP16}{CURRENCY2DP} STR_1430 :무료 STR_1431 :걷는 중 @@ -865,131 +865,131 @@ STR_1476 :{WINDOW_COLOUR_2}격렬도: {BLACK}아직 조회할 수 없음 STR_1477 :{WINDOW_COLOUR_2}격렬도: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}멀미도: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}멀미도: {BLACK}아직 조회할 수 없음 -STR_1480 :{SMALLFONT}“{STRINGID}에 쓸 돈은 없어” -STR_1481 :{SMALLFONT}“내 돈을 전부 다 써버렸어” -STR_1482 :{SMALLFONT}“속이 메스꺼워” -STR_1483 :{SMALLFONT}“속이 정말 메스꺼워” -STR_1484 :{SMALLFONT}“{STRINGID}보다 더 스릴 있는 걸 타고 싶어” -STR_1485 :{SMALLFONT}“{STRINGID}(은)는 내가 타기엔 너무 격렬해 보여” -STR_1486 :{SMALLFONT}“아직 {STRINGID}(을)를 다 먹지 않았어” -STR_1487 :{SMALLFONT}“{STRINGID}(은)는 바라만 봐도 속이 메스꺼워” -STR_1488 :{SMALLFONT}“{STRINGID}에 돈을 쓰고 싶지 않아” -STR_1489 :{SMALLFONT}“집에 가고 싶어” -STR_1490 :{SMALLFONT}“{STRINGID}(은)는 정말 가격이 좋아” -STR_1491 :{SMALLFONT}“{STRINGID}(을)를 이미 갖고 있어” -STR_1492 :{SMALLFONT}“{STRINGID}에 쓸 돈은 없어” -STR_1493 :{SMALLFONT}“배고프지 않아” -STR_1494 :{SMALLFONT}“목마르지 않아” -STR_1495 :{SMALLFONT}“살려주세요! 물에 빠졌어요!” -STR_1496 :{SMALLFONT}“길을 잃어버렸어!” -STR_1497 :{SMALLFONT}“{STRINGID}(은)는 정말 훌륭했어” -STR_1498 :{SMALLFONT}“{STRINGID}(을)를 타려고 한참이나 기다렸어” -STR_1499 :{SMALLFONT}“피곤해” -STR_1500 :{SMALLFONT}“배고파” -STR_1501 :{SMALLFONT}“목말라” -STR_1502 :{SMALLFONT}“화장실에 가야겠어” -STR_1503 :{SMALLFONT}“{STRINGID}(을)를 못 찾겠어” -STR_1504 :{SMALLFONT}“{STRINGID}(을)를 이용하는데 돈을 쓰고 싶지 않아” -STR_1505 :{SMALLFONT}“비가 오는 동안에는 {STRINGID}에 가지 않을래” -STR_1506 :{SMALLFONT}“여기는 쓰레기가 여기 저기 널려있어” -STR_1507 :{SMALLFONT}“공원 출구를 찾을 수 없어” -STR_1508 :{SMALLFONT}“{STRINGID}에서 내리고 싶어” -STR_1509 :{SMALLFONT}“{STRINGID}에서 나가고 싶어” -STR_1510 :{SMALLFONT}“{STRINGID}(은)는 안전하지 않아서 가지 않을래” -STR_1511 :{SMALLFONT}“이 길은 역겨워” -STR_1512 :{SMALLFONT}“여긴 사람이 너무 많아” -STR_1513 :{SMALLFONT}“여기는 시설이 막 파괴되어 있어” -STR_1514 :{SMALLFONT}“풍경이 참 좋다!” -STR_1515 :{SMALLFONT}“이 공원은 정말 깨끗하고 깔끔한 것 같아” -STR_1516 :{SMALLFONT}“분수대가 참 훌륭해” -STR_1517 :{SMALLFONT}“여기 음악 좋다” -STR_1518 :{SMALLFONT}“{STRINGID}에서 산 풍선은 가격이 참 적당한 것 같아” -STR_1519 :{SMALLFONT}“{STRINGID}에서 산 캐릭터 인형은 가격이 참 적당한 것 같아” -STR_1520 :{SMALLFONT}“{STRINGID}에서 산 공원 지도는 가격이 참 적당한 것 같아” -STR_1521 :{SMALLFONT}“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” -STR_1522 :{SMALLFONT}“{STRINGID}에서 산 우산은 가격이 참 적당한 것 같아” -STR_1523 :{SMALLFONT}“{STRINGID}에서 산 음료수는 가격이 참 적당한 것 같아” -STR_1524 :{SMALLFONT}“{STRINGID}에서 산 햄버거는 가격이 참 적당한 것 같아” -STR_1525 :{SMALLFONT}“{STRINGID}에서 산 감자 칩은 가격이 참 적당한 것 같아” -STR_1526 :{SMALLFONT}“{STRINGID}에서 산 아이스크림은 가격이 참 적당한 것 같아” -STR_1527 :{SMALLFONT}“{STRINGID}에서 산 솜사탕은 가격이 참 적당한 것 같아” +STR_1480 :“{STRINGID}에 쓸 돈은 없어” +STR_1481 :“내 돈을 전부 다 써버렸어” +STR_1482 :“속이 메스꺼워” +STR_1483 :“속이 정말 메스꺼워” +STR_1484 :“{STRINGID}보다 더 스릴 있는 걸 타고 싶어” +STR_1485 :“{STRINGID}(은)는 내가 타기엔 너무 격렬해 보여” +STR_1486 :“아직 {STRINGID}(을)를 다 먹지 않았어” +STR_1487 :“{STRINGID}(은)는 바라만 봐도 속이 메스꺼워” +STR_1488 :“{STRINGID}에 돈을 쓰고 싶지 않아” +STR_1489 :“집에 가고 싶어” +STR_1490 :“{STRINGID}(은)는 정말 가격이 좋아” +STR_1491 :“{STRINGID}(을)를 이미 갖고 있어” +STR_1492 :“{STRINGID}에 쓸 돈은 없어” +STR_1493 :“배고프지 않아” +STR_1494 :“목마르지 않아” +STR_1495 :“살려주세요! 물에 빠졌어요!” +STR_1496 :“길을 잃어버렸어!” +STR_1497 :“{STRINGID}(은)는 정말 훌륭했어” +STR_1498 :“{STRINGID}(을)를 타려고 한참이나 기다렸어” +STR_1499 :“피곤해” +STR_1500 :“배고파” +STR_1501 :“목말라” +STR_1502 :“화장실에 가야겠어” +STR_1503 :“{STRINGID}(을)를 못 찾겠어” +STR_1504 :“{STRINGID}(을)를 이용하는데 돈을 쓰고 싶지 않아” +STR_1505 :“비가 오는 동안에는 {STRINGID}에 가지 않을래” +STR_1506 :“여기는 쓰레기가 여기 저기 널려있어” +STR_1507 :“공원 출구를 찾을 수 없어” +STR_1508 :“{STRINGID}에서 내리고 싶어” +STR_1509 :“{STRINGID}에서 나가고 싶어” +STR_1510 :“{STRINGID}(은)는 안전하지 않아서 가지 않을래” +STR_1511 :“이 길은 역겨워” +STR_1512 :“여긴 사람이 너무 많아” +STR_1513 :“여기는 시설이 막 파괴되어 있어” +STR_1514 :“풍경이 참 좋다!” +STR_1515 :“이 공원은 정말 깨끗하고 깔끔한 것 같아” +STR_1516 :“분수대가 참 훌륭해” +STR_1517 :“여기 음악 좋다” +STR_1518 :“{STRINGID}에서 산 풍선은 가격이 참 적당한 것 같아” +STR_1519 :“{STRINGID}에서 산 캐릭터 인형은 가격이 참 적당한 것 같아” +STR_1520 :“{STRINGID}에서 산 공원 지도는 가격이 참 적당한 것 같아” +STR_1521 :“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” +STR_1522 :“{STRINGID}에서 산 우산은 가격이 참 적당한 것 같아” +STR_1523 :“{STRINGID}에서 산 음료수는 가격이 참 적당한 것 같아” +STR_1524 :“{STRINGID}에서 산 햄버거는 가격이 참 적당한 것 같아” +STR_1525 :“{STRINGID}에서 산 감자 칩은 가격이 참 적당한 것 같아” +STR_1526 :“{STRINGID}에서 산 아이스크림은 가격이 참 적당한 것 같아” +STR_1527 :“{STRINGID}에서 산 솜사탕은 가격이 참 적당한 것 같아” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“{STRINGID}에서 산 피자는 가격이 참 적당한 것 같아” +STR_1531 :“{STRINGID}에서 산 피자는 가격이 참 적당한 것 같아” STR_1532 : -STR_1533 :{SMALLFONT}“{STRINGID}에서 산 팝콘은 가격이 참 적당한 것 같아” -STR_1534 :{SMALLFONT}“{STRINGID}에서 산 핫도그는 가격이 참 적당한 것 같아” -STR_1535 :{SMALLFONT}“{STRINGID}에서 산 문어발은 가격이 참 적당한 것 같아” -STR_1536 :{SMALLFONT}“{STRINGID}에서 산 모자는 가격이 참 적당한 것 같아” -STR_1537 :{SMALLFONT}“{STRINGID}에서 산 사과 토피 사탕은 가격이 참 적당한 것 같아” -STR_1538 :{SMALLFONT}“{STRINGID}에서 산 티셔츠는 가격이 참 적당한 것 같아” -STR_1539 :{SMALLFONT}“{STRINGID}에서 산 도넛은 가격이 참 적당한 것 같아” -STR_1540 :{SMALLFONT}“{STRINGID}에서 산 커피는 가격이 참 적당한 것 같아” +STR_1533 :“{STRINGID}에서 산 팝콘은 가격이 참 적당한 것 같아” +STR_1534 :“{STRINGID}에서 산 핫도그는 가격이 참 적당한 것 같아” +STR_1535 :“{STRINGID}에서 산 문어발은 가격이 참 적당한 것 같아” +STR_1536 :“{STRINGID}에서 산 모자는 가격이 참 적당한 것 같아” +STR_1537 :“{STRINGID}에서 산 사과 토피 사탕은 가격이 참 적당한 것 같아” +STR_1538 :“{STRINGID}에서 산 티셔츠는 가격이 참 적당한 것 같아” +STR_1539 :“{STRINGID}에서 산 도넛은 가격이 참 적당한 것 같아” +STR_1540 :“{STRINGID}에서 산 커피는 가격이 참 적당한 것 같아” STR_1541 : -STR_1542 :{SMALLFONT}“{STRINGID}에서 산 프라이드치킨은 가격이 참 적당한 것 같아” -STR_1543 :{SMALLFONT}“{STRINGID}에서 산 레모네이드는 가격이 참 적당한 것 같아” +STR_1542 :“{STRINGID}에서 산 프라이드치킨은 가격이 참 적당한 것 같아” +STR_1543 :“{STRINGID}에서 산 레모네이드는 가격이 참 적당한 것 같아” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“와우!” -STR_1551 :{SMALLFONT}“누가 지켜보는 것 같은 이상한 기분이 들어” -STR_1552 :{SMALLFONT}“{STRINGID}의 풍선에 돈을 쓰고 싶지 않아” -STR_1553 :{SMALLFONT}“{STRINGID}의 캐릭터 인형에 돈을 쓰고 싶지 않아” -STR_1554 :{SMALLFONT}“{STRINGID}의 공원 지도에 돈을 쓰고 싶지 않아” -STR_1555 :{SMALLFONT}“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” -STR_1556 :{SMALLFONT}“{STRINGID}의 우산에 돈을 쓰고 싶지 않아” -STR_1557 :{SMALLFONT}“{STRINGID}의 음료수에 돈을 쓰고 싶지 않아” -STR_1558 :{SMALLFONT}“{STRINGID}의 햄버거에 돈을 쓰고 싶지 않아” -STR_1559 :{SMALLFONT}“{STRINGID}의 감자 칩에 돈을 쓰고 싶지 않아” -STR_1560 :{SMALLFONT}“{STRINGID}의 아이스크립에 돈을 쓰고 싶지 않아” -STR_1561 :{SMALLFONT}“{STRINGID}의 솜사탕에 돈을 쓰고 싶지 않아” +STR_1550 :“와우!” +STR_1551 :“누가 지켜보는 것 같은 이상한 기분이 들어” +STR_1552 :“{STRINGID}의 풍선에 돈을 쓰고 싶지 않아” +STR_1553 :“{STRINGID}의 캐릭터 인형에 돈을 쓰고 싶지 않아” +STR_1554 :“{STRINGID}의 공원 지도에 돈을 쓰고 싶지 않아” +STR_1555 :“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” +STR_1556 :“{STRINGID}의 우산에 돈을 쓰고 싶지 않아” +STR_1557 :“{STRINGID}의 음료수에 돈을 쓰고 싶지 않아” +STR_1558 :“{STRINGID}의 햄버거에 돈을 쓰고 싶지 않아” +STR_1559 :“{STRINGID}의 감자 칩에 돈을 쓰고 싶지 않아” +STR_1560 :“{STRINGID}의 아이스크립에 돈을 쓰고 싶지 않아” +STR_1561 :“{STRINGID}의 솜사탕에 돈을 쓰고 싶지 않아” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“{STRINGID}의 피자에 돈을 쓰고 싶지 않아” +STR_1565 :“{STRINGID}의 피자에 돈을 쓰고 싶지 않아” STR_1566 : -STR_1567 :{SMALLFONT}“{STRINGID}의 팝콘에 돈을 쓰고 싶지 않아” -STR_1568 :{SMALLFONT}“{STRINGID}의 핫도그에 돈을 쓰고 싶지 않아” -STR_1569 :{SMALLFONT}“{STRINGID}의 문어발에 돈을 쓰고 싶지 않아” -STR_1570 :{SMALLFONT}“{STRINGID}의 모자에 돈을 쓰고 싶지 않아” -STR_1571 :{SMALLFONT}“{STRINGID}의 사과 토피 사탕에 돈을 쓰고 싶지 않아” -STR_1572 :{SMALLFONT}“{STRINGID}의 티셔츠에 돈을 쓰고 싶지 않아” -STR_1573 :{SMALLFONT}“{STRINGID}의 도넛에 돈을 쓰고 싶지 않아” -STR_1574 :{SMALLFONT}“{STRINGID}의 커피에 돈을 쓰고 싶지 않아” +STR_1567 :“{STRINGID}의 팝콘에 돈을 쓰고 싶지 않아” +STR_1568 :“{STRINGID}의 핫도그에 돈을 쓰고 싶지 않아” +STR_1569 :“{STRINGID}의 문어발에 돈을 쓰고 싶지 않아” +STR_1570 :“{STRINGID}의 모자에 돈을 쓰고 싶지 않아” +STR_1571 :“{STRINGID}의 사과 토피 사탕에 돈을 쓰고 싶지 않아” +STR_1572 :“{STRINGID}의 티셔츠에 돈을 쓰고 싶지 않아” +STR_1573 :“{STRINGID}의 도넛에 돈을 쓰고 싶지 않아” +STR_1574 :“{STRINGID}의 커피에 돈을 쓰고 싶지 않아” STR_1575 : -STR_1576 :{SMALLFONT}“{STRINGID}의 프라이드치킨에 돈을 쓰고 싶지 않아” -STR_1577 :{SMALLFONT}“{STRINGID}의 레모네이드에 돈을 쓰고 싶지 않아” +STR_1576 :“{STRINGID}의 프라이드치킨에 돈을 쓰고 싶지 않아” +STR_1577 :“{STRINGID}의 레모네이드에 돈을 쓰고 싶지 않아” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” -STR_1585 :{SMALLFONT}“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” -STR_1586 :{SMALLFONT}“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” -STR_1587 :{SMALLFONT}“{STRINGID}에서 산 프레첼은 가격이 참 적당한 것 같아” -STR_1588 :{SMALLFONT}“{STRINGID}에서 산 핫초코는 가격이 참 적당한 것 같아” -STR_1589 :{SMALLFONT}“{STRINGID}에서 산 아이스 티는 가격이 참 적당한 것 같아” -STR_1590 :{SMALLFONT}“{STRINGID}에서 산 퍼넬 케이크는 가격이 참 적당한 것 같아” -STR_1591 :{SMALLFONT}“{STRINGID}에서 산 선글라스는 가격이 참 적당한 것 같아” -STR_1592 :{SMALLFONT}“{STRINGID}에서 산 고기 국수는 가격이 참 적당한 것 같아” -STR_1593 :{SMALLFONT}“{STRINGID}에서 산 볶음 쌀국수은 가격이 참 적당한 것 같아” -STR_1594 :{SMALLFONT}“{STRINGID}에서 산 만둣국은 가격이 참 적당한 것 같아” -STR_1595 :{SMALLFONT}“{STRINGID}에서 산 미트볼 수프는 가격이 참 적당한 것 같아” -STR_1596 :{SMALLFONT}“{STRINGID}에서 산 과일 주스는 가격이 참 적당한 것 같아” -STR_1597 :{SMALLFONT}“{STRINGID}에서 산 두유는 가격이 참 적당한 것 같아” -STR_1598 :{SMALLFONT}“{STRINGID}에서 산 수정과는 가격이 참 적당한 것 같아” -STR_1599 :{SMALLFONT}“{STRINGID}에서 산 샌드위치는 가격이 참 적당한 것 같아” -STR_1600 :{SMALLFONT}“{STRINGID}에서 산 쿠키는 가격이 참 적당한 것 같아” +STR_1584 :“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” +STR_1585 :“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” +STR_1586 :“{STRINGID}에서 산 탑승 사진은 가격이 참 적당한 것 같아” +STR_1587 :“{STRINGID}에서 산 프레첼은 가격이 참 적당한 것 같아” +STR_1588 :“{STRINGID}에서 산 핫초코는 가격이 참 적당한 것 같아” +STR_1589 :“{STRINGID}에서 산 아이스 티는 가격이 참 적당한 것 같아” +STR_1590 :“{STRINGID}에서 산 퍼넬 케이크는 가격이 참 적당한 것 같아” +STR_1591 :“{STRINGID}에서 산 선글라스는 가격이 참 적당한 것 같아” +STR_1592 :“{STRINGID}에서 산 고기 국수는 가격이 참 적당한 것 같아” +STR_1593 :“{STRINGID}에서 산 볶음 쌀국수은 가격이 참 적당한 것 같아” +STR_1594 :“{STRINGID}에서 산 만둣국은 가격이 참 적당한 것 같아” +STR_1595 :“{STRINGID}에서 산 미트볼 수프는 가격이 참 적당한 것 같아” +STR_1596 :“{STRINGID}에서 산 과일 주스는 가격이 참 적당한 것 같아” +STR_1597 :“{STRINGID}에서 산 두유는 가격이 참 적당한 것 같아” +STR_1598 :“{STRINGID}에서 산 수정과는 가격이 참 적당한 것 같아” +STR_1599 :“{STRINGID}에서 산 샌드위치는 가격이 참 적당한 것 같아” +STR_1600 :“{STRINGID}에서 산 쿠키는 가격이 참 적당한 것 같아” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“{STRINGID}에서 산 구운 소시지는 가격이 참 적당한 것 같아” +STR_1604 :“{STRINGID}에서 산 구운 소시지는 가격이 참 적당한 것 같아” STR_1605 : STR_1606 : STR_1607 : @@ -1001,27 +1001,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” -STR_1617 :{SMALLFONT}“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” -STR_1618 :{SMALLFONT}“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” -STR_1619 :{SMALLFONT}“{STRINGID}의 프레첼에 돈을 쓰고 싶지 않아” -STR_1620 :{SMALLFONT}“{STRINGID}의 핫초코에 돈을 쓰고 싶지 않아” -STR_1621 :{SMALLFONT}“{STRINGID}의 아이스 티에 돈을 쓰고 싶지 않아” -STR_1622 :{SMALLFONT}“{STRINGID}의 퍼넬 케이크에 돈을 쓰고 싶지 않아” -STR_1623 :{SMALLFONT}“{STRINGID}의 선글라스에 돈을 쓰고 싶지 않아” -STR_1624 :{SMALLFONT}“{STRINGID}의 고기 국수에 돈을 쓰고 싶지 않아” -STR_1625 :{SMALLFONT}“{STRINGID}의 볶음 쌀국수에 돈을 쓰고 싶지 않아” -STR_1626 :{SMALLFONT}“{STRINGID}의 만둣국에 돈을 쓰고 싶지 않아” -STR_1627 :{SMALLFONT}“{STRINGID}의 미트볼 수프에 돈을 쓰고 싶지 않아” -STR_1628 :{SMALLFONT}“{STRINGID}의 과일 주스에 돈을 쓰고 싶지 않아” -STR_1629 :{SMALLFONT}“{STRINGID}의 두유에 돈을 쓰고 싶지 않아” -STR_1630 :{SMALLFONT}“{STRINGID}의 수정과에 돈을 쓰고 싶지 않아” -STR_1631 :{SMALLFONT}“{STRINGID}의 샌드위치에 돈을 쓰고 싶지 않아” -STR_1632 :{SMALLFONT}“{STRINGID}의 쿠키에 돈을 쓰고 싶지 않아” +STR_1616 :“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” +STR_1617 :“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” +STR_1618 :“{STRINGID}의 탑승 사진에 돈을 쓰고 싶지 않아” +STR_1619 :“{STRINGID}의 프레첼에 돈을 쓰고 싶지 않아” +STR_1620 :“{STRINGID}의 핫초코에 돈을 쓰고 싶지 않아” +STR_1621 :“{STRINGID}의 아이스 티에 돈을 쓰고 싶지 않아” +STR_1622 :“{STRINGID}의 퍼넬 케이크에 돈을 쓰고 싶지 않아” +STR_1623 :“{STRINGID}의 선글라스에 돈을 쓰고 싶지 않아” +STR_1624 :“{STRINGID}의 고기 국수에 돈을 쓰고 싶지 않아” +STR_1625 :“{STRINGID}의 볶음 쌀국수에 돈을 쓰고 싶지 않아” +STR_1626 :“{STRINGID}의 만둣국에 돈을 쓰고 싶지 않아” +STR_1627 :“{STRINGID}의 미트볼 수프에 돈을 쓰고 싶지 않아” +STR_1628 :“{STRINGID}의 과일 주스에 돈을 쓰고 싶지 않아” +STR_1629 :“{STRINGID}의 두유에 돈을 쓰고 싶지 않아” +STR_1630 :“{STRINGID}의 수정과에 돈을 쓰고 싶지 않아” +STR_1631 :“{STRINGID}의 샌드위치에 돈을 쓰고 싶지 않아” +STR_1632 :“{STRINGID}의 쿠키에 돈을 쓰고 싶지 않아” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“{STRINGID}의 구운 소시지에 돈을 쓰고 싶지 않아” +STR_1636 :“{STRINGID}의 구운 소시지에 돈을 쓰고 싶지 않아” STR_1637 : STR_1638 : STR_1639 : @@ -1033,11 +1033,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“살려주세요! 절 내려주세요!” -STR_1649 :{SMALLFONT}“돈이 다 떨어져가고 있어요!” -STR_1650 :{SMALLFONT}“와우! 새 놀이기구가 지어지고 있어요!” +STR_1648 :“살려주세요! 절 내려주세요!” +STR_1649 :“돈이 다 떨어져가고 있어요!” +STR_1650 :“와우! 새 놀이기구가 지어지고 있어요!” # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}“…마침내 {STRINGID}에 탔어요!” +STR_1653 :“…마침내 {STRINGID}에 탔어요!” STR_1654 :{WINDOW_COLOUR_2}최근 생각: STR_1655 :땅 위에 보도 건설 STR_1656 :다리나 터널 보도를 건설 @@ -1067,12 +1067,12 @@ STR_1679 :나선 상승 (왼쪽) STR_1680 :나선 상승 (오른쪽) STR_1681 :나선 하강 (왼쪽) STR_1682 :나선 하강 (오른쪽) -STR_1683 :기본 크기 2 x 2 -STR_1684 :기본 크기 4 x 4 -STR_1685 :기본 크기 2 x 4 -STR_1686 :기본 크기 5 x 1 +STR_1683 :기본 크기 2 × 2 +STR_1684 :기본 크기 4 × 4 +STR_1685 :기본 크기 2 × 4 +STR_1686 :기본 크기 5 × 1 STR_1687 :물 튀김 -STR_1688 :기본 크기 4 x 1 +STR_1688 :기본 크기 4 × 1 STR_1689 :블록 브레이크 STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} 비용: {BLACK}{CURRENCY} @@ -1125,7 +1125,7 @@ STR_1738 :바퀴 수를 변경할 수 없습니다… STR_1739 :레이스 우승자 : 손님 {INT32} STR_1740 :레이스 우승자 : {STRINGID} STR_1741 :아직 건설되지 않았습니다! -STR_1742 :{WINDOW_COLOUR_2}최대 놀이기구 탑승 인원: +STR_1742 :{WINDOW_COLOUR_2}최대 탑승 인원: STR_1743 :이 놀이기구에 한 번에 탑승할 수 있는 최대 인원 수를 설정합니다 STR_1744 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} STR_1746 :변경할 수 없습니다… @@ -1189,7 +1189,7 @@ STR_1808 :{WINDOW_COLOUR_2}최근 고장: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}현재 고장: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}보유 중: STR_1811 :여기에 건설할 수 없습니다… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :기타 오브젝트 STR_1814 :행동 STR_1815 :생각 @@ -1198,7 +1198,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}모든 손님 STR_1819 :{WINDOW_COLOUR_2}모든 손님 (항목별 분류) STR_1820 :{WINDOW_COLOUR_2}{STRINGID} 손님 -STR_1821 :{WINDOW_COLOUR_2}{STRINGID} 손님 생각 +STR_1821 :{WINDOW_COLOUR_2}{SMALLFONT}{STRINGID}{MEDIUMFONT} 손님 생각 STR_1822 :{WINDOW_COLOUR_2}{POP16}{STRINGID}에 대한 손님 생각 STR_1823 :이 놀이기구/시설에 대한 손님들의 생각을 보여줍니다 STR_1824 :이 놀이기구/시설에 있는 손님을 보여줍니다 @@ -1301,7 +1301,6 @@ STR_1921 :새로운 게임을 시작합니다 STR_1922 :저장된 게임을 계속해서 플레이합니다 STR_1924 :게임을 종료합니다 STR_1925 :사람을 여기에 놓을 수 없습니다… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} 고장 발생 STR_1928 :{RED}{STRINGID} 충돌! STR_1929 :{RED}{STRINGID} - 아직 수리되지 않음{NEWLINE}정비기술자의 위치와 업무 효율을 점검하세요 @@ -1582,7 +1581,7 @@ STR_2218 :{RED}{POP16}{POP16}{STRINGID}의 {PUSH16}{PUSH16}{PUSH16}{PUSH16}{P STR_2219 :{RED}{COMMA16}명의 손님이 {STRINGID} 사고로 사망하였습니다! STR_2220 :{WINDOW_COLOUR_2}공원 등급: {BLACK}{COMMA16} STR_2221 :공원 등급: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}공원에 있는 손님 수: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}재정: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}재정: {RED}{CURRENCY2DP} @@ -1595,7 +1594,7 @@ STR_2231 :낙하 브레이크 STR_2232 :케이블 리프트 힐 STR_2233 :공원 정보 STR_2234 :최근 메시지 -STR_2235 :{SMALLFONT}{POP16}{STRINGID} {PUSH16}{PUSH16}{STRINGID} +STR_2235 :{POP16}{STRINGID} {PUSH16}{PUSH16}{STRINGID} STR_2236 :1월 STR_2237 :2월 STR_2238 :3월 @@ -1675,7 +1674,7 @@ STR_2312 :{WINDOW_COLOUR_2}격렬도: {BLACK}{COMMA2DP32} (근사치) STR_2313 :{WINDOW_COLOUR_2}멀미도: {BLACK}{COMMA2DP32} (근사치) STR_2314 :{WINDOW_COLOUR_2}놀이기구 길이: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}비용: {BLACK}약 {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}필요한 공간: {BLACK}{COMMA16} x {COMMA16}칸 +STR_2316 :{WINDOW_COLOUR_2}필요한 공간: {BLACK}{COMMA16} × {COMMA16}칸 STR_2321 :{WINDOW_COLOUR_2}놀이기구/시설 수: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}직원: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}공원 크기: {BLACK}{COMMA32}m² @@ -1799,7 +1798,7 @@ STR_2450 :{YELLOW}공원 광고가 종료되었습니다 STR_2451 :{YELLOW}{STRINGID} 광고가 종료되었습니다 STR_2452 :{WINDOW_COLOUR_2}재정 (대출 제외): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}재정 (대출 제외): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :재정 요약을 보여줍니다 STR_2458 :시간에 따른 재정 보유 그래프(대출 제외)를 보여줍니다 STR_2459 :시간에 따른 공원 가치 그래프를 보여줍니다 @@ -1909,7 +1908,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :모든 연구가 완료되었습니다 -STR_2681 :{MEDIUMFONT}{BLACK}돈 {CURRENCY} 늘리기 STR_2684 :손님을 대규모로 부릅니다 STR_2685 :단일 노이즈 매개 변수 STR_2686 :저: @@ -1991,12 +1989,12 @@ STR_2784 :키보드 단축키 변경 STR_2785 :{WINDOW_COLOUR_2}새 단축키를 누르세요:{NEWLINE}“{STRINGID}” STR_2786 :새 단축키를 설정하려면 단축키 설명을 클릭하세요 STR_2787 :{WINDOW_COLOUR_2}공원 가치: {BLACK}{CURRENCY} -STR_2788 :{WINDOW_COLOUR_2}축하합니다 !{NEWLINE}{BLACK}시나리오 목표를 {CURRENCY}의 회사 가치로 달성하였습니다 ! -STR_2789 :{WINDOW_COLOUR_2}목표 달성에 실패하였습니다 ! +STR_2788 :{WINDOW_COLOUR_2}축하합니다!{NEWLINE}{BLACK}시나리오 목표를 {CURRENCY}의 회사 가치로 달성하였습니다! +STR_2789 :{WINDOW_COLOUR_2}목표 달성에 실패하였습니다! STR_2790 :시나리오 차트에 이름을 기록하세요 STR_2791 :이름을 입력하세요 STR_2792 :시나리오 차트에 이름을 기록하세요: -STR_2793 :{SMALLFONT}(달성: {STRINGID}) +STR_2793 :(달성: {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}달성: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2}회사 가치: {BLACK}{CURRENCY} STR_2795 :정렬 STR_2796 :놀이기구 목록을 정보 종류에 따라 정렬하여 표시합니다. @@ -2115,15 +2113,15 @@ STR_2976 :선택한 색상 조합을 사용하여 이 놀이기구의 특정 STR_2977 :직원 이름 STR_2978 :새 직원 이름을 입력하세요: STR_2979 :직원 이름을 바꿀 수 없습니다… -STR_2980 :게임에 전광판이 너무 많습니다 +STR_2980 :게임에 팻말이 너무 많습니다 STR_2981 :{RED}출입 금지 -STR_2982 :전광판 내용 -STR_2983 :이 전광판의 문구를 입력하세요: -STR_2984 :전광판의 내용을 바꿀 수 없습니다… -STR_2985 :전광판 -STR_2986 :전광판의 내용을 바꿉니다 -STR_2987 :이 전광판을 ‘손님 출입 금지’로 설정합니다 -STR_2988 :이 전광판을 제거합니다 +STR_2982 :팻말 내용 +STR_2983 :이 팻말의 문구를 입력하세요: +STR_2984 :팻말의 내용을 바꿀 수 없습니다… +STR_2985 :팻말 +STR_2986 :팻말의 내용을 바꿉니다 +STR_2987 :이 팻말을 ‘손님 출입 금지’로 설정합니다 +STR_2988 :이 팻말을 제거합니다 STR_2989 :주 색상 선택 STR_2990 :문구 색상 선택 STR_2991 :팻말 @@ -2503,7 +2501,7 @@ STR_5134 :땅 구입 도구 크기 늘이기 STR_5135 :땅 소유권과 건설권 구입하기 STR_5136 :땅 소유권 STR_5137 :놀이기구 운영 제한 없애기 -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :브레이크 고장 안 나게 STR_5141 :고장 안 나게 @@ -2560,7 +2558,7 @@ STR_5205 :손님 STR_5206 :손님 목록 STR_5207 :직원 STR_5208 :직원 목록 -STR_5209 :전광판 +STR_5209 :팻말 STR_5210 :오브젝트 선택 STR_5211 :개발 목록 STR_5212 :시나리오 설정 @@ -2649,7 +2647,7 @@ STR_5297 :공원을 엽니다 STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :직원 간편 해고 -STR_5301 :{MEDIUMFONT}{BLACK}대출금을 모두 갚습니다 +STR_5301 :대출금을 모두 갚습니다 STR_5302 :대출금 모두 갚기 STR_5303 :일시정지 모드에서 건설 허용 STR_5304 :타이틀 시퀀스: @@ -2797,7 +2795,7 @@ STR_5470 :맵을 왼쪽으로 스크롤 STR_5471 :맵을 아래로 스크롤 STR_5472 :맵을 오른쪽으로 스크롤 STR_5473 :밤낮을 순환 -STR_5474 :전광판의 영문자를 대문자로 표시 +STR_5474 :팻말의 영문자를 대문자로 표시 STR_5475 :{COMMA16}주 STR_5476 :하드웨어 STR_5477 :지도 렌더링 @@ -2808,7 +2806,7 @@ STR_5481 :테마 STR_5482 :{WINDOW_COLOUR_2}최근 점검 시간: {BLACK}1분 STR_5483 :{BLACK}({COMMA16}주 남음) STR_5484 :{BLACK}({COMMA16}주 남음) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :최근 메시지 보이기 STR_5489 :추적 중인 손님만 보기 @@ -3220,7 +3218,7 @@ STR_5938 :{WINDOW_COLOUR_2}수면 고도: {BLACK}{COMMA16} STR_5939 :공원 울타리 제거 STR_5940 :공원 울타리 복구 STR_5941 :{WINDOW_COLOUR_2}기본 높이: -STR_5942 :{WINDOW_COLOUR_2}공원 이름: {BLACK}{STRINGID} +STR_5942 :{WINDOW_COLOUR_2}보도 이름: {BLACK}{STRINGID} STR_5943 :{WINDOW_COLOUR_2}기물: {BLACK}{STRINGID} STR_5944 :{WINDOW_COLOUR_2}기물: {BLACK}없음 STR_5945 :{WINDOW_COLOUR_2}연결된 면: @@ -3312,7 +3310,7 @@ STR_6030 :오브젝트 스포이드 기능입니다. 지도 상의 오브젝 STR_6031 :서버 설명: STR_6032 :서버 인사말: STR_6033 :RCT1 설치 경로: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :RCT1이 설치된 폴더를 선택하세요 STR_6036 :초기화 STR_6037 :선택한 폴더에는 RollerCoaster Tycoon 1이 올바르게 설치되어 있지 않습니다. @@ -3457,7 +3455,7 @@ STR_6183 :따라가기{MOVE_X}{87}선택된 스프라이트 없음 STR_6184 :스프라이트 따라가기 STR_6185 :스프라이트 선택 STR_6186 :선택된 스프라이트 없음 -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :구토 STR_6189 :오리 STR_6190 :메인 타이틀 시퀀스가 활성화되어 있을 때는 스프라이트를 선택할 수 없습니다. @@ -3607,7 +3605,7 @@ STR_6356 :공원에 물이 있을 경우 오리를 생성합니다 STR_6357 :공원에 있는 모든 오리를 제거합니다 STR_6358 :{UINT16}쪽 STR_6359 :{POP16}{POP16}{UINT16}쪽 -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :차량 조명 효과 (실험적 기능) STR_6362 :이 설정을 켜면, 밤에 트랙형 놀이기구의 차량에 조명이 들어옵니다. STR_6363 :텍스트를 클립보드에 복사하였습니다 @@ -3682,6 +3680,25 @@ STR_6431 :오른쪽 마우스 버튼 STR_6432 :마우스 {INT32} STR_6433 :해제 STR_6434 :여기에 할당된 단축키를 해제합니다. +STR_6435 :{WINDOW_COLOUR_2}기물파괴범 검거 횟수: {BLACK}{COMMA16} +STR_6436 :감춤 여부 +STR_6437 :감춤 +STR_6438 :I +STR_6439 :칸 조사 창: 감춤 여부 +STR_6440 :물 투명하게 보기 +STR_6441 :최소 하나 이상의 일반 보도 바닥 오브젝트를 선택해야 합니다. +STR_6442 :최소 하나 이상의 대기 줄 보도 바닥 오브젝트를 선택해야 합니다. +STR_6443 :최소 하나 이상의 보도 난간 오브젝트를 선택해야 합니다. +STR_6444 :보도 바닥 +STR_6445 :보도 난간 +STR_6446 :{WINDOW_COLOUR_2}바닥 이름: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}난간 이름: {BLACK}{STRINGID} +STR_6448 :지원하지 않는 오브젝트 포맷 +STR_6449 :{WINDOW_COLOUR_2}트랙: +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}판매: {BLACK}{STRING} +STR_6453 :버전 정보 복사 ############# # Scenarios # diff --git a/data/language/nb-NO.txt b/data/language/nb-NO.txt index 1331e779c9..54068654b7 100644 --- a/data/language/nb-NO.txt +++ b/data/language/nb-NO.txt @@ -236,8 +236,8 @@ STR_0831 :Zoom ut STR_0832 :Rotate kameravinkelen 90° med klokken STR_0833 :Pause spillet STR_0834 :Disk- og spillinnstillinger -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :Om 'OpenRCT2' STR_0850 :{WINDOW_COLOUR_2}Opphavsrett © 2002 Chris Sawyer, alle rettigheter forbeholdt @@ -795,14 +795,14 @@ STR_1410 :Vertikalt tårn STR_1411 :{STRINGID} i veien STR_1412 :{WINDOW_COLOUR_3}Datalogger ikke tilgjengelig for denne typen attraksjon STR_1413 :{WINDOW_COLOUR_3}Datalogging vil starte når neste {STRINGID} forlater {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Fart STR_1416 :{WINDOW_COLOUR_2}Høyde STR_1417 :{WINDOW_COLOUR_2}Vert.G's STR_1418 :{WINDOW_COLOUR_2}Lat.G's -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Logger data fra {POP16}{STRINGID} STR_1423 :Køsti STR_1424 :Gangsti @@ -861,131 +861,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensity rating: {BLACK}Not yet available STR_1477 :{WINDOW_COLOUR_2}Intensity rating: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}Not yet available -STR_1480 :{SMALLFONT}“I can't afford {STRINGID}” -STR_1481 :{SMALLFONT}“I've spent all my money” -STR_1482 :{SMALLFONT}“I feel sick” -STR_1483 :{SMALLFONT}“I feel very sick” -STR_1484 :{SMALLFONT}“I want to go on something more thrilling than {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} looks too intense for me” -STR_1486 :{SMALLFONT}“I haven't finished my {STRINGID} yet” -STR_1487 :{SMALLFONT}“Just looking at {STRINGID} makes me feel sick” -STR_1488 :{SMALLFONT}“I'm not paying that much to go on {STRINGID}” -STR_1489 :{SMALLFONT}“I want to go home” -STR_1490 :{SMALLFONT}“{STRINGID} is really good value” -STR_1491 :{SMALLFONT}“I've already got {STRINGID}” -STR_1492 :{SMALLFONT}“I can't afford {STRINGID}” -STR_1493 :{SMALLFONT}“I'm not hungry” -STR_1494 :{SMALLFONT}“I'm not thirsty” -STR_1495 :{SMALLFONT}“Help! I'm drowning!” -STR_1496 :{SMALLFONT}“I'm lost!” -STR_1497 :{SMALLFONT}“{STRINGID} was great” -STR_1498 :{SMALLFONT}“I've been queuing for {STRINGID} for ages” -STR_1499 :{SMALLFONT}“I'm tired” -STR_1500 :{SMALLFONT}“I'm hungry” -STR_1501 :{SMALLFONT}“I'm thirsty” -STR_1502 :{SMALLFONT}“I need to go to the bathroom” -STR_1503 :{SMALLFONT}“I can't find {STRINGID}” -STR_1504 :{SMALLFONT}“I'm not paying that much to use {STRINGID}” -STR_1505 :{SMALLFONT}“I'm not going on {STRINGID} while it's raining” -STR_1506 :{SMALLFONT}“The litter here is really bad” -STR_1507 :{SMALLFONT}“I can't find the park exit” -STR_1508 :{SMALLFONT}“I want to get off {STRINGID}” -STR_1509 :{SMALLFONT}“I want to get out of {STRINGID}” -STR_1510 :{SMALLFONT}“I'm not going on {STRINGID} - It isn't safe” -STR_1511 :{SMALLFONT}“This path is disgusting” -STR_1512 :{SMALLFONT}“It's too crowded here” -STR_1513 :{SMALLFONT}“The vandalism here is really bad” -STR_1514 :{SMALLFONT}“Great scenery!” -STR_1515 :{SMALLFONT}“This park is really clean and tidy” -STR_1516 :{SMALLFONT}“The jumping fountains are great” -STR_1517 :{SMALLFONT}“The music is nice here” -STR_1518 :{SMALLFONT}“This balloon from {STRINGID} is really good value” -STR_1519 :{SMALLFONT}“This cuddly toy from {STRINGID} is really good value” -STR_1520 :{SMALLFONT}“This park map from {STRINGID} is really good value” -STR_1521 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1522 :{SMALLFONT}“This umbrella from {STRINGID} is really good value” -STR_1523 :{SMALLFONT}“This drink from {STRINGID} is really good value” -STR_1524 :{SMALLFONT}“This burger from {STRINGID} is really good value” -STR_1525 :{SMALLFONT}“These chips from {STRINGID} are really good value” -STR_1526 :{SMALLFONT}“This ice cream from {STRINGID} is really good value” -STR_1527 :{SMALLFONT}“This candyfloss from {STRINGID} is really good value” +STR_1480 :“I can't afford {STRINGID}” +STR_1481 :“I've spent all my money” +STR_1482 :“I feel sick” +STR_1483 :“I feel very sick” +STR_1484 :“I want to go on something more thrilling than {STRINGID}” +STR_1485 :“{STRINGID} looks too intense for me” +STR_1486 :“I haven't finished my {STRINGID} yet” +STR_1487 :“Just looking at {STRINGID} makes me feel sick” +STR_1488 :“I'm not paying that much to go on {STRINGID}” +STR_1489 :“I want to go home” +STR_1490 :“{STRINGID} is really good value” +STR_1491 :“I've already got {STRINGID}” +STR_1492 :“I can't afford {STRINGID}” +STR_1493 :“I'm not hungry” +STR_1494 :“I'm not thirsty” +STR_1495 :“Help! I'm drowning!” +STR_1496 :“I'm lost!” +STR_1497 :“{STRINGID} was great” +STR_1498 :“I've been queuing for {STRINGID} for ages” +STR_1499 :“I'm tired” +STR_1500 :“I'm hungry” +STR_1501 :“I'm thirsty” +STR_1502 :“I need to go to the bathroom” +STR_1503 :“I can't find {STRINGID}” +STR_1504 :“I'm not paying that much to use {STRINGID}” +STR_1505 :“I'm not going on {STRINGID} while it's raining” +STR_1506 :“The litter here is really bad” +STR_1507 :“I can't find the park exit” +STR_1508 :“I want to get off {STRINGID}” +STR_1509 :“I want to get out of {STRINGID}” +STR_1510 :“I'm not going on {STRINGID} - It isn't safe” +STR_1511 :“This path is disgusting” +STR_1512 :“It's too crowded here” +STR_1513 :“The vandalism here is really bad” +STR_1514 :“Great scenery!” +STR_1515 :“This park is really clean and tidy” +STR_1516 :“The jumping fountains are great” +STR_1517 :“The music is nice here” +STR_1518 :“This balloon from {STRINGID} is really good value” +STR_1519 :“This cuddly toy from {STRINGID} is really good value” +STR_1520 :“This park map from {STRINGID} is really good value” +STR_1521 :“This on-ride photo from {STRINGID} is really good value” +STR_1522 :“This umbrella from {STRINGID} is really good value” +STR_1523 :“This drink from {STRINGID} is really good value” +STR_1524 :“This burger from {STRINGID} is really good value” +STR_1525 :“These chips from {STRINGID} are really good value” +STR_1526 :“This ice cream from {STRINGID} is really good value” +STR_1527 :“This candyfloss from {STRINGID} is really good value” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“This pizza from {STRINGID} is really good value” +STR_1531 :“This pizza from {STRINGID} is really good value” STR_1532 : -STR_1533 :{SMALLFONT}“This popcorn from {STRINGID} is really good value” -STR_1534 :{SMALLFONT}“This hot dog from {STRINGID} is really good value” -STR_1535 :{SMALLFONT}“This tentacle from {STRINGID} is really good value” -STR_1536 :{SMALLFONT}“This hat from {STRINGID} is really good value” -STR_1537 :{SMALLFONT}“This toffee apple from {STRINGID} is really good value” -STR_1538 :{SMALLFONT}“This T-shirt from {STRINGID} is really good value” -STR_1539 :{SMALLFONT}“This doughnut from {STRINGID} is really good value” -STR_1540 :{SMALLFONT}“This coffee from {STRINGID} is really good value” +STR_1533 :“This popcorn from {STRINGID} is really good value” +STR_1534 :“This hot dog from {STRINGID} is really good value” +STR_1535 :“This tentacle from {STRINGID} is really good value” +STR_1536 :“This hat from {STRINGID} is really good value” +STR_1537 :“This toffee apple from {STRINGID} is really good value” +STR_1538 :“This T-shirt from {STRINGID} is really good value” +STR_1539 :“This doughnut from {STRINGID} is really good value” +STR_1540 :“This coffee from {STRINGID} is really good value” STR_1541 : -STR_1542 :{SMALLFONT}“This fried chicken from {STRINGID} is really good value” -STR_1543 :{SMALLFONT}“This lemonade from {STRINGID} is really good value” +STR_1542 :“This fried chicken from {STRINGID} is really good value” +STR_1543 :“This lemonade from {STRINGID} is really good value” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Wow!” -STR_1551 :{SMALLFONT}“I have the strangest feeling someone is watching me” -STR_1552 :{SMALLFONT}“I'm not paying that much for a balloon from {STRINGID}” -STR_1553 :{SMALLFONT}“I'm not paying that much for a cuddly toy from {STRINGID}” -STR_1554 :{SMALLFONT}“I'm not paying that much for a park map from {STRINGID}” -STR_1555 :{SMALLFONT}“I'm not paying that much for an on-ride photo from {STRINGID}” -STR_1556 :{SMALLFONT}“I'm not paying that much for an umbrella from {STRINGID}” -STR_1557 :{SMALLFONT}“I'm not paying that much for a drink from {STRINGID}” -STR_1558 :{SMALLFONT}“I'm not paying that much for a burger from {STRINGID}” -STR_1559 :{SMALLFONT}“I'm not paying that much for chips from {STRINGID}” -STR_1560 :{SMALLFONT}“I'm not paying that much for an ice cream from {STRINGID}” -STR_1561 :{SMALLFONT}“I'm not paying that much for candyfloss from {STRINGID}” +STR_1550 :“Wow!” +STR_1551 :“I have the strangest feeling someone is watching me” +STR_1552 :“I'm not paying that much for a balloon from {STRINGID}” +STR_1553 :“I'm not paying that much for a cuddly toy from {STRINGID}” +STR_1554 :“I'm not paying that much for a park map from {STRINGID}” +STR_1555 :“I'm not paying that much for an on-ride photo from {STRINGID}” +STR_1556 :“I'm not paying that much for an umbrella from {STRINGID}” +STR_1557 :“I'm not paying that much for a drink from {STRINGID}” +STR_1558 :“I'm not paying that much for a burger from {STRINGID}” +STR_1559 :“I'm not paying that much for chips from {STRINGID}” +STR_1560 :“I'm not paying that much for an ice cream from {STRINGID}” +STR_1561 :“I'm not paying that much for candyfloss from {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“I'm not paying that much for pizza from {STRINGID}” +STR_1565 :“I'm not paying that much for pizza from {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“I'm not paying that much for popcorn from {STRINGID}” -STR_1568 :{SMALLFONT}“I'm not paying that much for a hot dog from {STRINGID}” -STR_1569 :{SMALLFONT}“I'm not paying that much for tentacle from {STRINGID}” -STR_1570 :{SMALLFONT}“I'm not paying that much for a hat from {STRINGID}” -STR_1571 :{SMALLFONT}“I'm not paying that much for a toffee apple from {STRINGID}” -STR_1572 :{SMALLFONT}“I'm not paying that much for a T-shirt from {STRINGID}” -STR_1573 :{SMALLFONT}“I'm not paying that much for a doughnut from {STRINGID}” -STR_1574 :{SMALLFONT}“I'm not paying that much for coffee from {STRINGID}” +STR_1567 :“I'm not paying that much for popcorn from {STRINGID}” +STR_1568 :“I'm not paying that much for a hot dog from {STRINGID}” +STR_1569 :“I'm not paying that much for tentacle from {STRINGID}” +STR_1570 :“I'm not paying that much for a hat from {STRINGID}” +STR_1571 :“I'm not paying that much for a toffee apple from {STRINGID}” +STR_1572 :“I'm not paying that much for a T-shirt from {STRINGID}” +STR_1573 :“I'm not paying that much for a doughnut from {STRINGID}” +STR_1574 :“I'm not paying that much for coffee from {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“I'm not paying that much for fried chicken from {STRINGID}” -STR_1577 :{SMALLFONT}“I'm not paying that much for lemonade from {STRINGID}” +STR_1576 :“I'm not paying that much for fried chicken from {STRINGID}” +STR_1577 :“I'm not paying that much for lemonade from {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1585 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1586 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” -STR_1587 :{SMALLFONT}“This pretzel from {STRINGID} is really good value” -STR_1588 :{SMALLFONT}“This hot chocolate from {STRINGID} is really good value” -STR_1589 :{SMALLFONT}“This iced tea from {STRINGID} is really good value” -STR_1590 :{SMALLFONT}“This funnel cake from {STRINGID} is really good value” -STR_1591 :{SMALLFONT}“These sunglasses from {STRINGID} are really good value” -STR_1592 :{SMALLFONT}“These beef noodles from {STRINGID} are really good value” -STR_1593 :{SMALLFONT}“These fried rice noodles from {STRINGID} are really good value” -STR_1594 :{SMALLFONT}“This wonton soup from {STRINGID} is really good value” -STR_1595 :{SMALLFONT}“This meatball soup from {STRINGID} is really good value” -STR_1596 :{SMALLFONT}“This fruit juice from {STRINGID} is really good value” -STR_1597 :{SMALLFONT}“This soybean milk from {STRINGID} is really good value” -STR_1598 :{SMALLFONT}“This sujongkwa from {STRINGID} is really good value” -STR_1599 :{SMALLFONT}“This sub sandwich from {STRINGID} is really good value” -STR_1600 :{SMALLFONT}“This cookie from {STRINGID} is really good value” +STR_1584 :“This on-ride photo from {STRINGID} is really good value” +STR_1585 :“This on-ride photo from {STRINGID} is really good value” +STR_1586 :“This on-ride photo from {STRINGID} is really good value” +STR_1587 :“This pretzel from {STRINGID} is really good value” +STR_1588 :“This hot chocolate from {STRINGID} is really good value” +STR_1589 :“This iced tea from {STRINGID} is really good value” +STR_1590 :“This funnel cake from {STRINGID} is really good value” +STR_1591 :“These sunglasses from {STRINGID} are really good value” +STR_1592 :“These beef noodles from {STRINGID} are really good value” +STR_1593 :“These fried rice noodles from {STRINGID} are really good value” +STR_1594 :“This wonton soup from {STRINGID} is really good value” +STR_1595 :“This meatball soup from {STRINGID} is really good value” +STR_1596 :“This fruit juice from {STRINGID} is really good value” +STR_1597 :“This soybean milk from {STRINGID} is really good value” +STR_1598 :“This sujongkwa from {STRINGID} is really good value” +STR_1599 :“This sub sandwich from {STRINGID} is really good value” +STR_1600 :“This cookie from {STRINGID} is really good value” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“This roast sausage from {STRINGID} are really good value” +STR_1604 :“This roast sausage from {STRINGID} are really good value” STR_1605 : STR_1606 : STR_1607 : @@ -997,27 +997,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“I'm not paying that much for an on-ride photo from {STRINGID}” -STR_1617 :{SMALLFONT}“I'm not paying that much for an on-ride photo from {STRINGID}” -STR_1618 :{SMALLFONT}“I'm not paying that much for an on-ride photo from {STRINGID}” -STR_1619 :{SMALLFONT}“I'm not paying that much for a pretzel from {STRINGID}” -STR_1620 :{SMALLFONT}“I'm not paying that much for hot chocolate from {STRINGID}” -STR_1621 :{SMALLFONT}“I'm not paying that much for iced tea from {STRINGID}” -STR_1622 :{SMALLFONT}“I'm not paying that much for a funnel cake from {STRINGID}” -STR_1623 :{SMALLFONT}“I'm not paying that much for sunglasses from {STRINGID}” -STR_1624 :{SMALLFONT}“I'm not paying that much for beef noodles from {STRINGID}” -STR_1625 :{SMALLFONT}“I'm not paying that much for fried rice noodles from {STRINGID}” -STR_1626 :{SMALLFONT}“I'm not paying that much for wonton soup from {STRINGID}” -STR_1627 :{SMALLFONT}“I'm not paying that much for meatball soup from {STRINGID}” -STR_1628 :{SMALLFONT}“I'm not paying that much for fruit juice from {STRINGID}” -STR_1629 :{SMALLFONT}“I'm not paying that much for soybean milk from {STRINGID}” -STR_1630 :{SMALLFONT}“I'm not paying that much for sujongkwa from {STRINGID}” -STR_1631 :{SMALLFONT}“I'm not paying that much for a sub sandwich from {STRINGID}” -STR_1632 :{SMALLFONT}“I'm not paying that much for a cookie from {STRINGID}” +STR_1616 :“I'm not paying that much for an on-ride photo from {STRINGID}” +STR_1617 :“I'm not paying that much for an on-ride photo from {STRINGID}” +STR_1618 :“I'm not paying that much for an on-ride photo from {STRINGID}” +STR_1619 :“I'm not paying that much for a pretzel from {STRINGID}” +STR_1620 :“I'm not paying that much for hot chocolate from {STRINGID}” +STR_1621 :“I'm not paying that much for iced tea from {STRINGID}” +STR_1622 :“I'm not paying that much for a funnel cake from {STRINGID}” +STR_1623 :“I'm not paying that much for sunglasses from {STRINGID}” +STR_1624 :“I'm not paying that much for beef noodles from {STRINGID}” +STR_1625 :“I'm not paying that much for fried rice noodles from {STRINGID}” +STR_1626 :“I'm not paying that much for wonton soup from {STRINGID}” +STR_1627 :“I'm not paying that much for meatball soup from {STRINGID}” +STR_1628 :“I'm not paying that much for fruit juice from {STRINGID}” +STR_1629 :“I'm not paying that much for soybean milk from {STRINGID}” +STR_1630 :“I'm not paying that much for sujongkwa from {STRINGID}” +STR_1631 :“I'm not paying that much for a sub sandwich from {STRINGID}” +STR_1632 :“I'm not paying that much for a cookie from {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“I'm not paying that much for a roast sausage from {STRINGID}” +STR_1636 :“I'm not paying that much for a roast sausage from {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1029,10 +1029,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Help! Put me down!” -STR_1649 :{SMALLFONT}“I'm running out of cash!” -STR_1650 :{SMALLFONT}“Wow! A new ride being built!” -STR_1653 :{SMALLFONT}“…and here we are on {STRINGID}!” +STR_1648 :“Help! Put me down!” +STR_1649 :“I'm running out of cash!” +STR_1650 :“Wow! A new ride being built!” +STR_1653 :“…and here we are on {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Recent thoughts: STR_1655 :Construct footpath on land STR_1656 :Construct bridge or tunnel footpath @@ -1062,12 +1062,12 @@ STR_1679 :Helix up (venstre) STR_1680 :Helix up (høyre) STR_1681 :Helix down (venstre) STR_1682 :Helix down (høyre) -STR_1683 :Base size 2 x 2 -STR_1684 :Base size 4 x 4 -STR_1685 :Base size 2 x 4 -STR_1686 :Base size 5 x 1 +STR_1683 :Base size 2 × 2 +STR_1684 :Base size 4 × 4 +STR_1685 :Base size 2 × 4 +STR_1686 :Base size 5 × 1 STR_1687 :Water splash -STR_1688 :Base size 4 x 1 +STR_1688 :Base size 4 × 1 STR_1689 :Block brakes STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Cost: {BLACK}{CURRENCY} @@ -1184,7 +1184,7 @@ STR_1808 :{WINDOW_COLOUR_2}Last breakdown: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Current breakdown: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Carrying: STR_1811 :Can't build this here… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Miscellaneous Objects STR_1814 :Actions STR_1815 :Thoughts @@ -1193,7 +1193,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}All guests STR_1819 :{WINDOW_COLOUR_2}All guests (summarised) STR_1820 :{WINDOW_COLOUR_2}Guests {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Guests thinking {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Guests thinking {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Guests thinking about {POP16}{STRINGID} STR_1823 :Show guests' thoughts about this ride/attraction STR_1824 :Show guests on this ride/attraction @@ -1296,7 +1296,6 @@ STR_1921 :Start a new game STR_1922 :Continue playing a saved game STR_1924 :Exit STR_1925 :Can't place person here… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} has broken down STR_1928 :{RED}{STRINGID} has crashed! STR_1929 :{RED}{STRINGID} still hasn't been fixed{NEWLINE}Check where your mechanics are and consider organizing them better @@ -1577,7 +1576,7 @@ STR_2218 :{RED}{STRINGID} on {STRINGID} hasn't returned to the {STRINGID} yet STR_2219 :{RED}{COMMA16} people have died in an accident on {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Park Rating: {BLACK}{COMMA16} STR_2221 :Park Rating: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Guests in park: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Cash: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Cash: {RED}{CURRENCY2DP} @@ -1590,7 +1589,7 @@ STR_2231 :Holding brake for drop STR_2232 :Cable lift hill STR_2233 :Park information STR_2234 :Recent Messages -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :January STR_2237 :February STR_2238 :March @@ -1670,7 +1669,7 @@ STR_2312 :{WINDOW_COLOUR_2}Intensity rating: {BLACK}{COMMA2DP32} (approx.) STR_2313 :{WINDOW_COLOUR_2}Nausea rating: {BLACK}{COMMA2DP32} (approx.) STR_2314 :{WINDOW_COLOUR_2}Ride length: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Cost: {BLACK}around {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} x {COMMA16} blocks +STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} × {COMMA16} blocks STR_2321 :{WINDOW_COLOUR_2}Number of rides/attractions: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Staff: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}m² @@ -1794,7 +1793,7 @@ STR_2450 :{YELLOW}Your advertising campaign for the park has finished STR_2451 :{YELLOW}Your advertising campaign for {STRINGID} has finished STR_2452 :{WINDOW_COLOUR_2}Cash (less loan): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Cash (less loan): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Show financial accounts STR_2458 :Show graph of cash (less loan) over time STR_2459 :Show graph of park value over time @@ -1904,7 +1903,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :All research complete -STR_2681 :{MEDIUMFONT}{BLACK}Increases your money by {CURRENCY} STR_2684 :Large group of guests arrive STR_2685 :Parametere for Simplex-støy STR_2686 :Lav: @@ -1991,7 +1989,7 @@ STR_2789 :{WINDOW_COLOUR_2}You have failed your objective ! STR_2790 :Enter name into scenario chart STR_2791 :Enter name STR_2792 :Please enter your name for the scenario chart: -STR_2793 :{SMALLFONT}(Completed by {STRINGID}) +STR_2793 :(Completed by {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Completed by: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} with a company value of: {BLACK}{CURRENCY} STR_2795 :Sort STR_2796 :Sort the ride list into order using the information type displayed @@ -2305,7 +2303,7 @@ STR_3208 :Track Designs Manager STR_3209 :Back to Previous Step: STR_3210 :Forward to Next Step: STR_3211 :Kartstørrelse: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Can't decrease map size any further STR_3214 :Can't increase map size any further STR_3215 :Too close to edge of map @@ -2500,7 +2498,7 @@ STR_5134 :Adjust larger area of land rights STR_5135 :Buy land rights and construction rights STR_5136 :Land rights STR_5137 :Unlock operating limits -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Disable brakes failure STR_5141 :Disable all breakdowns @@ -2646,7 +2644,7 @@ STR_5297 :Open park STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Quick fire staff -STR_5301 :{MEDIUMFONT}{BLACK}Clear your loan +STR_5301 :Clear your loan STR_5302 :Clear loan STR_5303 :Allow building in pause mode STR_5304 :Title Sequence: @@ -2805,7 +2803,7 @@ STR_5481 :Themes STR_5482 :{WINDOW_COLOUR_2}Time since last inspection: {BLACK}1 minute STR_5483 :{BLACK}({COMMA16} weeks remaining) STR_5484 :{BLACK}({COMMA16} week remaining) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Show recent messages STR_5489 :Show only tracked guests @@ -3310,7 +3308,7 @@ STR_6030 :Pyntvelger. Klikk hvilken som helst pynt på kartet for å velge sa STR_6031 :Serverbeskrivelse: STR_6032 :Server-velkomstbeskjed: STR_6033 :Sti til RCT1 insallasjonsmappe: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Velg din RCT1-mappe STR_6036 :Visk ut STR_6037 :Vennligst velg en gyldig RCT1 mappe @@ -3457,7 +3455,7 @@ STR_6183 :Følg{MOVE_X}{87}Ingen sprite valgt STR_6184 :Følg sprite STR_6185 :Velg sprite STR_6186 :Ingen sprite valgt -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Oppkast STR_6189 :And STR_6190 :Du kan ikke velge sprite mens tittelsekvensen spilles av. @@ -3579,7 +3577,7 @@ STR_6327 :Gjennomsiktig bakgrunn for gigantiske skjermbilder STR_6328 :Gigantiske skjermbilder blir lagret med gjennomsiktig bakgrunn istedenfor vanlig svart. STR_6329 :{STRING}{STRINGID} STR_6330 :Laster ned [{STRING}] fra {STRING} ({COMMA16} / {COMMA16}) -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} ############# # Scenarios # diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index 9d4f32b084..0420fc3a25 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -237,8 +237,8 @@ STR_0831 :Uitzoomen STR_0832 :Beeld 90° met de klok mee draaien STR_0833 :Spel pauzeren STR_0834 :Schijf- en spelopties -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :Over ‘OpenRCT2’ STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, alle rechten voorbehouden @@ -796,14 +796,14 @@ STR_1410 :Verticale toren STR_1411 :{STRINGID} staat in de weg STR_1412 :{15}Datalog is niet beschikbaar voor dit type attractie STR_1413 :{15}Datalog zal beginnen wanneer de volgende {STRINGID} {STRINGID} verlaat -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Snelheid STR_1416 :{WINDOW_COLOUR_2}Hoogte STR_1417 :{WINDOW_COLOUR_2}Vert. G STR_1418 :{WINDOW_COLOUR_2}Zijw. G -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Loggegevens van {POP16}{STRINGID} STR_1423 :Wachtrijpad STR_1424 :Voetpad @@ -862,131 +862,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensiteitswaarde: {BLACK}Nog niet beschikbaar STR_1477 :{WINDOW_COLOUR_2}Intensiteitswaarde: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Misselijkheidswaarde: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Misselijkheidswaarde: {BLACK}Nog niet beschikbaar -STR_1480 :{SMALLFONT}“Ik kan {STRINGID} niet betalen” -STR_1481 :{SMALLFONT}“Ik heb al mijn geld uitgegeven” -STR_1482 :{SMALLFONT}“Ik ben misselijk” -STR_1483 :{SMALLFONT}“Ik ben erg misselijk” -STR_1484 :{SMALLFONT}“Ik wil in iets spannenders dan {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} vind ik te eng” -STR_1486 :{SMALLFONT}“Ik heb mijn {STRINGID} nog niet op” -STR_1487 :{SMALLFONT}“Als ik alleen al kijk naar {STRINGID} word ik al misselijk” -STR_1488 :{SMALLFONT}“Zoveel betaal ik niet voor {STRINGID}” -STR_1489 :{SMALLFONT}“Ik wil naar huis” -STR_1490 :{SMALLFONT}“{STRINGID} is erg goedkoop” -STR_1491 :{SMALLFONT}“Ik heb al {STRINGID}” -STR_1492 :{SMALLFONT}“Ik kan {STRINGID} niet betalen” -STR_1493 :{SMALLFONT}“Ik heb geen honger” -STR_1494 :{SMALLFONT}“Ik heb geen dorst” -STR_1495 :{SMALLFONT}“Help! Ik verdrink!” -STR_1496 :{SMALLFONT}“Ik ben verdwaald!” -STR_1497 :{SMALLFONT}“{STRINGID} was geweldig” -STR_1498 :{SMALLFONT}“Ik sta al eeuwen in de rij voor {STRINGID}” -STR_1499 :{SMALLFONT}“Ik ben moe” -STR_1500 :{SMALLFONT}“Ik heb honger” -STR_1501 :{SMALLFONT}“Ik heb dorst” -STR_1502 :{SMALLFONT}“Ik moet naar de wc” -STR_1503 :{SMALLFONT}“Ik kan {STRINGID} niet vinden” -STR_1504 :{SMALLFONT}“Zoveel betaal ik niet voor het gebruik van {STRINGID}” -STR_1505 :{SMALLFONT}“Ik ga niet in {STRINGID} als het regent” -STR_1506 :{SMALLFONT}“Het is hier een zwijnenstal” -STR_1507 :{SMALLFONT}“Ik kan de parkuitgang niet vinden” -STR_1508 :{SMALLFONT}“Ik wil uit {STRINGID}” -STR_1509 :{SMALLFONT}“Ik wil uit {STRINGID}” -STR_1510 :{SMALLFONT}“Ik ga niet in {STRINGID} - het is gevaarlijk” -STR_1511 :{SMALLFONT}“Dit pad is smerig” -STR_1512 :{SMALLFONT}“Het is hier te druk” -STR_1513 :{SMALLFONT}“Er is hier erg veel vandalisme” -STR_1514 :{SMALLFONT}“Mooi decor!” -STR_1515 :{SMALLFONT}“Dit park is erg schoon en netjes” -STR_1516 :{SMALLFONT}“Die springende fonteinen zijn erg leuk” -STR_1517 :{SMALLFONT}“Er wordt hier leuke muziek gedraaid” -STR_1518 :{SMALLFONT}“Deze ballon van {STRINGID} is erg goedkoop” -STR_1519 :{SMALLFONT}“Deze knuffel van {STRINGID} is erg goedkoop” -STR_1520 :{SMALLFONT}“Deze plattegrond van {STRINGID} is erg goedkoop” -STR_1521 :{SMALLFONT}“Deze actiefoto van {STRINGID} is erg goedkoop” -STR_1522 :{SMALLFONT}“Deze paraplu van {STRINGID} is erg goedkoop” -STR_1523 :{SMALLFONT}“Deze frisdrank van {STRINGID} is erg goedkoop” -STR_1524 :{SMALLFONT}“Deze hamburger van {STRINGID} is erg goedkoop” -STR_1525 :{SMALLFONT}“Deze frietjes van {STRINGID} zijn erg goedkoop” -STR_1526 :{SMALLFONT}“Dit ijsje van {STRINGID} is erg goedkoop” -STR_1527 :{SMALLFONT}“Deze suikerspin van {STRINGID} is erg goedkoop” +STR_1480 :“Ik kan {STRINGID} niet betalen” +STR_1481 :“Ik heb al mijn geld uitgegeven” +STR_1482 :“Ik ben misselijk” +STR_1483 :“Ik ben erg misselijk” +STR_1484 :“Ik wil in iets spannenders dan {STRINGID}” +STR_1485 :“{STRINGID} vind ik te eng” +STR_1486 :“Ik heb mijn {STRINGID} nog niet op” +STR_1487 :“Als ik alleen al kijk naar {STRINGID} word ik al misselijk” +STR_1488 :“Zoveel betaal ik niet voor {STRINGID}” +STR_1489 :“Ik wil naar huis” +STR_1490 :“{STRINGID} is erg goedkoop” +STR_1491 :“Ik heb al {STRINGID}” +STR_1492 :“Ik kan {STRINGID} niet betalen” +STR_1493 :“Ik heb geen honger” +STR_1494 :“Ik heb geen dorst” +STR_1495 :“Help! Ik verdrink!” +STR_1496 :“Ik ben verdwaald!” +STR_1497 :“{STRINGID} was geweldig” +STR_1498 :“Ik sta al eeuwen in de rij voor {STRINGID}” +STR_1499 :“Ik ben moe” +STR_1500 :“Ik heb honger” +STR_1501 :“Ik heb dorst” +STR_1502 :“Ik moet naar de wc” +STR_1503 :“Ik kan {STRINGID} niet vinden” +STR_1504 :“Zoveel betaal ik niet voor het gebruik van {STRINGID}” +STR_1505 :“Ik ga niet in {STRINGID} als het regent” +STR_1506 :“Het is hier een zwijnenstal” +STR_1507 :“Ik kan de parkuitgang niet vinden” +STR_1508 :“Ik wil uit {STRINGID}” +STR_1509 :“Ik wil uit {STRINGID}” +STR_1510 :“Ik ga niet in {STRINGID} - het is gevaarlijk” +STR_1511 :“Dit pad is smerig” +STR_1512 :“Het is hier te druk” +STR_1513 :“Er is hier erg veel vandalisme” +STR_1514 :“Mooi decor!” +STR_1515 :“Dit park is erg schoon en netjes” +STR_1516 :“Die springende fonteinen zijn erg leuk” +STR_1517 :“Er wordt hier leuke muziek gedraaid” +STR_1518 :“Deze ballon van {STRINGID} is erg goedkoop” +STR_1519 :“Deze knuffel van {STRINGID} is erg goedkoop” +STR_1520 :“Deze plattegrond van {STRINGID} is erg goedkoop” +STR_1521 :“Deze actiefoto van {STRINGID} is erg goedkoop” +STR_1522 :“Deze paraplu van {STRINGID} is erg goedkoop” +STR_1523 :“Deze frisdrank van {STRINGID} is erg goedkoop” +STR_1524 :“Deze hamburger van {STRINGID} is erg goedkoop” +STR_1525 :“Deze frietjes van {STRINGID} zijn erg goedkoop” +STR_1526 :“Dit ijsje van {STRINGID} is erg goedkoop” +STR_1527 :“Deze suikerspin van {STRINGID} is erg goedkoop” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Deze pizza van {STRINGID} is erg goedkoop” +STR_1531 :“Deze pizza van {STRINGID} is erg goedkoop” STR_1532 : -STR_1533 :{SMALLFONT}“Deze popcorn van {STRINGID} is erg goedkoop” -STR_1534 :{SMALLFONT}“Deze hotdog van {STRINGID} is erg goedkoop” -STR_1535 :{SMALLFONT}“Deze tentakel van {STRINGID} is erg goedkoop” -STR_1536 :{SMALLFONT}“Deze hoed van {STRINGID} is erg goedkoop” -STR_1537 :{SMALLFONT}“Deze gevulde appel van {STRINGID} is erg goedkoop” -STR_1538 :{SMALLFONT}“Dit T-shirt van {STRINGID} is erg goedkoop” -STR_1539 :{SMALLFONT}“Deze donut van {STRINGID} is erg goedkoop” -STR_1540 :{SMALLFONT}“Deze koffie van {STRINGID} is erg goedkoop” +STR_1533 :“Deze popcorn van {STRINGID} is erg goedkoop” +STR_1534 :“Deze hotdog van {STRINGID} is erg goedkoop” +STR_1535 :“Deze tentakel van {STRINGID} is erg goedkoop” +STR_1536 :“Deze hoed van {STRINGID} is erg goedkoop” +STR_1537 :“Deze gevulde appel van {STRINGID} is erg goedkoop” +STR_1538 :“Dit T-shirt van {STRINGID} is erg goedkoop” +STR_1539 :“Deze donut van {STRINGID} is erg goedkoop” +STR_1540 :“Deze koffie van {STRINGID} is erg goedkoop” STR_1541 : -STR_1542 :{SMALLFONT}“Deze gegrilde kip van {STRINGID} is erg goedkoop” -STR_1543 :{SMALLFONT}“Deze limonade van {STRINGID} is erg goedkoop” +STR_1542 :“Deze gegrilde kip van {STRINGID} is erg goedkoop” +STR_1543 :“Deze limonade van {STRINGID} is erg goedkoop” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Wauw!” -STR_1551 :{SMALLFONT}“Ik heb het vreemde gevoel dat er iemand naar me kijkt” -STR_1552 :{SMALLFONT}“Zoveel betaal ik niet voor een ballon van {STRINGID}” -STR_1553 :{SMALLFONT}“Zoveel betaal ik niet voor een knuffel van {STRINGID}” -STR_1554 :{SMALLFONT}“Zoveel betaal ik niet voor een plattegrond van {STRINGID}” -STR_1555 :{SMALLFONT}“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” -STR_1556 :{SMALLFONT}“Zoveel betaal ik niet voor een paraplu van {STRINGID}” -STR_1557 :{SMALLFONT}“Zoveel betaal ik niet voor frisdrank van {STRINGID}” -STR_1558 :{SMALLFONT}“Zoveel betaal ik niet voor een hamburger van {STRINGID}” -STR_1559 :{SMALLFONT}“Zoveel betaal ik niet voor frietjes van {STRINGID}” -STR_1560 :{SMALLFONT}“Zoveel betaal ik niet voor een ijsje van {STRINGID}” -STR_1561 :{SMALLFONT}“Zoveel betaal ik niet voor een suikerspin van {STRINGID}” +STR_1550 :“Wauw!” +STR_1551 :“Ik heb het vreemde gevoel dat er iemand naar me kijkt” +STR_1552 :“Zoveel betaal ik niet voor een ballon van {STRINGID}” +STR_1553 :“Zoveel betaal ik niet voor een knuffel van {STRINGID}” +STR_1554 :“Zoveel betaal ik niet voor een plattegrond van {STRINGID}” +STR_1555 :“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” +STR_1556 :“Zoveel betaal ik niet voor een paraplu van {STRINGID}” +STR_1557 :“Zoveel betaal ik niet voor frisdrank van {STRINGID}” +STR_1558 :“Zoveel betaal ik niet voor een hamburger van {STRINGID}” +STR_1559 :“Zoveel betaal ik niet voor frietjes van {STRINGID}” +STR_1560 :“Zoveel betaal ik niet voor een ijsje van {STRINGID}” +STR_1561 :“Zoveel betaal ik niet voor een suikerspin van {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Zoveel betaal ik niet voor pizza van {STRINGID}” +STR_1565 :“Zoveel betaal ik niet voor pizza van {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Zoveel betaal ik niet voor popcorn van {STRINGID}” -STR_1568 :{SMALLFONT}“Zoveel betaal ik niet voor een hotdog van {STRINGID}” -STR_1569 :{SMALLFONT}“Zoveel betaal ik niet voor een tentakel van {STRINGID}” -STR_1570 :{SMALLFONT}“Zoveel betaal ik niet voor een hoed van {STRINGID}” -STR_1571 :{SMALLFONT}“Zoveel betaal ik niet voor een gevulde appel van {STRINGID}” -STR_1572 :{SMALLFONT}“Zoveel betaal ik niet voor een T-shirt van {STRINGID}” -STR_1573 :{SMALLFONT}“Zoveel betaal ik niet voor een donut van {STRINGID}” -STR_1574 :{SMALLFONT}“Zoveel betaal ik niet voor koffie van {STRINGID}” +STR_1567 :“Zoveel betaal ik niet voor popcorn van {STRINGID}” +STR_1568 :“Zoveel betaal ik niet voor een hotdog van {STRINGID}” +STR_1569 :“Zoveel betaal ik niet voor een tentakel van {STRINGID}” +STR_1570 :“Zoveel betaal ik niet voor een hoed van {STRINGID}” +STR_1571 :“Zoveel betaal ik niet voor een gevulde appel van {STRINGID}” +STR_1572 :“Zoveel betaal ik niet voor een T-shirt van {STRINGID}” +STR_1573 :“Zoveel betaal ik niet voor een donut van {STRINGID}” +STR_1574 :“Zoveel betaal ik niet voor koffie van {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Zoveel betaal ik niet voor gegrilde kip van {STRINGID}” -STR_1577 :{SMALLFONT}“Zoveel betaal ik niet voor limonade van {STRINGID}” +STR_1576 :“Zoveel betaal ik niet voor gegrilde kip van {STRINGID}” +STR_1577 :“Zoveel betaal ik niet voor limonade van {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Deze actiefoto van {STRINGID} is erg goedkoop” -STR_1585 :{SMALLFONT}“Deze actiefoto van {STRINGID} is erg goedkoop” -STR_1586 :{SMALLFONT}“Deze actiefoto van {STRINGID} is erg goedkoop” -STR_1587 :{SMALLFONT}“Deze krakeling van {STRINGID} is erg goedkoop” -STR_1588 :{SMALLFONT}“Deze warme chocolademelk van {STRINGID} is erg goedkoop” -STR_1589 :{SMALLFONT}“Deze ijsthee van {STRINGID} is erg goedkoop” -STR_1590 :{SMALLFONT}“Deze oliebollen van {STRINGID} zijn erg goedkoop” -STR_1591 :{SMALLFONT}“Deze zonnebril van {STRINGID} is erg goedkoop” -STR_1592 :{SMALLFONT}“Deze rundernoedels van {STRINGID} zijn erg goedkoop” -STR_1593 :{SMALLFONT}“Deze rijstnoedels van {STRINGID} zijn erg goedkoop” -STR_1594 :{SMALLFONT}“Deze wantansoep van {STRINGID} is erg goedkoop” -STR_1595 :{SMALLFONT}“Deze soep met balletjes van {STRINGID} is erg goedkoop” -STR_1596 :{SMALLFONT}“Dit sap van {STRINGID} is erg goedkoop” -STR_1597 :{SMALLFONT}“Deze sojamelk van {STRINGID} is erg goedkoop” -STR_1598 :{SMALLFONT}“Deze sujeonggwa van {STRINGID} is erg goedkoop” -STR_1599 :{SMALLFONT}“Dit broodje van {STRINGID} is erg goedkoop” -STR_1600 :{SMALLFONT}“Dit koekje van {STRINGID} is erg goedkoop” +STR_1584 :“Deze actiefoto van {STRINGID} is erg goedkoop” +STR_1585 :“Deze actiefoto van {STRINGID} is erg goedkoop” +STR_1586 :“Deze actiefoto van {STRINGID} is erg goedkoop” +STR_1587 :“Deze krakeling van {STRINGID} is erg goedkoop” +STR_1588 :“Deze warme chocolademelk van {STRINGID} is erg goedkoop” +STR_1589 :“Deze ijsthee van {STRINGID} is erg goedkoop” +STR_1590 :“Deze oliebollen van {STRINGID} zijn erg goedkoop” +STR_1591 :“Deze zonnebril van {STRINGID} is erg goedkoop” +STR_1592 :“Deze rundernoedels van {STRINGID} zijn erg goedkoop” +STR_1593 :“Deze rijstnoedels van {STRINGID} zijn erg goedkoop” +STR_1594 :“Deze wantansoep van {STRINGID} is erg goedkoop” +STR_1595 :“Deze soep met balletjes van {STRINGID} is erg goedkoop” +STR_1596 :“Dit sap van {STRINGID} is erg goedkoop” +STR_1597 :“Deze sojamelk van {STRINGID} is erg goedkoop” +STR_1598 :“Deze sujeonggwa van {STRINGID} is erg goedkoop” +STR_1599 :“Dit broodje van {STRINGID} is erg goedkoop” +STR_1600 :“Dit koekje van {STRINGID} is erg goedkoop” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Deze gebraden worst van {STRINGID} is erg goedkoop” +STR_1604 :“Deze gebraden worst van {STRINGID} is erg goedkoop” STR_1605 : STR_1606 : STR_1607 : @@ -998,27 +998,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” -STR_1617 :{SMALLFONT}“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” -STR_1618 :{SMALLFONT}“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” -STR_1619 :{SMALLFONT}“Zoveel betaal ik niet voor een krakeling van {STRINGID}” -STR_1620 :{SMALLFONT}“Zoveel betaal ik niet voor warme chocolademelk van {STRINGID}” -STR_1621 :{SMALLFONT}“Zoveel betaal ik niet voor ijsthee van {STRINGID}” -STR_1622 :{SMALLFONT}“Zoveel betaal ik niet voor een oliebol van {STRINGID}” -STR_1623 :{SMALLFONT}“Zoveel betaal ik niet voor een zonnebril van {STRINGID}” -STR_1624 :{SMALLFONT}“Zoveel betaal ik niet voor rundernoedels van {STRINGID}” -STR_1625 :{SMALLFONT}“Zoveel betaal ik niet voor rijstnoedels van {STRINGID}” -STR_1626 :{SMALLFONT}“Zoveel betaal ik niet voor wantansoep van {STRINGID}” -STR_1627 :{SMALLFONT}“Zoveel betaal ik niet voor soep met balletjes van {STRINGID}” -STR_1628 :{SMALLFONT}“Zoveel betaal ik niet voor sap van {STRINGID}” -STR_1629 :{SMALLFONT}“Zoveel betaal ik niet voor sojamelk van {STRINGID}” -STR_1630 :{SMALLFONT}“Zoveel betaal ik niet voor sujeonggwa van {STRINGID}” -STR_1631 :{SMALLFONT}“Zoveel betaal ik niet voor een broodje van {STRINGID}” -STR_1632 :{SMALLFONT}“Zoveel betaal ik niet voor een koekje van {STRINGID}” +STR_1616 :“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” +STR_1617 :“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” +STR_1618 :“Zoveel betaal ik niet voor een actiefoto van {STRINGID}” +STR_1619 :“Zoveel betaal ik niet voor een krakeling van {STRINGID}” +STR_1620 :“Zoveel betaal ik niet voor warme chocolademelk van {STRINGID}” +STR_1621 :“Zoveel betaal ik niet voor ijsthee van {STRINGID}” +STR_1622 :“Zoveel betaal ik niet voor een oliebol van {STRINGID}” +STR_1623 :“Zoveel betaal ik niet voor een zonnebril van {STRINGID}” +STR_1624 :“Zoveel betaal ik niet voor rundernoedels van {STRINGID}” +STR_1625 :“Zoveel betaal ik niet voor rijstnoedels van {STRINGID}” +STR_1626 :“Zoveel betaal ik niet voor wantansoep van {STRINGID}” +STR_1627 :“Zoveel betaal ik niet voor soep met balletjes van {STRINGID}” +STR_1628 :“Zoveel betaal ik niet voor sap van {STRINGID}” +STR_1629 :“Zoveel betaal ik niet voor sojamelk van {STRINGID}” +STR_1630 :“Zoveel betaal ik niet voor sujeonggwa van {STRINGID}” +STR_1631 :“Zoveel betaal ik niet voor een broodje van {STRINGID}” +STR_1632 :“Zoveel betaal ik niet voor een koekje van {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Zoveel betaal ik niet voor een gebraden worst van {STRINGID}” +STR_1636 :“Zoveel betaal ik niet voor een gebraden worst van {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1030,11 +1030,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Help! Zet me neer!” -STR_1649 :{SMALLFONT}“Mijn geld is bijna op!” -STR_1650 :{SMALLFONT}“Wauw! Hier wordt een nieuwe attractie gebouwd!” +STR_1648 :“Help! Zet me neer!” +STR_1649 :“Mijn geld is bijna op!” +STR_1650 :“Wauw! Hier wordt een nieuwe attractie gebouwd!” # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}“… en nu zijn we in {STRINGID}!” +STR_1653 :“… en nu zijn we in {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Recente gedachten: STR_1655 :Voetpaden op land aanleggen STR_1656 :Voetpad over bruggen of door tunnels aanleggen @@ -1064,12 +1064,12 @@ STR_1679 :Spiraal omhoog (links) STR_1680 :Spiraal omhoog (rechts) STR_1681 :Spiraal omlaag (links) STR_1682 :Spiraal omlaag (rechts) -STR_1683 :Oppervlakte 2 x 2 -STR_1684 :Oppervlakte 4 x 4 -STR_1685 :Oppervlakte 2 x 4 -STR_1686 :Oppervlakte 5 x 1 +STR_1683 :Oppervlakte 2 × 2 +STR_1684 :Oppervlakte 4 × 4 +STR_1685 :Oppervlakte 2 × 4 +STR_1686 :Oppervlakte 5 × 1 STR_1687 :Waterspetter -STR_1688 :Oppervlakte 4 x 1 +STR_1688 :Oppervlakte 4 × 1 STR_1689 :Blokremmen STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Kosten: {BLACK}{CURRENCY} @@ -1186,7 +1186,7 @@ STR_1808 :{WINDOW_COLOUR_2}Laatste defect: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Huidig defect: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Heeft bij zich: STR_1811 :Kan dit hier niet bouwen… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Overige objecten STR_1814 :Acties STR_1815 :Gedachten @@ -1194,8 +1194,8 @@ STR_1816 :Selecteer het type informatie dat je in de bezoekerslijst wilt zien STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle bezoekers STR_1819 :{WINDOW_COLOUR_2}Alle bezoekers (samengevat) -STR_1820 :{WINDOW_COLOUR_2}Bezoekers met de volgende status: {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Bezoekers met de volgende gedachte: {STRINGID} +STR_1820 :{WINDOW_COLOUR_2}Bezoekers met status: {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Bezoekers met gedachte: {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Bezoekers met gedachten over {POP16}{STRINGID} STR_1823 :Toon de gedachten van bezoekers over deze attractie STR_1824 :Toon de bezoekers in deze attractie @@ -1298,7 +1298,6 @@ STR_1921 :Een nieuw spel starten STR_1922 :Verder gaan met een opgeslagen spel STR_1924 :Afsluiten STR_1925 :Kan hier geen persoon plaatsen… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} is kapot gegaan STR_1928 :{RED}{STRINGID} is neergestort! STR_1929 :{RED}{STRINGID} is nog steeds niet gerepareerd{NEWLINE}Controleer waar je monteurs zijn en overweeg ze beter te organiseren @@ -1579,7 +1578,7 @@ STR_2218 :{RED}{STRINGID} van {STRINGID} is nog niet teruggekeerd naar de ops STR_2219 :{RED}{COMMA16} personen zijn om het leven gekomen bij een ongeluk in {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Parkwaardering: {BLACK}{COMMA16} STR_2221 :Parkwaardering: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Bezoekers in park: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Contant: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Contant: {RED}{CURRENCY2DP} @@ -1592,7 +1591,7 @@ STR_2231 :Vasthoudrem voor afdaling STR_2232 :Kabelliftheuvel STR_2233 :Parkinformatie STR_2234 :Recente berichten -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :januari STR_2237 :februari STR_2238 :maart @@ -1672,7 +1671,7 @@ STR_2312 :{WINDOW_COLOUR_2}Intensiteitswaarde: {BLACK}{COMMA2DP32} (ongeveer) STR_2313 :{WINDOW_COLOUR_2}Misselijkheidswaarde: {BLACK}{COMMA2DP32} (ongeveer) STR_2314 :{WINDOW_COLOUR_2}Lengte: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Kosten: {BLACK}ongeveer {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Vereiste ruimte: {BLACK}{COMMA16} x {COMMA16} blokken +STR_2316 :{WINDOW_COLOUR_2}Vereiste ruimte: {BLACK}{COMMA16} × {COMMA16} blokken STR_2321 :{WINDOW_COLOUR_2}Aantal attracties: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Werknemers: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Parkgrootte: {BLACK}{COMMA32}m² @@ -1796,7 +1795,7 @@ STR_2450 :{YELLOW}Je advertentiecampagne voor het park is afgelopen STR_2451 :{YELLOW}Je advertentiecampagne voor {STRINGID} is afgelopen STR_2452 :{WINDOW_COLOUR_2}Saldo (zonder lening): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Saldo (zonder lening): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Laat financiële posten zien STR_2458 :Toon grafiek van saldoverloop (zonder lening) STR_2459 :Toon grafiek van parkwaardeverloop @@ -1906,7 +1905,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Alle onderzoeken zijn voltooid -STR_2681 :{MEDIUMFONT}{BLACK}Verhoog je saldo met {CURRENCY} STR_2684 :Er arriveert een grote groep bezoekers STR_2685 :Parameters voor Simplex noise STR_2686 :Minimum: @@ -1991,7 +1989,7 @@ STR_2789 :{WINDOW_COLOUR_2}Je hebt je doelstelling niet bereikt! STR_2790 :Naam invoeren voor scenario-overzicht STR_2791 :Naam invoeren STR_2792 :Voer je naam in voor het scenario-overzicht: -STR_2793 :{SMALLFONT}(Voltooid door {STRINGID}) +STR_2793 :(Voltooid door {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Voltooid door: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} met een bedrijfswaarde van: {BLACK}{CURRENCY} STR_2795 :Sorteren STR_2796 :Sorteer de lijst met attracties op basis van het aangegeven informatietype @@ -2305,7 +2303,7 @@ STR_3208 :Baanontwerpbeheer STR_3209 :Terug naar de vorige stap: STR_3210 :Verder naar de volgende stap: STR_3211 :Kaartgrootte: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Kan de kaart niet verder verkleinen STR_3214 :Kan de kaart niet verder vergroten STR_3215 :Te dicht bij de rand van de kaart @@ -2498,7 +2496,7 @@ STR_5134 :Een groter gebied landrechten aanpassen STR_5135 :Land en bouwrechten kopen STR_5136 :Landrechten STR_5137 :Bedrijfslimieten van attracties opheffen -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Defecte remmen onmogelijk maken STR_5141 :Attractiedefecten uitschakelen @@ -2646,7 +2644,7 @@ STR_5297 :Park openen STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Snel ontslaan -STR_5301 :{MEDIUMFONT}{BLACK}Wist je lening +STR_5301 :Wist je lening STR_5302 :Lening afbetalen STR_5303 :Bouwen in pauzemodus toestaan STR_5304 :Titelpresentatie: @@ -2805,7 +2803,7 @@ STR_5481 :Thema’s STR_5482 :{WINDOW_COLOUR_2}Tijd sinds laatste inspectie: {BLACK}1 minuut STR_5483 :{BLACK}({COMMA16} weken resterend) STR_5484 :{BLACK}({COMMA16} week resterend) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Recente berichten tonen STR_5489 :Enkel bezoekers die gevolgd worden weergeven @@ -3308,7 +3306,7 @@ STR_6030 :Decorselector. Klik op een al geplaatst decorstuk om het te selecte STR_6031 :Serverbeschrijving: STR_6032 :Welkomstboodschap: STR_6033 :Locatie RCT1-bestanden: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Selecteer de map waar je RCT1-bestanden staan STR_6036 :Wissen STR_6037 :De geselecteerde map bevat geen geldige RollerCoaster Tycoon 1-installatie. @@ -3453,7 +3451,7 @@ STR_6183 :Volg{MOVE_X}{87}Geen sprite geselecteerd STR_6184 :Sprite volgen STR_6185 :Sprite selecteren STR_6186 :Geen sprite geselecteerd -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Braaksel STR_6189 :Eend STR_6190 :Je kunt geen sprite selecteren als het spel nog op het titelscherm staat. Laad eerst het opgeslagen spel waarvan je een sprite wilt selecteren. @@ -3603,7 +3601,7 @@ STR_6356 :Maakt eenden aan, mits er water op de kaart is. STR_6357 :Verwijdert alle eenden van de kaart. STR_6358 :Pagina {UINT16} STR_6359 :{POP16}{POP16}Pagina {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Belichtingseffecten op attracties (experimenteel) STR_6362 :Als dit is ingeschakeld zullen de voertuigen van attracties die een baan hebben ’s nachts verlicht worden. STR_6363 :Tekst is naar het klembord gekopieerd. @@ -3678,6 +3676,24 @@ STR_6431 :R-muiskn. STR_6432 :Muiskn. {INT32} STR_6433 :Verwijderen STR_6434 :Verwijder alle gekoppelde toetsen en knoppen voor deze sneltoets. +STR_6435 :{WINDOW_COLOUR_2}Vandalen gestopt: {BLACK}{COMMA16} +STR_6436 :Onzichtbaarheid in/uitschakelen +STR_6437 :Onzichtbaar +STR_6438 :O +STR_6439 :Vakinspecteur: Onzichtbaarheid in/uitschakelen +STR_6440 :Doorzichtig water +STR_6441 :Er moet minstens één reguliere bestrating zijn geselecteerd. +STR_6442 :Er moet minstens één wachtrijtype zijn geselecteerd. +STR_6443 :Er moet minstens één type padondersteuningen zijn geselecteerd. +STR_6444 :Bestratingen +STR_6445 :Padondersteuningen +STR_6446 :{WINDOW_COLOUR_2}Naam bestrating: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Naam ondersteuningen: {BLACK}{STRINGID} +STR_6448 :Niet-ondersteunde objectindeling +STR_6449 :{WINDOW_COLOUR_2}Tracks: +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Verkoopt: {BLACK}{STRING} ############# # Scenarios # diff --git a/data/language/pl-PL.txt b/data/language/pl-PL.txt index d4f55a90f9..f23c53eacb 100644 --- a/data/language/pl-PL.txt +++ b/data/language/pl-PL.txt @@ -240,9 +240,9 @@ STR_0831 :Oddal widok STR_0832 :Obróć widok o 90° STR_0833 :Pauza STR_0834 :Menu zapisu i opcji -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} -STR_0847 :O 'OpenRCT2' +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} +STR_0847 :O „OpenRCT2” STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, wszystkie prawa zastrzeżone STR_0851 :{WINDOW_COLOUR_2}Projekt i implementacja: Chris Sawyer STR_0852 :{WINDOW_COLOUR_2}Grafika: Simon Foster @@ -276,7 +276,7 @@ STR_0887 :Wyjdź z edytora scenariuszy STR_0888 :Wyjdź z Projektanta Kolejek STR_0889 :Wyjdź z Menadżera Projektów Tras STR_0891 :Zrzut ekranu -STR_0892 :Zrzut ekranu zapisany jako '{STRINGID}' +STR_0892 :Zrzut ekranu zapisany jako „{STRINGID}” STR_0893 :Zrzut ekranu nieudany! STR_0894 :Obszar danych krajobrazu jest pełny ! STR_0895 :Nie można wybudować częściowo nad i pod ziemią @@ -313,8 +313,8 @@ STR_0925 :Spirala w górę STR_0926 :Nie można tego usunąć… STR_0927 :Nie można tego tutaj zbudować… STR_0928 :Łańcuch do wciągania pojazdów na zbocza -STR_0929 :Zakręt typu 'S' (w lewo) -STR_0930 :Zakręt typu 'S' (w prawo) +STR_0929 :Zakręt typu „S” (w lewo) +STR_0930 :Zakręt typu „S” (w prawo) STR_0931 :Pionowa pętla (w lewo) STR_0932 :Pionowa pętla (w prawo) STR_0933 :Najpierw podnieś/obniż teren @@ -600,7 +600,7 @@ STR_1212 :{WINDOW_COLOUR_2}Maks. czas oczekiwania: STR_1213 :Wybierz minimalny czas oczekiwania na stacji przed wyruszeniem STR_1214 :Wybierz maksymalny czas oczekiwania na stacji przed wyruszeniem STR_1215 :{WINDOW_COLOUR_2}Synchronizuj z sąsiadującymi stacjami -STR_1216 :Wybierz, czy kolejki mają synchronizować start z innymi stacjami (dla 'wyścigów') +STR_1216 :Wybierz, czy kolejki mają synchronizować start z innymi stacjami (dla „wyścigów”) STR_1217 :{COMMA16} sekund STR_1218 :{BLACK}+ STR_1219 :{BLACK}- @@ -742,7 +742,7 @@ STR_1354 :{WINDOW_COLOUR_2}Wysokość najwyższego spadu: {BLACK}{LENGTH} STR_1355 :{WINDOW_COLOUR_2}Spadki: {BLACK}{COMMA16} STR_1356 :{WINDOW_COLOUR_2}Inwersja: {BLACK}{COMMA16} STR_1357 :{WINDOW_COLOUR_2}Dołki: {BLACK}{COMMA16} -STR_1358 :{WINDOW_COLOUR_2}Całkowity czas 'w powietrzu': {BLACK}{COMMA2DP32}sek. +STR_1358 :{WINDOW_COLOUR_2}Całkowity czas „w powietrzu”: {BLACK}{COMMA2DP32}sek. STR_1359 :{WINDOW_COLOUR_2}Czas w kolejce: {BLACK}{COMMA16} minut STR_1360 :{WINDOW_COLOUR_2}Czas w kolejce: {BLACK}{COMMA16} minut STR_1361 :Nie można zmienić prędkości… @@ -798,14 +798,14 @@ STR_1410 :Wieża pionowa STR_1411 :{STRINGID} blokuje STR_1412 :{WINDOW_COLOUR_3}Zbieranie danych nie jest dostępne dla tego typu atrakcji STR_1413 :{WINDOW_COLOUR_3}Zbieranie danych rozpocznie się gdy następne {STRINGID} opuści {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Prędkość STR_1416 :{WINDOW_COLOUR_2}Wysokość STR_1417 :{WINDOW_COLOUR_2}Pionowe G STR_1418 :{WINDOW_COLOUR_2}Boczne G -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Dane zebrane z {POP16}{STRINGID} STR_1423 :Kolejka do atrakcji STR_1424 :Chodnik @@ -844,8 +844,8 @@ STR_1456 :{WINDOW_COLOUR_2}Wydał: {BLACK}{CURRENCY2DP} STR_1457 :{WINDOW_COLOUR_2}Pieniędzy w kieszeni: {BLACK}{CURRENCY2DP} STR_1458 :{WINDOW_COLOUR_2}Czas w parku: {BLACK}{REALTIME} STR_1459 :Styl trasy -STR_1460 :Otwarta trasa typu "U" -STR_1461 :Zamknięta trasa typu "O" +STR_1460 :Otwarta trasa typu „U” +STR_1461 :Zamknięta trasa typu „O” STR_1462 :Too steep for lift hill STR_1463 :Goście STR_1464 :Spirala w górę (mała) @@ -864,131 +864,131 @@ STR_1476 :{WINDOW_COLOUR_2}Ocena intensywności: {BLACK}Jeszcze nie dostępna STR_1477 :{WINDOW_COLOUR_2}Ocena intensywności: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Ocena mdłości: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Ocena mdłości: {BLACK}Jeszcze nie dostępna -STR_1480 :{SMALLFONT}“Nie mogę sobie pozwolić na {STRINGID}” -STR_1481 :{SMALLFONT}“Wydałem wszystkie swoje pieniądze” -STR_1482 :{SMALLFONT}“Niedobrze mi” -STR_1483 :{SMALLFONT}“Zaraz zwymiotuję” -STR_1484 :{SMALLFONT}“Chcę pójść na coś bardziej intensywnego niż {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} wygląda zbyt intensywne dla mnie” -STR_1486 :{SMALLFONT}“Nie skończyłem {STRINGID} jeszcze” -STR_1487 :{SMALLFONT}“Od samego patrzenia na {STRINGID} robi mi się niedobrze” -STR_1488 :{SMALLFONT}“Nie zapłacę tyle za {STRINGID}” -STR_1489 :{SMALLFONT}“Chcę już do domu” -STR_1490 :{SMALLFONT}“{STRINGID} ma naprawdę dobrą cenę” -STR_1491 :{SMALLFONT}“Mam już {STRINGID}” -STR_1492 :{SMALLFONT}“Nie mogę sobie pozwolić na {STRINGID}” -STR_1493 :{SMALLFONT}“Nie jestem głodny” -STR_1494 :{SMALLFONT}“Nie jestem spragniony” -STR_1495 :{SMALLFONT}“Pomocy! Tonę!” -STR_1496 :{SMALLFONT}“Zgubiłem się!” -STR_1497 :{SMALLFONT}“Na atrakcji {STRINGID} było świetnie” -STR_1498 :{SMALLFONT}“Czekam już wieki w kolejce na {STRINGID}” -STR_1499 :{SMALLFONT}“Jestem zmęczony” -STR_1500 :{SMALLFONT}“Jestem głodny” -STR_1501 :{SMALLFONT}“Jestem spragniony” -STR_1502 :{SMALLFONT}“Muszę do toalety” -STR_1503 :{SMALLFONT}“Nie mogę znaleźć {STRINGID}” -STR_1504 :{SMALLFONT}“Nie zapłacę tyle za {STRINGID}” -STR_1505 :{SMALLFONT}“Nie pójdę na {STRINGID} dopóki pada” -STR_1506 :{SMALLFONT}“Ścieżki tutaj są okropne” -STR_1507 :{SMALLFONT}“Nie mogę znaleźć wyjścia z parku” -STR_1508 :{SMALLFONT}“Muszę odpocząć od {STRINGID}” -STR_1509 :{SMALLFONT}“Chcę już wyjść z {STRINGID}” -STR_1510 :{SMALLFONT}“Nie pójdę na {STRINGID} - nie wygląda za bezpiecznie” -STR_1511 :{SMALLFONT}“Ta ścieżka jest obrzydliwa” -STR_1512 :{SMALLFONT}“Tutaj jest zdecydowanie za tłoczno” -STR_1513 :{SMALLFONT}“Wandalizm stanowi tutaj duży problem” -STR_1514 :{SMALLFONT}“Świetna sceneria!” -STR_1515 :{SMALLFONT}“Ten park jest naprawdę czysty” -STR_1516 :{SMALLFONT}“Ta skaczą fontanna jest świetna” -STR_1517 :{SMALLFONT}“Leci tutaj miła muzyka” -STR_1518 :{SMALLFONT}“Ten balon z {STRINGID} był naprawdę opłacalny” -STR_1519 :{SMALLFONT}“Ta przytulanka z {STRINGID} była naprawdę opłacalna” -STR_1520 :{SMALLFONT}“Ta mapa parku z {STRINGID} była naprawdę opłacalna” -STR_1521 :{SMALLFONT}“To zdjęcie z przejazdu na {STRINGID} było naprawdę opłacalne” -STR_1522 :{SMALLFONT}“Ta parasolka z {STRINGID} była naprawdę opłacalna” -STR_1523 :{SMALLFONT}“Ten napój z {STRINGID} był naprawdę opłacalny” -STR_1524 :{SMALLFONT}“Ten burger z {STRINGID} był naprawdę opłacalny” -STR_1525 :{SMALLFONT}“Te frytki z {STRINGID} były naprawdę opłacalne” -STR_1526 :{SMALLFONT}“Te lody z {STRINGID} były naprawdę opłacalne” -STR_1527 :{SMALLFONT}“Ta wata cukrowa {STRINGID} była naprawdę opłacalna” +STR_1480 :“Nie mogę sobie pozwolić na {STRINGID}” +STR_1481 :“Wydałem wszystkie swoje pieniądze” +STR_1482 :“Niedobrze mi” +STR_1483 :“Zaraz zwymiotuję” +STR_1484 :“Chcę pójść na coś bardziej intensywnego niż {STRINGID}” +STR_1485 :“{STRINGID} wygląda zbyt intensywne dla mnie” +STR_1486 :“Nie skończyłem {STRINGID} jeszcze” +STR_1487 :“Od samego patrzenia na {STRINGID} robi mi się niedobrze” +STR_1488 :“Nie zapłacę tyle za {STRINGID}” +STR_1489 :“Chcę już do domu” +STR_1490 :“{STRINGID} ma naprawdę dobrą cenę” +STR_1491 :“Mam już {STRINGID}” +STR_1492 :“Nie mogę sobie pozwolić na {STRINGID}” +STR_1493 :“Nie jestem głodny” +STR_1494 :“Nie jestem spragniony” +STR_1495 :“Pomocy! Tonę!” +STR_1496 :“Zgubiłem się!” +STR_1497 :“Na atrakcji {STRINGID} było świetnie” +STR_1498 :“Czekam już wieki w kolejce na {STRINGID}” +STR_1499 :“Jestem zmęczony” +STR_1500 :“Jestem głodny” +STR_1501 :“Jestem spragniony” +STR_1502 :“Muszę do toalety” +STR_1503 :“Nie mogę znaleźć {STRINGID}” +STR_1504 :“Nie zapłacę tyle za {STRINGID}” +STR_1505 :“Nie pójdę na {STRINGID} dopóki pada” +STR_1506 :“Ścieżki tutaj są okropne” +STR_1507 :“Nie mogę znaleźć wyjścia z parku” +STR_1508 :“Muszę odpocząć od {STRINGID}” +STR_1509 :“Chcę już wyjść z {STRINGID}” +STR_1510 :“Nie pójdę na {STRINGID} - nie wygląda za bezpiecznie” +STR_1511 :“Ta ścieżka jest obrzydliwa” +STR_1512 :“Tutaj jest zdecydowanie za tłoczno” +STR_1513 :“Wandalizm stanowi tutaj duży problem” +STR_1514 :“Świetna sceneria!” +STR_1515 :“Ten park jest naprawdę czysty” +STR_1516 :“Ta skaczą fontanna jest świetna” +STR_1517 :“Leci tutaj miła muzyka” +STR_1518 :“Ten balon z {STRINGID} był naprawdę opłacalny” +STR_1519 :“Ta przytulanka z {STRINGID} była naprawdę opłacalna” +STR_1520 :“Ta mapa parku z {STRINGID} była naprawdę opłacalna” +STR_1521 :“To zdjęcie z przejazdu na {STRINGID} było naprawdę opłacalne” +STR_1522 :“Ta parasolka z {STRINGID} była naprawdę opłacalna” +STR_1523 :“Ten napój z {STRINGID} był naprawdę opłacalny” +STR_1524 :“Ten burger z {STRINGID} był naprawdę opłacalny” +STR_1525 :“Te frytki z {STRINGID} były naprawdę opłacalne” +STR_1526 :“Te lody z {STRINGID} były naprawdę opłacalne” +STR_1527 :“Ta wata cukrowa {STRINGID} była naprawdę opłacalna” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Ta pizza z {STRINGID} była naprawdę opłacalna” +STR_1531 :“Ta pizza z {STRINGID} była naprawdę opłacalna” STR_1532 : -STR_1533 :{SMALLFONT}“Ten popcorn z {STRINGID} był naprawdę opłacalny” -STR_1534 :{SMALLFONT}“Ten hotdog z {STRINGID} był naprawdę opłacalny” -STR_1535 :{SMALLFONT}“Ta ośmiorniczka z {STRINGID} była naprawdę opłacalna” -STR_1536 :{SMALLFONT}“Ten kapelusz {STRINGID} był naprawdę opłacalny” -STR_1537 :{SMALLFONT}“To kandyzowane jabłko z {STRINGID} było naprawdę opłacalne” -STR_1538 :{SMALLFONT}“Ten t-shirt z {STRINGID} był naprawdę opłacalny” -STR_1539 :{SMALLFONT}“Ten pączek z {STRINGID} był naprawdę opłacalny” -STR_1540 :{SMALLFONT}“Ta kawa z {STRINGID} była naprawdę opłacalna” +STR_1533 :“Ten popcorn z {STRINGID} był naprawdę opłacalny” +STR_1534 :“Ten hotdog z {STRINGID} był naprawdę opłacalny” +STR_1535 :“Ta ośmiorniczka z {STRINGID} była naprawdę opłacalna” +STR_1536 :“Ten kapelusz {STRINGID} był naprawdę opłacalny” +STR_1537 :“To kandyzowane jabłko z {STRINGID} było naprawdę opłacalne” +STR_1538 :“Ten t-shirt z {STRINGID} był naprawdę opłacalny” +STR_1539 :“Ten pączek z {STRINGID} był naprawdę opłacalny” +STR_1540 :“Ta kawa z {STRINGID} była naprawdę opłacalna” STR_1541 : -STR_1542 :{SMALLFONT}“Ten smażony kurczak z {STRINGID} był naprawdę opłacalny” -STR_1543 :{SMALLFONT}“Ta lemoniada z {STRINGID} była naprawdę opłacalna” +STR_1542 :“Ten smażony kurczak z {STRINGID} był naprawdę opłacalny” +STR_1543 :“Ta lemoniada z {STRINGID} była naprawdę opłacalna” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Świetnie!” -STR_1551 :{SMALLFONT}“Mam dziwne uczucie jakby mnie ktoś podglądał” -STR_1552 :{SMALLFONT}“Nie zapłacę tyle za balona z {STRINGID}” -STR_1553 :{SMALLFONT}“Nie zapłacę tyle za przytulankę z {STRINGID}” -STR_1554 :{SMALLFONT}“Nie zapłacę tyle za mapę parku z {STRINGID}” -STR_1555 :{SMALLFONT}“Nie zapłacę tyle za zdjęcie z przejażdżki z {STRINGID}” -STR_1556 :{SMALLFONT}“Nie zapłacę tyle za parasol z {STRINGID}” -STR_1557 :{SMALLFONT}“Nie zapłacę tyle za napój z {STRINGID}” -STR_1558 :{SMALLFONT}“Nie zapłacę tyle za burgera z {STRINGID}” -STR_1559 :{SMALLFONT}“Nie zapłacę tyle za frytki z {STRINGID}” -STR_1560 :{SMALLFONT}“Nie zapłacę tyle za lody z {STRINGID}” -STR_1561 :{SMALLFONT}“Nie zapłacę tyle za watę cukrową z {STRINGID}” +STR_1550 :“Świetnie!” +STR_1551 :“Mam dziwne uczucie jakby mnie ktoś podglądał” +STR_1552 :“Nie zapłacę tyle za balona z {STRINGID}” +STR_1553 :“Nie zapłacę tyle za przytulankę z {STRINGID}” +STR_1554 :“Nie zapłacę tyle za mapę parku z {STRINGID}” +STR_1555 :“Nie zapłacę tyle za zdjęcie z przejażdżki z {STRINGID}” +STR_1556 :“Nie zapłacę tyle za parasol z {STRINGID}” +STR_1557 :“Nie zapłacę tyle za napój z {STRINGID}” +STR_1558 :“Nie zapłacę tyle za burgera z {STRINGID}” +STR_1559 :“Nie zapłacę tyle za frytki z {STRINGID}” +STR_1560 :“Nie zapłacę tyle za lody z {STRINGID}” +STR_1561 :“Nie zapłacę tyle za watę cukrową z {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Nie zapłacę tyle za pizzę z {STRINGID}” +STR_1565 :“Nie zapłacę tyle za pizzę z {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Nie zapłacę tyle za popcorn z {STRINGID}” -STR_1568 :{SMALLFONT}“Nie zapłacę tyle za hotdoga z {STRINGID}” -STR_1569 :{SMALLFONT}“Nie zapłacę tyle za ośmiorniczkę z {STRINGID}” -STR_1570 :{SMALLFONT}“Nie zapłacę tyle za kapelusz z {STRINGID}” -STR_1571 :{SMALLFONT}“Nie zapłacę tyle za kandyzowane jabłko z {STRINGID}” -STR_1572 :{SMALLFONT}“Nie zapłacę tyle za koszulkę z {STRINGID}” -STR_1573 :{SMALLFONT}“Nie zapłacę tyle za pączka z {STRINGID}” -STR_1574 :{SMALLFONT}“Nie zapłacę tyle za kawę z {STRINGID}” +STR_1567 :“Nie zapłacę tyle za popcorn z {STRINGID}” +STR_1568 :“Nie zapłacę tyle za hotdoga z {STRINGID}” +STR_1569 :“Nie zapłacę tyle za ośmiorniczkę z {STRINGID}” +STR_1570 :“Nie zapłacę tyle za kapelusz z {STRINGID}” +STR_1571 :“Nie zapłacę tyle za kandyzowane jabłko z {STRINGID}” +STR_1572 :“Nie zapłacę tyle za koszulkę z {STRINGID}” +STR_1573 :“Nie zapłacę tyle za pączka z {STRINGID}” +STR_1574 :“Nie zapłacę tyle za kawę z {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Nie zapłacę tyle za kurczaka z {STRINGID}” -STR_1577 :{SMALLFONT}“Nie zapłacę tyle za lemoniadę z {STRINGID}” +STR_1576 :“Nie zapłacę tyle za kurczaka z {STRINGID}” +STR_1577 :“Nie zapłacę tyle za lemoniadę z {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” -STR_1585 :{SMALLFONT}“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalneENDQUOTES} -STR_1586 :{SMALLFONT}“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” -STR_1587 :{SMALLFONT}“Ten precel z {STRINGID} był naprawdę opłacalny” -STR_1588 :{SMALLFONT}“Ta gorąca czekolada z {STRINGID} była naprawdę opłacalna” -STR_1589 :{SMALLFONT}“Ta mrożona herbata z {STRINGID} była naprawdę opłacalna” -STR_1590 :{SMALLFONT}“Ten precel z {STRINGID} był naprawdę opłacalny” -STR_1591 :{SMALLFONT}“Te okulary przeciwsłoneczne z {STRINGID} były naprawdę opłacalne” -STR_1592 :{SMALLFONT}“Ten makaron z wołowiną z {STRINGID} był naprawdę opłacalny” -STR_1593 :{SMALLFONT}“Ten smażony makaron z {STRINGID} był naprawdę opłacalny” -STR_1594 :{SMALLFONT}“Ta zupa wonton z {STRINGID} była naprawdę opłacalna” -STR_1595 :{SMALLFONT}“Ta zupa z klopsikami z {STRINGID} była naprawdę opłacalna” -STR_1596 :{SMALLFONT}“Ten sok owocowy z {STRINGID} był naprawdę opłacalny” -STR_1597 :{SMALLFONT}“Te mleko sojowe z {STRINGID} było naprawdę opłacalne” -STR_1598 :{SMALLFONT}“Ta sujongkwa z {STRINGID} była naprawdę opłacalna” -STR_1599 :{SMALLFONT}“Ta kanapka z {STRINGID} była naprawdę opłacalna” -STR_1600 :{SMALLFONT}“To ciasteczko z {STRINGID} było naprawdę opłacalne” +STR_1584 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” +STR_1585 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalneENDQUOTES} +STR_1586 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” +STR_1587 :“Ten precel z {STRINGID} był naprawdę opłacalny” +STR_1588 :“Ta gorąca czekolada z {STRINGID} była naprawdę opłacalna” +STR_1589 :“Ta mrożona herbata z {STRINGID} była naprawdę opłacalna” +STR_1590 :“Ten precel z {STRINGID} był naprawdę opłacalny” +STR_1591 :“Te okulary przeciwsłoneczne z {STRINGID} były naprawdę opłacalne” +STR_1592 :“Ten makaron z wołowiną z {STRINGID} był naprawdę opłacalny” +STR_1593 :“Ten smażony makaron z {STRINGID} był naprawdę opłacalny” +STR_1594 :“Ta zupa wonton z {STRINGID} była naprawdę opłacalna” +STR_1595 :“Ta zupa z klopsikami z {STRINGID} była naprawdę opłacalna” +STR_1596 :“Ten sok owocowy z {STRINGID} był naprawdę opłacalny” +STR_1597 :“Te mleko sojowe z {STRINGID} było naprawdę opłacalne” +STR_1598 :“Ta sujongkwa z {STRINGID} była naprawdę opłacalna” +STR_1599 :“Ta kanapka z {STRINGID} była naprawdę opłacalna” +STR_1600 :“To ciasteczko z {STRINGID} było naprawdę opłacalne” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Ta grillowana kiełbasa z {STRINGID} była naprawdę opłacalna” +STR_1604 :“Ta grillowana kiełbasa z {STRINGID} była naprawdę opłacalna” STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1000,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Nie zapłacę tyle za zdjęcie z przejażdżki na {STRINGID}” -STR_1617 :{SMALLFONT}“Nie zapłacę tyle za zdjęcie z przejażdżki na {STRINGID}” -STR_1618 :{SMALLFONT}“Nie zapłacę tyle za zdjęcie z przejażdżki na {STRINGID}” -STR_1619 :{SMALLFONT}“Nie zapłacę tyle za precla z {STRINGID}” -STR_1620 :{SMALLFONT}“Nie zapłacę tyle za gorącą czekoladę z {STRINGID}” -STR_1621 :{SMALLFONT}“Nie zapłacę tyle za mrożoną herbatę z {STRINGID}” -STR_1622 :{SMALLFONT}“Nie zapłacę tyle za chrusta z {STRINGID}” -STR_1623 :{SMALLFONT}“Nie zapłacę tyle za okulary przeciwsłoneczne z {STRINGID}” -STR_1624 :{SMALLFONT}“Nie zapłacę tyle za makaron z wołowiną z {STRINGID}” -STR_1625 :{SMALLFONT}“Nie zapłacę tyle za smażony makaron ryżowy z {STRINGID}” -STR_1626 :{SMALLFONT}“Nie zapłacę tyle za zupę wonton z {STRINGID}” -STR_1627 :{SMALLFONT}“Nie zapłacę tyle za zupę z klopsikami z {STRINGID}” -STR_1628 :{SMALLFONT}“Nie zapłacę tyle za sok owocowy z {STRINGID}” -STR_1629 :{SMALLFONT}“Nie zapłacę tyle za mleko sojowe z {STRINGID}” -STR_1630 :{SMALLFONT}“Nie zapłacę tyle za sujongkwa z {STRINGID}” -STR_1631 :{SMALLFONT}“Nie zapłacę tyle za kanapkę z {STRINGID}” -STR_1632 :{SMALLFONT}“Nie zapłacę tyle za ciasteczko z {STRINGID}” +STR_1616 :“Nie zapłacę tyle za zdjęcie z przejażdżki na {STRINGID}” +STR_1617 :“Nie zapłacę tyle za zdjęcie z przejażdżki na {STRINGID}” +STR_1618 :“Nie zapłacę tyle za zdjęcie z przejażdżki na {STRINGID}” +STR_1619 :“Nie zapłacę tyle za precla z {STRINGID}” +STR_1620 :“Nie zapłacę tyle za gorącą czekoladę z {STRINGID}” +STR_1621 :“Nie zapłacę tyle za mrożoną herbatę z {STRINGID}” +STR_1622 :“Nie zapłacę tyle za chrusta z {STRINGID}” +STR_1623 :“Nie zapłacę tyle za okulary przeciwsłoneczne z {STRINGID}” +STR_1624 :“Nie zapłacę tyle za makaron z wołowiną z {STRINGID}” +STR_1625 :“Nie zapłacę tyle za smażony makaron ryżowy z {STRINGID}” +STR_1626 :“Nie zapłacę tyle za zupę wonton z {STRINGID}” +STR_1627 :“Nie zapłacę tyle za zupę z klopsikami z {STRINGID}” +STR_1628 :“Nie zapłacę tyle za sok owocowy z {STRINGID}” +STR_1629 :“Nie zapłacę tyle za mleko sojowe z {STRINGID}” +STR_1630 :“Nie zapłacę tyle za sujongkwa z {STRINGID}” +STR_1631 :“Nie zapłacę tyle za kanapkę z {STRINGID}” +STR_1632 :“Nie zapłacę tyle za ciasteczko z {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Nie zapłacę tyle za grillowaną kiełbasę z {RINGID}” +STR_1636 :“Nie zapłacę tyle za grillowaną kiełbasę z {RINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1032,10 +1032,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Pomocy! Puść mnie!” -STR_1649 :{SMALLFONT}“Kończą mi się pieniądze!” -STR_1650 :{SMALLFONT}“Świetnie! Budują nową atrakcję!” -STR_1653 :{SMALLFONT}“…i teraz jesteśmy na {STRINGID}!” +STR_1648 :“Pomocy! Puść mnie!” +STR_1649 :“Kończą mi się pieniądze!” +STR_1650 :“Świetnie! Budują nową atrakcję!” +STR_1653 :“…i teraz jesteśmy na {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Ostatnie myśli: STR_1655 :Buduj ścieżki na ziemi STR_1656 :Buduj ścieżki w powietrzu lub pod ziemią @@ -1065,12 +1065,12 @@ STR_1679 :Spirala w górę (lewo) STR_1680 :Spirala w dół (prawo) STR_1681 :Spirala w dół (lewo) STR_1682 :Spirala w dół (prawo) -STR_1683 :Wymiary bazowe 2 x 2 -STR_1684 :Wymiary bazowe 4 x 4 -STR_1685 :Wymiary bazowe 2 x 4 -STR_1686 :Wymiary bazowe 5 x 1 +STR_1683 :Wymiary bazowe 2 × 2 +STR_1684 :Wymiary bazowe 4 × 4 +STR_1685 :Wymiary bazowe 2 × 4 +STR_1686 :Wymiary bazowe 5 × 1 STR_1687 :Wzburzenie wody -STR_1688 :Wymiary bazowe 4 x 1 +STR_1688 :Wymiary bazowe 4 × 1 STR_1689 :Hamulce blokowe STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Koszt: {BLACK}{CURRENCY} @@ -1187,7 +1187,7 @@ STR_1808 :{WINDOW_COLOUR_2}Poprzednia awaria: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Aktualna awaria: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Nosi: STR_1811 :Nie można tego tutaj wybudować… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Różne obiekty STR_1814 :Akcje STR_1815 :Myśli @@ -1196,7 +1196,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Wszyscy goście STR_1819 :{WINDOW_COLOUR_2}Wszyscy goście (pogrupowani) STR_1820 :{WINDOW_COLOUR_2}Goście {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Goście którzy myślą {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Goście którzy myślą {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Goście myślący o {POP16}{STRINGID} STR_1823 :Pokaż gości myślących o tej atrakcji STR_1824 :Pokaż gości przebywających na tej atrakcji @@ -1297,7 +1297,6 @@ STR_1921 :Nowa gra STR_1922 :Kontynuuj zapisaną grę STR_1924 :Wyjdź STR_1925 :Nie można postawić tutaj osoby… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} zepsuł(a) się STR_1928 :{RED}{STRINGID} miał(a) wypadek! STR_1929 :{RED}Atrakcja {STRINGID} wciąż nie został(a) naprawiony(a).{NEWLINE}Sprawdź gdzie znajdują się twoi mechanicy i rozważ lepszą organizację ich pracy @@ -1578,7 +1577,7 @@ STR_2218 :{RED}{STRINGID} na {STRINGID} jeszcze nie powrócił do {STRINGID}! STR_2219 :{RED}{COMMA16} ludzi zginęło w wypadku na atrakcji {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Ocena parku: {BLACK}{COMMA16} STR_2221 :Ocena Parku: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Gości w parku: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Gotówka: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Gotówka: {RED}{CURRENCY2DP} @@ -1591,7 +1590,7 @@ STR_2231 :Hamowanie podczas opadania STR_2232 :Wyciągarka linowa STR_2233 :Informacje o parku STR_2234 :Najnowsze wiadomości -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Styczeń STR_2237 :Luty STR_2238 :Marzec @@ -1671,7 +1670,7 @@ STR_2312 :{WINDOW_COLOUR_2}Intensywność: {BLACK}{COMMA2DP32} (około) STR_2313 :{WINDOW_COLOUR_2}Ocena nudności: {BLACK}{COMMA2DP32} (około) STR_2314 :{WINDOW_COLOUR_2}Długość trasy: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Koszt: {BLACK}około {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Zajmowany teren: {BLACK}{COMMA16} x {COMMA16} pól +STR_2316 :{WINDOW_COLOUR_2}Zajmowany teren: {BLACK}{COMMA16} × {COMMA16} pól STR_2321 :{WINDOW_COLOUR_2}Liczba atrakcji: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Liczba pracowników: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Rozmiar parku: {BLACK}{COMMA32}m² @@ -1795,7 +1794,7 @@ STR_2450 :{YELLOW}Twoja kampania reklamująca park dobiegła końca STR_2451 :{YELLOW}Twoja kampania reklamująca {STRINGID} dobiegła końca STR_2452 :{WINDOW_COLOUR_2}Gotówka (minus pożyczka): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Gotówka (minus pożyczka): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Pokaż rachunki STR_2458 :Pokaż wykres zmian gotówki w czasie pomniejszonej o wysokość pożyczki STR_2459 :Pokaż wykres zmian wartości parku w czasie @@ -1824,7 +1823,7 @@ STR_2481 :Pokaż wykres przyspieszenia poprzecznego względem czasu STR_2482 :Zysk: {CURRENCY} na tydzień, Wartość parku: {CURRENCY} STR_2483 :{WINDOW_COLOUR_2}Tygodniowy zysk: {BLACK}+{CURRENCY2DP} STR_2484 :{WINDOW_COLOUR_2}Tygodniowy zysk: {RED}{CURRENCY2DP} -STR_2487 :Pokazuj "prawdziwe" imiona gości +STR_2487 :Pokazuj „prawdziwe” imiona gości STR_2488 :Przełącza między pokazywaniem imion gości a numerami STR_2489 :Skróty klawiszowe… STR_2490 :Przypisanie klawiszy @@ -1905,7 +1904,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Wszystkie badania zakończone -STR_2681 :{MEDIUMFONT}{BLACK}Zwiększa twoją gotówkę o {CURRENCY} STR_2684 :Przybywające duże grupy gości STR_2685 :Parametr hałasu Simplex STR_2686 :Najniższy: @@ -1992,7 +1990,7 @@ STR_2789 :{WINDOW_COLOUR_2}Porażka! Cel nie został osiągnięty! STR_2790 :Podaj imię do listy scenariuszy STR_2791 :Podaj imię STR_2792 :Podaj swoje imię do listy scenariuszy: -STR_2793 :{SMALLFONT}(Ukończone przez {STRINGID}) +STR_2793 :(Ukończone przez {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Ukończony przez: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} z wartością spółki wynoszącą: {BLACK}{CURRENCY} STR_2795 :Sortuj STR_2796 :Sortuj listę atrakcji według wyświetlonych informacji @@ -2118,7 +2116,7 @@ STR_2983 :Wprowadź nową treść baneru: STR_2984 :Nie można wprowadzić nowej treści baneru… STR_2985 :Baner STR_2986 :Zmień treść baneru -STR_2987 :Ustaw ten baner jako{NEWLINE}'zakaz wstępu' dla gości +STR_2987 :Ustaw ten baner jako{NEWLINE}„zakaz wstępu” dla gości STR_2988 :Usuń ten baner STR_2989 :Wybierz główny kolor STR_2990 :Wybierz kolor treści @@ -2306,7 +2304,7 @@ STR_3208 :Menedżer tworzenia tras STR_3209 :Powrót do poprzedniego kroku: STR_3210 :Do następnego kroku: STR_3211 :Rozmiar mapy: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Nie można bardziej zmniejszyć mapy STR_3214 :Nie można bardziej zwiększyć mapy STR_3215 :Za blisko do krawędzi mapy @@ -2499,7 +2497,7 @@ STR_5134 :Ustaw większy obszar praw do ziemi STR_5135 :Zakup ziemi i praw do budowy STR_5136 :Prawa do ziemi STR_5137 :Znieś limity operacyjne -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Wyłącz awarie hamulców STR_5141 :Wyłącz wszystkie awarie @@ -2645,7 +2643,7 @@ STR_5297 :Otwórz park STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Szybkie zwolnienie pracownika -STR_5301 :{MEDIUMFONT}{BLACK}Usuń swoją pożyczkę +STR_5301 :Usuń swoją pożyczkę STR_5302 :Usuń pożyczkę STR_5303 :Zezwól na budowę podczas pauzy STR_5304 :Sekwencja tytułowa: @@ -2804,7 +2802,7 @@ STR_5481 :Motywy STR_5482 :{WINDOW_COLOUR_2}Termin ostatniej inspekcji: STR_5483 :{BLACK}(pozostało {COMMA16} tygodni) STR_5484 :{BLACK}(pozostał {COMMA16} tydzień) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Pokaż ostatnie wiadomości STR_5489 :Pokaż tylko śledzonych gości @@ -2876,7 +2874,7 @@ STR_5556 :Wyrzuć gracza STR_5557 :Nie rozłączaj po desynchronizacji (tryb wieloosobowy) STR_5558 :Wymagany restart dla tej zmiany STR_5559 :10 min. inspekcje -STR_5560 :Ustaw częstotliwość inspekcji na 'Co 10 minut' na wszystkich atrakcjach +STR_5560 :Ustaw częstotliwość inspekcji na „Co 10 minut” na wszystkich atrakcjach STR_5561 :Nie udało się załadować języka STR_5562 :UWAGA! STR_5563 :Ta funkcja jest obecnie niestabilna, zachowaj szczególną ostrożność. @@ -3060,7 +3058,7 @@ STR_5778 :Wybudowano: {COMMA16} lat temu STR_5779 :Przychód: {CURRENCY2DP} na godzinę STR_5780 :Koszty eksploatacji: {CURRENCY2DP} na godzinę STR_5781 :Koszty eksploatacji: nieznane -STR_5782 :Połączono. Naciśnij '{STRING}' aby pisać na chacie. +STR_5782 :Połączono. Naciśnij „{STRING}” aby pisać na chacie. STR_5783 :{WINDOW_COLOUR_2}Scenariusz zablokowany STR_5784 :{BLACK}Aby odblokować ten scenariusz ukończ poprzedni. STR_5785 :Nie można zmienić nazwy grupy… @@ -3069,7 +3067,7 @@ STR_5787 :{COMMA32} graczy online STR_5788 :Domyślny okres inspekcji: STR_5789 :Wyłącz efekty świetlne STR_5790 :Mieszany styl płatności RCT1{NEWLINE}(np. jednoczesna odpłatność za wejście i atrakcję) -STR_5791 :Ustaw niezawodność wszystkich atrakcji na 100%{NEWLINE}i zresetuj datę budowy na "w tym roku" +STR_5791 :Ustaw niezawodność wszystkich atrakcji na 100%{NEWLINE}i zresetuj datę budowy na „w tym roku” STR_5792 :Naprawia wszystkie uszkodzone atrakcje STR_5793 :Usuwa historię katastrof,{NEWLINE}dzięki czemu goście nie będą narzekać że jest niebezpieczne STR_5794 :Niektóre scenariusze blokują edycję{NEWLINE}istniejących juz w parku atrakcji.{NEWLINE}Ta opcja obchodzi te restrykcje @@ -3110,11 +3108,11 @@ STR_5828 :Zmień użyty format jednostki użyty do czasu, prędkość itp. STR_5829 :Zmień rodzaj użytej waluty. Jedynie w celach wizualnych, nie ma zastosowania żaden przelicznik STR_5830 :Zmień używany język STR_5831 :Zmień użyty format{NEWLINE}wyświetlanej temperatury -STR_5832 :Pokaż wysokość jako ogólną jednostkę w miejscu formatu jednostki ustawionej w zakładce "Odległość i Prędkość" +STR_5832 :Pokaż wysokość jako ogólną jednostkę w miejscu formatu jednostki ustawionej w zakładce „Odległość i Prędkość” STR_5833 :Zmień używany format daty STR_5834 :Wybierz urządzenie dźwiękowe dla OpenRCT2 STR_5835 :Wycisz grę przy utracie ostrości okna -STR_5836 :Wybierz muzykę do ekranu tytułowego.{NEWLINE}Wybranie motywu z RCT1 wymaga skopiowania 'data/css17.dat' z katalogu gry RCT1 do 'data/css50.dat' w twoim katalogu RCT2, lub ustawienia ścieżki do RCT1 w zakładce pozostałych ustawień +STR_5836 :Wybierz muzykę do ekranu tytułowego.{NEWLINE}Wybranie motywu z RCT1 wymaga skopiowania „data/css17.dat” z katalogu gry RCT1 do „data/css50.dat” w twoim katalogu RCT2, lub ustawienia ścieżki do RCT1 w zakładce pozostałych ustawień STR_5837 :Stwórz i zarządzaj własnymi motywami UI STR_5838 :Pokaż osobny przycisk dla okienka Finansów w pasku narzędzi STR_5839 :Pokaż osobny przycisk dla okienka Badań i Rozwoju w pasku narzędzi @@ -3293,23 +3291,23 @@ STR_6014 :Goście będą płacić za bilety wstępu na atrakcje i usługi.{NE STR_6015 :Nachylony STR_6016 :Edytuj kafel STR_6017 :Proszę zwolnić -STR_6018 :Konstrukcja przejażdżki - Obróć w lewo -STR_6019 :Konstrukcja przejażdżki - Obróć w prawo -STR_6020 :Konstrukcja przejażdżki - Użyj domyślnej trasy -STR_6021 :Konstrukcja przejażdżki - Nachylenie w dół -STR_6022 :Konstrukcja przejażdżki - Nachylenie w górę -STR_6023 :Konstrukcja przejażdżki - Przełącznik wyciągarki -STR_6024 :Konstrukcja przejażdżki - Nachylenie w lewo -STR_6025 :Konstrukcja przejażdżki - Nachylenie w prawo -STR_6026 :Konstrukcja przejażdżki - Poprzednia element -STR_6027 :Konstrukcja przejażdżki - Następny element -STR_6028 :Konstrukcja przejażdżki - Wybuduj bieżący -STR_6029 :Konstrukcja przejażdżki - Zniszcz bieżący +STR_6018 :Konstrukcja - Obróć w lewo +STR_6019 :Konstrukcja - Obróć w prawo +STR_6020 :Konstrukcja - Użyj domyślnej trasy +STR_6021 :Konstrukcja - Nachylenie w dół +STR_6022 :Konstrukcja - Nachylenie w górę +STR_6023 :Konstrukcja - Przełącznik wyciągarki +STR_6024 :Konstrukcja - Nachylenie w lewo +STR_6025 :Konstrukcja - Nachylenie w prawo +STR_6026 :Konstrukcja - Poprzedni element +STR_6027 :Konstrukcja - Następny element +STR_6028 :Konstrukcja - Wybuduj bieżący +STR_6029 :Konstrukcja - Zniszcz bieżący STR_6030 :Przechwytywacz scenerii. Wybierz dowolny element scenerii na mapie aby wybrać taki sam dla konstrukcji. STR_6031 :Opis serwera: STR_6032 :Wiadomość powitalna: STR_6033 :Ścieżka do katalogu RCT1: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Proszę wybrać katalog z RCT1 STR_6036 :Wyczyść STR_6037 :Proszę wybrać prawidłowy katalog RCT1 @@ -3345,34 +3343,34 @@ STR_6066 :Loguje wszystkie akcje użytkowników do plików w katalogu domowym STR_6067 :Serwer uruchomiony. STR_6068 :Serwer wyłączony. STR_6069 :{STRING} został wyrzucony z serwera przez {STRING}. -STR_6070 :{STRING} został przypisany do grupy '{STRING}' przez {STRING}. -STR_6071 :{STRING} stworzył nową grupę graczy '{STRING}'. -STR_6072 :{STRING} usunął grupę graczy '{String}'. -STR_6073 :{STRING} zmienił uprawnienia dla grupy graczy '{String}'. -STR_6074 :{STRING} zmienił nazwę grupy graczy z '{String}' na '{String}'. -STR_6075 :{STRING} zmienił domyślna grupę graczy na '{String}'. -STR_6076 :{STRING} pokaż/schowaj kody '{STRING}'. +STR_6070 :{STRING} został przypisany do grupy „{STRING}” przez {STRING}. +STR_6071 :{STRING} stworzył nową grupę graczy „{STRING}”. +STR_6072 :{STRING} usunął grupę graczy „{String}”. +STR_6073 :{STRING} zmienił uprawnienia dla grupy graczy „{String}”. +STR_6074 :{STRING} zmienił nazwę grupy graczy z „{String}” na „{String}”. +STR_6075 :{STRING} zmienił domyślna grupę graczy na „{String}”. +STR_6076 :{STRING} pokaż/schowaj kody „{STRING}”. STR_6077 :Dodaj pieniądze -STR_6078 :{STRING} stworzył atrakcję '{STRING}'. -STR_6079 :{STRING} zniszczył atrakcję '{STRING}'. -STR_6080 :{STRING} zmienił wygląd atrakcji '{STRING}'. -STR_6081 :{STRING} zmienił status atrakcji '{STRING}' na zamkniętą. -STR_6082 :{STRING} zmienił status atrakcji '{STRING}' na otwartą. -STR_6083 :{STRING} zmienił status atrakcji '{STRING}' na testowaną. -STR_6084 :{STRING} zmienił ustawienia pojazdów na atrakcji '{STRING}'. -STR_6085 :{STRING} zmienił ustawienia jazdy na atrakcji '{STRING}'. -STR_6086 :{STRING} zmienił nazwę atrakcji '{STRING}' na '{STRING}'. -STR_6087 :{STRING} zmienił cenę za atrakcję '{STRING}' na {STRING} -STR_6088 :{STRING} zmienił drugą cenę atrakcji '{STRING}' na {STRING} -STR_6089 :{STRING} zmienił nazwę parku '{STRING}' na '{STRING}'. +STR_6078 :{STRING} stworzył atrakcję „{STRING}”. +STR_6079 :{STRING} zniszczył atrakcję „{STRING}”. +STR_6080 :{STRING} zmienił wygląd atrakcji „{STRING}”. +STR_6081 :{STRING} zmienił status atrakcji „{STRING}” na zamkniętą. +STR_6082 :{STRING} zmienił status atrakcji „{STRING}” na otwartą. +STR_6083 :{STRING} zmienił status atrakcji „{STRING}” na testowaną. +STR_6084 :{STRING} zmienił ustawienia pojazdów na atrakcji „{STRING}”. +STR_6085 :{STRING} zmienił ustawienia jazdy na atrakcji „{STRING}”. +STR_6086 :{STRING} zmienił nazwę atrakcji „{STRING}” na „{STRING}”. +STR_6087 :{STRING} zmienił cenę za atrakcję „{STRING}” na {STRING} +STR_6088 :{STRING} zmienił drugą cenę atrakcji „{STRING}” na {STRING} +STR_6089 :{STRING} zmienił nazwę parku „{STRING}” na „{STRING}”. STR_6090 :{STRING} otworzył park. STR_6091 :{STRING} zamknął park. STR_6092 :{STRING} zmienił cenę wstępu do parku na {STRING} STR_6093 :{STRING} umieścił nową dekorację. STR_6094 :{STRING} usunął dekorację. STR_6095 :{STRING} edytował dekorację. -STR_6096 :{STRING} ustawił nazwę znaku na '{STRING}'. -STR_6097 :{STRING} dodał odcinek trasy '{STRING}'. +STR_6096 :{STRING} ustawił nazwę znaku na „{STRING”. +STR_6097 :{STRING} dodał odcinek trasy „{STRING}”. STR_6098 :{STRING} usunął odcinek trasy. STR_6099 :Połączyłeś się z serwerem. STR_6100 :Rozłączyłeś się z serwerem. @@ -3454,7 +3452,7 @@ STR_6183 :Follow{MOVE_X}{87}No sprite selected STR_6184 :Follow Sprite STR_6185 :Select Sprite STR_6186 :No sprite selected -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Wymiociny STR_6189 :Kaczka STR_6190 :You cannot select a sprite while the main title screen is active. @@ -3604,7 +3602,7 @@ STR_6356 :Przyzywa kaczki jeśli park zawiera wodę STR_6357 :Usuwa wszystkie kaczki z mapu STR_6358 :Strona {UINT16} STR_6359 :{POP16}{POP16}Strona {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Włącz efekty świetlne atrakcji (eksperymentalne) STR_6362 :Jeśłi włączone, pojazdy będą oświetlone w nocy. STR_6363 :Tekst skopiowany do schowka @@ -3654,6 +3652,32 @@ STR_6406 :Instalator GOG RollerCoaster Tycoon 2 STR_6407 :To może potrwać kilka minut. STR_6408 :Wskaż proszę “innoextract” w celu wypakowania instalatora GOG, następnie zrestartuj OpenRCT2. STR_6409 :Wskazany plik nie jest offlinowym intalatorem GOG dla RollerCoaster Tycoon 2. Możliwe, że pobrany został GOG Galaxy downloader, albo wskazany błędny plik. +STR_6410 :Przybliż/oddal +STR_6411 :Pokaż przyciski do przybliżania i oddalania w pasku narzędzi +STR_6412 :NumPad Enter +STR_6413 :Shift +STR_6414 :L Shift +STR_6415 :P Shift +STR_6416 :Ctrl +STR_6417 :L Ctrl +STR_6418 :P Ctrl +STR_6419 :Alt +STR_6420 :L Alt +STR_6421 :P Alt +STR_6422 :Cmd +STR_6423 :L Cmd +STR_6424 :P Cmd +STR_6425 :Joy Lewo +STR_6426 :Joy Prawo +STR_6427 :Joy Góra +STR_6428 :Joy Dół +STR_6429 :Joy {INT32} +STR_6430 :LPM +STR_6431 :PPM +STR_6432 :Mysz {INT32} +STR_6433 :Usuń +STR_6434 :Usuń wszystkie przypusania do tego skrótu. +STR_6435 :{WINDOW_COLOUR_2}Zatrzymani wandale: {BLACK}{COMMA16} ############# diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index f993d04f24..187c0be2fc 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -240,8 +240,8 @@ STR_0831 :Afastar Vista STR_0832 :Girar visão em 90° no sentido horário STR_0833 :Pausar Jogo STR_0834 :Opções de disco e jogo -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} STR_0847 :Sobre ‘OpenRCT2’ STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, Todos os direitos reservados STR_0851 :{WINDOW_COLOUR_2}Projetado e programado por Chris Sawyer @@ -798,14 +798,14 @@ STR_1410 :Torre Vertical STR_1411 :{STRINGID} no caminho STR_1412 :{WINDOW_COLOUR_3}O registro de dados não estão disponíveis para este tipo de atração STR_1413 :{WINDOW_COLOUR_3}O registro de dados vai começar quando o próximo {STRINGID} sair de {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Velocidade STR_1416 :{WINDOW_COLOUR_2}Altitude STR_1417 :{WINDOW_COLOUR_2}G vertical STR_1418 :{WINDOW_COLOUR_2}G lateral -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Obtendo dados de {POP16}{STRINGID} STR_1423 :Fila de espera STR_1424 :Calçada @@ -864,131 +864,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensidade: {BLACK}Indisponível STR_1477 :{WINDOW_COLOUR_2}Intensidade: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Náusea: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Náusea: {BLACK}Indisponível -STR_1480 :{SMALLFONT}“Eu não posso pagar {STRINGID}” -STR_1481 :{SMALLFONT}“Eu gastei todo o meu dinheiro” -STR_1482 :{SMALLFONT}“Eu me sinto mal” -STR_1483 :{SMALLFONT}“Eu me sinto muito mal” -STR_1484 :{SMALLFONT}“Eu quero ir em algo mais emocionante do que {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} parece muito intenso para mim” -STR_1486 :{SMALLFONT}“Eu não terminei meu {STRINGID} ainda” -STR_1487 :{SMALLFONT}“Só de olhar para {STRINGID} já me sento mal” -STR_1488 :{SMALLFONT}“Eu não vou pagar tudo isso para ir em {STRINGID}” -STR_1489 :{SMALLFONT}“Eu quero ir para casa” -STR_1490 :{SMALLFONT}“{STRINGID} tem um preço bom” -STR_1491 :{SMALLFONT}“Eu já tenho {STRINGID}” -STR_1492 :{SMALLFONT}“Não posso pagar {STRINGID}” -STR_1493 :{SMALLFONT}“Eu não estou com fome” -STR_1494 :{SMALLFONT}“Eu não estou com sede” -STR_1495 :{SMALLFONT}“Socorro! Estou me afogando!” -STR_1496 :{SMALLFONT}“Eu estou perdido!” -STR_1497 :{SMALLFONT}“{STRINGID} foi ótimo” -STR_1498 :{SMALLFONT}“Eu estive na fila para {STRINGID} por anos” -STR_1499 :{SMALLFONT}“Eu estou cansado” -STR_1500 :{SMALLFONT}“Eu estou com fome” -STR_1501 :{SMALLFONT}“Eu estou com sede” -STR_1502 :{SMALLFONT}“Eu preciso ir ao banheiro” -STR_1503 :{SMALLFONT}“Eu não consigo encontrar {STRINGID}” -STR_1504 :{SMALLFONT}“Eu não vou pagar tudo isso para usar {STRINGID}” -STR_1505 :{SMALLFONT}“Eu não vou em {STRINGID} enquanto está chovendo” -STR_1506 :{SMALLFONT}“A limpeza aqui é muito ruim” -STR_1507 :{SMALLFONT}“Eu não estou encontrando a saída do parque” -STR_1508 :{SMALLFONT}“Eu quero sair de {STRINGID}” -STR_1509 :{SMALLFONT}“Eu quero sair de {STRINGID}” -STR_1510 :{SMALLFONT}“Eu não vou em {STRINGID} - Não é seguro” -STR_1511 :{SMALLFONT}“Este caminho é nojento” -STR_1512 :{SMALLFONT}“Está lotado aqui” -STR_1513 :{SMALLFONT}“O vandalismo aqui é muito ruim” -STR_1514 :{SMALLFONT}“Excelente cenário!” -STR_1515 :{SMALLFONT}“Este parque é realmente limpo e arrumado” -STR_1516 :{SMALLFONT}“As fontes saltitantes são ótimas” -STR_1517 :{SMALLFONT}“A música é agradável aqui” -STR_1518 :{SMALLFONT}“Este balão de {STRINGID} tem um preço bom” -STR_1519 :{SMALLFONT}“Este brinquedo de pelúcia de {STRINGID} tem um preço bom” -STR_1520 :{SMALLFONT}“Este mapa do parque de {STRINGID} tem um preço bom” -STR_1521 :{SMALLFONT}“Esta foto em {STRINGID} tem um preço bom” -STR_1522 :{SMALLFONT}“Este guarda-chuva de {STRINGID} tem um preço bom” -STR_1523 :{SMALLFONT}“Esta bebida de {STRINGID} tem um preço bom” -STR_1524 :{SMALLFONT}“Este hambúrguer de {STRINGID} tem um preço bom” -STR_1525 :{SMALLFONT}“Estas batatas fritas de {STRINGID} tem um preço bom” -STR_1526 :{SMALLFONT}“Este sorvete de {STRINGID} tem um preço bom” -STR_1527 :{SMALLFONT}“Este algodão-doce de {STRINGID} tem um preço bom” +STR_1480 :“Eu não posso pagar {STRINGID}” +STR_1481 :“Eu gastei todo o meu dinheiro” +STR_1482 :“Eu me sinto mal” +STR_1483 :“Eu me sinto muito mal” +STR_1484 :“Eu quero ir em algo mais emocionante do que {STRINGID}” +STR_1485 :“{STRINGID} parece muito intenso para mim” +STR_1486 :“Eu não terminei meu {STRINGID} ainda” +STR_1487 :“Só de olhar para {STRINGID} já me sento mal” +STR_1488 :“Eu não vou pagar tudo isso para ir em {STRINGID}” +STR_1489 :“Eu quero ir para casa” +STR_1490 :“{STRINGID} tem um preço bom” +STR_1491 :“Eu já tenho {STRINGID}” +STR_1492 :“Não posso pagar {STRINGID}” +STR_1493 :“Eu não estou com fome” +STR_1494 :“Eu não estou com sede” +STR_1495 :“Socorro! Estou me afogando!” +STR_1496 :“Eu estou perdido!” +STR_1497 :“{STRINGID} foi ótimo” +STR_1498 :“Eu estive na fila para {STRINGID} por anos” +STR_1499 :“Eu estou cansado” +STR_1500 :“Eu estou com fome” +STR_1501 :“Eu estou com sede” +STR_1502 :“Eu preciso ir ao banheiro” +STR_1503 :“Eu não consigo encontrar {STRINGID}” +STR_1504 :“Eu não vou pagar tudo isso para usar {STRINGID}” +STR_1505 :“Eu não vou em {STRINGID} enquanto está chovendo” +STR_1506 :“A limpeza aqui é muito ruim” +STR_1507 :“Eu não estou encontrando a saída do parque” +STR_1508 :“Eu quero sair de {STRINGID}” +STR_1509 :“Eu quero sair de {STRINGID}” +STR_1510 :“Eu não vou em {STRINGID} - Não é seguro” +STR_1511 :“Este caminho é nojento” +STR_1512 :“Está lotado aqui” +STR_1513 :“O vandalismo aqui é muito ruim” +STR_1514 :“Excelente cenário!” +STR_1515 :“Este parque é realmente limpo e arrumado” +STR_1516 :“As fontes saltitantes são ótimas” +STR_1517 :“A música é agradável aqui” +STR_1518 :“Este balão de {STRINGID} tem um preço bom” +STR_1519 :“Este brinquedo de pelúcia de {STRINGID} tem um preço bom” +STR_1520 :“Este mapa do parque de {STRINGID} tem um preço bom” +STR_1521 :“Esta foto em {STRINGID} tem um preço bom” +STR_1522 :“Este guarda-chuva de {STRINGID} tem um preço bom” +STR_1523 :“Esta bebida de {STRINGID} tem um preço bom” +STR_1524 :“Este hambúrguer de {STRINGID} tem um preço bom” +STR_1525 :“Estas batatas fritas de {STRINGID} tem um preço bom” +STR_1526 :“Este sorvete de {STRINGID} tem um preço bom” +STR_1527 :“Este algodão-doce de {STRINGID} tem um preço bom” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Esta pizza de {STRINGID} tem um preço bom” +STR_1531 :“Esta pizza de {STRINGID} tem um preço bom” STR_1532 : -STR_1533 :{SMALLFONT}“Esta pipoca de {STRINGID} tem um preço bom” -STR_1534 :{SMALLFONT}“Este cachorro quente de {STRINGID} tem um preço bom” -STR_1535 :{SMALLFONT}“Este tentáculo de {STRINGID} tem um preço bom” -STR_1536 :{SMALLFONT}“Este chapéu de {STRINGID} tem um preço bom” -STR_1537 :{SMALLFONT}“Esta maçã do amor de {STRINGID} tem um preço bom” -STR_1538 :{SMALLFONT}“Esta camiseta de {STRINGID} tem um preço bom” -STR_1539 :{SMALLFONT}“Esta rosquinha de {STRINGID} tem um preço bom” -STR_1540 :{SMALLFONT}“Este café de {STRINGID} tem um preço bom” +STR_1533 :“Esta pipoca de {STRINGID} tem um preço bom” +STR_1534 :“Este cachorro quente de {STRINGID} tem um preço bom” +STR_1535 :“Este tentáculo de {STRINGID} tem um preço bom” +STR_1536 :“Este chapéu de {STRINGID} tem um preço bom” +STR_1537 :“Esta maçã do amor de {STRINGID} tem um preço bom” +STR_1538 :“Esta camiseta de {STRINGID} tem um preço bom” +STR_1539 :“Esta rosquinha de {STRINGID} tem um preço bom” +STR_1540 :“Este café de {STRINGID} tem um preço bom” STR_1541 : -STR_1542 :{SMALLFONT}“Este frango frito de {STRINGID} tem um preço bom” -STR_1543 :{SMALLFONT}“Esta limonada de {STRINGID} tem um preço bom” +STR_1542 :“Este frango frito de {STRINGID} tem um preço bom” +STR_1543 :“Esta limonada de {STRINGID} tem um preço bom” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Uau!” -STR_1551 :{SMALLFONT}“Estou com a sensação estranha de que alguém está me observando” -STR_1552 :{SMALLFONT}“Eu não vou pagar tudo isso por um balão de {STRINGID}” -STR_1553 :{SMALLFONT}“Eu não vou pagar tudo isso por um brinquedo de pelúcia de {STRINGID}” -STR_1554 :{SMALLFONT}“Eu não vou pagar tudo isso por um mapa de {STRINGID}” -STR_1555 :{SMALLFONT}“Eu não vou pagar tudo isso por uma foto de {STRINGID}” -STR_1556 :{SMALLFONT}“Eu não vou pagar tudo isso por um guarda-chuva {STRINGID}” -STR_1557 :{SMALLFONT}“Eu não vou pagar tudo isso por uma bebida de {STRINGID}” -STR_1558 :{SMALLFONT}“Eu não vou pagar tudo isso por um hambúrguer de {STRINGID}” -STR_1559 :{SMALLFONT}“Eu não vou pagar tudo isso por uma batata frita de {STRINGID}” -STR_1560 :{SMALLFONT}“Eu não vou pagar tudo isso por um sorvete de {STRINGID}” -STR_1561 :{SMALLFONT}“Eu não vou pagar tudo isso por algodão doce de {STRINGID}” +STR_1550 :“Uau!” +STR_1551 :“Estou com a sensação estranha de que alguém está me observando” +STR_1552 :“Eu não vou pagar tudo isso por um balão de {STRINGID}” +STR_1553 :“Eu não vou pagar tudo isso por um brinquedo de pelúcia de {STRINGID}” +STR_1554 :“Eu não vou pagar tudo isso por um mapa de {STRINGID}” +STR_1555 :“Eu não vou pagar tudo isso por uma foto de {STRINGID}” +STR_1556 :“Eu não vou pagar tudo isso por um guarda-chuva {STRINGID}” +STR_1557 :“Eu não vou pagar tudo isso por uma bebida de {STRINGID}” +STR_1558 :“Eu não vou pagar tudo isso por um hambúrguer de {STRINGID}” +STR_1559 :“Eu não vou pagar tudo isso por uma batata frita de {STRINGID}” +STR_1560 :“Eu não vou pagar tudo isso por um sorvete de {STRINGID}” +STR_1561 :“Eu não vou pagar tudo isso por algodão doce de {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Eu não vou pagar tudo isso por uma pizza de {STRINGID}” +STR_1565 :“Eu não vou pagar tudo isso por uma pizza de {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Eu não vou pagar tudo isso por uma pipoca de {STRINGID}” -STR_1568 :{SMALLFONT}“Eu não vou pagar tudo isso por um cachorro-quente de {STRINGID}” -STR_1569 :{SMALLFONT}“Eu não vou pagar tudo isso por um tentáculo de {STRINGID}” -STR_1570 :{SMALLFONT}“Eu não vou pagar tudo isso por um chapéu de {STRINGID}” -STR_1571 :{SMALLFONT}“Eu não vou pagar tudo isso por uma maçã do amor de {STRINGID}” -STR_1572 :{SMALLFONT}“Eu não vou pagar tudo isso por uma camiseta de {STRINGID}” -STR_1573 :{SMALLFONT}“Eu não vou pagar tudo isso por um donut de {STRINGID}” -STR_1574 :{SMALLFONT}“Eu não vou pagar tudo isso por um café de {STRINGID}” +STR_1567 :“Eu não vou pagar tudo isso por uma pipoca de {STRINGID}” +STR_1568 :“Eu não vou pagar tudo isso por um cachorro-quente de {STRINGID}” +STR_1569 :“Eu não vou pagar tudo isso por um tentáculo de {STRINGID}” +STR_1570 :“Eu não vou pagar tudo isso por um chapéu de {STRINGID}” +STR_1571 :“Eu não vou pagar tudo isso por uma maçã do amor de {STRINGID}” +STR_1572 :“Eu não vou pagar tudo isso por uma camiseta de {STRINGID}” +STR_1573 :“Eu não vou pagar tudo isso por um donut de {STRINGID}” +STR_1574 :“Eu não vou pagar tudo isso por um café de {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Eu não vou pagar tudo isso por um frango frito de {STRINGID}” -STR_1577 :{SMALLFONT}“Eu não vou pagar tudo isso por uma limonada de {STRINGID}” +STR_1576 :“Eu não vou pagar tudo isso por um frango frito de {STRINGID}” +STR_1577 :“Eu não vou pagar tudo isso por uma limonada de {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Esta foto de {STRINGID} tem um preço bom” -STR_1585 :{SMALLFONT}“Esta foto de {STRINGID} tem um preço bom” -STR_1586 :{SMALLFONT}“Esta foto de {STRINGID} tem um preço bom” -STR_1587 :{SMALLFONT}“Este pretzel de {STRINGID} tem um preço bom” -STR_1588 :{SMALLFONT}“Este chocolate quente de {STRINGID} tem um preço bom” -STR_1589 :{SMALLFONT}“Este chá gelado de {STRINGID} tem um preço bom” -STR_1590 :{SMALLFONT}“Este bolo de {STRINGID} tem um preço bom” -STR_1591 :{SMALLFONT}“Estes óculos de sol de {STRINGID} tem um preço bom” -STR_1592 :{SMALLFONT}“Este macarrão de {STRINGID} tem um preço bom” -STR_1593 :{SMALLFONT}“Este arroz frito de {STRINGID} tem um preço bom” -STR_1594 :{SMALLFONT}“Esta sopa de wonton de {STRINGID} tem um preço bom” -STR_1595 :{SMALLFONT}“Esta sopa de almôndegas de {STRINGID} tem um preço bom” -STR_1596 :{SMALLFONT}“Este suco de frutas {STRINGID} tem um preço bom” -STR_1597 :{SMALLFONT}“Este leite de soja de {STRINGID} tem um preço bom” -STR_1598 :{SMALLFONT}“Este sujongkwa de {STRINGID} tem um preço bom” -STR_1599 :{SMALLFONT}“Este sanduíche de {STRINGID} tem um preço bom” -STR_1600 :{SMALLFONT}“Este cookie de {STRINGID} tem um preço bom” +STR_1584 :“Esta foto de {STRINGID} tem um preço bom” +STR_1585 :“Esta foto de {STRINGID} tem um preço bom” +STR_1586 :“Esta foto de {STRINGID} tem um preço bom” +STR_1587 :“Este pretzel de {STRINGID} tem um preço bom” +STR_1588 :“Este chocolate quente de {STRINGID} tem um preço bom” +STR_1589 :“Este chá gelado de {STRINGID} tem um preço bom” +STR_1590 :“Este bolo de {STRINGID} tem um preço bom” +STR_1591 :“Estes óculos de sol de {STRINGID} tem um preço bom” +STR_1592 :“Este macarrão de {STRINGID} tem um preço bom” +STR_1593 :“Este arroz frito de {STRINGID} tem um preço bom” +STR_1594 :“Esta sopa de wonton de {STRINGID} tem um preço bom” +STR_1595 :“Esta sopa de almôndegas de {STRINGID} tem um preço bom” +STR_1596 :“Este suco de frutas {STRINGID} tem um preço bom” +STR_1597 :“Este leite de soja de {STRINGID} tem um preço bom” +STR_1598 :“Este sujongkwa de {STRINGID} tem um preço bom” +STR_1599 :“Este sanduíche de {STRINGID} tem um preço bom” +STR_1600 :“Este cookie de {STRINGID} tem um preço bom” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Esta linguiça grelhada {STRINGID} tem um preço bom” +STR_1604 :“Esta linguiça grelhada {STRINGID} tem um preço bom” STR_1605 : STR_1606 : STR_1607 : @@ -1000,27 +1000,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Eu não vou pagar tudo isso por uma foto em {STRINGID}” -STR_1617 :{SMALLFONT}“Eu não vou pagar tudo isso por uma foto em {STRINGID}” -STR_1618 :{SMALLFONT}“Eu não vou pagar tudo isso por uma foto em {STRINGID}” -STR_1619 :{SMALLFONT}“Eu não vou pagar tudo isso por um pretzel de {STRINGID}” -STR_1620 :{SMALLFONT}“Eu não vou pagar tudo isso por um chocolate quente de {STRINGID}” -STR_1621 :{SMALLFONT}“Eu não vou pagar tudo isso por um chá gelado de {STRINGID}” -STR_1622 :{SMALLFONT}“Eu não vou pagar tudo isso por um bolo de {STRINGID}” -STR_1623 :{SMALLFONT}“Eu não vou pagar tudo isso por um óculos de sol de {STRINGID}” -STR_1624 :{SMALLFONT}“Eu não vou pagar tudo isso por um macarrão de {STRINGID}” -STR_1625 :{SMALLFONT}“Eu não vou pagar tudo isso por um arroz frito de {STRINGID}” -STR_1626 :{SMALLFONT}“Eu não vou pagar tudo isso por uma sopa de wonton de {STRINGID}” -STR_1627 :{SMALLFONT}“Eu não vou pagar tudo isso por uma sopa de almôndegas de {STRINGID}” -STR_1628 :{SMALLFONT}“Eu não vou pagar tudo isso por um suco de frutas de {STRINGID}” -STR_1629 :{SMALLFONT}“Eu não vou pagar tudo isso por um leite de soja de {STRINGID}” -STR_1630 :{SMALLFONT}“Eu não vou pagar tudo isso por um sujongkwa de {STRINGID}” -STR_1631 :{SMALLFONT}“Eu não vou pagar tudo isso por um sanduíche de {STRINGID}” -STR_1632 :{SMALLFONT}“Eu não vou pagar tudo isso por um cookie de {STRINGID}” +STR_1616 :“Eu não vou pagar tudo isso por uma foto em {STRINGID}” +STR_1617 :“Eu não vou pagar tudo isso por uma foto em {STRINGID}” +STR_1618 :“Eu não vou pagar tudo isso por uma foto em {STRINGID}” +STR_1619 :“Eu não vou pagar tudo isso por um pretzel de {STRINGID}” +STR_1620 :“Eu não vou pagar tudo isso por um chocolate quente de {STRINGID}” +STR_1621 :“Eu não vou pagar tudo isso por um chá gelado de {STRINGID}” +STR_1622 :“Eu não vou pagar tudo isso por um bolo de {STRINGID}” +STR_1623 :“Eu não vou pagar tudo isso por um óculos de sol de {STRINGID}” +STR_1624 :“Eu não vou pagar tudo isso por um macarrão de {STRINGID}” +STR_1625 :“Eu não vou pagar tudo isso por um arroz frito de {STRINGID}” +STR_1626 :“Eu não vou pagar tudo isso por uma sopa de wonton de {STRINGID}” +STR_1627 :“Eu não vou pagar tudo isso por uma sopa de almôndegas de {STRINGID}” +STR_1628 :“Eu não vou pagar tudo isso por um suco de frutas de {STRINGID}” +STR_1629 :“Eu não vou pagar tudo isso por um leite de soja de {STRINGID}” +STR_1630 :“Eu não vou pagar tudo isso por um sujongkwa de {STRINGID}” +STR_1631 :“Eu não vou pagar tudo isso por um sanduíche de {STRINGID}” +STR_1632 :“Eu não vou pagar tudo isso por um cookie de {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Eu não vou pagar tudo isso por uma linguiça grelhada de {STRINGID}” +STR_1636 :“Eu não vou pagar tudo isso por uma linguiça grelhada de {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1032,10 +1032,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Socorro! Me solte!” -STR_1649 :{SMALLFONT}“Estou ficando sem dinheiro!” -STR_1650 :{SMALLFONT}“Uau! Uma nova atração está sendo construída!” -STR_1653 :{SMALLFONT}“…e aqui estamos no {STRINGID}!” +STR_1648 :“Socorro! Me solte!” +STR_1649 :“Estou ficando sem dinheiro!” +STR_1650 :“Uau! Uma nova atração está sendo construída!” +STR_1653 :“…e aqui estamos no {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Pensamentos recentes: STR_1655 :Construir caminho no terreno STR_1656 :Construir ponte ou túnel de caminho @@ -1065,9 +1065,9 @@ STR_1679 :Espiral para Cima (esquerda) STR_1680 :Espiral para Cima (direita) STR_1681 :Espiral para Baixo (esquerda) STR_1682 :Espiral para Baixo (direita) -STR_1683 :Tamanho da base 2 x 2 -STR_1684 :Tamanho da base 4 x 4 -STR_1685 :Tamanho da base 2 x 4 +STR_1683 :Tamanho da base 2 × 2 +STR_1684 :Tamanho da base 4 × 4 +STR_1685 :Tamanho da base 2 × 4 STR_1686 :Tamanho da base 5 x 1 STR_1687 :Respingo da água STR_1688 :Tamanho da base 4 x 1 @@ -1187,7 +1187,7 @@ STR_1808 :{WINDOW_COLOUR_2}Última quebra: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Quebra atual: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Transportando: STR_1811 :Impossível construir isto aqui… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Objetos variados STR_1814 :Ações STR_1815 :Pensamentos @@ -1196,7 +1196,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Todos os visitantes STR_1819 :{WINDOW_COLOUR_2}Todos os visitantes (resumido) STR_1820 :{WINDOW_COLOUR_2}Visitantes {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Pensamentos dos visitantes {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Pensamentos dos visitantes {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitantes pensam sobre {{POP16}{STRINGID} STR_1823 :Mostrar os pensamentos dos visitantes sobre essa atração STR_1824 :Mostrar os visitantes nesta atração @@ -1297,7 +1297,6 @@ STR_1921 :Começar um novo jogo STR_1922 :Continuar um jogo salvo STR_1924 :Sair STR_1925 :Impossível colocar uma pessoa aqui… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} quebrou STR_1928 :{RED}{STRINGID} bateu! STR_1929 :{RED}{STRINGID} ainda não foi consertado{NEWLINE}Verifique aonde seus mecânicos estão e considere organizá-los melhor @@ -1578,7 +1577,7 @@ STR_2218 :{RED}{STRINGID} em {STRINGID} não voltou à {STRINGID} ainda!{NEWL STR_2219 :{RED}{COMMA16} pessoas morreram em um acidente em {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Classificação do Parque: {BLACK}{COMMA16} STR_2221 :Classificação do Parque: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Visitantes no parque: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Dinheiro: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Dinheiro: {RED}{CURRENCY2DP} @@ -1591,7 +1590,7 @@ STR_2231 :Freio que segura para queda STR_2232 :Cabo de elevação STR_2233 :Informação do Parque STR_2234 :Mensagens Recentes -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Janeiro STR_2237 :Fevereiro STR_2238 :Março @@ -1795,7 +1794,7 @@ STR_2450 :{YELLOW}Sua campanha publicitária para o parque terminou STR_2451 :{YELLOW}Sua campanha publicitária para {STRINGID} terminou STR_2452 :{WINDOW_COLOUR_2}Dinheiro (menos empréstimo): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Dinheiro (menos empréstimo): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Mostrar contas financeiras STR_2458 :Mostrar gráfico de dinheiro (menos de empréstimo) ao longo do tempo STR_2459 :Mostrar gráfico de valor parque ao longo do tempo @@ -1905,7 +1904,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Todas as pesquisas completadas -STR_2681 :{MEDIUMFONT}{BLACK}Incrementa seu dinheiro em {CURRENCY} STR_2684 :Um grande grupo de visitantes está chegando (250 visitantes) STR_2685 :Parâmetros de ruído simples STR_2686 :Baixo: @@ -1992,7 +1990,7 @@ STR_2789 :{WINDOW_COLOUR_2}Você falhou no seu objetivo! STR_2790 :Inserir nome na lista de cenário STR_2791 :Inserir nome STR_2792 :Por favor, insira o seu nome {NEWLINE}para a lista de cenário: -STR_2793 :{SMALLFONT}(Completado por {STRINGID}) +STR_2793 :(Completado por {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Completado por: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} com o valor da empresa de: {BLACK}{CURRENCY} STR_2795 :Ordenar STR_2796 :Ordenar a lista de atrações de acordo com o tipo de informação exibido @@ -2499,7 +2497,7 @@ STR_5134 :Ajustar área maior de direitos de terreno STR_5135 :Comprar direitos de terreno e direitos de construção STR_5136 :Direitos de terreno STR_5137 :Destrava os limites de operação -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Desativar falhas nos freios STR_5141 :Desativar todas as quebras @@ -2645,7 +2643,7 @@ STR_5297 :Abrir parque STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Demitir funcionários rapidamente -STR_5301 :{MEDIUMFONT}{BLACK}Limpar seu empréstimo +STR_5301 :Limpar seu empréstimo STR_5302 :Limpar empréstimo STR_5303 :Permitir construir com jogo pausado STR_5304 :Sequência de Títulos: @@ -2804,7 +2802,7 @@ STR_5481 :Temas STR_5482 :{WINDOW_COLOUR_2}Tempo desde a última inspeção: {BLACK}1 minuto STR_5483 :{BLACK}({COMMA16} semanas restantes) STR_5484 :{BLACK}({COMMA16} semana restante) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Exibir mensagens recentes STR_5489 :Mostrar apenas os visitantes monitorados @@ -3309,7 +3307,7 @@ STR_6030 :Apanhador de cenário. Clique em qualquer cenário do mapa para sel STR_6031 :Descrição do Servidor: STR_6032 :Saudação do Servidor: STR_6033 :Caminho para a instalação do RCT1: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Por favor, selecione o diretório do seu RCT1 STR_6036 :Limpar STR_6037 :O diretório selecionado não contém uma instalação válida de RollerCoaster 1. @@ -3454,7 +3452,7 @@ STR_6183 :Seguir{MOVE_X}{87}Nenhum sprite selecionado STR_6184 :Seguir Sprite STR_6185 :Selecionar Sprite STR_6186 :Nenhum sprite selecionado -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Vômito STR_6189 :Pato STR_6190 :Você não pode selecionar um sprite enquanto a tela principal está ativa. @@ -3604,7 +3602,7 @@ STR_6356 :Gerar patos se o parque tiver água STR_6357 :Remover todos os patos do mapa STR_6358 :Página {UINT16} STR_6359 :{POP16}{POP16}Página {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Habilitar efeitos luminosos em atrações (experimental) STR_6362 :Se habilitados, veículos de atrações com trilhos serão iluminados à noite. STR_6363 :Texto copiado para a área de transferência @@ -3679,6 +3677,25 @@ STR_6431 :Botão Direito Mouse STR_6432 :Mouse {INT32} STR_6433 :Remover STR_6434 :Remover todos os vínculos desse atalho. +STR_6435 :{WINDOW_COLOUR_2}Vândalos impedidos: {BLACK}{COMMA16} +STR_6436 :Liga/desliga invisibilidade +STR_6437 :Invisível +STR_6438 :I +STR_6439 :Inspetor de Azulejo: Liga/desliga invisibilidade +STR_6440 :Água transparente +STR_6441 :Pelo menos um objeto de superfície de calçada que não seja fila deve ser selecionado. +STR_6442 :Pelo menos um objeto de superfície de calçada de fila deve ser selecionado. +STR_6443 :Pelo menos um objeto de corrimão de calçada deve ser selecionado. +STR_6444 :Superfícies de Calçada +STR_6445 :Corrimões de Calçada +STR_6446 :{WINDOW_COLOUR_2}Nome da superfície: {BLACK}{STRINGID} +STR_6447 :{WINDOW_COLOUR_2}Nome do corrimão: {BLACK}{STRINGID} +STR_6448 :Formato de objeto não suportado +STR_6449 :{WINDOW_COLOUR_2}Trilhos: +STR_6450 :{BLACK}“{STRING}” +STR_6451 :{BLACK}“{STRING}” - {STRING} +STR_6452 :{WINDOW_COLOUR_2}Vende: {BLACK}{STRING} +STR_6453 :Copiar informações da versão ############# # Scenarios # diff --git a/data/language/ru-RU.txt b/data/language/ru-RU.txt index e81b4c8be9..93b52e608c 100644 --- a/data/language/ru-RU.txt +++ b/data/language/ru-RU.txt @@ -794,14 +794,14 @@ STR_1410 :Вертикальная башня STR_1411 :{STRINGID} на пути STR_1412 :{WINDOW_COLOUR_3}Логи недоступны для этого типа аттракционов STR_1413 :{WINDOW_COLOUR_3}Стат. вкл., когда след. {STRINGID} покинет {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Скорость STR_1416 :{WINDOW_COLOUR_2}Высота STR_1417 :{WINDOW_COLOUR_2}Верт.g STR_1418 :{WINDOW_COLOUR_2}Бок.g -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Данные с {POP16}{STRINGID} STR_1423 :Дорожка очереди STR_1424 :Дорожка @@ -860,131 +860,131 @@ STR_1476 :{WINDOW_COLOUR_2}Напряжённость {BLACK}ещё не до STR_1477 :{WINDOW_COLOUR_2}Напряжённость: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Тошнота: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Тошнота {BLACK}ещё не доступно -STR_1480 :{SMALLFONT}“Не могу себе позволить {STRINGID}” -STR_1481 :{SMALLFONT}“Я потратил все свои деньги” -STR_1482 :{SMALLFONT}“Мне плохо” -STR_1483 :{SMALLFONT}“Мне очень плохо” -STR_1484 :{SMALLFONT}“Я хочу что-нибудь более жуткое, чем {STRINGID}” -STR_1485 :{SMALLFONT}“{STRINGID} слишком напрягает меня” -STR_1486 :{SMALLFONT}“Мне надоело:{STRINGID} ” -STR_1487 :{SMALLFONT}“Один взгляд на {STRINGID} вызывает у меня тошноту” -STR_1488 :{SMALLFONT}“Я не буду столько платить за {STRINGID}” -STR_1489 :{SMALLFONT}“Я хочу домой” -STR_1490 :{SMALLFONT}“{STRINGID} очень хорош” -STR_1491 :{SMALLFONT}“У меня уже есть {STRINGID}” -STR_1492 :{SMALLFONT}“Не могу выносить {STRINGID}” -STR_1493 :{SMALLFONT}“Я не голоден” -STR_1494 :{SMALLFONT}“Я не хочу пить” -STR_1495 :{SMALLFONT}“Помогите! Заблудился!” -STR_1496 :{SMALLFONT}“Я потерялся!” -STR_1497 :{SMALLFONT}“{STRINGID} нравится” -STR_1498 :{SMALLFONT}“Я простоял в очереди {STRINGID} сто лет” -STR_1499 :{SMALLFONT}“Я устал” -STR_1500 :{SMALLFONT}“Хочу есть” -STR_1501 :{SMALLFONT}“Хочу пить” -STR_1502 :{SMALLFONT}“Мне надо в туалет” -STR_1503 :{SMALLFONT}“Не могу найти {STRINGID}” -STR_1504 :{SMALLFONT}“Я не буду платить так много за {STRINGID}” -STR_1505 :{SMALLFONT}“Я не пойду на {STRINGID} пока идет дождь” -STR_1506 :{SMALLFONT}“Здесь очень много мусора” -STR_1507 :{SMALLFONT}“Я не могу найти выход” -STR_1508 :{SMALLFONT}“Я хочу покинуть {STRINGID}” -STR_1509 :{SMALLFONT}“Я хочу выйти из {STRINGID}” -STR_1510 :{SMALLFONT}“Я не пойду {STRINGID} - Это небезопасно” -STR_1511 :{SMALLFONT}“Дорожка отвратительна” -STR_1512 :{SMALLFONT}“Здесь слишком тесно” -STR_1513 :{SMALLFONT}“Вандализм здесь крайне неприятен” -STR_1514 :{SMALLFONT}“Прекрасный вид!” -STR_1515 :{SMALLFONT}“Этот парк очень чистый” -STR_1516 :{SMALLFONT}“Прыгающие фонтаны великолепны” -STR_1517 :{SMALLFONT}“Эта музыка очень приятна” -STR_1518 :{SMALLFONT}“Этот шарик из {STRINGID} очень хорош” -STR_1519 :{SMALLFONT}“Эта игрушка из {STRINGID} очень хороша” -STR_1520 :{SMALLFONT}“Эта карта парка из {STRINGID} очень хороша” -STR_1521 :{SMALLFONT}“Это фото из {STRINGID} очень хорошо” -STR_1522 :{SMALLFONT}“Этот зонтик из {STRINGID} очень хорош” -STR_1523 :{SMALLFONT}“Этот напиток из {STRINGID} очень хорош” -STR_1524 :{SMALLFONT}“Этот бургер из {STRINGID} очень хорош” -STR_1525 :{SMALLFONT}“Эта картошка из {STRINGID} очень хороша” -STR_1526 :{SMALLFONT}“Это мороженное из {STRINGID} очень хорошо” -STR_1527 :{SMALLFONT}“Эта вата из {STRINGID} очень хороша” +STR_1480 :“Не могу себе позволить {STRINGID}” +STR_1481 :“Я потратил все свои деньги” +STR_1482 :“Мне плохо” +STR_1483 :“Мне очень плохо” +STR_1484 :“Я хочу что-нибудь более жуткое, чем {STRINGID}” +STR_1485 :“{STRINGID} слишком напрягает меня” +STR_1486 :“Мне надоело:{STRINGID} ” +STR_1487 :“Один взгляд на {STRINGID} вызывает у меня тошноту” +STR_1488 :“Я не буду столько платить за {STRINGID}” +STR_1489 :“Я хочу домой” +STR_1490 :“{STRINGID} очень хорош” +STR_1491 :“У меня уже есть {STRINGID}” +STR_1492 :“Не могу выносить {STRINGID}” +STR_1493 :“Я не голоден” +STR_1494 :“Я не хочу пить” +STR_1495 :“Помогите! Заблудился!” +STR_1496 :“Я потерялся!” +STR_1497 :“{STRINGID} нравится” +STR_1498 :“Я простоял в очереди {STRINGID} сто лет” +STR_1499 :“Я устал” +STR_1500 :“Хочу есть” +STR_1501 :“Хочу пить” +STR_1502 :“Мне надо в туалет” +STR_1503 :“Не могу найти {STRINGID}” +STR_1504 :“Я не буду платить так много за {STRINGID}” +STR_1505 :“Я не пойду на {STRINGID} пока идет дождь” +STR_1506 :“Здесь очень много мусора” +STR_1507 :“Я не могу найти выход” +STR_1508 :“Я хочу покинуть {STRINGID}” +STR_1509 :“Я хочу выйти из {STRINGID}” +STR_1510 :“Я не пойду {STRINGID} - Это небезопасно” +STR_1511 :“Дорожка отвратительна” +STR_1512 :“Здесь слишком тесно” +STR_1513 :“Вандализм здесь крайне неприятен” +STR_1514 :“Прекрасный вид!” +STR_1515 :“Этот парк очень чистый” +STR_1516 :“Прыгающие фонтаны великолепны” +STR_1517 :“Эта музыка очень приятна” +STR_1518 :“Этот шарик из {STRINGID} очень хорош” +STR_1519 :“Эта игрушка из {STRINGID} очень хороша” +STR_1520 :“Эта карта парка из {STRINGID} очень хороша” +STR_1521 :“Это фото из {STRINGID} очень хорошо” +STR_1522 :“Этот зонтик из {STRINGID} очень хорош” +STR_1523 :“Этот напиток из {STRINGID} очень хорош” +STR_1524 :“Этот бургер из {STRINGID} очень хорош” +STR_1525 :“Эта картошка из {STRINGID} очень хороша” +STR_1526 :“Это мороженное из {STRINGID} очень хорошо” +STR_1527 :“Эта вата из {STRINGID} очень хороша” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Эта пицца из {STRINGID} очень хороша” +STR_1531 :“Эта пицца из {STRINGID} очень хороша” STR_1532 : -STR_1533 :{SMALLFONT}“Этот попкорн из {STRINGID} очень хорош” -STR_1534 :{SMALLFONT}“Этот хот-дог из {STRINGID} очень хорош” -STR_1535 :{SMALLFONT}“Этот тентакль из {STRINGID} очень хорош” -STR_1536 :{SMALLFONT}“Эта панама из {STRINGID} очень хороша” -STR_1537 :{SMALLFONT}“Эта яблочная конфета из {STRINGID} очень хороша” -STR_1538 :{SMALLFONT}“Эта футболка из {STRINGID} очень хороша” -STR_1539 :{SMALLFONT}“Этот бублик из {STRINGID} очень хорош” -STR_1540 :{SMALLFONT}“Этот кофе из {STRINGID} очень хорош” +STR_1533 :“Этот попкорн из {STRINGID} очень хорош” +STR_1534 :“Этот хот-дог из {STRINGID} очень хорош” +STR_1535 :“Этот тентакль из {STRINGID} очень хорош” +STR_1536 :“Эта панама из {STRINGID} очень хороша” +STR_1537 :“Эта яблочная конфета из {STRINGID} очень хороша” +STR_1538 :“Эта футболка из {STRINGID} очень хороша” +STR_1539 :“Этот бублик из {STRINGID} очень хорош” +STR_1540 :“Этот кофе из {STRINGID} очень хорош” STR_1541 : -STR_1542 :{SMALLFONT}“Этот цыплёнок из {STRINGID} очень хорош” -STR_1543 :{SMALLFONT}“Лимонад из {STRINGID} очень хорош” +STR_1542 :“Этот цыплёнок из {STRINGID} очень хорош” +STR_1543 :“Лимонад из {STRINGID} очень хорош” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Вау!” -STR_1551 :{SMALLFONT}“Мне кажется, за мной кто-то наблюдает” -STR_1552 :{SMALLFONT}“Я не хочу так много платить за шарик из {STRINGID}” -STR_1553 :{SMALLFONT}“Я не хочу так много платить за игрушку из {STRINGID}” -STR_1554 :{SMALLFONT}“Я не хочу так много платить за карту парка из {STRINGID}” -STR_1555 :{SMALLFONT}“Я не хочу так много платить за фото из {STRINGID}” -STR_1556 :{SMALLFONT}“Я не хочу так много платить за зонтик из {STRINGID}” -STR_1557 :{SMALLFONT}“Я не хочу так много платить за напиток из {STRINGID}” -STR_1558 :{SMALLFONT}“Я не хочу так много платить за бургер из {STRINGID}” -STR_1559 :{SMALLFONT}“Я не хочу так много платить за картошку из {STRINGID}” -STR_1560 :{SMALLFONT}“Я не хочу так много платить за мороженное из {STRINGID}” -STR_1561 :{SMALLFONT}“Я не хочу так много платить за вату из {STRINGID}” +STR_1550 :“Вау!” +STR_1551 :“Мне кажется, за мной кто-то наблюдает” +STR_1552 :“Я не хочу так много платить за шарик из {STRINGID}” +STR_1553 :“Я не хочу так много платить за игрушку из {STRINGID}” +STR_1554 :“Я не хочу так много платить за карту парка из {STRINGID}” +STR_1555 :“Я не хочу так много платить за фото из {STRINGID}” +STR_1556 :“Я не хочу так много платить за зонтик из {STRINGID}” +STR_1557 :“Я не хочу так много платить за напиток из {STRINGID}” +STR_1558 :“Я не хочу так много платить за бургер из {STRINGID}” +STR_1559 :“Я не хочу так много платить за картошку из {STRINGID}” +STR_1560 :“Я не хочу так много платить за мороженное из {STRINGID}” +STR_1561 :“Я не хочу так много платить за вату из {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Я не хочу так много платить за пиццу из {STRINGID}” +STR_1565 :“Я не хочу так много платить за пиццу из {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Я не хочу так много платить за попкорн из {STRINGID}” -STR_1568 :{SMALLFONT}“Я не хочу так много платить за хот-дог из {STRINGID}” -STR_1569 :{SMALLFONT}“Я не хочу так много платить за тентакль из {STRINGID}” -STR_1570 :{SMALLFONT}“Я не хочу так много платить за панаму из {STRINGID}” -STR_1571 :{SMALLFONT}“Я не хочу так много платить за яблочную конфету из {STRINGID}” -STR_1572 :{SMALLFONT}“Я не хочу так много платить за футболку из {STRINGID}” -STR_1573 :{SMALLFONT}“Я не хочу так много платить за бублик из {STRINGID}” -STR_1574 :{SMALLFONT}“Я не хочу так много платить за кофе из {STRINGID}” +STR_1567 :“Я не хочу так много платить за попкорн из {STRINGID}” +STR_1568 :“Я не хочу так много платить за хот-дог из {STRINGID}” +STR_1569 :“Я не хочу так много платить за тентакль из {STRINGID}” +STR_1570 :“Я не хочу так много платить за панаму из {STRINGID}” +STR_1571 :“Я не хочу так много платить за яблочную конфету из {STRINGID}” +STR_1572 :“Я не хочу так много платить за футболку из {STRINGID}” +STR_1573 :“Я не хочу так много платить за бублик из {STRINGID}” +STR_1574 :“Я не хочу так много платить за кофе из {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Я не хочу так много платить за цыпленка из {STRINGID}” -STR_1577 :{SMALLFONT}“Я не хочу так много платить за лимонад из {STRINGID}” +STR_1576 :“Я не хочу так много платить за цыпленка из {STRINGID}” +STR_1577 :“Я не хочу так много платить за лимонад из {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Это фото из {STRINGID} очень хорошо” -STR_1585 :{SMALLFONT}“Это фото из {STRINGID} очень хорошо” -STR_1586 :{SMALLFONT}“Это фото из {STRINGID} очень хорошо” -STR_1587 :{SMALLFONT}“Этот крендель из {STRINGID} очень хорош” -STR_1588 :{SMALLFONT}“Этот горячий шоколад из {STRINGID} очень хорош” -STR_1589 :{SMALLFONT}“Этот холодный чай из {STRINGID} очень хорош” -STR_1590 :{SMALLFONT}“Этот пирог из {STRINGID} очень хорош” -STR_1591 :{SMALLFONT}“Эти очки из {STRINGID} очень хороши” -STR_1592 :{SMALLFONT}“Эта лапша из {STRINGID} очень хороша” -STR_1593 :{SMALLFONT}“Этот рис из {STRINGID} очень хорош” -STR_1594 :{SMALLFONT}“Этот супчик из {STRINGID} очень хорош” -STR_1595 :{SMALLFONT}“Этот мясной суп из {STRINGID} очень хорош” -STR_1596 :{SMALLFONT}“Этот фруктовый сок из {STRINGID} очень хорош” -STR_1597 :{SMALLFONT}“Это соевое молоко из {STRINGID} очень хорошо” -STR_1598 :{SMALLFONT}“Этот сучжонгва из {STRINGID} очень хорош” -STR_1599 :{SMALLFONT}“Этот сэндвич из {STRINGID} очень хорош” -STR_1600 :{SMALLFONT}“Это печенье из {STRINGID} очень хорошо” +STR_1584 :“Это фото из {STRINGID} очень хорошо” +STR_1585 :“Это фото из {STRINGID} очень хорошо” +STR_1586 :“Это фото из {STRINGID} очень хорошо” +STR_1587 :“Этот крендель из {STRINGID} очень хорош” +STR_1588 :“Этот горячий шоколад из {STRINGID} очень хорош” +STR_1589 :“Этот холодный чай из {STRINGID} очень хорош” +STR_1590 :“Этот пирог из {STRINGID} очень хорош” +STR_1591 :“Эти очки из {STRINGID} очень хороши” +STR_1592 :“Эта лапша из {STRINGID} очень хороша” +STR_1593 :“Этот рис из {STRINGID} очень хорош” +STR_1594 :“Этот супчик из {STRINGID} очень хорош” +STR_1595 :“Этот мясной суп из {STRINGID} очень хорош” +STR_1596 :“Этот фруктовый сок из {STRINGID} очень хорош” +STR_1597 :“Это соевое молоко из {STRINGID} очень хорошо” +STR_1598 :“Этот сучжонгва из {STRINGID} очень хорош” +STR_1599 :“Этот сэндвич из {STRINGID} очень хорош” +STR_1600 :“Это печенье из {STRINGID} очень хорошо” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Эта сосиска из {STRINGID} очень хороша” +STR_1604 :“Эта сосиска из {STRINGID} очень хороша” STR_1605 : STR_1606 : STR_1607 : @@ -996,27 +996,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Я не хочу так много платить за фото из {STRINGID}” -STR_1617 :{SMALLFONT}“Я не хочу так много платить за фото из {STRINGID}” -STR_1618 :{SMALLFONT}“Я не хочу так много платить за фото из {STRINGID}” -STR_1619 :{SMALLFONT}“Я не хочу так много платить за крендель из {STRINGID}” -STR_1620 :{SMALLFONT}“Я не хочу так много платить за горячий шоколад из {STRINGID}” -STR_1621 :{SMALLFONT}“Я не хочу так много платить за холодный чай из {STRINGID}” -STR_1622 :{SMALLFONT}“Я не хочу так много платить за пирог из {STRINGID}” -STR_1623 :{SMALLFONT}“Я не хочу так много платить за очки из {STRINGID}” -STR_1624 :{SMALLFONT}“Я не хочу так много платить за лапшу из {STRINGID}” -STR_1625 :{SMALLFONT}“Я не хочу так много платить за рис из {STRINGID}” -STR_1626 :{SMALLFONT}“Я не хочу так много платить за супчик из {STRINGID}” -STR_1627 :{SMALLFONT}“Я не хочу так много платить за мясной суп из {STRINGID}” -STR_1628 :{SMALLFONT}“Я не хочу так много платить за фруктовый сок из {STRINGID}” -STR_1629 :{SMALLFONT}“Я не хочу так много платить за соевое молоко из {STRINGID}” -STR_1630 :{SMALLFONT}“Я не хочу так много платить за сучжонгва из {STRINGID}” -STR_1631 :{SMALLFONT}“Я не хочу так много платить за сендвич из {STRINGID}” -STR_1632 :{SMALLFONT}“Я не хочу так много платить за печенье из {STRINGID}” +STR_1616 :“Я не хочу так много платить за фото из {STRINGID}” +STR_1617 :“Я не хочу так много платить за фото из {STRINGID}” +STR_1618 :“Я не хочу так много платить за фото из {STRINGID}” +STR_1619 :“Я не хочу так много платить за крендель из {STRINGID}” +STR_1620 :“Я не хочу так много платить за горячий шоколад из {STRINGID}” +STR_1621 :“Я не хочу так много платить за холодный чай из {STRINGID}” +STR_1622 :“Я не хочу так много платить за пирог из {STRINGID}” +STR_1623 :“Я не хочу так много платить за очки из {STRINGID}” +STR_1624 :“Я не хочу так много платить за лапшу из {STRINGID}” +STR_1625 :“Я не хочу так много платить за рис из {STRINGID}” +STR_1626 :“Я не хочу так много платить за супчик из {STRINGID}” +STR_1627 :“Я не хочу так много платить за мясной суп из {STRINGID}” +STR_1628 :“Я не хочу так много платить за фруктовый сок из {STRINGID}” +STR_1629 :“Я не хочу так много платить за соевое молоко из {STRINGID}” +STR_1630 :“Я не хочу так много платить за сучжонгва из {STRINGID}” +STR_1631 :“Я не хочу так много платить за сендвич из {STRINGID}” +STR_1632 :“Я не хочу так много платить за печенье из {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Я не хочу так много платить за сосиску из {STRINGID}” +STR_1636 :“Я не хочу так много платить за сосиску из {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1028,10 +1028,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Помогите! Опустите меня!” -STR_1649 :{SMALLFONT}“У меня кончились деньги!” -STR_1650 :{SMALLFONT}“Вау! Новый аттракцион!” -STR_1653 :{SMALLFONT}“…и вот мы на {STRINGID}!” +STR_1648 :“Помогите! Опустите меня!” +STR_1649 :“У меня кончились деньги!” +STR_1650 :“Вау! Новый аттракцион!” +STR_1653 :“…и вот мы на {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Недавние мысли: STR_1655 :Построить дорожку на земле STR_1656 :Построить мост или туннель @@ -1183,7 +1183,7 @@ STR_1808 :{WINDOW_COLOUR_2}Последняя поломка: {BLACK}{STRINGI STR_1809 :{WINDOW_COLOUR_2}Текущая поломка: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Несёт: STR_1811 :Здесь строить нельзя… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Разные объекты STR_1814 :Действия STR_1815 :Мысли @@ -1192,7 +1192,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Все гости STR_1819 :{WINDOW_COLOUR_2}Гости (в общем) STR_1820 :{WINDOW_COLOUR_2}Гости {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Гости думают {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Гости думают {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Гости думают о {POP16}{STRINGID} STR_1823 :Показать мысли гостей по этому аттракциону STR_1824 :Показать гостей на этом аттракционе @@ -1293,7 +1293,6 @@ STR_1921 :Начать новую игру STR_1922 :Продолжить игру STR_1924 :Выход STR_1925 :Нельзя поставить сюда… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} сломался STR_1928 :{RED}{STRINGID} разбился! STR_1929 :{RED}{STRINGID} ещё не починен{NEWLINE}Проверьте, где ваши механики и постарайтесь их организовать @@ -1574,7 +1573,7 @@ STR_2218 :{RED}{STRINGID} на аттр. {STRINGID} не возвращает STR_2219 :{RED}{COMMA16} людей погибло на {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Рейтинг парка: {BLACK}{COMMA16} STR_2221 :Рейтинг парка: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Гостей в парке: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Деньги: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Деньги: {RED}{CURRENCY2DP} @@ -1587,7 +1586,7 @@ STR_2231 :Тормоза для падения STR_2232 :Кабельный лифт STR_2233 :О парке STR_2234 :Послед. сообщения -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Янв. STR_2237 :Февр. STR_2238 :Март @@ -1791,7 +1790,7 @@ STR_2450 :{YELLOW}Ваша рекламная кампания парка з STR_2451 :{YELLOW}Ваша рекламная кампания для {STRINGID} закончилась STR_2452 :{WINDOW_COLOUR_2}Деньги (с займом): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Деньги (с займом): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Показать балансы STR_2458 :Показать график денег по времени STR_2459 :Показать график стоимости парка @@ -1901,7 +1900,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Все исследования завершены -STR_2681 :{MEDIUMFONT}{BLACK}Увеличит сумму ваших денег на {CURRENCY} STR_2684 :Прибудет большая группа гостей STR_2685 :Параметры симплексного шума STR_2686 :Нижний предел: @@ -1989,7 +1987,7 @@ STR_2789 :{WINDOW_COLOUR_2}Вы провалили задание ! STR_2790 :Введите имя в список STR_2791 :Введите имя STR_2792 :Пожалуйста, введите ваше имя: -STR_2793 :{SMALLFONT}(Завершено {STRINGID}) +STR_2793 :(Завершено {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Завершено: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} Стоимость компании: {BLACK}{CURRENCY} STR_2795 :Сорт. STR_2796 :Сортировать список аттракционов по типу @@ -2494,7 +2492,7 @@ STR_5132 :Потремонтировать все аттракционы STR_5135 :Купить права на землю и строительство STR_5136 :Права собственности на землю STR_5137 :Оотключить операционные пределы -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Отключить поломку тормозов STR_5141 :Отключить все поломки @@ -2566,16 +2564,16 @@ STR_5375 :▲ STR_5376 :▼ STR_5462 :{CURRENCY} STR_5467 :ALT + -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5918 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} STR_5919 :{COMMA16} -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6062 :{OUTLINE}{GREEN}+ {CURRENCY2DP} STR_6063 :{OUTLINE}{RED}- {CURRENCY2DP} STR_6164 :{WHITE}❌ -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6360 :{BLACK}{COMMA32} # This language is unmaintained. All untranslated strings have been removed. # If you intend to become the maintainer, please copy the missing strings from en-GB.txt and translate them. diff --git a/data/language/sv-SE.txt b/data/language/sv-SE.txt index 0b46e94041..9994f23fb9 100644 --- a/data/language/sv-SE.txt +++ b/data/language/sv-SE.txt @@ -799,14 +799,14 @@ STR_1410 :Vertikalt torn STR_1411 :{STRINGID} är i vägen STR_1412 :{WINDOW_COLOUR_3}Den här sortens åktur kan inte spara data STR_1413 :{WINDOW_COLOUR_3}Sparande av data börjar när nästa {STRINGID} lämnar {STRINGID} -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Hastighet STR_1416 :{WINDOW_COLOUR_2}Höjd STR_1417 :{WINDOW_COLOUR_2}Lodrät G-kraft STR_1418 :{WINDOW_COLOUR_2}Vågrät G-kraft -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :Sparar data från {POP16}{STRINGID} STR_1423 :Kö STR_1424 :Gångväg @@ -865,131 +865,131 @@ STR_1476 :{WINDOW_COLOUR_2}Intensitetsnivå: {BLACK}Inte tillgänglig STR_1477 :{WINDOW_COLOUR_2}Intensitetsnivå: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Illamåendenivå: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Illamåendenivå: {BLACK}Inte tillgänglig -STR_1480 :{SMALLFONT}”Jag har inte råd med {STRINGID}” -STR_1481 :{SMALLFONT}”Jag har spenderat alla mina pengar” -STR_1482 :{SMALLFONT}”Jag mår illa” -STR_1483 :{SMALLFONT}”Jag mår pyton” -STR_1484 :{SMALLFONT}”Jag vill åka något mer spännande än {STRINGID}” -STR_1485 :{SMALLFONT}”{STRINGID} ser för intensiv ut för mig” -STR_1486 :{SMALLFONT}”Jag är inte klar med min {STRINGID} än” -STR_1487 :{SMALLFONT}”Bara att kolla på {STRINGID} får mig att må illa” -STR_1488 :{SMALLFONT}”Jag tänker inte betala så mycket för {STRINGID}” -STR_1489 :{SMALLFONT}”Jag vill gå hem” -STR_1490 :{SMALLFONT}”{STRINGID} är verkligen värd pengarna” -STR_1491 :{SMALLFONT}”Jag har redan {STRINGID}” -STR_1492 :{SMALLFONT}”Jag har inte råd med {STRINGID}” -STR_1493 :{SMALLFONT}”Jag är inte hungrig” -STR_1494 :{SMALLFONT}”Jag är inte törstig” -STR_1495 :{SMALLFONT}”Hjälp! Jag drunknar!” -STR_1496 :{SMALLFONT}”Jag har tappat bort mig!” -STR_1497 :{SMALLFONT}”{STRINGID} var superkul” -STR_1498 :{SMALLFONT}”Jag har köat till {STRINGID} i åratal” -STR_1499 :{SMALLFONT}”Jag är trött” -STR_1500 :{SMALLFONT}”Jag är hungrig” -STR_1501 :{SMALLFONT}”Jag är törstig” -STR_1502 :{SMALLFONT}”Jag måste gå på toa” -STR_1503 :{SMALLFONT}”Jag kan inte hitta {STRINGID}” -STR_1504 :{SMALLFONT}”Jag tänker inte betala så mycket för att använda {STRINGID}” -STR_1505 :{SMALLFONT}”Jag tänker inte åka {STRINGID} när det regnar” -STR_1506 :{SMALLFONT}”Nedskräpningen här är hemsk” -STR_1507 :{SMALLFONT}”Jag kan inte hitta parkutgången” -STR_1508 :{SMALLFONT}”Jag vill hoppa av {STRINGID}” -STR_1509 :{SMALLFONT}”Jag vill ut ur {STRINGID}” -STR_1510 :{SMALLFONT}”Jag tänker inte åka {STRINGID} – Det är inte säkert nog” -STR_1511 :{SMALLFONT}”Den här gångvägen är vidrig” -STR_1512 :{SMALLFONT}”Det är för mycket folk här” -STR_1513 :{SMALLFONT}”Skadegörelsen här är verkligen illa” -STR_1514 :{SMALLFONT}”Snygga dekorationer!” -STR_1515 :{SMALLFONT}”Den här parken är verkligen ren och fin” -STR_1516 :{SMALLFONT}”Fontänerna är fantastiska” -STR_1517 :{SMALLFONT}”Musiken här är trevlig” -STR_1518 :{SMALLFONT}”Ballongen från {STRINGID} var verkligen värd pengarna” -STR_1519 :{SMALLFONT}”Kramdjuret från {STRINGID} var verkligen värt pengarna” -STR_1520 :{SMALLFONT}”Kartan från {STRINGID} var verkligen värd pengarna” -STR_1521 :{SMALLFONT}”Fotot från åkturen {STRINGID} var verkligen värt pengarna” -STR_1522 :{SMALLFONT}”Paraplyet från {STRINGID} var verkligen värt pengarna” -STR_1523 :{SMALLFONT}”Drickan från {STRINGID} var verkligen värd pengarna” -STR_1524 :{SMALLFONT}”Hamburgaren från {STRINGID} var verkligen värd pengarna” -STR_1525 :{SMALLFONT}”Pommes fritesen från {STRINGID} var verkligen värda pengarna” -STR_1526 :{SMALLFONT}”Glassen från {STRINGID} var verkligen värd pengarna” -STR_1527 :{SMALLFONT}”Sockervadden från {STRINGID} var verkligen värd pengarna” +STR_1480 :”Jag har inte råd med {STRINGID}” +STR_1481 :”Jag har spenderat alla mina pengar” +STR_1482 :”Jag mår illa” +STR_1483 :”Jag mår pyton” +STR_1484 :”Jag vill åka något mer spännande än {STRINGID}” +STR_1485 :”{STRINGID} ser för intensiv ut för mig” +STR_1486 :”Jag är inte klar med min {STRINGID} än” +STR_1487 :”Bara att kolla på {STRINGID} får mig att må illa” +STR_1488 :”Jag tänker inte betala så mycket för {STRINGID}” +STR_1489 :”Jag vill gå hem” +STR_1490 :”{STRINGID} är verkligen värd pengarna” +STR_1491 :”Jag har redan {STRINGID}” +STR_1492 :”Jag har inte råd med {STRINGID}” +STR_1493 :”Jag är inte hungrig” +STR_1494 :”Jag är inte törstig” +STR_1495 :”Hjälp! Jag drunknar!” +STR_1496 :”Jag har tappat bort mig!” +STR_1497 :”{STRINGID} var superkul” +STR_1498 :”Jag har köat till {STRINGID} i åratal” +STR_1499 :”Jag är trött” +STR_1500 :”Jag är hungrig” +STR_1501 :”Jag är törstig” +STR_1502 :”Jag måste gå på toa” +STR_1503 :”Jag kan inte hitta {STRINGID}” +STR_1504 :”Jag tänker inte betala så mycket för att använda {STRINGID}” +STR_1505 :”Jag tänker inte åka {STRINGID} när det regnar” +STR_1506 :”Nedskräpningen här är hemsk” +STR_1507 :”Jag kan inte hitta parkutgången” +STR_1508 :”Jag vill hoppa av {STRINGID}” +STR_1509 :”Jag vill ut ur {STRINGID}” +STR_1510 :”Jag tänker inte åka {STRINGID} – Det är inte säkert nog” +STR_1511 :”Den här gångvägen är vidrig” +STR_1512 :”Det är för mycket folk här” +STR_1513 :”Skadegörelsen här är verkligen illa” +STR_1514 :”Snygga dekorationer!” +STR_1515 :”Den här parken är verkligen ren och fin” +STR_1516 :”Fontänerna är fantastiska” +STR_1517 :”Musiken här är trevlig” +STR_1518 :”Ballongen från {STRINGID} var verkligen värd pengarna” +STR_1519 :”Kramdjuret från {STRINGID} var verkligen värt pengarna” +STR_1520 :”Kartan från {STRINGID} var verkligen värd pengarna” +STR_1521 :”Fotot från åkturen {STRINGID} var verkligen värt pengarna” +STR_1522 :”Paraplyet från {STRINGID} var verkligen värt pengarna” +STR_1523 :”Drickan från {STRINGID} var verkligen värd pengarna” +STR_1524 :”Hamburgaren från {STRINGID} var verkligen värd pengarna” +STR_1525 :”Pommes fritesen från {STRINGID} var verkligen värda pengarna” +STR_1526 :”Glassen från {STRINGID} var verkligen värd pengarna” +STR_1527 :”Sockervadden från {STRINGID} var verkligen värd pengarna” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}”Pizzan från {STRINGID} var verkligen värd pengarna” +STR_1531 :”Pizzan från {STRINGID} var verkligen värd pengarna” STR_1532 : -STR_1533 :{SMALLFONT}”Popcornen från {STRINGID} var verkligen värda pengarna” -STR_1534 :{SMALLFONT}”Varmkorven från {STRINGID} var verkligen värd pengarna” -STR_1535 :{SMALLFONT}”Tentakeln från {STRINGID} var verkligen värd pengarna” -STR_1536 :{SMALLFONT}”Hatten från {STRINGID} var verkligen värd pengarna” -STR_1537 :{SMALLFONT}”Det kanderade äpplet från {STRINGID} var verkligen värt pengarna” -STR_1538 :{SMALLFONT}”T-tröjan från {STRINGID} var verkligen värd pengarna” -STR_1539 :{SMALLFONT}”Munken från {STRINGID} var verkligen värd pengarna” -STR_1540 :{SMALLFONT}”Kaffet från {STRINGID} var verkligen värt pengarna” +STR_1533 :”Popcornen från {STRINGID} var verkligen värda pengarna” +STR_1534 :”Varmkorven från {STRINGID} var verkligen värd pengarna” +STR_1535 :”Tentakeln från {STRINGID} var verkligen värd pengarna” +STR_1536 :”Hatten från {STRINGID} var verkligen värd pengarna” +STR_1537 :”Det kanderade äpplet från {STRINGID} var verkligen värt pengarna” +STR_1538 :”T-tröjan från {STRINGID} var verkligen värd pengarna” +STR_1539 :”Munken från {STRINGID} var verkligen värd pengarna” +STR_1540 :”Kaffet från {STRINGID} var verkligen värt pengarna” STR_1541 : -STR_1542 :{SMALLFONT}”Den friterade kycklingen från {STRINGID} var verkligen värd pengarna” -STR_1543 :{SMALLFONT}”Saften från {STRINGID} var verkligen värd pengarna” +STR_1542 :”Den friterade kycklingen från {STRINGID} var verkligen värd pengarna” +STR_1543 :”Saften från {STRINGID} var verkligen värd pengarna” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}”Wow!” -STR_1551 :{SMALLFONT}”Det känns som att någon iakttar mig” -STR_1552 :{SMALLFONT}”Jag tänker inte betala så mycket för en ballong från {STRINGID}” -STR_1553 :{SMALLFONT}”Jag tänker inte betala så mycket för ett mjukisdjur från {STRINGID}” -STR_1554 :{SMALLFONT}”Jag tänker inte betala så mycket för en karta från {STRINGID}” -STR_1555 :{SMALLFONT}”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” -STR_1556 :{SMALLFONT}”Jag tänker inte betala så mycket för ett paraply från {STRINGID}” -STR_1557 :{SMALLFONT}”Jag tänker inte betala så mycket för en dricka från {STRINGID}” -STR_1558 :{SMALLFONT}”Jag tänker inte betala så mycket för en hamburgare från {STRINGID}” -STR_1559 :{SMALLFONT}”Jag tänker inte betala så mycket för pommes frites från {STRINGID}” -STR_1560 :{SMALLFONT}”Jag tänker inte betala så mycket för en glass från {STRINGID}” -STR_1561 :{SMALLFONT}”Jag tänker inte betala så mycket för sockervadd från {STRINGID}” +STR_1550 :”Wow!” +STR_1551 :”Det känns som att någon iakttar mig” +STR_1552 :”Jag tänker inte betala så mycket för en ballong från {STRINGID}” +STR_1553 :”Jag tänker inte betala så mycket för ett mjukisdjur från {STRINGID}” +STR_1554 :”Jag tänker inte betala så mycket för en karta från {STRINGID}” +STR_1555 :”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” +STR_1556 :”Jag tänker inte betala så mycket för ett paraply från {STRINGID}” +STR_1557 :”Jag tänker inte betala så mycket för en dricka från {STRINGID}” +STR_1558 :”Jag tänker inte betala så mycket för en hamburgare från {STRINGID}” +STR_1559 :”Jag tänker inte betala så mycket för pommes frites från {STRINGID}” +STR_1560 :”Jag tänker inte betala så mycket för en glass från {STRINGID}” +STR_1561 :”Jag tänker inte betala så mycket för sockervadd från {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}”Jag tänker inte betala så mycket för pizza from {STRINGID}” +STR_1565 :”Jag tänker inte betala så mycket för pizza from {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}”Jag tänker inte betala så mycket för popcorn från {STRINGID}” -STR_1568 :{SMALLFONT}”Jag tänker inte betala så mycket för en varmkorv från {STRINGID}” -STR_1569 :{SMALLFONT}”Jag tänker inte betala så mycket för tentakel från {STRINGID}” -STR_1570 :{SMALLFONT}”Jag tänker inte betala så mycket för en hatt från {STRINGID}” -STR_1571 :{SMALLFONT}”Jag tänker inte betala så mycket för ett kanderat äpple från {STRINGID}” -STR_1572 :{SMALLFONT}”Jag tänker inte betala så mycket för en t-tröja från {STRINGID}” -STR_1573 :{SMALLFONT}”Jag tänker inte betala så mycket för en munk från {STRINGID}” -STR_1574 :{SMALLFONT}”Jag tänker inte betala så mycket för en kaffe från {STRINGID}” +STR_1567 :”Jag tänker inte betala så mycket för popcorn från {STRINGID}” +STR_1568 :”Jag tänker inte betala så mycket för en varmkorv från {STRINGID}” +STR_1569 :”Jag tänker inte betala så mycket för tentakel från {STRINGID}” +STR_1570 :”Jag tänker inte betala så mycket för en hatt från {STRINGID}” +STR_1571 :”Jag tänker inte betala så mycket för ett kanderat äpple från {STRINGID}” +STR_1572 :”Jag tänker inte betala så mycket för en t-tröja från {STRINGID}” +STR_1573 :”Jag tänker inte betala så mycket för en munk från {STRINGID}” +STR_1574 :”Jag tänker inte betala så mycket för en kaffe från {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}”Jag tänker inte betala så mycket för friterad kyckling från {STRINGID}” -STR_1577 :{SMALLFONT}”Jag tänker inte betala så mycket för saft från {STRINGID}” +STR_1576 :”Jag tänker inte betala så mycket för friterad kyckling från {STRINGID}” +STR_1577 :”Jag tänker inte betala så mycket för saft från {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}”Fotot från åkturen {STRINGID} var verkligen värt pengarna” -STR_1585 :{SMALLFONT}”Fotot från åkturen {STRINGID} var verkligen värt pengarna” -STR_1586 :{SMALLFONT}”Fotot från åkturen {STRINGID} var verkligen värt pengarna” -STR_1587 :{SMALLFONT}”Kringlan från {STRINGID} var verkligen värd pengarna” -STR_1588 :{SMALLFONT}”Den varma chokladen från {STRINGID} var verkligen värd pengarna” -STR_1589 :{SMALLFONT}”Istéet från {STRINGID} var verkligen värt pengarna” -STR_1590 :{SMALLFONT}”Struvan från {STRINGID} var verkligen värd pengarna” -STR_1591 :{SMALLFONT}”Solglasögonen från {STRINGID} var verkligen värda pengarna” -STR_1592 :{SMALLFONT}”Biffnudlarna från {STRINGID} var verkligen värda pengarna” -STR_1593 :{SMALLFONT}”De stekta nudlarna från {STRINGID} var verkligen värda pengarna” -STR_1594 :{SMALLFONT}”Wontonsoppan från {STRINGID} var verkligen värd pengarna” -STR_1595 :{SMALLFONT}”Köttbullssoppan från {STRINGID} var verkligen värd pengarna” -STR_1596 :{SMALLFONT}”Fruktjuicen från {STRINGID} var verkligen värd pengarna” -STR_1597 :{SMALLFONT}”Sojamjölken från {STRINGID} var verkligen värd pengarna” -STR_1598 :{SMALLFONT}”Sujeonggwan från {STRINGID} var verkligen värd pengarna” -STR_1599 :{SMALLFONT}”Mackan från {STRINGID} var verkligen värd pengarna” -STR_1600 :{SMALLFONT}”Kakan från {STRINGID} var verkligen värd pengarna” +STR_1584 :”Fotot från åkturen {STRINGID} var verkligen värt pengarna” +STR_1585 :”Fotot från åkturen {STRINGID} var verkligen värt pengarna” +STR_1586 :”Fotot från åkturen {STRINGID} var verkligen värt pengarna” +STR_1587 :”Kringlan från {STRINGID} var verkligen värd pengarna” +STR_1588 :”Den varma chokladen från {STRINGID} var verkligen värd pengarna” +STR_1589 :”Istéet från {STRINGID} var verkligen värt pengarna” +STR_1590 :”Struvan från {STRINGID} var verkligen värd pengarna” +STR_1591 :”Solglasögonen från {STRINGID} var verkligen värda pengarna” +STR_1592 :”Biffnudlarna från {STRINGID} var verkligen värda pengarna” +STR_1593 :”De stekta nudlarna från {STRINGID} var verkligen värda pengarna” +STR_1594 :”Wontonsoppan från {STRINGID} var verkligen värd pengarna” +STR_1595 :”Köttbullssoppan från {STRINGID} var verkligen värd pengarna” +STR_1596 :”Fruktjuicen från {STRINGID} var verkligen värd pengarna” +STR_1597 :”Sojamjölken från {STRINGID} var verkligen värd pengarna” +STR_1598 :”Sujeonggwan från {STRINGID} var verkligen värd pengarna” +STR_1599 :”Mackan från {STRINGID} var verkligen värd pengarna” +STR_1600 :”Kakan från {STRINGID} var verkligen värd pengarna” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}”Ugnskorven från {STRINGID} var verkligen värd pengarna” +STR_1604 :”Ugnskorven från {STRINGID} var verkligen värd pengarna” STR_1605 : STR_1606 : STR_1607 : @@ -1001,27 +1001,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” -STR_1617 :{SMALLFONT}”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” -STR_1618 :{SMALLFONT}”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” -STR_1619 :{SMALLFONT}”Jag tänker inte betala så mycket för en kringla från {STRINGID}” -STR_1620 :{SMALLFONT}”Jag tänker inte betala så mycket för varm choklad från {STRINGID}” -STR_1621 :{SMALLFONT}”Jag tänker inte betala så mycket för iste från {STRINGID}” -STR_1622 :{SMALLFONT}”Jag tänker inte betala så mycket för en struva från {STRINGID}” -STR_1623 :{SMALLFONT}”Jag tänker inte betala så mycket för solglasögon från {STRINGID}” -STR_1624 :{SMALLFONT}”Jag tänker inte betala så mycket för biffnudlar från {STRINGID}” -STR_1625 :{SMALLFONT}”Jag tänker inte betala så mycket för stekta nudlar från {STRINGID}” -STR_1626 :{SMALLFONT}”Jag tänker inte betala så mycket för wontonsoppa från {STRINGID}” -STR_1627 :{SMALLFONT}”Jag tänker inte betala så mycket för köttbullssoppa från {STRINGID}” -STR_1628 :{SMALLFONT}”Jag tänker inte betala så mycket för fruktjuice från {STRINGID}” -STR_1629 :{SMALLFONT}”Jag tänker inte betala så mycket för sojamjölk från {STRINGID}” -STR_1630 :{SMALLFONT}”Jag tänker inte betala så mycket för sujeonggwa från {STRINGID}” -STR_1631 :{SMALLFONT}”Jag tänker inte betala så mycket för en macka från {STRINGID}” -STR_1632 :{SMALLFONT}”Jag tänker inte betala så mycket för en kaka från {STRINGID}” +STR_1616 :”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” +STR_1617 :”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” +STR_1618 :”Jag tänker inte betala så mycket för ett foto från åkturen {STRINGID}” +STR_1619 :”Jag tänker inte betala så mycket för en kringla från {STRINGID}” +STR_1620 :”Jag tänker inte betala så mycket för varm choklad från {STRINGID}” +STR_1621 :”Jag tänker inte betala så mycket för iste från {STRINGID}” +STR_1622 :”Jag tänker inte betala så mycket för en struva från {STRINGID}” +STR_1623 :”Jag tänker inte betala så mycket för solglasögon från {STRINGID}” +STR_1624 :”Jag tänker inte betala så mycket för biffnudlar från {STRINGID}” +STR_1625 :”Jag tänker inte betala så mycket för stekta nudlar från {STRINGID}” +STR_1626 :”Jag tänker inte betala så mycket för wontonsoppa från {STRINGID}” +STR_1627 :”Jag tänker inte betala så mycket för köttbullssoppa från {STRINGID}” +STR_1628 :”Jag tänker inte betala så mycket för fruktjuice från {STRINGID}” +STR_1629 :”Jag tänker inte betala så mycket för sojamjölk från {STRINGID}” +STR_1630 :”Jag tänker inte betala så mycket för sujeonggwa från {STRINGID}” +STR_1631 :”Jag tänker inte betala så mycket för en macka från {STRINGID}” +STR_1632 :”Jag tänker inte betala så mycket för en kaka från {STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}”Jag tänker inte betala så mycket för en ugnskorv från {STRINGID}” +STR_1636 :”Jag tänker inte betala så mycket för en ugnskorv från {STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1033,10 +1033,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}”Hjälp! Släpp ner mig!” -STR_1649 :{SMALLFONT}”Jag börjar få slut på pengar!” -STR_1650 :{SMALLFONT}”Wow! De bygger en ny åktur!” -STR_1653 :{SMALLFONT}”… och nu är vi på {STRINGID}!” +STR_1648 :”Hjälp! Släpp ner mig!” +STR_1649 :”Jag börjar få slut på pengar!” +STR_1650 :”Wow! De bygger en ny åktur!” +STR_1653 :”… och nu är vi på {STRINGID}!” STR_1654 :{WINDOW_COLOUR_2}Senaste tankar: STR_1655 :Bygg gångväg på land STR_1656 :Bygg en bro eller tunnel @@ -1188,7 +1188,7 @@ STR_1808 :{WINDOW_COLOUR_2}Senaste haveri: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Nuvarande haveri: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Bär på: STR_1811 :Kan inte bygga detta här… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Diverse saker STR_1814 :Handlingar STR_1815 :Tankar @@ -1197,7 +1197,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alla besökare STR_1819 :{WINDOW_COLOUR_2}Alla besökare (sammanfattat) STR_1820 :{WINDOW_COLOUR_2}Besökare {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Besökare som tänker {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Besökare som tänker {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Besökare som tänker på {POP16}{STRINGID} STR_1823 :Visa besökares tankar om den här åkturen eller attraktionen STR_1824 :Visa besökare på den här åkturen eller attraktionen @@ -1298,7 +1298,6 @@ STR_1921 :Starta ett nytt spel STR_1922 :Fortsätt spela ett sparat spel STR_1924 :Avsluta STR_1925 :Kan inte placera personen här… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} har gått sönder STR_1928 :{RED}{STRINGID} har kraschat! STR_1929 :{RED}{STRINGID} har fortfarande inte blivit fixad{NEWLINE}Ta reda på var dina mekaniker är och överväg att organisera dem bättre @@ -1579,7 +1578,7 @@ STR_2218 :{RED}{STRINGID} på {STRINGID} har inte kommit tillbaka till {STRIN STR_2219 :{RED}{COMMA16} personer har omkommit i en olycka på {STRINGID} STR_2220 :{WINDOW_COLOUR_2}Parkomdöme: {BLACK}{COMMA16} STR_2221 :Parkomdöme: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Antal besökare: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Pengar: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Pengar: {RED}{CURRENCY2DP} @@ -1592,7 +1591,7 @@ STR_2231 :Stoppbroms för nedförsbacke STR_2232 :Upplyftsbacke STR_2233 :Parkinformation STR_2234 :Senaste meddelanden -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :januari STR_2237 :februari STR_2238 :mars @@ -1796,7 +1795,7 @@ STR_2450 :{YELLOW}Din kampanj för parken har slutförts STR_2451 :{YELLOW}Din kampanj för {STRINGID} har slutförts STR_2452 :{WINDOW_COLOUR_2}Pengar (utan lån): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Pengar (utan lån): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} – +STR_2454 :{BLACK}{CURRENCY2DP} – STR_2457 :Visa finansiella konton STR_2458 :Visa graf med pengar (utan lån) över tid STR_2459 :Visa graf med parkvärde över tid @@ -1906,7 +1905,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :All forskning färdig -STR_2681 :{MEDIUMFONT}{BLACK}Ökar pengarna med {CURRENCY} STR_2684 :En stor grupp anländer STR_2685 :Parametrar för simplex-brus STR_2686 :Låg: @@ -1994,7 +1992,7 @@ STR_2789 :{WINDOW_COLOUR_2}Du har misslyckats med ditt mål! STR_2790 :Skriv in namn i scenariolistan STR_2791 :Skriv in namn STR_2792 :Var god skriv in ditt namn i scenariolistan: -STR_2793 :{SMALLFONT}(Avklarad av {STRINGID}) +STR_2793 :(Avklarad av {STRINGID}) STR_2794 :{WINDOW_COLOUR_2}Avklarad av: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} med ett företagsvärde på: {BLACK}{CURRENCY} STR_2795 :Sortera STR_2796 :Sortera åkturslistan i ordning enligt den valda informationstypen @@ -2503,7 +2501,7 @@ STR_5134 :Justera större storlek av verktyget STR_5135 :Köp land- och bygglov STR_5136 :Köpa mark STR_5137 :Lås upp körlägesgränser -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Avaktivera bromsfel STR_5141 :Avaktivera alla haverier @@ -2649,7 +2647,7 @@ STR_5297 :Öppna parken STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Snabbavskeda personal -STR_5301 :{MEDIUMFONT}{BLACK}Återbetala ditt lån +STR_5301 :Återbetala ditt lån STR_5302 :Återbetala lån STR_5303 :Tillåt byggande i pausat läge STR_5304 :Titelsekvens: @@ -2808,7 +2806,7 @@ STR_5481 :Teman STR_5482 :{WINDOW_COLOUR_2}Tid sen senaste inspektionen: {BLACK}1 minut STR_5483 :{BLACK}({COMMA16} veckor återstår) STR_5484 :{BLACK}({COMMA16} vecka återstår) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Visa senaste meddelanden STR_5489 :Visa endast besökare du följer @@ -3312,7 +3310,7 @@ STR_6030 :Dekorationsplockaren. Klicka på en dekoration på kartan för att STR_6031 :Serverbeskrivning: STR_6032 :Serverhälsning: STR_6033 :Sökvägen till RCT1-mappen: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :Vänligen välj installationsmappen för RCT1 STR_6036 :Rensa STR_6037 :Den valda mappen innehåller inte en giltig RollerCoaster Tycoon 1-installation. @@ -3457,7 +3455,7 @@ STR_6183 :Följ{MOVE_X}{87}Inget objekt valt STR_6184 :Följ objekt STR_6185 :Välj objekt STR_6186 :Inget objekt valt -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Spya STR_6189 :Anka STR_6190 :Du kan inte välja ett objekt medan titelsekvensen spelas. @@ -3607,7 +3605,7 @@ STR_6356 :Sätter ut ankor om parken innehåller vatten STR_6357 :Tar bort alla ankor från kartan STR_6358 :Sida {UINT16} STR_6359 :{POP16}{POP16}Sida {UINT16} -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :Aktivera ljuseffekter på åkturer (experiment) STR_6362 :Om aktiverad, lyses vagnar på spår upp om natten. STR_6363 :Text kopierad till urklipp diff --git a/data/language/tr-TR.txt b/data/language/tr-TR.txt index fa6359ff34..dc49ca48ca 100644 --- a/data/language/tr-TR.txt +++ b/data/language/tr-TR.txt @@ -236,8 +236,8 @@ STR_0831 :Görüntüyü uzaklaştır STR_0832 :Görüntüyü 90° çevir STR_0833 :Oyunu durdur STR_0834 :Oyun ve kayıt seçenekleri -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} STR_0847 :OpenRCT2 hakkında STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, all rights reserved STR_0851 :{WINDOW_COLOUR_2}Programlama ve tasarlama: Chris Sawyer @@ -794,14 +794,14 @@ STR_1410 :Kule STR_1411 :{STRINGID} engelliyor STR_1412 :{WINDOW_COLOUR_3}Bu alet için diyagram yok STR_1413 :{WINDOW_COLOUR_3}Diyagramlar ilk {STRINGID}{STRINGID}u terk ettiğinde oluşturulacakdır -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}Hız STR_1416 :{WINDOW_COLOUR_2}Yükseklik STR_1417 :{WINDOW_COLOUR_2}Dikey. G STR_1418 :{WINDOW_COLOUR_2}Yatay. G -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :{POP16}{STRINGID}in veri kayıdı STR_1423 :Bekleme sırası STR_1424 :Yol @@ -860,131 +860,131 @@ STR_1476 :{WINDOW_COLOUR_2}Şiddet oranı: {BLACK}Ölçülüyor STR_1477 :{WINDOW_COLOUR_2}Şiddet oranı: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}Bulantı oranı: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}Bulantı oranı: {BLACK}Ölçülüyor -STR_1480 :{SMALLFONT}“{STRINGID} için param yetmiyor” -STR_1481 :{SMALLFONT}“Tüm paramı harcadım” -STR_1482 :{SMALLFONT}“Midem bulanıyor” -STR_1483 :{SMALLFONT}“Midem çok fena” -STR_1484 :{SMALLFONT}“{STRINGID} aletinden daha heyecanlı bir alete binmek istiyorum” -STR_1485 :{SMALLFONT}“{STRINGID} çok korkunç görünüyor” -STR_1486 :{SMALLFONT}“Bunu daha bitirmedim ({STRINGID})” -STR_1487 :{SMALLFONT}“Üf, {STRINGID} aletini izlerken bile midem bulanıyor” -STR_1488 :{SMALLFONT}“Buna bu kadar para harcamam ({STRINGID})” -STR_1489 :{SMALLFONT}“Eve gitmek istiyorum” -STR_1490 :{SMALLFONT}“{STRINGID} fiyatına değer” -STR_1491 :{SMALLFONT}“Bundan var bile bende ({STRINGID})” -STR_1492 :{SMALLFONT}“{STRINGID} için param yetmiyor” -STR_1493 :{SMALLFONT}“Aç değilim” -STR_1494 :{SMALLFONT}“Susamadım” -STR_1495 :{SMALLFONT}“Imdat!Boğuluyorum!” -STR_1496 :{SMALLFONT}“Kayıp oldum!” -STR_1497 :{SMALLFONT}“{STRINGID} süperdi!” -STR_1498 :{SMALLFONT}“{STRINGID} için çok fazla bekledim” -STR_1499 :{SMALLFONT}“Uykum geldi” -STR_1500 :{SMALLFONT}“Acıkdım” -STR_1501 :{SMALLFONT}“Susadım” -STR_1502 :{SMALLFONT}“Tuvalete gitmem lazim” -STR_1503 :{SMALLFONT}“{STRINGID} aletini bulamıyorum” -STR_1504 :{SMALLFONT}“Buna bu kadar para harcamam ({STRINGID})” -STR_1505 :{SMALLFONT}“{STRINGID} aletine yağmur yağdığı sürece binmem ” -STR_1506 :{SMALLFONT}“Burada çöp sorunu çok aşırı” -STR_1507 :{SMALLFONT}“Park çıkışını bulamıyorum” -STR_1508 :{SMALLFONT}“{STRINGID} aletini terk etmek istiyorum” -STR_1509 :{SMALLFONT}“{STRINGID} aletinden inmek istiyorum” -STR_1510 :{SMALLFONT}“{STRINGID} güvenli olmadığı sürece binmem” -STR_1511 :{SMALLFONT}“Bu yol berbat bir vaziyetde” -STR_1512 :{SMALLFONT}“Burada çok insan var” -STR_1513 :{SMALLFONT}“Buradaki vandalizm felaket” -STR_1514 :{SMALLFONT}“Harika bir manzara!” -STR_1515 :{SMALLFONT}“Bu Park gerçekden çok derli ve toplu” -STR_1516 :{SMALLFONT}“Bu çeşmeler harika” -STR_1517 :{SMALLFONT}“Müzik hoşuma gitti” -STR_1518 :{SMALLFONT}“Bu {STRINGID} balonu fiyatına değer” -STR_1519 :{SMALLFONT}“Bu {STRINGID} oyuncağı fiyatına değer” -STR_1520 :{SMALLFONT}“Bu {STRINGID} haritası fiyatına değer” -STR_1521 :{SMALLFONT}“Bu {STRINGID} fotoğrafı fiyatına değer” -STR_1522 :{SMALLFONT}“Bu {STRINGID} şemsiyesi fiyatına değer” -STR_1523 :{SMALLFONT}“Bu {STRINGID} içeceği fiyatına değer” -STR_1524 :{SMALLFONT}“Bu {STRINGID} burgeri fiyatına değer” -STR_1525 :{SMALLFONT}“Bu {STRINGID} patatesi fiyatına değer” -STR_1526 :{SMALLFONT}“Bu {STRINGID} dondurması fiyatına değer” -STR_1527 :{SMALLFONT}“Bu {STRINGID} pamuk şekeri fiyatına değer” +STR_1480 :“{STRINGID} için param yetmiyor” +STR_1481 :“Tüm paramı harcadım” +STR_1482 :“Midem bulanıyor” +STR_1483 :“Midem çok fena” +STR_1484 :“{STRINGID} aletinden daha heyecanlı bir alete binmek istiyorum” +STR_1485 :“{STRINGID} çok korkunç görünüyor” +STR_1486 :“Bunu daha bitirmedim ({STRINGID})” +STR_1487 :“Üf, {STRINGID} aletini izlerken bile midem bulanıyor” +STR_1488 :“Buna bu kadar para harcamam ({STRINGID})” +STR_1489 :“Eve gitmek istiyorum” +STR_1490 :“{STRINGID} fiyatına değer” +STR_1491 :“Bundan var bile bende ({STRINGID})” +STR_1492 :“{STRINGID} için param yetmiyor” +STR_1493 :“Aç değilim” +STR_1494 :“Susamadım” +STR_1495 :“Imdat!Boğuluyorum!” +STR_1496 :“Kayıp oldum!” +STR_1497 :“{STRINGID} süperdi!” +STR_1498 :“{STRINGID} için çok fazla bekledim” +STR_1499 :“Uykum geldi” +STR_1500 :“Acıkdım” +STR_1501 :“Susadım” +STR_1502 :“Tuvalete gitmem lazim” +STR_1503 :“{STRINGID} aletini bulamıyorum” +STR_1504 :“Buna bu kadar para harcamam ({STRINGID})” +STR_1505 :“{STRINGID} aletine yağmur yağdığı sürece binmem ” +STR_1506 :“Burada çöp sorunu çok aşırı” +STR_1507 :“Park çıkışını bulamıyorum” +STR_1508 :“{STRINGID} aletini terk etmek istiyorum” +STR_1509 :“{STRINGID} aletinden inmek istiyorum” +STR_1510 :“{STRINGID} güvenli olmadığı sürece binmem” +STR_1511 :“Bu yol berbat bir vaziyetde” +STR_1512 :“Burada çok insan var” +STR_1513 :“Buradaki vandalizm felaket” +STR_1514 :“Harika bir manzara!” +STR_1515 :“Bu Park gerçekden çok derli ve toplu” +STR_1516 :“Bu çeşmeler harika” +STR_1517 :“Müzik hoşuma gitti” +STR_1518 :“Bu {STRINGID} balonu fiyatına değer” +STR_1519 :“Bu {STRINGID} oyuncağı fiyatına değer” +STR_1520 :“Bu {STRINGID} haritası fiyatına değer” +STR_1521 :“Bu {STRINGID} fotoğrafı fiyatına değer” +STR_1522 :“Bu {STRINGID} şemsiyesi fiyatına değer” +STR_1523 :“Bu {STRINGID} içeceği fiyatına değer” +STR_1524 :“Bu {STRINGID} burgeri fiyatına değer” +STR_1525 :“Bu {STRINGID} patatesi fiyatına değer” +STR_1526 :“Bu {STRINGID} dondurması fiyatına değer” +STR_1527 :“Bu {STRINGID} pamuk şekeri fiyatına değer” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“Bu {STRINGID} pizzası fiyatına değer” +STR_1531 :“Bu {STRINGID} pizzası fiyatına değer” STR_1532 : -STR_1533 :{SMALLFONT}“Bu {STRINGID} patlamış mısırı fiyatına değer” -STR_1534 :{SMALLFONT}“Bu {STRINGID} Hot Dogu fiyatına değer” -STR_1535 :{SMALLFONT}“Bu {STRINGID} deniz ürünleri fiyatına değer” -STR_1536 :{SMALLFONT}“Bu {STRINGID} şapkası fiyatına değer” -STR_1537 :{SMALLFONT}“Bu {STRINGID} şeker elması fiyatına değer” -STR_1538 :{SMALLFONT}“Bu {STRINGID} tişörü fiyatına değer” -STR_1539 :{SMALLFONT}“Bu {STRINGID} donutı fiyatına değer” -STR_1540 :{SMALLFONT}“Bu {STRINGID} kahvesi fiyatına değer” +STR_1533 :“Bu {STRINGID} patlamış mısırı fiyatına değer” +STR_1534 :“Bu {STRINGID} Hot Dogu fiyatına değer” +STR_1535 :“Bu {STRINGID} deniz ürünleri fiyatına değer” +STR_1536 :“Bu {STRINGID} şapkası fiyatına değer” +STR_1537 :“Bu {STRINGID} şeker elması fiyatına değer” +STR_1538 :“Bu {STRINGID} tişörü fiyatına değer” +STR_1539 :“Bu {STRINGID} donutı fiyatına değer” +STR_1540 :“Bu {STRINGID} kahvesi fiyatına değer” STR_1541 : -STR_1542 :{SMALLFONT}“Bu {STRINGID} kızarmış tavuğu fiyatına değer” -STR_1543 :{SMALLFONT}“Bu {STRINGID} limonatası fiyatına değer” +STR_1542 :“Bu {STRINGID} kızarmış tavuğu fiyatına değer” +STR_1543 :“Bu {STRINGID} limonatası fiyatına değer” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“Wow!” -STR_1551 :{SMALLFONT}“Sanki birisi beni gözetliyormuş gibime geliyor” -STR_1552 :{SMALLFONT}“Buradan bu fiyata balon almam: {STRINGID}” -STR_1553 :{SMALLFONT}“Buradan bu fiyata oyuncak almam: {STRINGID}” -STR_1554 :{SMALLFONT}“Buradan bu fiyata harita almam: {STRINGID}” -STR_1555 :{SMALLFONT}“Buradan bu fiyata fotoğraf almam: {STRINGID}” -STR_1556 :{SMALLFONT}“Buradan bu fiyata şemsiye almam: {STRINGID}” -STR_1557 :{SMALLFONT}“Buradan bu fiyata içecek almam: {STRINGID}” -STR_1558 :{SMALLFONT}“Buradan bu fiyata balon almam: {STRINGID}” -STR_1559 :{SMALLFONT}“Buradan bu fiyata patates almam: {STRINGID}” -STR_1560 :{SMALLFONT}“Buradan bu fiyata dondurma almam: {STRINGID}” -STR_1561 :{SMALLFONT}“Buradan bu fiyata pamuk şeker almam: {STRINGID}” +STR_1550 :“Wow!” +STR_1551 :“Sanki birisi beni gözetliyormuş gibime geliyor” +STR_1552 :“Buradan bu fiyata balon almam: {STRINGID}” +STR_1553 :“Buradan bu fiyata oyuncak almam: {STRINGID}” +STR_1554 :“Buradan bu fiyata harita almam: {STRINGID}” +STR_1555 :“Buradan bu fiyata fotoğraf almam: {STRINGID}” +STR_1556 :“Buradan bu fiyata şemsiye almam: {STRINGID}” +STR_1557 :“Buradan bu fiyata içecek almam: {STRINGID}” +STR_1558 :“Buradan bu fiyata balon almam: {STRINGID}” +STR_1559 :“Buradan bu fiyata patates almam: {STRINGID}” +STR_1560 :“Buradan bu fiyata dondurma almam: {STRINGID}” +STR_1561 :“Buradan bu fiyata pamuk şeker almam: {STRINGID}” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“Buradan bu fiyata pizza almam: {STRINGID}” +STR_1565 :“Buradan bu fiyata pizza almam: {STRINGID}” STR_1566 : -STR_1567 :{SMALLFONT}“Buradan bu fiyata patlamış mısır almam: {STRINGID}” -STR_1568 :{SMALLFONT}“Buradan bu fiyata Hot Dog almam: {STRINGID}” -STR_1569 :{SMALLFONT}“Buradan bu fiyata deniz ürünleri almam: {STRINGID}” -STR_1570 :{SMALLFONT}“Buradan bu fiyata şapka almam: {STRINGID}” -STR_1571 :{SMALLFONT}“Buradan bu fiyata elmalı şeker almam: {STRINGID}” -STR_1572 :{SMALLFONT}“Buradan bu fiyata tişört almam: {STRINGID}” -STR_1573 :{SMALLFONT}“Buradan bu fiyata donut almam: {STRINGID}” -STR_1574 :{SMALLFONT}“Buradan bu fiyata kahve almam: {STRINGID}” +STR_1567 :“Buradan bu fiyata patlamış mısır almam: {STRINGID}” +STR_1568 :“Buradan bu fiyata Hot Dog almam: {STRINGID}” +STR_1569 :“Buradan bu fiyata deniz ürünleri almam: {STRINGID}” +STR_1570 :“Buradan bu fiyata şapka almam: {STRINGID}” +STR_1571 :“Buradan bu fiyata elmalı şeker almam: {STRINGID}” +STR_1572 :“Buradan bu fiyata tişört almam: {STRINGID}” +STR_1573 :“Buradan bu fiyata donut almam: {STRINGID}” +STR_1574 :“Buradan bu fiyata kahve almam: {STRINGID}” STR_1575 : -STR_1576 :{SMALLFONT}“Buradan bu fiyata tavuk almam: {STRINGID}” -STR_1577 :{SMALLFONT}“Buradan bu fiyata limonata almam: {STRINGID}” +STR_1576 :“Buradan bu fiyata tavuk almam: {STRINGID}” +STR_1577 :“Buradan bu fiyata limonata almam: {STRINGID}” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“Bu aletin fotoğrafı fiyatına değer: {STRINGID}” -STR_1585 :{SMALLFONT}“Bu aletin fotoğrafı fiyatına değer: {STRINGID}” -STR_1586 :{SMALLFONT}“{STRINGID} aletinin fotoğrafı fiyatına değer” -STR_1587 :{SMALLFONT}“Bu {STRINGID} simidi fiyatına değer” -STR_1588 :{SMALLFONT}“Bu {STRINGID} sıcak çikolatası fiyatına değer” -STR_1589 :{SMALLFONT}“Bu {STRINGID} ice tea'si fiyatına değer” -STR_1590 :{SMALLFONT}“Bu {STRINGID} keki fiyatına değer” -STR_1591 :{SMALLFONT}“Bu {STRINGID} güneş gözlüğü fiyatına değer” -STR_1592 :{SMALLFONT}“Bu {STRINGID} kıymalı makarnası fiyatına değer” -STR_1593 :{SMALLFONT}“Bu {STRINGID} kızarmış makarnası fiyatına değer” -STR_1594 :{SMALLFONT}“Bu {STRINGID} Won Ton çorbası fiyatına değer” -STR_1595 :{SMALLFONT}“Bu {STRINGID} sulu köftesi fiyatına değer” -STR_1596 :{SMALLFONT}“Bu {STRINGID} meyve suyu fiyatına değer” -STR_1597 :{SMALLFONT}“Bu {STRINGID} soya sütü fiyatına değer” -STR_1598 :{SMALLFONT}“Bu {STRINGID} sujongkwa'sı fiyatına değer” -STR_1599 :{SMALLFONT}“Bu {STRINGID} sandviçi fiyatına değer” -STR_1600 :{SMALLFONT}“Bu {STRINGID} bisküvisi fiyatına değer” +STR_1584 :“Bu aletin fotoğrafı fiyatına değer: {STRINGID}” +STR_1585 :“Bu aletin fotoğrafı fiyatına değer: {STRINGID}” +STR_1586 :“{STRINGID} aletinin fotoğrafı fiyatına değer” +STR_1587 :“Bu {STRINGID} simidi fiyatına değer” +STR_1588 :“Bu {STRINGID} sıcak çikolatası fiyatına değer” +STR_1589 :“Bu {STRINGID} ice tea'si fiyatına değer” +STR_1590 :“Bu {STRINGID} keki fiyatına değer” +STR_1591 :“Bu {STRINGID} güneş gözlüğü fiyatına değer” +STR_1592 :“Bu {STRINGID} kıymalı makarnası fiyatına değer” +STR_1593 :“Bu {STRINGID} kızarmış makarnası fiyatına değer” +STR_1594 :“Bu {STRINGID} Won Ton çorbası fiyatına değer” +STR_1595 :“Bu {STRINGID} sulu köftesi fiyatına değer” +STR_1596 :“Bu {STRINGID} meyve suyu fiyatına değer” +STR_1597 :“Bu {STRINGID} soya sütü fiyatına değer” +STR_1598 :“Bu {STRINGID} sujongkwa'sı fiyatına değer” +STR_1599 :“Bu {STRINGID} sandviçi fiyatına değer” +STR_1600 :“Bu {STRINGID} bisküvisi fiyatına değer” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“Bu {STRINGID} sosisi fiyatına değer” +STR_1604 :“Bu {STRINGID} sosisi fiyatına değer” STR_1605 : STR_1606 : STR_1607 : @@ -996,27 +996,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“Buradan bu fiyata fotoğraf almam:{STRINGID}” -STR_1617 :{SMALLFONT}“Buradan bu fiyata fotoğraf almam:{STRINGID}” -STR_1618 :{SMALLFONT}“Buradan bu fiyata fotoğraf almam:{STRINGID}” -STR_1619 :{SMALLFONT}“Buradan bu fiyata simit almam:{STRINGID}” -STR_1620 :{SMALLFONT}“Buradan bu fiyata sıcak çikolata almam:{STRINGID}” -STR_1621 :{SMALLFONT}“Buradan bu fiyata ice tea almam:{STRINGID}” -STR_1622 :{SMALLFONT}“Buradan bu fiyata kek almam:{STRINGID}” -STR_1623 :{SMALLFONT}“Buradan bu fiyata güneş gözlüğü almam:{STRINGID}” -STR_1624 :{SMALLFONT}“Buradan bu fiyata kıymalı makarna almam:{STRINGID}” -STR_1625 :{SMALLFONT}“Buradan bu fiyata kızarmış makarna almam:{STRINGID}” -STR_1626 :{SMALLFONT}“Buradan bu fiyata Won Ton çorbası almam:{STRINGID}” -STR_1627 :{SMALLFONT}“Buradan bu fiyata sulu köfte almam:{STRINGID}” -STR_1628 :{SMALLFONT}“Buradan bu fiyata meyve suyu almam:{STRINGID}” -STR_1629 :{SMALLFONT}“Buradan bu fiyata soya sütü almam:{STRINGID}” -STR_1630 :{SMALLFONT}“Buradan bu fiyata Sujongkwa almam:{STRINGID}” -STR_1631 :{SMALLFONT}“Buradan bu fiyata sandviç almam:{STRINGID}” -STR_1632 :{SMALLFONT}“Buradan bu fiyata bisküvi almam:{STRINGID}” +STR_1616 :“Buradan bu fiyata fotoğraf almam:{STRINGID}” +STR_1617 :“Buradan bu fiyata fotoğraf almam:{STRINGID}” +STR_1618 :“Buradan bu fiyata fotoğraf almam:{STRINGID}” +STR_1619 :“Buradan bu fiyata simit almam:{STRINGID}” +STR_1620 :“Buradan bu fiyata sıcak çikolata almam:{STRINGID}” +STR_1621 :“Buradan bu fiyata ice tea almam:{STRINGID}” +STR_1622 :“Buradan bu fiyata kek almam:{STRINGID}” +STR_1623 :“Buradan bu fiyata güneş gözlüğü almam:{STRINGID}” +STR_1624 :“Buradan bu fiyata kıymalı makarna almam:{STRINGID}” +STR_1625 :“Buradan bu fiyata kızarmış makarna almam:{STRINGID}” +STR_1626 :“Buradan bu fiyata Won Ton çorbası almam:{STRINGID}” +STR_1627 :“Buradan bu fiyata sulu köfte almam:{STRINGID}” +STR_1628 :“Buradan bu fiyata meyve suyu almam:{STRINGID}” +STR_1629 :“Buradan bu fiyata soya sütü almam:{STRINGID}” +STR_1630 :“Buradan bu fiyata Sujongkwa almam:{STRINGID}” +STR_1631 :“Buradan bu fiyata sandviç almam:{STRINGID}” +STR_1632 :“Buradan bu fiyata bisküvi almam:{STRINGID}” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“Buradan bu fiyata sosis almam:{STRINGID}” +STR_1636 :“Buradan bu fiyata sosis almam:{STRINGID}” STR_1637 : STR_1638 : STR_1639 : @@ -1028,10 +1028,10 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“Imdat! Yere bırakın beni!” -STR_1649 :{SMALLFONT}“Param bitiyor!” -STR_1650 :{SMALLFONT}“Wow! Yeni alet inşa ediliyor!” -STR_1653 :{SMALLFONT}“…sonunda varabildim! ({STRINGID})” +STR_1648 :“Imdat! Yere bırakın beni!” +STR_1649 :“Param bitiyor!” +STR_1650 :“Wow! Yeni alet inşa ediliyor!” +STR_1653 :“…sonunda varabildim! ({STRINGID})” STR_1654 :{WINDOW_COLOUR_2}Şu anki düşünceleri: STR_1655 :Yolu yer seviyesine inşa et STR_1656 :Eğimli yol veya köprü/tünel inşa et @@ -1061,12 +1061,12 @@ STR_1679 :Sarmal yuarkı (sol) STR_1680 :Sarmal yuarkı (sağ) STR_1681 :Sarmal aşağı (sol) STR_1682 :Sarmal aşağı (sağ) -STR_1683 :Taban boyutu 2 x 2 -STR_1684 :Taban boyutu 4 x 4 -STR_1685 :Taban boyutu 2 x 4 -STR_1686 :Taban boyutu 5 x 1 +STR_1683 :Taban boyutu 2 × 2 +STR_1684 :Taban boyutu 4 × 4 +STR_1685 :Taban boyutu 2 × 4 +STR_1686 :Taban boyutu 5 × 1 STR_1687 :Havuz -STR_1688 :Taban boyutu 4 x 1 +STR_1688 :Taban boyutu 4 × 1 STR_1689 :Blok frenleri STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} Maliyet: {BLACK}{CURRENCY} @@ -1183,7 +1183,7 @@ STR_1808 :{WINDOW_COLOUR_2}Son arıza: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}Şu anki arıza: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}Yanında taşıdıkları: STR_1811 :Bu buraya inşa edilemiyor… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :Diğer cisimler STR_1814 :Yaptıkları STR_1815 :Düşünceleri @@ -1192,7 +1192,7 @@ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tüm müşteriler STR_1819 :{WINDOW_COLOUR_2}Tüm müşteriler (özetli) STR_1820 :{WINDOW_COLOUR_2}Müşteri {STRINGID} -STR_1821 :{WINDOW_COLOUR_2}Düşünce: {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Düşünce: {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Müşterilerin {POP16}{STRINGID} hakkında düşündükleri STR_1823 :Müşterilerin bu alet{NEWLINE}üzeri düşünceleri STR_1824 :Bu aletin müşterile @@ -1293,7 +1293,6 @@ STR_1921 :Yeni oyun başlat STR_1922 :Kayıtlı oyunu yükle STR_1924 :Çıkış STR_1925 :Buraya bırakılamaz… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID} bozuldu STR_1928 :{RED}{STRINGID} kaza yaptı! STR_1929 :{RED}{STRINGID} halen tamir edilmedi{NEWLINE}Tamircilerin nerede olduğunu kontrol ediniz ve daha iyi organize ediniz @@ -1574,7 +1573,7 @@ STR_2218 :{RED}{STRINGID} aletinde {STRINGID} halen {STRINGID}ye dönmedi!{NE STR_2219 :{RED}{STRINGID} aletinde {COMMA16} kişi canını kayıp etti STR_2220 :{WINDOW_COLOUR_2}Park değerlendirmesi: {BLACK}{COMMA16} STR_2221 :Park değerlendirmesi: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}Parkdaki müşteri sayısı: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}Para: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}Para: {RED}{CURRENCY2DP} @@ -1587,7 +1586,7 @@ STR_2231 :Düşüş freni (heyecan arttırmak için) STR_2232 :Asansörlü tırmanma zinciri STR_2233 :Park biligisi STR_2234 :Son bildirimler -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :Ocak STR_2237 :Şubat STR_2238 :Mart @@ -1667,7 +1666,7 @@ STR_2312 :{WINDOW_COLOUR_2}Şiddet oranı: {BLACK}{COMMA2DP32} (yaklaşık) STR_2313 :{WINDOW_COLOUR_2}Bulantı oranı: {BLACK}{COMMA2DP32} (yaklaşık) STR_2314 :{WINDOW_COLOUR_2}Alet uzunluğu: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}Maliyet: {BLACK} yaklaşık {CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}Gerekli alan: {BLACK}{COMMA16} x {COMMA16} blok +STR_2316 :{WINDOW_COLOUR_2}Gerekli alan: {BLACK}{COMMA16} × {COMMA16} blok STR_2321 :{WINDOW_COLOUR_2}Alet sayısı: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}Işci: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}Park büyüklüğü: {BLACK}{COMMA32}m² @@ -1791,7 +1790,7 @@ STR_2450 :{YELLOW}Park için reklam kampanyası bitti STR_2451 :{YELLOW}{STRINGID} için reklam kampanyası bitti STR_2452 :{WINDOW_COLOUR_2}Para (borçsuz): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}Para (borçsuz): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :Finansal genel bakış STR_2458 :Aylık para değişimi grafiği (kredisiz) STR_2459 :Aylık park değeri grafiği @@ -1901,7 +1900,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :Tüm araştırmalar gerçekleşti -STR_2681 :{MEDIUMFONT}{BLACK}Paranızı {CURRENCY} yükseltiyor STR_2684 :Büyük sayıda müşteri parka geliyor STR_2685 :Simplex Noise parametreleri STR_2686 :Derinlik: @@ -1988,7 +1986,7 @@ STR_2789 :{WINDOW_COLOUR_2}Hedeflerinize ulaşamadınız ! STR_2790 :Isminizi giriniz STR_2791 :Isminizi yazınız STR_2792 :Senaryo listesi için isminizi yazınız: -STR_2793 :{SMALLFONT}({STRINGID} tarafından tamamlandı) +STR_2793 :({STRINGID} tarafından tamamlandı) STR_2794 :{BLACK}{STRINGID}{WINDOW_COLOUR_2} tarafından{NEWLINE}{BLACK}{CURRENCY}{WINDOW_COLOUR_2} park değeri ile tamamlandı STR_2795 :Sıralama STR_2796 :Aletleri kullandığınız bilgiye göre sıralayınız @@ -2302,7 +2300,7 @@ STR_3208 :Alet Meneceri STR_3209 :Bir önceki adım: STR_3210 :Bir sonraki adım: STR_3211 :Harita büyüklüğü: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :Arazi daha fazla alçaltılamıyor STR_3214 :Arazi daha fazla yükseltilemiyor STR_3215 :Arazi sınırına çok fazla yakın @@ -2495,7 +2493,7 @@ STR_5134 :Büyült STR_5135 :Arazi veya inşa izni satın alınız STR_5136 :Arazi satın alma STR_5137 :Çalışma sınırlarını kaldır -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :Fren hatalarını devre dışı bırak STR_5141 :Tüm alet arızalarını devre dışı bırak @@ -2641,7 +2639,7 @@ STR_5297 :Parkı açınız STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :Hızlı işci kovma -STR_5301 :{MEDIUMFONT}{BLACK}Krediyi sıfırla +STR_5301 :Krediyi sıfırla STR_5302 :Krediyi sıfırla STR_5303 :Oyun durdurulurken inşa et STR_5304 :Kullanılan başlık dizisi: @@ -2800,7 +2798,7 @@ STR_5481 :Temalar STR_5482 :{WINDOW_COLOUR_2}Son denetlemeden bu yana geçen süre: {BLACK}1 dakika STR_5483 :{BLACK}({COMMA16} hafta kaldı) STR_5484 :{BLACK}({COMMA16} hafta kaldı) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :Son bildirimleri göster STR_5489 :Takip ettiğiniz müşteriler @@ -3304,7 +3302,7 @@ STR_6030 :Dekorasyon seçici. Bu araç ile seçdiğiniz dekorasyonun aynısı STR_6031 :Server açıklaması: STR_6032 :Server karşılaması: STR_6033 :RCT1 klasörü: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :RCT1'in kurulu olduğu klasörü belirleyiniz STR_6036 :Temizle STR_6037 :Lütfen geçerli bir RCT1 klasörü seçiniz @@ -3449,7 +3447,7 @@ STR_6183 :Takip{MOVE_X}{87}Cisim seçilmedi STR_6184 :Takip STR_6185 :Alet/Kişi seçiniz STR_6186 :Alet/Kişi seçilemdi -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :Kusmuk STR_6189 :Ördek STR_6190 :Varsayılan başlık dizisi oynarken cisim seçemezsiniz @@ -3518,7 +3516,7 @@ STR_6266 :Özel içerik klasörünü aç STR_6267 :Zemin deneticisini aç STR_6268 :Bir sonraki tick'e atla STR_6269 :Geçersiz hava ID'si -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} ############# # Scenarios # diff --git a/data/language/vi-VN.txt b/data/language/vi-VN.txt new file mode 100644 index 0000000000..58cb37b683 --- /dev/null +++ b/data/language/vi-VN.txt @@ -0,0 +1,4490 @@ +# STR_XXXX part is read and XXXX becomes the string id number. +# Everything after the colon and before the new line will be saved as the string. +# Use # at the beginning of a line to leave a comment. +STR_0000 : +STR_0001 :{STRINGID} {COMMA16} +STR_0002 :Tàu lượn lốc xoáy +STR_0003 :Tàu lượn đứng +STR_0004 :Tàu lượn lắc dừng +STR_0005 :Tàu lượn ngược +STR_0006 :Tàu lượn sơ cấp +STR_0007 :Tàu lửa nhỏ +STR_0008 :Tàu điện +STR_0009 :Tàu lượn dừng mini +STR_0010 :Chèo thuyền +STR_0011 :Chuột gỗ hoang dã +STR_0012 :Đua ngựa +STR_0013 :Lái xe +STR_0014 :Rơi tự do +STR_0015 :Tàu lượn lòng máng +STR_0016 :Tháp quan sát +STR_0017 :Tàu lượn lặp +STR_0018 :Xuồng trượt +STR_0019 :Tàu lượn xe mỏ +STR_0020 :Cáp treo +STR_0021 :Tàu lượn xoắn +STR_0022 :Mê cung +STR_0023 :Cầu tuột +STR_0024 :Đua xe +STR_0025 :Thuyền vượt thác +STR_0026 :Sông ghềnh +STR_0027 :Xe điện đụng +STR_0028 :Thuyền lắc +STR_0029 :Thuyền lắc ngược +STR_0030 :Quầy thức ăn +STR_0031 :Quầy chưa biết (1D) +STR_0032 :Quầy nước +STR_0033 :Quầy chưa biết (1F) +STR_0034 :Cửa hàng +STR_0035 :Vòng quay ngựa gỗ +STR_0036 :Quầy chưa biết (22) +STR_0037 :Nhà thông tin +STR_0038 :Nhà vệ sinh +STR_0039 :Đu quay +STR_0040 :Thực tế ảo +STR_0041 :Rạp phim 3D +STR_0042 :Top Spin +STR_0043 :Space Rings +STR_0044 :Tàu lượn rơi ngược +STR_0045 :Lift +STR_0046 :Vertical Drop Roller Coaster +STR_0047 :Máy rút tiền +STR_0048 :Twist +STR_0049 :Nhà ma +STR_0050 :Trạm y tế +STR_0051 :Rạp xiếc +STR_0052 :Xe lửa ma +STR_0053 :Twister Roller Coaster +STR_0054 :Tàu lượn siêu tốc gỗ +STR_0055 :Side-Friction Roller Coaster +STR_0056 :Chuộc hoang dã thép +STR_0057 :Multi-Dimension Roller Coaster +STR_0058 :Unknown Ride (38) +STR_0059 :Tàu lượn siêu tốc bay +STR_0060 :Unknown Ride (3A) +STR_0061 :Virginia Reel +STR_0062 :Splash Boats +STR_0063 :Trực thăng mini +STR_0064 :Lay-down Roller Coaster +STR_0065 :Suspended Monorail +STR_0066 :Unknown Ride (40) +STR_0067 :Reverser Roller Coaster +STR_0068 :Heartline Twister Coaster +STR_0069 :Golf Mini +STR_0070 :Giga Coaster +STR_0071 :Roto-Drop +STR_0072 :Flying Saucers +STR_0073 :Crooked House +STR_0074 :Monorail Cycles +STR_0075 :Compact Inverted Coaster +STR_0076 :Tàu lượn nước +STR_0077 :Air Powered Vertical Coaster +STR_0078 :Inverted Hairpin Coaster +STR_0079 :Magic Carpet +STR_0080 :Submarine Ride +STR_0081 :River Rafts +STR_0082 :Unknown Ride (50) +STR_0083 :Enterprise +STR_0084 :Unknown Ride (52) +STR_0085 :Unknown Ride (53) +STR_0086 :Unknown Ride (54) +STR_0087 :Unknown Ride (55) +STR_0088 :Inverted Impulse Coaster +STR_0089 :Mini Roller Coaster +STR_0090 :Mine Ride +STR_0091 :Unknown Ride (59) +STR_0092 :LIM Launched Roller Coaster +STR_0093 :Hybrid Coaster +STR_0094 :Single Rail Roller Coaster +STR_0512 :A compact roller coaster with a spiral lift hill and smooth, twisting drops. +STR_0513 :A looping roller coaster where the riders ride in a standing position +STR_0514 :Trains suspended beneath the roller coaster track swing out to the side around corners +STR_0515 :A steel roller coaster with trains that are held beneath the track, with many complex and twisting track elements +STR_0516 :A gentle roller coaster for people who haven’t yet got the courage to face the larger rides +STR_0517 :Passengers ride in miniature trains along a narrow-gauge railway track +STR_0518 :Passengers travel in electric trains along a monorail track +STR_0519 :Passengers ride in small cars hanging beneath the single-rail track, swinging freely from side to side around corners +STR_0520 :A dock platform where guests can drive/row personal watercraft on a body of water +STR_0521 :A fast and twisting roller coaster with tight turns and steep drops. Intensity is bound to be high. +STR_0522 :A smaller roller coaster where the riders sit above the track with no car around them +STR_0523 :Riders travel slowly in powered vehicles along a track-based route +STR_0524 :Freefall car is pneumatically launched up a tall steel tower and then allowed to freefall down +STR_0525 :Riders career down a twisting track guided only by the curvature and banking of the semi-circular track +STR_0526 :Passengers travel in a rotating observation cabin which travels up a tall tower +STR_0527 :A smooth steel-tracked roller coaster capable of vertical loops +STR_0528 :Riders travel in inflatable dinghies down a twisting semi-circular or completely enclosed tube track +STR_0529 :Mine train themed roller coaster trains career along steel roller coaster track made to look like old railway track +STR_0530 :Cars hang from a steel cable which runs continuously from one end of the ride to the other and back again +STR_0531 :A compact steel-tracked roller coaster where the train travels through corkscrews and loops +STR_0532 :Maze is constructed from 6-foot tall hedges or walls, and guests wander around the maze leaving only when they find the exit +STR_0533 :Wooden building with an internal staircase and an external spiral slide for use with slide mats +STR_0534 :Guests race each other in go-karts on an asphalt track +STR_0535 :Boats travel along a water channel, splashing down steep slopes to soak the riders +STR_0536 :Circular boats meander along a wide water channel, splashing through waterfalls and thrilling riders through foaming rapids +STR_0537 :Guests bump into each other in self-drive electric dodgems +STR_0538 :Large swinging pirate ship +STR_0539 :Ship is attached to an arm with a counterweight at the opposite end, and swings through a complete 360 degrees +STR_0540 :A stall where guests can purchase food +STR_0542 :A stall where guests can purchase drinks +STR_0544 :A stall that sells souvenirs +STR_0545 :Traditional rotating carousel with carved wooden horses +STR_0547 :A stall where guests can obtain park maps and purchase umbrellas +STR_0548 :A toilet building +STR_0549 :Rotating big wheel with open chairs +STR_0550 :Riders view a film inside the motion simulator pod while it is twisted and moved around by a hydraulic arm +STR_0551 :Cinema showing 3D films inside a geodesic sphere shaped building +STR_0552 :Passengers ride in a gondola suspended by large rotating arms, rotating forwards and backwards head-over-heels +STR_0553 :Concentric pivoting rings allowing the riders free rotation in all directions +STR_0554 :The car is accelerated out of the station along a long level track using Linear Induction Motors, then heads straight up a vertical spike of track, freefalling back down to return to the station +STR_0555 :Guests ride in a lift up or down a vertical tower to get from one level to another +STR_0556 :Extra-wide cars descend completely vertical sloped track for the ultimate freefall roller coaster experience +STR_0557 :An A.T.M. (Cash Machine) for guests to use if they run low on funds +STR_0558 :Riders ride in pairs of seats rotating around the ends of three long rotating arms +STR_0559 :Large themed building containing scary corridors and spooky rooms +STR_0560 :A place for sick guests to go for faster recovery +STR_0561 :Circus animal show inside a big-top tent +STR_0562 :Powered cars travel along a multi-level track past spooky scenery and special effects +STR_0563 :Sitting in comfortable trains with only simple lap restraints riders enjoy giant smooth drops and twisting track as well as plenty of ‘air time’ over the hills +STR_0564 :Running on wooden track, this coaster is fast, rough, noisy, and gives an ‘out of control’ riding experience with plenty of ‘air time’ +STR_0565 :A simple wooden roller coaster capable of only gentle slopes and turns, where the cars are only kept on the track by side friction wheels and gravity +STR_0566 :Individual roller coaster cars zip around a tight zig-zag layout of track with sharp corners and short sharp drops +STR_0567 :Sitting in seats suspended either side of the track, riders are pitched head-over-heels while they plunge down steep drops and travel through various inversions +STR_0569 :Riding in special harnesses below the track, riders experience the feeling of flight as they swoop through the air +STR_0571 :Circular cars spin around as they travel along the zig-zagging wooden track +STR_0572 :Large capacity boats travel along a wide water channel, propelled up slopes by a conveyor belt, accelerating down steep slopes to soak the riders with a giant splash +STR_0573 :Powered helicopter shaped cars running on a steel track, controlled by the pedalling of the riders +STR_0574 :Riders are held in special harnesses in a lying-down position, travelling through twisted track and inversions either on their backs or facing the ground +STR_0575 :Powered trains hanging from a single rail transport people around the park +STR_0577 :Bogied cars run on wooden tracks, turning around on special reversing sections +STR_0578 :Cars run along track enclosed by circular hoops, traversing steep drops and heartline twists +STR_0579 :A gentle game of miniature golf +STR_0580 :A giant steel roller coaster capable of smooth drops and hills of over 300ft +STR_0581 :A ring of seats is pulled to the top of a tall tower while gently rotating, then allowed to free-fall down, stopping gently at the bottom using magnetic brakes +STR_0582 :Guests ride in hovercraft vehicles that they freely control +STR_0583 :Building containing warped rooms and angled corridors to disorientate people walking through it +STR_0584 :Special bicycles run on a steel monorail track, propelled by the pedalling of the riders +STR_0585 :Riders sit in pairs of seats suspended beneath the track as they loop and twist through tight inversions +STR_0586 :Boat shaped cars run on roller coaster track to allow twisting curves and steep drops, splashing down into sections of water for gentle river sections +STR_0587 :After an exhilarating air-powered launch, the train speeds up a vertical track, over the top, and vertically down the other side to return to the station +STR_0588 :Individual cars run beneath a zig-zagging track with hairpin turns and sharp drops +STR_0589 :A large flying-carpet themed car which moves up and down cyclically on the ends of 4 arms +STR_0590 :Riders ride in a submerged submarine through an underwater course +STR_0591 :Raft-shaped boats gently meander around a river track +STR_0593 :Rotating wheel with suspended passenger pods, which first starts spinning and is then tilted up by a supporting arm +STR_0598 :Inverted roller coaster trains are accelerated out of the station to travel up a vertical spike of track, then reverse back through the station to travel backwards up another vertical spike of track +STR_0599 :A compact roller coaster with individual cars and smooth twisting drops +STR_0600 :Powered mine trains career along a smooth and twisted track layout +STR_0602 :Roller coaster trains are accelerated out of the station by linear induction motors to speed through twisting inversions +STR_0603 :A wooden style roller coaster with a steel track, allowing for steep drops and inversions. +STR_0604 :Riders ride single file on a narrow monorail track, as they race through tight inversions and direction changes. +STR_0767 :Khách {INT32} +STR_0768 :Lao công {INT32} +STR_0769 :Kỹ sư {INT32} +STR_0770 :Bảo vệ {INT32} +STR_0771 :Hoạt náo {INT32} +STR_0777 :Unnamed park{POP16}{POP16} +STR_0778 :Sign +STR_0779 :Ngày 1 +STR_0780 :Ngày 2 +STR_0781 :Ngày 3 +STR_0782 :Ngày 4 +STR_0783 :Ngày 5 +STR_0784 :Ngày 6 +STR_0785 :Ngày 7 +STR_0786 :Ngày 8 +STR_0787 :Ngày 9 +STR_0788 :Ngày 10 +STR_0789 :Ngày 11 +STR_0790 :Ngày 12 +STR_0791 :Ngày 13 +STR_0792 :Ngày 14 +STR_0793 :Ngày 15 +STR_0794 :Ngày 16 +STR_0795 :Ngày 17 +STR_0796 :Ngày 18 +STR_0797 :Ngày 19 +STR_0798 :Ngày 20 +STR_0799 :Ngày 21 +STR_0800 :Ngày 22 +STR_0801 :Ngày 23 +STR_0802 :Ngày 24 +STR_0803 :Ngày 25 +STR_0804 :Ngày 26 +STR_0805 :Ngày 27 +STR_0806 :Ngày 28 +STR_0807 :Ngày 29 +STR_0808 :Ngày 30 +STR_0809 :Ngày 31 +STR_0810 :T1 +STR_0811 :T2 +STR_0812 :T3 +STR_0813 :T4 +STR_0814 :T5 +STR_0815 :T6 +STR_0816 :T7 +STR_0817 :T8 +STR_0818 :T9 +STR_0819 :T10 +STR_0820 :T11 +STR_0821 :T12 +STR_0822 :Không thể truy cập file đồ họa +STR_0823 :File dữ liệu bị mất hoặc không truy cập được +STR_0824 :{BLACK}❌ +STR_0825 :Chosen name in use already +STR_0826 :Too many names defined +STR_0827 :Không đủ tiền - cần {CURRENCY2DP} +STR_0828 :Đóng cửa sổ +STR_0829 :Window title - Drag this to move window +STR_0830 :Zoom view in +STR_0831 :Zoom view out +STR_0832 :Rotate view 90° clockwise +STR_0833 :Pause game +STR_0834 :Disk and game options +STR_0839 :{UINT16} x {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0847 :About ‘OpenRCT2’ +STR_0850 :{WINDOW_COLOUR_2}Copyright © 2002 Chris Sawyer, all rights reserved +STR_0851 :{WINDOW_COLOUR_2}Designed and programmed by Chris Sawyer +STR_0852 :{WINDOW_COLOUR_2}Graphics by Simon Foster +STR_0853 :{WINDOW_COLOUR_2}Sound and music by Allister Brimble +STR_0854 :{WINDOW_COLOUR_2}Additional sounds recorded by David Ellis +STR_0855 :{WINDOW_COLOUR_2}Representation by Jacqui Lyons at Marjacq Ltd. +STR_0856 :{WINDOW_COLOUR_2}Thanks to: +STR_0857 :{WINDOW_COLOUR_2}Peter James Adcock, Joe Booth, and John Wardley +STR_0865 :{STRINGID} +STR_0866 :{POP16}{STRINGID} +STR_0867 :{POP16}{POP16}{STRINGID} +STR_0868 :{POP16}{POP16}{POP16}{STRINGID} +STR_0869 :{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0870 :{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0871 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0872 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0873 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0874 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0875 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_0876 :{BLACK}▼ +STR_0877 :Too low! +STR_0878 :Too high! +STR_0879 :Can’t lower land here… +STR_0880 :Can’t raise land here… +STR_0881 :Object in the way +STR_0882 :Load Game +STR_0883 :Save Game +STR_0884 :Load Landscape +STR_0885 :Save Landscape +STR_0887 :Quit Scenario Editor +STR_0888 :Quit Track Designer +STR_0889 :Quit Track Designs Manager +STR_0891 :Screenshot +STR_0892 :Screenshot saved to disk as ‘{STRINGID}’ +STR_0893 :Screenshot failed! +STR_0894 :Landscape data area full! +STR_0895 :Can’t build partly above and partly below ground +STR_0896 :{POP16}{POP16}{STRINGID} Construction +STR_0897 :Direction +STR_0898 :Left-hand curve +STR_0899 :Right-hand curve +STR_0900 :Left-hand curve (small radius) +STR_0901 :Right-hand curve (small radius) +STR_0902 :Left-hand curve (very small radius) +STR_0903 :Right-hand curve (very small radius) +STR_0904 :Left-hand curve (large radius) +STR_0905 :Right-hand curve (large radius) +STR_0906 :Straight +STR_0907 :Slope +STR_0908 :Roll/Banking +STR_0909 :Seat Rot. +STR_0910 :Roll for left-hand curve +STR_0911 :Roll for right-hand curve +STR_0912 :No roll +STR_0913 :Move to previous section +STR_0914 :Move to next section +STR_0915 :Construct the selected section +STR_0916 :Remove the highlighted section +STR_0917 :Vertical drop +STR_0918 :Steep slope down +STR_0919 :Slope down +STR_0920 :Level +STR_0921 :Slope up +STR_0922 :Steep slope up +STR_0923 :Vertical rise +STR_0924 :Helix down +STR_0925 :Helix up +STR_0926 :Can’t remove this… +STR_0927 :Can’t construct this here… +STR_0928 :Chain lift, to pull cars up slopes +STR_0929 :‘S’ Bend (left) +STR_0930 :‘S’ Bend (right) +STR_0931 :Vertical Loop (left) +STR_0932 :Vertical Loop (right) +STR_0933 :Raise or lower land first +STR_0934 :Ride entrance in the way +STR_0935 :Ride exit in the way +STR_0936 :Park entrance in the way +STR_0937 :View options +STR_0938 :Adjust land height and slope +STR_0939 :Nhìn xuyên +STR_0940 :Ẩn nền đất +STR_0941 :Ẩn mặt cắt +STR_0942 :Nhìn xuyên trò chơi +STR_0943 :Nhìn xuyên cảnh quan +STR_0944 :Save +STR_0945 :Không save +STR_0946 :Hủy bỏ +STR_0947 :Save this before loading? +STR_0948 :Save this before quitting? +STR_0949 :Save this before quitting? +STR_0950 :Load Game +STR_0951 :Quit Game +STR_0952 :Quit Game +STR_0953 :Load Landscape +STR_0954 : +STR_0955 :Select seat rotation angle for this track section +STR_0956 :-180° +STR_0957 :-135° +STR_0958 :-90° +STR_0959 :-45° +STR_0960 :0° +STR_0961 :+45° +STR_0962 :+90° +STR_0963 :+135° +STR_0964 :+180° +STR_0965 :+225° +STR_0966 :+270° +STR_0967 :+315° +STR_0968 :+360° +STR_0969 :+405° +STR_0970 :+450° +STR_0971 :+495° +STR_0972 :Cancel +STR_0973 :OK +STR_0974 :Rides +STR_0975 :Shops and Stalls +STR_0976 :Toilets and Information Kiosks +STR_0977 :Trò chơi vận tải +STR_0978 :Trò chơi nhẹ nhàng +STR_0979 :Tàu lượn +STR_0980 :Trò chơi cảm giác mạnh +STR_0981 :Trò chơi nước +STR_0982 :Cửa hàng +STR_0983 :Nghiên cứu và phát triển +STR_0984 :{WINDOW_COLOUR_2}▲{BLACK} {CURRENCY2DP} +STR_0985 :{WINDOW_COLOUR_2}▼{BLACK} {CURRENCY2DP} +STR_0986 :{BLACK}{CURRENCY2DP} +STR_0987 :Too many rides/attractions +STR_0988 :Can’t create new ride/attraction… +STR_0989 :{STRINGID} +STR_0990 :Construction +STR_0991 :Station platform +STR_0992 :Demolish entire ride/attraction +STR_0993 :Demolish ride/attraction +STR_0994 :Demolish +STR_0995 :{WINDOW_COLOUR_1}Are you sure you want to completely demolish {STRINGID}? +STR_0996 :Overall view +STR_0997 :View selection +STR_0998 :No more stations allowed on this ride +STR_0999 :Requires a station platform +STR_1000 :Track is not a complete circuit +STR_1001 :Track unsuitable for type of train +STR_1002 :Can’t open {POP16}{POP16}{POP16}{STRINGID}… +STR_1003 :Can’t test {POP16}{POP16}{POP16}{STRINGID}… +STR_1004 :Can’t close {POP16}{POP16}{POP16}{STRINGID}… +STR_1005 :Can’t start construction on {POP16}{POP16}{POP16}{STRINGID}… +STR_1006 :Must be closed first +STR_1007 :Unable to create enough vehicles +STR_1008 :Open, close, or test ride/attraction +STR_1009 :Open or close all rides/attractions +STR_1010 :Open or close park +STR_1011 :Close all +STR_1012 :Open all +STR_1013 :Close park +STR_1014 :Open park +STR_1015 :Unable to operate with more than one station platform in this mode +STR_1016 :Unable to operate with less than two stations in this mode +STR_1017 :Can’t change operating mode… +STR_1018 :Can’t make changes… +STR_1019 :Can’t make changes… +STR_1020 :Can’t make changes… +STR_1021 :{POP16}{POP16}{POP16}{POP16}{STRINGID} +STR_1022 :{POP16}{POP16}{POP16}{COMMA16} car per train +STR_1023 :{POP16}{POP16}{POP16}{COMMA16} cars per train +STR_1024 :{COMMA16} car per train +STR_1025 :{COMMA16} cars per train +STR_1026 :Station platform too long! +STR_1027 :Locate this on Main View +STR_1028 :Off edge of map! +STR_1029 :Cannot build partly above and partly below water! +STR_1030 :Can only build this underwater! +STR_1031 :Can’t build this underwater! +STR_1032 :Can only build this on water! +STR_1033 :Can only build this above ground! +STR_1034 :Can only build this on land! +STR_1035 :Local authority won’t allow construction above tree-height! +STR_1036 :Load Game +STR_1037 :Load Landscape +STR_1038 :Convert saved game to scenario +STR_1039 :Install new track design +STR_1040 :Save Game +STR_1041 :Save Scenario +STR_1042 :Save Landscape +STR_1043 :OpenRCT2 Saved Game +STR_1044 :OpenRCT2 Scenario File +STR_1045 :OpenRCT2 Landscape File +STR_1046 :OpenRCT2 Track Design File +STR_1047 :Game save failed! +STR_1048 :Scenario save failed! +STR_1049 :Landscape save failed! +STR_1050 :Failed to load…{NEWLINE}File contains invalid data! +STR_1051 :Ẩn giá đỡ +STR_1052 :Ẩn người +STR_1053 :Rides/attractions in park +STR_1054 :Name ride/attraction +STR_1055 :Name person +STR_1056 :Name staff member +STR_1057 :Ride/attraction name +STR_1058 :Enter new name for this ride/attraction: +STR_1059 :Can’t rename ride/attraction… +STR_1060 :Invalid ride/attraction name +STR_1061 :Normal mode +STR_1062 :Continuous circuit mode +STR_1063 :Reverse-Incline launched shuttle mode +STR_1064 :Powered launch (passing station) +STR_1065 :Shuttle mode +STR_1066 :Boat hire mode +STR_1067 :Upward launch +STR_1068 :Rotating lift mode +STR_1069 :Station to station mode +STR_1070 :Single ride per admission +STR_1071 :Unlimited rides per admission +STR_1072 :Maze mode +STR_1073 :Race mode +STR_1074 :Bumper-car mode +STR_1075 :Swing mode +STR_1076 :Shop stall mode +STR_1077 :Rotation mode +STR_1078 :Forward rotation +STR_1079 :Backward rotation +STR_1080 :Film: “Avenging aviators” +STR_1081 :3D film: “Mouse tails” +STR_1082 :Space rings mode +STR_1083 :Beginners mode +STR_1084 :LIM-powered launch +STR_1085 :Film: “Thrill riders” +STR_1086 :3D film: “Storm chasers” +STR_1087 :3D film: “Space raiders” +STR_1088 :Intense mode +STR_1089 :Berserk mode +STR_1090 :Haunted house mode +STR_1091 :Circus mode +STR_1092 :Downward launch +STR_1093 :Crooked house mode +STR_1094 :Freefall drop mode +STR_1095 :Continuous circuit block sectioned mode +STR_1096 :Powered launch (without passing station) +STR_1097 :Powered launch block sectioned mode +STR_1098 :Moving to end of {POP16}{STRINGID} +STR_1099 :Waiting for passengers at {POP16}{STRINGID} +STR_1100 :Waiting to depart {POP16}{STRINGID} +STR_1101 :Departing {POP16}{STRINGID} +STR_1102 :Travelling at {VELOCITY} +STR_1103 :Arriving at {POP16}{STRINGID} +STR_1104 :Unloading passengers at {POP16}{STRINGID} +STR_1105 :Travelling at {VELOCITY} +STR_1106 :Crashing! +STR_1107 :Crashed! +STR_1108 :Travelling at {VELOCITY} +STR_1109 :Swinging +STR_1110 :Rotating +STR_1111 :Rotating +STR_1112 :Operating +STR_1113 :Showing film +STR_1114 :Rotating +STR_1115 :Operating +STR_1116 :Operating +STR_1117 :Doing circus show +STR_1118 :Operating +STR_1119 :Waiting for cable lift +STR_1120 :Travelling at {VELOCITY} +STR_1121 :Stopping +STR_1122 :Waiting for passengers +STR_1123 :Waiting to start +STR_1124 :Starting +STR_1125 :Operating +STR_1126 :Stopping +STR_1127 :Unloading passengers +STR_1128 :Stopped by block brakes +STR_1129 :All vehicles in same colours +STR_1130 :Different colours per {STRINGID} +STR_1131 :Different colours per vehicle +STR_1132 :Vehicle {POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1133 :Vehicle {POP16}{COMMA16} +STR_1134 :{POP16}{POP16}{POP16}{POP16}{POP16}{STRINGID} {COMMA16} +STR_1135 :{STRINGID} {COMMA16} +STR_1136 :Select main colour +STR_1137 :Select additional colour 1 +STR_1138 :Select additional colour 2 +STR_1139 :Select support structure colour +STR_1140 :Select vehicle colour scheme option +STR_1141 :Select which vehicle/train to modify +STR_1142 :{MOVE_X}{10}{STRINGID} +STR_1143 :»{MOVE_X}{10}{STRINGID} +STR_1144 :Can’t build/move entrance for this ride/attraction… +STR_1145 :Can’t build/move exit for this ride/attraction… +STR_1146 :Entrance not yet built +STR_1147 :Exit not yet built +STR_1148 :Quarter load +STR_1149 :Half load +STR_1150 :Three-quarter load +STR_1151 :Full load +STR_1152 :Any load +STR_1153 :Height Marks on Ride Tracks +STR_1154 :Height Marks on Land +STR_1155 :Height Marks on Paths +STR_1156 :{MOVE_X}{10}{STRINGID} +STR_1157 :✓{MOVE_X}{10}{STRINGID} +STR_1158 :Can’t remove this… +STR_1159 :Place scenery, gardens, and other accessories +STR_1160 :Create/adjust lakes & water +STR_1161 :Can’t position this here… +STR_1162 :{OUTLINE}{TOPAZ}{STRINGID} +STR_1163 :{STRINGID}{NEWLINE}(Right-Click to Modify) +STR_1164 :{STRINGID}{NEWLINE}(Right-Click to Remove) +STR_1165 :{STRINGID} - {STRINGID} {COMMA16} +STR_1166 :Can’t lower water level here… +STR_1167 :Can’t raise water level here… +STR_1168 :Options +STR_1169 :(None) +STR_1170 :{STRING} +STR_1171 :{RED}Closed +STR_1172 :{YELLOW}{STRINGID} +STR_1173 :Build footpaths and queue lines +STR_1174 :Banner sign in the way +STR_1175 :Can’t build this on sloped footpath +STR_1176 :Can’t build footpath here… +STR_1177 :Can’t remove footpath from here… +STR_1178 :Land slope unsuitable +STR_1179 :Footpath in the way +STR_1180 :Can’t build this underwater! +STR_1181 :Footpaths +STR_1182 :Type +STR_1183 :Direction +STR_1184 :Slope +STR_1185 :Direction +STR_1186 :Slope down +STR_1187 :Level +STR_1188 :Slope up +STR_1189 :Construct the selected footpath section +STR_1190 :Remove previous footpath section +STR_1191 :{BLACK}{STRINGID} +STR_1192 :{OUTLINE}{RED}{STRINGID} +STR_1193 :{WINDOW_COLOUR_2}{STRINGID} +STR_1194 :Closed +STR_1195 :Test Run +STR_1196 :Open +STR_1197 :Broken Down +STR_1198 :Crashed! +STR_1199 :{COMMA16} person on ride +STR_1200 :{COMMA16} people on ride +STR_1201 :Nobody in queue line +STR_1202 :1 person in queue line +STR_1203 :{COMMA16} people in queue line +STR_1204 :{COMMA16} minute queue time +STR_1205 :{COMMA16} minutes queue time +STR_1206 :{WINDOW_COLOUR_2}Wait for: +STR_1207 :{WINDOW_COLOUR_2}Leave if another train arrives at station +STR_1208 :{WINDOW_COLOUR_2}Leave if another boat arrives at station +STR_1209 :Select whether should wait for passengers before departing +STR_1210 :Select whether should leave if another vehicle arrives at the same station +STR_1211 :{WINDOW_COLOUR_2}Minimum waiting time: +STR_1212 :{WINDOW_COLOUR_2}Maximum waiting time: +STR_1213 :Select minimum length of time to wait before departing +STR_1214 :Select maximum length of time to wait before departing +STR_1215 :{WINDOW_COLOUR_2}Synchronise with adjacent stations +STR_1216 :Select whether to synchronise departure with all adjacent stations (for ‘racing’) +STR_1217 :{COMMA16} seconds +STR_1218 :{BLACK}➕ +STR_1219 :{BLACK}➖ +STR_1220 :Exit only +STR_1221 :No entrance +STR_1222 :No exit +STR_1223 :Trò chơi vận tải +STR_1224 :Trò chơi nhẹ nhàng +STR_1225 :Tàu lượn +STR_1226 :Trò chơi cảm giác mạnh +STR_1227 :Trò chơi nước +STR_1228 :Cửa hàng +STR_1229 :train +STR_1230 :trains +STR_1231 :Train +STR_1232 :Trains +STR_1233 :{COMMA16} train +STR_1234 :{COMMA16} trains +STR_1235 :Train {COMMA16} +STR_1236 :boat +STR_1237 :boats +STR_1238 :Boat +STR_1239 :Boats +STR_1240 :{COMMA16} boat +STR_1241 :{COMMA16} boats +STR_1242 :Boat {COMMA16} +STR_1243 :track +STR_1244 :tracks +STR_1245 :Track +STR_1246 :Tracks +STR_1247 :{COMMA16} track +STR_1248 :{COMMA16} tracks +STR_1249 :Track {COMMA16} +STR_1250 :docking platform +STR_1251 :docking platforms +STR_1252 :Docking platform +STR_1253 :Docking platforms +STR_1254 :{COMMA16} docking platform +STR_1255 :{COMMA16} docking platforms +STR_1256 :Docking platform {COMMA16} +STR_1257 :station +STR_1258 :stations +STR_1259 :Station +STR_1260 :Stations +STR_1261 :{COMMA16} station +STR_1262 :{COMMA16} stations +STR_1263 :Station {COMMA16} +STR_1264 :car +STR_1265 :cars +STR_1266 :Car +STR_1267 :Cars +STR_1268 :{COMMA16} car +STR_1269 :{COMMA16} cars +STR_1270 :Car {COMMA16} +STR_1271 :building +STR_1272 :buildings +STR_1273 :Building +STR_1274 :Buildings +STR_1275 :{COMMA16} building +STR_1276 :{COMMA16} buildings +STR_1277 :Building {COMMA16} +STR_1278 :structure +STR_1279 :structures +STR_1280 :Structure +STR_1281 :Structures +STR_1282 :{COMMA16} structure +STR_1283 :{COMMA16} structures +STR_1284 :Structure {COMMA16} +STR_1285 :ship +STR_1286 :ships +STR_1287 :Ship +STR_1288 :Ships +STR_1289 :{COMMA16} ship +STR_1290 :{COMMA16} ships +STR_1291 :Ship {COMMA16} +STR_1292 :cabin +STR_1293 :cabins +STR_1294 :Cabin +STR_1295 :Cabins +STR_1296 :{COMMA16} cabin +STR_1297 :{COMMA16} cabins +STR_1298 :Cabin {COMMA16} +STR_1299 :wheel +STR_1300 :wheels +STR_1301 :Wheel +STR_1302 :Wheels +STR_1303 :{COMMA16} wheel +STR_1304 :{COMMA16} wheels +STR_1305 :Wheel {COMMA16} +STR_1306 :ring +STR_1307 :rings +STR_1308 :Ring +STR_1309 :Rings +STR_1310 :{COMMA16} ring +STR_1311 :{COMMA16} rings +STR_1312 :Ring {COMMA16} +STR_1313 :player +STR_1314 :players +STR_1315 :Player +STR_1316 :Players +STR_1317 :{COMMA16} player +STR_1318 :{COMMA16} players +STR_1319 :Player {COMMA16} +STR_1320 :course +STR_1321 :courses +STR_1322 :Course +STR_1323 :Courses +STR_1324 :{COMMA16} course +STR_1325 :{COMMA16} courses +STR_1326 :Course {COMMA16} +STR_1327 :Rotate objects by 90° +STR_1328 :Level land required +STR_1329 :{WINDOW_COLOUR_2}Launch speed: +STR_1330 :Maximum speed when leaving station +STR_1331 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{VELOCITY} +STR_1332 :{VELOCITY} +STR_1333 :{STRINGID} - {STRINGID}{POP16} +STR_1334 :{STRINGID} - {STRINGID} {COMMA16} +STR_1335 :{STRINGID} - Entrance{POP16}{POP16} +STR_1336 :{STRINGID} - Station {POP16}{COMMA16} Entrance +STR_1337 :{STRINGID} - Exit{POP16}{POP16} +STR_1338 :{STRINGID} - Station {POP16}{COMMA16} Exit +STR_1339 :{BLACK}No test results yet… +STR_1340 :{WINDOW_COLOUR_2}Max. speed: {BLACK}{VELOCITY} +STR_1341 :{WINDOW_COLOUR_2}Ride time: {BLACK}{STRINGID}{STRINGID}{STRINGID}{STRINGID} +STR_1342 :{DURATION} +STR_1343 :{DURATION} / +STR_1344 :{WINDOW_COLOUR_2}Ride length: {BLACK}{STRINGID}{STRINGID}{STRINGID}{STRINGID} +STR_1345 :{LENGTH} +STR_1346 :{LENGTH} / +STR_1347 :{WINDOW_COLOUR_2}Average speed: {BLACK}{VELOCITY} +STR_1348 :{WINDOW_COLOUR_2}Max. positive vertical Gs: {BLACK}{COMMA2DP32}g +STR_1349 :{WINDOW_COLOUR_2}Max. positive vertical Gs: {OUTLINE}{RED}{COMMA2DP32}g +STR_1350 :{WINDOW_COLOUR_2}Max. negative vertical Gs: {BLACK}{COMMA2DP32}g +STR_1351 :{WINDOW_COLOUR_2}Max. negative vertical Gs: {OUTLINE}{RED}{COMMA2DP32}g +STR_1352 :{WINDOW_COLOUR_2}Max. lateral Gs: {BLACK}{COMMA2DP32}g +STR_1353 :{WINDOW_COLOUR_2}Max. lateral Gs: {OUTLINE}{RED}{COMMA2DP32}g +STR_1354 :{WINDOW_COLOUR_2}Highest drop height: {BLACK}{LENGTH} +STR_1355 :{WINDOW_COLOUR_2}Drops: {BLACK}{COMMA16} +STR_1356 :{WINDOW_COLOUR_2}Inversions: {BLACK}{COMMA16} +STR_1357 :{WINDOW_COLOUR_2}Holes: {BLACK}{COMMA16} +STR_1358 :{WINDOW_COLOUR_2}Total ‘air’ time: {BLACK}{COMMA2DP32}secs +STR_1359 :{WINDOW_COLOUR_2}Queue time: {BLACK}{COMMA16} minute +STR_1360 :{WINDOW_COLOUR_2}Queue time: {BLACK}{COMMA16} minutes +STR_1361 :Can’t change speed… +STR_1362 :Can’t change launch speed… +STR_1363 :Too high for supports! +STR_1364 :Supports for track above can’t be extended any further! +STR_1365 :In-line Twist (left) +STR_1366 :In-line Twist (right) +STR_1367 :Half Loop +STR_1368 :Half Corkscrew (left) +STR_1369 :Half Corkscrew (right) +STR_1370 :Barrel Roll (left) +STR_1371 :Barrel Roll (right) +STR_1372 :Launched Lift Hill +STR_1373 :Large Half Loop (left) +STR_1374 :Large Half Loop (right) +STR_1375 :Upper Transfer +STR_1376 :Lower Transfer +STR_1377 :Heartline Roll (left) +STR_1378 :Heartline Roll (right) +STR_1379 :Reverser (left) +STR_1380 :Reverser (right) +STR_1381 :Curved Lift Hill (left) +STR_1382 :Curved Lift Hill (right) +STR_1383 :Quarter Loop +STR_1384 :{YELLOW}{STRINGID} +STR_1385 :Other track configurations +STR_1386 :Special… +STR_1387 :Can’t change land type… +STR_1388 :{OUTLINE}{GREEN}+ {CURRENCY} +STR_1389 :{OUTLINE}{RED}- {CURRENCY} +STR_1390 :{CURRENCY2DP} +STR_1391 :{RED}{CURRENCY2DP} +STR_1392 :View of ride/attraction +STR_1393 :Vehicle details and options +STR_1394 :Operating options +STR_1395 :Maintenance options +STR_1396 :Colour scheme options +STR_1397 :Sound & music options +STR_1398 :Measurements and test data +STR_1399 :Graphs +STR_1400 :Entrance +STR_1401 :Exit +STR_1402 :Build or move entrance to ride/attraction +STR_1403 :Build or move exit from ride/attraction +STR_1404 :Rotate 90° +STR_1405 :Mirror image +STR_1406 :Toggle scenery on/off (if available for this design) +STR_1407 :{WINDOW_COLOUR_2}Build this… +STR_1408 :{WINDOW_COLOUR_2}Cost: {BLACK}{CURRENCY} +STR_1409 :Entry/Exit Platform +STR_1410 :Vertical Tower +STR_1411 :{STRINGID} in the way +STR_1412 :{WINDOW_COLOUR_3}Data logging not available for this type of ride +STR_1413 :{WINDOW_COLOUR_3}Data logging will start when next {STRINGID} leaves {STRINGID} +STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1415 :{WINDOW_COLOUR_2}Velocity +STR_1416 :{WINDOW_COLOUR_2}Altitude +STR_1417 :{WINDOW_COLOUR_2}Vert. Gs +STR_1418 :{WINDOW_COLOUR_2}Lat. Gs +STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} +STR_1420 :{SMALLFONT}{BLACK}{LENGTH} +STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1422 :Logging data from {POP16}{STRINGID} +STR_1423 :Queue line path +STR_1424 :Footpath +STR_1425 :Footpath +STR_1426 :Queue Line +STR_1427 :{WINDOW_COLOUR_2}Customers: {BLACK}{COMMA32} per hour +STR_1428 :{WINDOW_COLOUR_2}Admission price: +STR_1429 :{POP16}{POP16}{POP16}{CURRENCY2DP} +STR_1430 :Miễn phí +STR_1431 :Đang di chuyển +STR_1432 :Đang đi đến {STRINGID} +STR_1433 :Đang xếp hàng ở {STRINGID} +STR_1434 :Đang chìm +STR_1435 :On {STRINGID} +STR_1436 :In {STRINGID} +STR_1437 :At {STRINGID} +STR_1438 :Sitting +STR_1439 :(chọn vị trí) +STR_1440 :Đang cắt cỏ +STR_1441 :Đang quét đường +STR_1442 :Đang dọn thùng rác +STR_1443 :Đang tưới hoa +STR_1444 :Watching {STRINGID} +STR_1445 :Watching construction of {STRINGID} +STR_1446 :Looking at scenery +STR_1447 :Leaving the park +STR_1448 :Watching new ride being constructed +STR_1449 :{SPRITE} {STRINGID}{NEWLINE}({STRINGID}) +STR_1450 :{INLINE_SPRITE}{09}{20}{00}{00}{SPRITE} {STRINGID}{NEWLINE}({STRINGID}) +STR_1451 :{STRINGID}{NEWLINE}({STRINGID}) +STR_1452 :Guest’s name +STR_1453 :Enter name for this guest: +STR_1454 :Can’t name guest… +STR_1455 :Invalid name for guest +STR_1456 :{WINDOW_COLOUR_2}Cash spent: {BLACK}{CURRENCY2DP} +STR_1457 :{WINDOW_COLOUR_2}Cash in pocket: {BLACK}{CURRENCY2DP} +STR_1458 :{WINDOW_COLOUR_2}Time in park: {BLACK}{REALTIME} +STR_1459 :Track style +STR_1460 :‘U’ shaped open track +STR_1461 :‘O’ shaped enclosed track +STR_1462 :Too steep for lift hill +STR_1463 :Guests +STR_1464 :Helix up (small) +STR_1465 :Helix up (large) +STR_1466 :Helix down (small) +STR_1467 :Helix down (large) +STR_1468 :Nhân viên +STR_1469 :Ride must start and end with stations +STR_1470 :Station not long enough +STR_1471 :{WINDOW_COLOUR_2}Speed: +STR_1472 :Speed of this ride +STR_1473 :{WINDOW_COLOUR_2}Độ phấn khích: {BLACK}{COMMA2DP32} ({STRINGID}) +STR_1474 :{WINDOW_COLOUR_2}Độ phấn khích: {BLACK}Not yet available +STR_1475 :{WINDOW_COLOUR_2}Cường độ: {BLACK}{COMMA2DP32} ({STRINGID}) +STR_1476 :{WINDOW_COLOUR_2}Cường độ: {BLACK}Not yet available +STR_1477 :{WINDOW_COLOUR_2}Cường độ: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) +STR_1478 :{WINDOW_COLOUR_2}Độ buồn nôn: {BLACK}{COMMA2DP32} ({STRINGID}) +STR_1479 :{WINDOW_COLOUR_2}Độ buồn nôn: {BLACK}Not yet available +STR_1480 :{SMALLFONT}“Tôi không đủ tiền chơi {STRINGID}” +STR_1481 :{SMALLFONT}“I’ve spent all my money” +STR_1482 :{SMALLFONT}“I feel sick” +STR_1483 :{SMALLFONT}“I feel very sick” +STR_1484 :{SMALLFONT}“Tôi muốn chơi cái gì đó cảm giác mạnh hơn {STRINGID}” +STR_1485 :{SMALLFONT}“{STRINGID} looks too intense for me” +STR_1486 :{SMALLFONT}“I haven’t finished my {STRINGID} yet” +STR_1487 :{SMALLFONT}“Just looking at {STRINGID} makes me feel sick” +STR_1488 :{SMALLFONT}“Tôi sẽ không trả nhiều tiền như vậy để chơi {STRINGID}” +STR_1489 :{SMALLFONT}“I want to go home” +STR_1490 :{SMALLFONT}“{STRINGID} is really good value” +STR_1491 :{SMALLFONT}“I’ve already got {STRINGID}” +STR_1492 :{SMALLFONT}“Tôi không đủ tiền mua {STRINGID}” +STR_1493 :{SMALLFONT}“I’m not hungry” +STR_1494 :{SMALLFONT}“I’m not thirsty” +STR_1495 :{SMALLFONT}“Help! I’m drowning!” +STR_1496 :{SMALLFONT}“I’m lost!” +STR_1497 :{SMALLFONT}“{STRINGID} was great” +STR_1498 :{SMALLFONT}“I’ve been queuing for {STRINGID} for ages” +STR_1499 :{SMALLFONT}“I’m tired” +STR_1500 :{SMALLFONT}“I’m hungry” +STR_1501 :{SMALLFONT}“I’m thirsty” +STR_1502 :{SMALLFONT}“I need to go to the toilet” +STR_1503 :{SMALLFONT}“I can’t find {STRINGID}” +STR_1504 :{SMALLFONT}“I’m not paying that much to use {STRINGID}” +STR_1505 :{SMALLFONT}“Tôi sẽ không chơi {STRINGID} khi trời mưa” +STR_1506 :{SMALLFONT}“The litter here is really bad” +STR_1507 :{SMALLFONT}“I can’t find the park exit” +STR_1508 :{SMALLFONT}“I want to get off {STRINGID}” +STR_1509 :{SMALLFONT}“I want to get out of {STRINGID}” +STR_1510 :{SMALLFONT}“I’m not going on {STRINGID} - it isn’t safe” +STR_1511 :{SMALLFONT}“This path is disgusting” +STR_1512 :{SMALLFONT}“It’s too crowded here” +STR_1513 :{SMALLFONT}“The vandalism here is really bad” +STR_1514 :{SMALLFONT}“Great scenery!” +STR_1515 :{SMALLFONT}“This park is really clean and tidy” +STR_1516 :{SMALLFONT}“The jumping fountains are great” +STR_1517 :{SMALLFONT}“The music is nice here” +STR_1518 :{SMALLFONT}“This balloon from {STRINGID} is really good value” +STR_1519 :{SMALLFONT}“This cuddly toy from {STRINGID} is really good value” +STR_1520 :{SMALLFONT}“This park map from {STRINGID} is really good value” +STR_1521 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” +STR_1522 :{SMALLFONT}“This umbrella from {STRINGID} is really good value” +STR_1523 :{SMALLFONT}“This drink from {STRINGID} is really good value” +STR_1524 :{SMALLFONT}“This burger from {STRINGID} is really good value” +STR_1525 :{SMALLFONT}“These chips from {STRINGID} are really good value” +STR_1526 :{SMALLFONT}“This ice cream from {STRINGID} is really good value” +STR_1527 :{SMALLFONT}“This candyfloss from {STRINGID} is really good value” +STR_1528 : +STR_1529 : +STR_1530 : +STR_1531 :{SMALLFONT}“This pizza from {STRINGID} is really good value” +STR_1532 : +STR_1533 :{SMALLFONT}“This popcorn from {STRINGID} is really good value” +STR_1534 :{SMALLFONT}“This hot dog from {STRINGID} is really good value” +STR_1535 :{SMALLFONT}“This tentacle from {STRINGID} is really good value” +STR_1536 :{SMALLFONT}“This hat from {STRINGID} is really good value” +STR_1537 :{SMALLFONT}“This toffee apple from {STRINGID} is really good value” +STR_1538 :{SMALLFONT}“This T-shirt from {STRINGID} is really good value” +STR_1539 :{SMALLFONT}“This doughnut from {STRINGID} is really good value” +STR_1540 :{SMALLFONT}“This coffee from {STRINGID} is really good value” +STR_1541 : +STR_1542 :{SMALLFONT}“This fried chicken from {STRINGID} is really good value” +STR_1543 :{SMALLFONT}“This lemonade from {STRINGID} is really good value” +STR_1544 : +STR_1545 : +STR_1546 : +STR_1547 : +STR_1548 : +STR_1549 : +STR_1550 :{SMALLFONT}“Wow!” +STR_1551 :{SMALLFONT}“I have the strangest feeling someone is watching me” +STR_1552 :{SMALLFONT}“I’m not paying that much for a balloon from {STRINGID}” +STR_1553 :{SMALLFONT}“I’m not paying that much for a cuddly toy from {STRINGID}” +STR_1554 :{SMALLFONT}“I’m not paying that much for a park map from {STRINGID}” +STR_1555 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1556 :{SMALLFONT}“I’m not paying that much for an umbrella from {STRINGID}” +STR_1557 :{SMALLFONT}“I’m not paying that much for a drink from {STRINGID}” +STR_1558 :{SMALLFONT}“I’m not paying that much for a burger from {STRINGID}” +STR_1559 :{SMALLFONT}“I’m not paying that much for chips from {STRINGID}” +STR_1560 :{SMALLFONT}“I’m not paying that much for an ice cream from {STRINGID}” +STR_1561 :{SMALLFONT}“I’m not paying that much for candyfloss from {STRINGID}” +STR_1562 : +STR_1563 : +STR_1564 : +STR_1565 :{SMALLFONT}“I’m not paying that much for pizza from {STRINGID}” +STR_1566 : +STR_1567 :{SMALLFONT}“I’m not paying that much for popcorn from {STRINGID}” +STR_1568 :{SMALLFONT}“I’m not paying that much for a hot dog from {STRINGID}” +STR_1569 :{SMALLFONT}“I’m not paying that much for tentacle from {STRINGID}” +STR_1570 :{SMALLFONT}“I’m not paying that much for a hat from {STRINGID}” +STR_1571 :{SMALLFONT}“I’m not paying that much for a toffee apple from {STRINGID}” +STR_1572 :{SMALLFONT}“I’m not paying that much for a T-shirt from {STRINGID}” +STR_1573 :{SMALLFONT}“I’m not paying that much for a doughnut from {STRINGID}” +STR_1574 :{SMALLFONT}“I’m not paying that much for coffee from {STRINGID}” +STR_1575 : +STR_1576 :{SMALLFONT}“I’m not paying that much for fried chicken from {STRINGID}” +STR_1577 :{SMALLFONT}“I’m not paying that much for lemonade from {STRINGID}” +STR_1578 : +STR_1579 : +STR_1580 : +STR_1581 : +STR_1582 : +STR_1583 : +STR_1584 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” +STR_1585 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” +STR_1586 :{SMALLFONT}“This on-ride photo from {STRINGID} is really good value” +STR_1587 :{SMALLFONT}“This pretzel from {STRINGID} is really good value” +STR_1588 :{SMALLFONT}“This hot chocolate from {STRINGID} is really good value” +STR_1589 :{SMALLFONT}“This iced tea from {STRINGID} is really good value” +STR_1590 :{SMALLFONT}“This funnel cake from {STRINGID} is really good value” +STR_1591 :{SMALLFONT}“These sunglasses from {STRINGID} are really good value” +STR_1592 :{SMALLFONT}“These beef noodles from {STRINGID} are really good value” +STR_1593 :{SMALLFONT}“These fried rice noodles from {STRINGID} are really good value” +STR_1594 :{SMALLFONT}“This wonton soup from {STRINGID} is really good value” +STR_1595 :{SMALLFONT}“This meatball soup from {STRINGID} is really good value” +STR_1596 :{SMALLFONT}“This fruit juice from {STRINGID} is really good value” +STR_1597 :{SMALLFONT}“This soybean milk from {STRINGID} is really good value” +STR_1598 :{SMALLFONT}“This sujeonggwa from {STRINGID} is really good value” +STR_1599 :{SMALLFONT}“This sub sandwich from {STRINGID} is really good value” +STR_1600 :{SMALLFONT}“This cookie from {STRINGID} is really good value” +STR_1601 : +STR_1602 : +STR_1603 : +STR_1604 :{SMALLFONT}“This roast sausage from {STRINGID} is really good value” +STR_1605 : +STR_1606 : +STR_1607 : +STR_1608 : +STR_1609 : +STR_1610 : +STR_1611 : +STR_1612 : +STR_1613 : +STR_1614 : +STR_1615 : +STR_1616 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1617 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1618 :{SMALLFONT}“I’m not paying that much for an on-ride photo from {STRINGID}” +STR_1619 :{SMALLFONT}“I’m not paying that much for a pretzel from {STRINGID}” +STR_1620 :{SMALLFONT}“I’m not paying that much for hot chocolate from {STRINGID}” +STR_1621 :{SMALLFONT}“I’m not paying that much for iced tea from {STRINGID}” +STR_1622 :{SMALLFONT}“I’m not paying that much for a funnel cake from {STRINGID}” +STR_1623 :{SMALLFONT}“I’m not paying that much for sunglasses from {STRINGID}” +STR_1624 :{SMALLFONT}“I’m not paying that much for beef noodles from {STRINGID}” +STR_1625 :{SMALLFONT}“I’m not paying that much for fried rice noodles from {STRINGID}” +STR_1626 :{SMALLFONT}“I’m not paying that much for wonton soup from {STRINGID}” +STR_1627 :{SMALLFONT}“I’m not paying that much for meatball soup from {STRINGID}” +STR_1628 :{SMALLFONT}“I’m not paying that much for fruit juice from {STRINGID}” +STR_1629 :{SMALLFONT}“I’m not paying that much for soybean milk from {STRINGID}” +STR_1630 :{SMALLFONT}“I’m not paying that much for sujeonggwa from {STRINGID}” +STR_1631 :{SMALLFONT}“I’m not paying that much for a sub sandwich from {STRINGID}” +STR_1632 :{SMALLFONT}“I’m not paying that much for a cookie from {STRINGID}” +STR_1633 : +STR_1634 : +STR_1635 : +STR_1636 :{SMALLFONT}“I’m not paying that much for a roast sausage from {STRINGID}” +STR_1637 : +STR_1638 : +STR_1639 : +STR_1640 : +STR_1641 : +STR_1642 : +STR_1643 : +STR_1644 : +STR_1645 : +STR_1646 : +STR_1647 : +STR_1648 :{SMALLFONT}“Help! Put me down!” +STR_1649 :{SMALLFONT}“I’m running out of cash!” +STR_1650 :{SMALLFONT}“Wow! A new ride being built!” +STR_1653 :{SMALLFONT}“…and here we are on {STRINGID}!” +STR_1654 :{WINDOW_COLOUR_2}Recent thoughts: +STR_1655 :Construct footpath on land +STR_1656 :Construct bridge or tunnel footpath +STR_1657 :{WINDOW_COLOUR_2}Preferred ride +STR_1658 :{WINDOW_COLOUR_2}intensity: {BLACK}less than {COMMA16} +STR_1659 :{WINDOW_COLOUR_2}intensity: {BLACK}between {COMMA16} and {COMMA16} +STR_1660 :{WINDOW_COLOUR_2}intensity: {BLACK}more than {COMMA16} +STR_1661 :{WINDOW_COLOUR_2}Nausea tolerance: {BLACK}{STRINGID} +STR_1662 :{WINDOW_COLOUR_2}Happiness: +STR_1663 :{WINDOW_COLOUR_2}Nausea: +STR_1664 :{WINDOW_COLOUR_2}Energy: +STR_1665 :{WINDOW_COLOUR_2}Hunger: +STR_1666 :{WINDOW_COLOUR_2}Thirst: +STR_1667 :{WINDOW_COLOUR_2}Toilet: +STR_1668 :{WINDOW_COLOUR_2}Satisfaction: {BLACK}Unknown +STR_1669 :{WINDOW_COLOUR_2}Satisfaction: {BLACK}{COMMA16}% +STR_1670 :{WINDOW_COLOUR_2}Total customers: {BLACK}{COMMA32} +STR_1671 :{WINDOW_COLOUR_2}Total profit: {BLACK}{CURRENCY2DP} +STR_1672 :Brakes +STR_1673 :Spinning Control Toggle Track +STR_1674 :Brake speed +STR_1675 :{POP16}{VELOCITY} +STR_1676 :Set speed limit for brakes +STR_1677 :{WINDOW_COLOUR_2}Popularity: {BLACK}Unknown +STR_1678 :{WINDOW_COLOUR_2}Popularity: {BLACK}{COMMA16}% +STR_1679 :Helix up (left) +STR_1680 :Helix up (right) +STR_1681 :Helix down (left) +STR_1682 :Helix down (right) +STR_1683 :Base size 2 x 2 +STR_1684 :Base size 4 x 4 +STR_1685 :Base size 2 x 4 +STR_1686 :Base size 5 x 1 +STR_1687 :Water splash +STR_1688 :Base size 4 x 1 +STR_1689 :Block brakes +STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} +STR_1691 :{WINDOW_COLOUR_2} Cost: {BLACK}{CURRENCY} +STR_1692 :{WINDOW_COLOUR_2} Cost: {BLACK}from {CURRENCY} +STR_1693 :Guests +STR_1694 :Nhân viên +STR_1695 :Income and costs +STR_1696 :Customer information +STR_1697 :Cannot place these on queue line area +STR_1698 :Can only place these on queue area +STR_1699 :Too many people in game +STR_1700 :Thuê thêm lao công +STR_1701 :Thuê thêm kỹ sư +STR_1702 :Thuê thêm bảo vệ +STR_1703 :Thuê thêm hoạt náo +STR_1704 :Không thể thuê thêm nhân viên... +STR_1705 :Sa thải nhân viên này +STR_1706 :Di chuyển người này +STR_1707 :Có quá nhiều nhân viên +STR_1708 :Quy định vùng di chuyển của nhân viên +STR_1709 :Sa thải nhân viên +STR_1710 :Đúng +STR_1711 :{WINDOW_COLOUR_1}Bạn có chắc muốn sa thải {STRINGID}? +STR_1712 :{INLINE_SPRITE}{247}{19}{00}{00}{WINDOW_COLOUR_2}Quét đường +STR_1713 :{INLINE_SPRITE}{248}{19}{00}{00}{WINDOW_COLOUR_2}Tước hoa +STR_1714 :{INLINE_SPRITE}{249}{19}{00}{00}{WINDOW_COLOUR_2}Dọn thùng rác +STR_1715 :{INLINE_SPRITE}{250}{19}{00}{00}{WINDOW_COLOUR_2}Cắt cỏ +STR_1716 :Invalid name for park +STR_1717 :Can’t rename park… +STR_1718 :Park Name +STR_1719 :Enter name for park: +STR_1720 :Name park +STR_1721 :Park closed +STR_1722 :Park open +STR_1723 :Can’t open park… +STR_1724 :Can’t close park… +STR_1725 :Can’t buy land… +STR_1726 :Land not for sale! +STR_1727 :Construction rights not for sale! +STR_1728 :Can’t buy construction rights here… +STR_1729 :Land not owned by park! +STR_1730 :{RED}Closed +STR_1731 :{WHITE}{STRINGID} - - +STR_1732 :Build +STR_1733 :Mode +STR_1734 :{WINDOW_COLOUR_2}Number of laps: +STR_1735 :Number of laps of circuit +STR_1736 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1738 :Can’t change number of laps… +STR_1739 :Race won by guest {INT32} +STR_1740 :Race won by {STRINGID} +STR_1741 :Not yet constructed! +STR_1742 :{WINDOW_COLOUR_2}Max. people on ride: +STR_1743 :Maximum number of people allowed on this ride at one time +STR_1744 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1746 :Can’t change this… +STR_1747 :{WINDOW_COLOUR_2}Time limit: +STR_1748 :Time limit for ride +STR_1749 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{DURATION} +STR_1751 :Can’t change time limit for ride… +STR_1752 :Show list of individual guests in park +STR_1753 :Show summarised list of guests in park +STR_1754 :{BLACK}{COMMA32} khách +STR_1755 :{BLACK}{COMMA32} khách +STR_1756 :{WINDOW_COLOUR_2}Admission price: +STR_1757 :{WINDOW_COLOUR_2}Reliability: {MOVE_X}{255}{BLACK}{COMMA16}% +STR_1758 :Build mode +STR_1759 :Move mode +STR_1760 :Fill-in mode +STR_1761 :Build maze in this direction +STR_1762 :Waterfalls +STR_1763 :Rapids +STR_1764 :Log Bumps +STR_1765 :On-ride photo section +STR_1766 :Reverser turntable +STR_1767 :Spinning tunnel +STR_1768 :Can’t change number of swings… +STR_1769 :{WINDOW_COLOUR_2}Number of swings: +STR_1770 :Number of complete swings +STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1773 :Only one on-ride photo section allowed per ride +STR_1774 :Only one cable lift hill allowed per ride +STR_1777 :Ride music +STR_1778 :{STRINGID} - - +STR_1779 :{INLINE_SPRITE}{254}{19}{00}{00} Panda costume +STR_1780 :{INLINE_SPRITE}{255}{19}{00}{00} Tiger costume +STR_1781 :{INLINE_SPRITE}{00}{20}{00}{00} Elephant costume +STR_1782 :{INLINE_SPRITE}{01}{20}{00}{00} Roman costume +STR_1783 :{INLINE_SPRITE}{02}{20}{00}{00} Gorilla costume +STR_1784 :{INLINE_SPRITE}{03}{20}{00}{00} Snowman costume +STR_1785 :{INLINE_SPRITE}{04}{20}{00}{00} Knight costume +STR_1786 :{INLINE_SPRITE}{05}{20}{00}{00} Astronaut costume +STR_1787 :{INLINE_SPRITE}{06}{20}{00}{00} Bandit costume +STR_1788 :{INLINE_SPRITE}{07}{20}{00}{00} Sheriff costume +STR_1789 :{INLINE_SPRITE}{08}{20}{00}{00} Pirate costume +STR_1790 :Select uniform colour for this type of staff +STR_1791 :{WINDOW_COLOUR_2}Uniform colour: +STR_1792 :Đang trả lời cuộc gọi vì {STRINGID} bị hỏng +STR_1793 :Đang đi đến {STRINGID} để kiểm tra +STR_1794 :Đang sửa {STRINGID} +STR_1795 :Đang trả lời bộ đàm +STR_1796 :Đã bị hỏng và cần được sửa chữa +STR_1798 :Whirlpool +STR_1799 :{POP16}{POP16}{POP16}{POP16}{POP16}{CURRENCY2DP} +STR_1800 :Safety cut-out +STR_1801 :Restraints stuck closed +STR_1802 :Restraints stuck open +STR_1803 :Doors stuck closed +STR_1804 :Doors stuck open +STR_1805 :Vehicle malfunction +STR_1806 :Brakes failure +STR_1807 :Control failure +STR_1808 :{WINDOW_COLOUR_2}Last breakdown: {BLACK}{STRINGID} +STR_1809 :{WINDOW_COLOUR_2}Current breakdown: {OUTLINE}{RED}{STRINGID} +STR_1810 :{WINDOW_COLOUR_2}Carrying: +STR_1811 :Can’t build this here… +STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1813 :Miscellaneous Objects +STR_1814 :Actions +STR_1815 :Thoughts +STR_1816 :Select information type to show in guest list +STR_1817 :({COMMA32}) +STR_1818 :{WINDOW_COLOUR_2}All guests +STR_1819 :{WINDOW_COLOUR_2}All guests (summarised) +STR_1820 :{WINDOW_COLOUR_2}Guests {STRINGID} +STR_1821 :{WINDOW_COLOUR_2}Guests thinking {STRINGID} +STR_1822 :{WINDOW_COLOUR_2}Guests thinking about {POP16}{STRINGID} +STR_1823 :Show guests’ thoughts about this ride/attraction +STR_1824 :Show guests on this ride/attraction +STR_1825 :Show guests queuing for this ride/attraction +STR_1826 :Status +STR_1827 :Popularity +STR_1828 :Satisfaction +STR_1829 :Profit +STR_1830 :Queue length +STR_1831 :Queue time +STR_1832 :Reliability +STR_1833 :Down-time +STR_1834 :Guests favourite +STR_1835 :Popularity: Unknown +STR_1836 :Popularity: {COMMA16}% +STR_1837 :Satisfaction: Unknown +STR_1838 :Satisfaction: {COMMA16}% +STR_1839 :Reliability: {COMMA16}% +STR_1840 :Down-time: {COMMA16}% +STR_1841 :Profit: {CURRENCY2DP} per hour +STR_1842 :Favourite of: {COMMA16} guest +STR_1843 :Favourite of: {COMMA16} guests +STR_1844 :Select information type to show in ride/attraction list +STR_1845 :{MONTHYEAR} +STR_1846 :{COMMA32} khách +STR_1847 :{INLINE_SPRITE}{11}{20}{00}{00}{COMMA32} guests +STR_1848 :{INLINE_SPRITE}{10}{20}{00}{00}{COMMA32} guests +STR_1849 :{WINDOW_COLOUR_2}Play music +STR_1850 :Select whether music should be played for this ride +STR_1851 :{WINDOW_COLOUR_2}Running cost: {BLACK}{CURRENCY2DP} per hour +STR_1852 :{WINDOW_COLOUR_2}Running cost: {BLACK}Unknown +STR_1853 :{WINDOW_COLOUR_2}Built: {BLACK}This Year +STR_1854 :{WINDOW_COLOUR_2}Built: {BLACK}Last Year +STR_1855 :{WINDOW_COLOUR_2}Built: {BLACK}{COMMA16} Years Ago +STR_1856 :{WINDOW_COLOUR_2}Profit per item sold: {BLACK}{CURRENCY2DP} +STR_1857 :{WINDOW_COLOUR_2}Loss per item sold: {BLACK}{CURRENCY2DP} +STR_1858 :{WINDOW_COLOUR_2}Tốn: {BLACK}{CURRENCY2DP} mỗi tháng +STR_1859 :Handymen +STR_1860 :Mechanics +STR_1861 :Security Guards +STR_1862 :Entertainers +STR_1863 :Handyman +STR_1864 :Mechanic +STR_1865 :Security Guard +STR_1866 :Entertainer +STR_1867 :{BLACK}{COMMA16} {STRINGID} +STR_1868 :Can’t change number of rotations… +STR_1869 :{WINDOW_COLOUR_2}Number of rotations: +STR_1870 :Number of complete rotations +STR_1871 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1873 :{WINDOW_COLOUR_2}Income: {BLACK}{CURRENCY2DP} per hour +STR_1874 :{WINDOW_COLOUR_2}Profit: {BLACK}{CURRENCY2DP} per hour +STR_1875 :{BLACK} {SPRITE}{BLACK} {STRINGID} +STR_1876 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{251}{19}{00}{00}Inspect Rides +STR_1877 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{252}{19}{00}{00}Fix Rides +STR_1878 :{WINDOW_COLOUR_2}Inspection: +STR_1879 :Every 10 minutes +STR_1880 :Every 20 minutes +STR_1881 :Every 30 minutes +STR_1882 :Every 45 minutes +STR_1883 :Every hour +STR_1884 :Every 2 hours +STR_1885 :Never +STR_1886 :Đang kiểm tra {STRINGID} +STR_1887 :{WINDOW_COLOUR_2}Time since last inspection: {BLACK}{COMMA16} minutes +STR_1888 :{WINDOW_COLOUR_2}Time since last inspection: {BLACK}more than 4 hours +STR_1889 :{WINDOW_COLOUR_2}Down-Time: {MOVE_X}{255}{BLACK}{COMMA16}% +STR_1890 :Select how often a mechanic should check this ride +STR_1891 :No {STRINGID} in park yet! +STR_1894 :{WINDOW_COLOUR_2}{STRINGID} sold: {BLACK}{COMMA32} +STR_1895 :Build new ride/attraction +STR_1896 :{WINDOW_COLOUR_2}Khoản thu/chi +STR_1897 :{WINDOW_COLOUR_2}Xây dựng +STR_1898 :{WINDOW_COLOUR_2}Phí vận hành trò chơi +STR_1899 :{WINDOW_COLOUR_2}Mua đất +STR_1900 :{WINDOW_COLOUR_2}Cảnh quan +STR_1901 :{WINDOW_COLOUR_2}Vé vào cổng +STR_1902 :{WINDOW_COLOUR_2}Vé trò chơi +STR_1903 :{WINDOW_COLOUR_2}Bán đồ +STR_1904 :{WINDOW_COLOUR_2}Nhập hàng +STR_1905 :{WINDOW_COLOUR_2}Bán đồ ăn/uống +STR_1906 :{WINDOW_COLOUR_2}Mua đồ ăn/uống +STR_1907 :{WINDOW_COLOUR_2}Lương nhân viên +STR_1908 :{WINDOW_COLOUR_2}Quảng cáo +STR_1909 :{WINDOW_COLOUR_2}Nghiên cứu +STR_1910 :{WINDOW_COLOUR_2}Lãi ngân hàng +STR_1911 :{BLACK} lãi {COMMA16}% một năm +STR_1912 :{MONTH} +STR_1913 :{BLACK}+{CURRENCY2DP} +STR_1914 :{BLACK}{CURRENCY2DP} +STR_1915 :{RED}{CURRENCY2DP} +STR_1916 :{WINDOW_COLOUR_2}Nợ: +STR_1917 :{POP16}{POP16}{POP16}{CURRENCY} +STR_1918 :Không thể vay thêm tiền! +STR_1919 :Không đủ tiền! +STR_1920 :Không thể trả nợ! +STR_1921 :Start a new game +STR_1922 :Continue playing a saved game +STR_1924 :Exit +STR_1925 :Can’t place person here… +STR_1926 :{SMALLFONT} +STR_1927 :{YELLOW}{STRINGID} đã hỏng +STR_1928 :{RED}{STRINGID} has crashed! +STR_1929 :{RED}{STRINGID} vẫn chưa được sửa{NEWLINE}Hãy kiểm tra những kỹ sư đang ở đâu và nên sắp xếp họ tốt hơn +STR_1930 :Turn on/off tracking information for this guest - (If tracking is on, guest’s movements will be reported in the message area) +STR_1931 :{STRINGID} has joined the queue line for {STRINGID} +STR_1932 :{STRINGID} is on {STRINGID} +STR_1933 :{STRINGID} is in {STRINGID} +STR_1934 :{STRINGID} has left {STRINGID} +STR_1935 :{STRINGID} has left the park +STR_1936 :{STRINGID} has bought {STRINGID} +STR_1937 :Show information about the subject of this message +STR_1938 :Show view of guest +STR_1939 :Show view of staff member +STR_1940 :Show happiness, energy, hunger etc. for this guest +STR_1941 :Show which rides this guest has been on +STR_1942 :Show financial information about this guest +STR_1943 :Show guest’s recent thoughts +STR_1944 :Show items guest is carrying +STR_1945 :Show orders and options for this staff member +STR_1946 :Select costume for this entertainer +STR_1947 :Show areas patrolled by selected staff type, and locate the nearest staff member +STR_1948 :Hire a new staff member of the selected type +STR_1949 :Tổng hợp tài chính +STR_1950 :Biểu đồ tài chính +STR_1951 :Biểu đồ giá trị công viên +STR_1952 :Biểu đồ lợi nhuận +STR_1953 :Quảng cáo +STR_1954 :Quỹ nghiên cứu +STR_1955 :{WINDOW_COLOUR_2}Number of circuits: +STR_1956 :Number of circuits of track per ride +STR_1957 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_1958 :{COMMA16} +STR_1959 :Can’t change number of circuits… +STR_1960 :{WINDOW_COLOUR_2}Balloon price: +STR_1961 :{WINDOW_COLOUR_2}Cuddly Toy price: +STR_1962 :{WINDOW_COLOUR_2}Park Map price: +STR_1963 :{WINDOW_COLOUR_2}On-Ride Photo price: +STR_1964 :{WINDOW_COLOUR_2}Umbrella price: +STR_1965 :{WINDOW_COLOUR_2}Drink price: +STR_1966 :{WINDOW_COLOUR_2}Burger price: +STR_1967 :{WINDOW_COLOUR_2}Chips price: +STR_1968 :{WINDOW_COLOUR_2}Ice Cream price: +STR_1969 :{WINDOW_COLOUR_2}Candyfloss price: +STR_1970 :{WINDOW_COLOUR_2} +STR_1971 :{WINDOW_COLOUR_2} +STR_1972 :{WINDOW_COLOUR_2} +STR_1973 :{WINDOW_COLOUR_2}Pizza price: +STR_1974 :{WINDOW_COLOUR_2} +STR_1975 :{WINDOW_COLOUR_2}Popcorn price: +STR_1976 :{WINDOW_COLOUR_2}Hot Dog price: +STR_1977 :{WINDOW_COLOUR_2}Tentacle price: +STR_1978 :{WINDOW_COLOUR_2}Hat price: +STR_1979 :{WINDOW_COLOUR_2}Toffee Apple price: +STR_1980 :{WINDOW_COLOUR_2}T-Shirt price: +STR_1981 :{WINDOW_COLOUR_2}Doughnut price: +STR_1982 :{WINDOW_COLOUR_2}Coffee price: +STR_1983 :{WINDOW_COLOUR_2} +STR_1984 :{WINDOW_COLOUR_2}Fried Chicken price: +STR_1985 :{WINDOW_COLOUR_2}Lemonade price: +STR_1986 :{WINDOW_COLOUR_2} +STR_1987 :{WINDOW_COLOUR_2} +STR_1988 :Balloon +STR_1989 :Cuddly Toy +STR_1990 :Park Map +STR_1991 :On-Ride Photo +STR_1992 :Umbrella +STR_1993 :Drink +STR_1994 :Burger +STR_1995 :Chips +STR_1996 :Ice Cream +STR_1997 :Candyfloss +STR_1998 :Empty Can +STR_1999 :Rubbish +STR_2000 :Empty Burger Box +STR_2001 :Pizza +STR_2002 :Voucher +STR_2003 :Popcorn +STR_2004 :Hot Dog +STR_2005 :Tentacle +STR_2006 :Hat +STR_2007 :Toffee Apple +STR_2008 :T-Shirt +STR_2009 :Doughnut +STR_2010 :Coffee +STR_2011 :Empty Cup +STR_2012 :Fried Chicken +STR_2013 :Lemonade +STR_2014 :Empty Box +STR_2015 :Empty Bottle +STR_2016 :Balloons +STR_2017 :Cuddly Toys +STR_2018 :Park Maps +STR_2019 :On-Ride Photos +STR_2020 :Umbrellas +STR_2021 :Drinks +STR_2022 :Burgers +STR_2023 :Chips +STR_2024 :Ice Creams +STR_2025 :Candyfloss +STR_2026 :Empty Cans +STR_2027 :Rubbish +STR_2028 :Empty Burger Boxes +STR_2029 :Pizzas +STR_2030 :Vouchers +STR_2031 :Popcorn +STR_2032 :Hot Dogs +STR_2033 :Tentacles +STR_2034 :Hats +STR_2035 :Toffee Apples +STR_2036 :T-Shirts +STR_2037 :Doughnuts +STR_2038 :Coffees +STR_2039 :Empty Cups +STR_2040 :Fried Chicken +STR_2041 :Lemonade +STR_2042 :Empty Boxes +STR_2043 :Empty Bottles +STR_2044 :a Balloon +STR_2045 :a Cuddly Toy +STR_2046 :a Park Map +STR_2047 :an On-Ride Photo +STR_2048 :an Umbrella +STR_2049 :a Drink +STR_2050 :a Burger +STR_2051 :some Chips +STR_2052 :an Ice Cream +STR_2053 :some Candyfloss +STR_2054 :an Empty Can +STR_2055 :some Rubbish +STR_2056 :an Empty Burger Box +STR_2057 :a Pizza +STR_2058 :a Voucher +STR_2059 :some Popcorn +STR_2060 :a Hot Dog +STR_2061 :a Tentacle +STR_2062 :a Hat +STR_2063 :a Toffee Apple +STR_2064 :a T-Shirt +STR_2065 :a Doughnut +STR_2066 :a Coffee +STR_2067 :an Empty Cup +STR_2068 :some Fried Chicken +STR_2069 :some Lemonade +STR_2070 :an Empty Box +STR_2071 :an Empty Bottle +STR_2072 :“{STRINGID}” Balloon +STR_2073 :“{STRINGID}” Cuddly Toy +STR_2074 :Map of {STRINGID} +STR_2075 :On-Ride Photo of {STRINGID} +STR_2076 :“{STRINGID}” Umbrella +STR_2077 :Drink +STR_2078 :Burger +STR_2079 :Chips +STR_2080 :Ice Cream +STR_2081 :Candyfloss +STR_2082 :Empty Can +STR_2083 :Rubbish +STR_2084 :Empty Burger Box +STR_2085 :Pizza +STR_2086 :Voucher for {STRINGID} +STR_2087 :Popcorn +STR_2088 :Hot Dog +STR_2089 :Tentacle +STR_2090 :“{STRINGID}” Hat +STR_2091 :Toffee Apple +STR_2092 :“{STRINGID}” T-Shirt +STR_2093 :Doughnut +STR_2094 :Coffee +STR_2095 :Empty Cup +STR_2096 :Fried Chicken +STR_2097 :Lemonade +STR_2098 :Empty Box +STR_2099 :Empty Bottle +STR_2103 :{WINDOW_COLOUR_2}Pretzel price: +STR_2104 :{WINDOW_COLOUR_2}Hot Chocolate price: +STR_2105 :{WINDOW_COLOUR_2}Iced Tea price: +STR_2106 :{WINDOW_COLOUR_2}Funnel Cake price: +STR_2107 :{WINDOW_COLOUR_2}Sunglasses price: +STR_2108 :{WINDOW_COLOUR_2}Beef Noodles price: +STR_2109 :{WINDOW_COLOUR_2}Fried Rice Noodles price: +STR_2110 :{WINDOW_COLOUR_2}Wonton Soup price: +STR_2111 :{WINDOW_COLOUR_2}Meatball Soup price: +STR_2112 :{WINDOW_COLOUR_2}Fruit Juice price: +STR_2113 :{WINDOW_COLOUR_2}Soybean Milk price: +STR_2114 :{WINDOW_COLOUR_2}Sujeonggwa price: +STR_2115 :{WINDOW_COLOUR_2}Sub Sandwich price: +STR_2116 :{WINDOW_COLOUR_2}Cookie price: +STR_2117 :{WINDOW_COLOUR_2} +STR_2118 :{WINDOW_COLOUR_2} +STR_2119 :{WINDOW_COLOUR_2} +STR_2120 :{WINDOW_COLOUR_2}Roast Sausage price: +STR_2121 :{WINDOW_COLOUR_2} +STR_2125 :Pretzel +STR_2126 :Hot Chocolate +STR_2127 :Iced Tea +STR_2128 :Funnel Cake +STR_2129 :Sunglasses +STR_2130 :Beef Noodles +STR_2131 :Fried Rice Noodles +STR_2132 :Wonton Soup +STR_2133 :Meatball Soup +STR_2134 :Fruit Juice +STR_2135 :Soybean Milk +STR_2136 :Sujeonggwa +STR_2137 :Sub Sandwich +STR_2138 :Cookie +STR_2139 :Empty Bowl +STR_2140 :Empty Drink Carton +STR_2141 :Empty Juice Cup +STR_2142 :Roast Sausage +STR_2143 :Empty Bowl +STR_2147 :Pretzels +STR_2148 :Hot Chocolates +STR_2149 :Iced Teas +STR_2150 :Funnel Cakes +STR_2151 :Sunglasses +STR_2152 :Beef Noodles +STR_2153 :Fried Rice Noodles +STR_2154 :Wonton Soups +STR_2155 :Meatball Soups +STR_2156 :Fruit Juices +STR_2157 :Soybean Milks +STR_2158 :Sujeonggwa +STR_2159 :Sub Sandwiches +STR_2160 :Cookies +STR_2161 :Empty Bowls +STR_2162 :Empty Drink Cartons +STR_2163 :Empty Juice cups +STR_2164 :Roast Sausages +STR_2165 :Empty Bowls +STR_2169 :a Pretzel +STR_2170 :a Hot Chocolate +STR_2171 :an Iced Tea +STR_2172 :a Funnel Cake +STR_2173 :a pair of Sunglasses +STR_2174 :some Beef Noodles +STR_2175 :some Fried Rice Noodles +STR_2176 :some Wonton Soup +STR_2177 :some Meatball Soup +STR_2178 :a Fruit Juice +STR_2179 :some Soybean Milk +STR_2180 :some Sujeonggwa +STR_2181 :a Sub Sandwich +STR_2182 :a Cookie +STR_2183 :an Empty Bowl +STR_2184 :an Empty Drink Carton +STR_2185 :an Empty Juice Cup +STR_2186 :a Roast Sausage +STR_2187 :an Empty Bowl +STR_2191 :Pretzel +STR_2192 :Hot Chocolate +STR_2193 :Iced Tea +STR_2194 :Funnel Cake +STR_2195 :Sunglasses +STR_2196 :Beef Noodles +STR_2197 :Fried Rice Noodles +STR_2198 :Wonton Soup +STR_2199 :Meatball Soup +STR_2200 :Fruit Juice +STR_2201 :Soybean Milk +STR_2202 :Sujeonggwa +STR_2203 :Sub Sandwich +STR_2204 :Cookie +STR_2205 :Empty Bowl +STR_2206 :Empty Drink Carton +STR_2207 :Empty Juice Cup +STR_2208 :Roast Sausage +STR_2209 :Empty Bowl +STR_2210 :Show list of handymen in park +STR_2211 :Show list of mechanics in park +STR_2212 :Show list of security guards in park +STR_2213 :Show list of entertainers in park +STR_2214 :Construction not possible while game is paused! +STR_2215 :{STRINGID}{NEWLINE}({STRINGID}) +STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C +STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F +STR_2218 :{RED}{STRINGID} on {STRINGID} hasn’t returned to the {STRINGID} yet!{NEWLINE}Check whether it is stuck or has stalled +STR_2219 :{RED}{COMMA16} people have died in an accident on {STRINGID} +STR_2220 :{WINDOW_COLOUR_2}Park Rating: {BLACK}{COMMA16} +STR_2221 :Park Rating: {COMMA16} +STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2223 :{WINDOW_COLOUR_2}Guests in park: {BLACK}{COMMA32} +STR_2224 :{WINDOW_COLOUR_2}Tiền hiện có: {BLACK}{CURRENCY2DP} +STR_2225 :{WINDOW_COLOUR_2}Tiền: {RED}{CURRENCY2DP} +STR_2226 :{WINDOW_COLOUR_2}Giá trị công viên: {BLACK}{CURRENCY} +STR_2227 :{WINDOW_COLOUR_2}Giá trị công ty: {BLACK}{CURRENCY} +STR_2228 :{WINDOW_COLOUR_2}Tiền lời tháng vừa rồi từ việc bán đồ ăn uống và{NEWLINE}hàng hóa: {BLACK}{CURRENCY} +STR_2229 :Slope up to vertical +STR_2230 :Vertical track +STR_2231 :Holding brake for drop +STR_2232 :Cable lift hill +STR_2233 :Park information +STR_2234 :Recent Messages +STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2236 :Tháng 1 +STR_2237 :Tháng 2 +STR_2238 :Tháng 3 +STR_2239 :Tháng 4 +STR_2240 :Tháng 5 +STR_2241 :Tháng 6 +STR_2242 :Tháng 7 +STR_2243 :Tháng 8 +STR_2244 :Tháng 9 +STR_2245 :Tháng 10 +STR_2246 :Tháng 11 +STR_2247 :Tháng 12 +STR_2248 :Can’t demolish ride/attraction… +STR_2249 :{BABYBLUE}New ride/attraction now available:{NEWLINE}{STRINGID} +STR_2250 :{BABYBLUE}New scenery/theming now available:{NEWLINE}{STRINGID} +STR_2251 :Can only be built on paths! +STR_2252 :Can only be built across paths! +STR_2253 :Trò chơi vận tải +STR_2254 :Trò chơi nhẹ nhàng +STR_2255 :Tàu lượn +STR_2256 :Trò chơi cảm giác mạnh +STR_2257 :Trò chơi nước +STR_2258 :Cửa hàng +STR_2259 :Cảnh quan +STR_2260 :Không nghiên cứu +STR_2261 :Ít tiền +STR_2262 :Trung bình +STR_2263 :Tối đa +STR_2264 :Quỹ nghiên cứu +STR_2265 :{WINDOW_COLOUR_2}Tốn: {BLACK}{CURRENCY} mỗi tháng +STR_2266 :Ưu tiên nghiên cứu +STR_2267 :Hiện đang nghiên cứu +STR_2268 :Nghiên cứu mới nhất +STR_2269 :{WINDOW_COLOUR_2}Loại: {BLACK}{STRINGID} +STR_2270 :{WINDOW_COLOUR_2}Quá trình: {BLACK}{STRINGID} +STR_2271 :{WINDOW_COLOUR_2}Dự kiến: {BLACK}{STRINGID} +STR_2272 :{WINDOW_COLOUR_2}Trò chơi:{NEWLINE}{BLACK}{STRINGID} +STR_2273 :{WINDOW_COLOUR_2}Cảnh quan:{NEWLINE}{BLACK}{STRINGID} +STR_2274 :Show details of this invention or development +STR_2275 :Show funding and options for research & development +STR_2276 :Show research & development status +STR_2277 :Unknown +STR_2278 :Trò chơi vận tải +STR_2279 :Trò chơi nhẹ nhàng +STR_2280 :Tàu lượn siêu tốc +STR_2281 :Trò chơi cảm giác mạnh +STR_2282 :Trò chơi nước +STR_2283 :Cửa hàng +STR_2284 :Cảnh quang +STR_2285 :Nghiên cứu ban đầu +STR_2286 :Thiết kế +STR_2287 :Đang hoàn thiện +STR_2288 :Chưa biết +STR_2289 :{STRINGID} {STRINGID} +STR_2291 :Select scenario for new game +STR_2292 :{WINDOW_COLOUR_2}Rides been on: +STR_2293 :{BLACK} Nothing +STR_2294 :Change base land style +STR_2295 :Change vertical edges of land +STR_2296 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} paid to enter park +STR_2297 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} ride +STR_2298 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} rides +STR_2299 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} item of food +STR_2300 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} items of food +STR_2301 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} drink +STR_2302 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} drinks +STR_2303 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} souvenir +STR_2304 :{BLACK}{CURRENCY2DP}{WINDOW_COLOUR_2} spent on {BLACK}{COMMA16} souvenirs +STR_2305 :Track design files +STR_2306 :Save track design +STR_2307 :Select {STRINGID} design +STR_2308 :{STRINGID} Track Designs +STR_2309 :Install New Track Design +STR_2310 :Build custom design +STR_2311 :{WINDOW_COLOUR_2}Độ phấn khích: {BLACK}{COMMA2DP32} (approx.) +STR_2312 :{WINDOW_COLOUR_2}Cường độ: {BLACK}{COMMA2DP32} (approx.) +STR_2313 :{WINDOW_COLOUR_2}Độ buồn nôn: {BLACK}{COMMA2DP32} (approx.) +STR_2314 :{WINDOW_COLOUR_2}Độ dài: {BLACK}{STRINGID} +STR_2315 :{WINDOW_COLOUR_2}Tốn: {BLACK}around {CURRENCY} +STR_2316 :{WINDOW_COLOUR_2}Diện tích: {BLACK}{COMMA16} x {COMMA16} blocks +STR_2321 :{WINDOW_COLOUR_2}Number of rides/attractions: {BLACK}{COMMA16} +STR_2322 :{WINDOW_COLOUR_2}Nhân viên: {BLACK}{COMMA16} +STR_2323 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}m² +STR_2324 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}sq.ft. +STR_2325 :Buy land to extend park +STR_2326 :Buy construction rights to allow construction above or below land outside the park +STR_2327 :Options +STR_2328 :{WINDOW_COLOUR_2}Currency: +STR_2329 :{WINDOW_COLOUR_2}Distance and Speed: +STR_2330 :{WINDOW_COLOUR_2}Temperature: +STR_2331 :{WINDOW_COLOUR_2}Height Labels: +STR_2332 :Units +STR_2333 :Sound effects +STR_2334 :Pounds (£) +STR_2335 :Dollars ($) +STR_2336 :Franc (F) +STR_2337 :Deutsche mark (DM) +STR_2338 :Yen (¥) +STR_2339 :Peseta (Pts) +STR_2340 :Lira (L) +STR_2341 :Guilders (ƒ) +STR_2342 :Krona (kr) +STR_2343 :Euros (€) +STR_2344 :Imperial +STR_2345 :Metric +STR_2347 :{RED}{STRINGID} has drowned! +STR_2348 :Show statistics for this staff member +STR_2349 :{WINDOW_COLOUR_2}Lương: {BLACK}{CURRENCY} mỗi tháng +STR_2350 :{WINDOW_COLOUR_2}Được thuê: {BLACK}{MONTHYEAR} +STR_2351 :{WINDOW_COLOUR_2}Lawns mown: {BLACK}{COMMA16} +STR_2352 :{WINDOW_COLOUR_2}Gardens watered: {BLACK}{COMMA16} +STR_2353 :{WINDOW_COLOUR_2}Litter swept: {BLACK}{COMMA16} +STR_2354 :{WINDOW_COLOUR_2}Bins emptied: {BLACK}{COMMA16} +STR_2355 :{WINDOW_COLOUR_2}Rides fixed: {BLACK}{COMMA16} +STR_2356 :{WINDOW_COLOUR_2}Rides inspected: {BLACK}{COMMA16} +STR_2358 :Units +STR_2359 :Real Values +STR_2360 :Display Resolution: +STR_2361 :Landscape Smoothing +STR_2362 :Toggle landscape tile edge smoothing on/off +STR_2363 :Gridlines on Landscape +STR_2364 :Toggle gridlines on landscape on/off +STR_2365 :The bank refuses to increase your loan! +STR_2366 :Celsius (°C) +STR_2367 :Fahrenheit (°F) +STR_2368 :None +STR_2369 :Low +STR_2370 :Average +STR_2371 :High +STR_2372 :Low +STR_2373 :Medium +STR_2374 :High +STR_2375 :Very high +STR_2376 :Extreme +STR_2377 :Ultra-Extreme +STR_2378 :Adjust smaller area of land +STR_2379 :Adjust larger area of land +STR_2380 :Adjust smaller area of water +STR_2381 :Adjust larger area of water +STR_2382 :Land +STR_2383 :Water +STR_2384 :{WINDOW_COLOUR_2}Mục tiêu: +STR_2385 :{BLACK}Không +STR_2386 :{BLACK}Có ít nhất {COMMA16} khách vào cuối tháng {MONTHYEAR}, với đánh giá công viên từ 600 trở lên +STR_2387 :{BLACK}Đạt giá trị công viên ít nhất {POP16}{POP16}{CURRENCY} vào cuối {PUSH16}{PUSH16}{PUSH16}{MONTHYEAR} +STR_2388 :{BLACK}Have Fun! +STR_2389 :{BLACK}Build the best {STRINGID} you can! +STR_2390 :{BLACK}Có 10 loại tàu lượn khác nhau trong công viên, mỗi cái có chỉ số phấn khích ít nhất 6.00 +STR_2391 :{BLACK}Có ít nhất {COMMA16} khách. Không được để đánh giá công viên thấp hơn 700 ở bất kỳ thời điểm nào! +STR_2392 :{BLACK}To achieve a monthly income from ride tickets of at least {POP16}{POP16}{CURRENCY} +STR_2393 :{BLACK}To have 10 different types of roller coasters operating in your park, each with a minimum length of {LENGTH}, and an excitement rating of at least 7.00 +STR_2394 :{BLACK}To finish building all 5 of the partially built roller coasters in this park, designing them to achieve excitement ratings of at least {POP16}{POP16}{COMMA2DP32} each +STR_2395 :{BLACK}To repay your loan and achieve a park value of at least {POP16}{POP16}{CURRENCY} +STR_2396 :{BLACK}To achieve a monthly profit from food, drink and merchandise sales of at least {POP16}{POP16}{CURRENCY} +STR_2397 :Không +STR_2398 :Number of guests at a given date +STR_2399 :Park value at a given date +STR_2400 :Have fun +STR_2401 :Build the best ride you can +STR_2402 :Build 10 roller coasters +STR_2403 :Number of guests in park +STR_2404 :Monthly income from ride tickets +STR_2405 :Build 10 roller coasters of a given length +STR_2406 :Finish building 5 roller coasters +STR_2407 :Repay loan and achieve a given park value +STR_2408 :Monthly profit from food/merchandise +STR_2409 :{WINDOW_COLOUR_2}Các chiến dịch quảng cáo đang vận hành +STR_2410 :{BLACK}Không +STR_2411 :{WINDOW_COLOUR_2}Các chiến dịch quảng cáo có thể bắt đầu +STR_2412 :Bắt đầu chiến dịch quảng cáo này +STR_2413 :{BLACK}({CURRENCY2DP} mỗi tuần) +STR_2414 :(Chưa chọn) +STR_2415 :{WINDOW_COLOUR_2}Trò chơi: +STR_2416 :{WINDOW_COLOUR_2}Hàng: +STR_2417 :{WINDOW_COLOUR_2}Thời gian: +STR_2418 :Miễn phí cho {STRINGID} +STR_2419 :Miến phí chơi {STRINGID} +STR_2420 :Giảm nửa giá cho {STRINGID} +STR_2421 :Miễn phí {STRINGID} +STR_2424 :{WINDOW_COLOUR_2}Voucher vào cổng miễn phí +STR_2425 :{WINDOW_COLOUR_2}Voucher chơi miễn phí một trò chơi +STR_2426 :{WINDOW_COLOUR_2}Voucher giảm nửa giá vào cổng +STR_2427 :{WINDOW_COLOUR_2}Voucher miễn phí thức ăn nước uống +STR_2428 :{WINDOW_COLOUR_2}Chiến dịch quảng cáo cho công viên +STR_2429 :{WINDOW_COLOUR_2}Chiến dịch quảng cáo cho một trò chơi +STR_2430 :{BLACK}Vouchers miễn phí cho {STRINGID} +STR_2431 :{BLACK}Vouchers miễn phí chơi {STRINGID} +STR_2432 :{BLACK}Vouchers giảm nửa giá cho {STRINGID} +STR_2433 :{BLACK}Vouchers miễn phí {STRINGID} +STR_2434 :{BLACK}Chiến dịch quảng cáo cho {STRINGID} +STR_2435 :{BLACK}Chiến dịch quảng cáo cho {STRINGID} +STR_2436 :1 tuần +STR_2443 :{WINDOW_COLOUR_2}Chi phí mỗi tuần: {BLACK}{CURRENCY2DP} +STR_2444 :{WINDOW_COLOUR_2}Tổng chi phí: {BLACK}{CURRENCY2DP} +STR_2445 :Bắt đầu chiến dịch quảng cáo này +STR_2446 :{YELLOW}Chiến dịch quảng cáo miễn phí vào cổng đã kết thúc +STR_2447 :{YELLOW}Chiến dịch quảng cáo chơi miễn phí {STRINGID} đã kết thúc +STR_2448 :{YELLOW}Chiến dịch quảng cáo giảm nửa giá vào cổng đã kết thúc +STR_2449 :{YELLOW}Chiến dịch quảng cáo {STRINGID} miễn phí đã kết thúc +STR_2450 :{YELLOW}Chiến dịch quảng cáo cho công viên đã kết thúc +STR_2451 :{YELLOW}Chiến dịch quảng cáo cho {STRINGID} đã kết thúc +STR_2452 :{WINDOW_COLOUR_2}Tiền (trừ đi nợ): {BLACK}{CURRENCY2DP} +STR_2453 :{WINDOW_COLOUR_2}Tiền (trừ đi nợ): {RED}{CURRENCY2DP} +STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2457 :Show financial accounts +STR_2458 :Show graph of cash (less loan) over time +STR_2459 :Show graph of park value over time +STR_2460 :Show graph of weekly profit +STR_2461 :Show marketing campaigns +STR_2462 :Show view of park entrance +STR_2463 :Show graph of park ratings over time +STR_2464 :Show graph of guest numbers over time +STR_2465 :Show park entrance price and information +STR_2466 :Show park statistics +STR_2467 :Show objectives for this game +STR_2468 :Show recent awards this park has received +STR_2469 :Chọn cấp độ nghiên cứu và phát triển +STR_2470 :Nghiên cứu trò chơi vận tải mới +STR_2471 :Nghiên cứu trò chơi nhẹ nhàng mới +STR_2472 :Nghiên cứu tàu lượn siêu tốc mới +STR_2473 :Nghiên cứu trò chơi cảm giác mạnh mới +STR_2474 :Nghiên cứu trò chơi nước mới +STR_2475 :Nghiên cứu cửa hàng mới +STR_2476 :Nghiên cứu cảnh quan mới +STR_2477 :Select operating mode for this ride/attraction +STR_2478 :Show graph of velocity against time +STR_2479 :Show graph of altitude against time +STR_2480 :Show graph of vertical acceleration against time +STR_2481 :Show graph of lateral acceleration against time +STR_2482 :Profit: {CURRENCY} per week, Park Value: {CURRENCY} +STR_2483 :{WINDOW_COLOUR_2}Lợi nhuận theo tuần: {BLACK}+{CURRENCY2DP} +STR_2484 :{WINDOW_COLOUR_2}Lợi nhuận theo tuần: {RED}{CURRENCY2DP} +STR_2487 :Show ‘real’ names of guests +STR_2488 :Toggle between showing ‘real’ names of guests and guest numbers +STR_2489 :Shortcut keys… +STR_2490 :Keyboard shortcuts +STR_2491 :Reset keys +STR_2492 :Set all keyboard shortcuts back to default settings +STR_2493 :Close top-most window +STR_2494 :Close all floating windows +STR_2495 :Cancel construction mode +STR_2496 :Pause game +STR_2497 :Zoom view out +STR_2498 :Zoom view in +STR_2499 :Rotate view clockwise +STR_2500 :Rotate construction object +STR_2501 :Underground view toggle +STR_2502 :Hide base land toggle +STR_2503 :Hide vertical land toggle +STR_2504 :See-through rides toggle +STR_2505 :See-through scenery toggle +STR_2506 :Invisible supports toggle +STR_2507 :Invisible people toggle +STR_2508 :Height marks on land toggle +STR_2509 :Height marks on ride tracks toggle +STR_2510 :Height marks on paths toggle +STR_2511 :Adjust land +STR_2512 :Adjust water +STR_2513 :Build scenery +STR_2514 :Build paths +STR_2515 :Build new ride +STR_2516 :Show financial information +STR_2517 :Show research information +STR_2518 :Show rides list +STR_2519 :Show park information +STR_2520 :Show guest list +STR_2521 :Show staff list +STR_2522 :Show recent messages +STR_2523 :Show map +STR_2524 :Screenshot +STR_2533 :Backspace +STR_2534 :Tab +STR_2537 :Clear +STR_2538 :Return +STR_2543 :Alt/Menu +STR_2544 :Pause +STR_2545 :Caps +STR_2552 :Escape +STR_2557 :Spacebar +STR_2558 :PgUp +STR_2559 :PgDn +STR_2560 :End +STR_2561 :Home +STR_2562 :Left +STR_2563 :Up +STR_2564 :Right +STR_2565 :Down +STR_2566 :Select +STR_2567 :Print +STR_2568 :Execute +STR_2569 :Snapshot +STR_2570 :Insert +STR_2571 :Delete +STR_2572 :Help +STR_2618 :Menu +STR_2621 :NumPad 0 +STR_2622 :NumPad 1 +STR_2623 :NumPad 2 +STR_2624 :NumPad 3 +STR_2625 :NumPad 4 +STR_2626 :NumPad 5 +STR_2627 :NumPad 6 +STR_2628 :NumPad 7 +STR_2629 :NumPad 8 +STR_2630 :NumPad 9 +STR_2631 :NumPad * +STR_2632 :NumPad + +STR_2634 :NumPad - +STR_2635 :NumPad . +STR_2636 :NumPad / +STR_2669 :NumLock +STR_2670 :Scroll +STR_2680 :All research complete +STR_2681 :{MEDIUMFONT}{BLACK}Increases your money by {CURRENCY} +STR_2684 :Large group of guests arrive +STR_2685 :Simplex Noise Parameters +STR_2686 :Low: +STR_2687 :High: +STR_2688 :Base Frequency: +STR_2689 :Octaves: +STR_2690 :Map Generation +STR_2691 :Base height: +STR_2692 :Water level: +STR_2693 :Terrain: +STR_2694 :Generate +STR_2695 :Random terrain +STR_2696 :Place trees +STR_2700 :Autosave frequency: +STR_2701 :Every minute +STR_2702 :Every 5 minutes +STR_2703 :Every 15 minutes +STR_2704 :Every 30 minutes +STR_2705 :Every hour +STR_2706 :Never +STR_2707 :Use system file browser +STR_2708 :{WINDOW_COLOUR_1}Are you sure you want to overwrite {STRINGID}? +STR_2709 :Overwrite +STR_2710 :Type the name of the file. +STR_2718 :Up +STR_2719 :New file +STR_2720 :{UINT16}sec +STR_2721 :{UINT16}secs +STR_2722 :{UINT16}min:{UINT16}sec +STR_2723 :{UINT16}min:{UINT16}secs +STR_2724 :{UINT16}mins:{UINT16}sec +STR_2725 :{UINT16}mins:{UINT16}secs +STR_2726 :{UINT16}min +STR_2727 :{UINT16}mins +STR_2728 :{UINT16}hour:{UINT16}min +STR_2729 :{UINT16}hour:{UINT16}mins +STR_2730 :{UINT16}hours:{UINT16}min +STR_2731 :{UINT16}hours:{UINT16}mins +STR_2732 :{COMMA32} ft +STR_2733 :{COMMA32} m +STR_2734 :{COMMA16} mph +STR_2735 :{COMMA16} km/h +STR_2736 :{MONTH}, năm thứ {COMMA16} +STR_2737 :{STRINGID} {MONTH}, năm thứ {COMMA16} +STR_2738 :Title screen music: +STR_2739 :None +STR_2740 :RollerCoaster Tycoon 1 +STR_2741 :RollerCoaster Tycoon 2 +STR_2742 :css50.dat not found +STR_2743 :Copy ‘data/css17.dat’ from your RCT1 installation to ‘data/css50.dat’ in your RCT2 installation, or make sure the path to RCT1 in the Advanced tab is correct. +STR_2749 :My new scenario +# New strings used in the cheats window previously these were ??? +STR_2750 :Move all items to top +STR_2751 :Move all items to bottom +STR_2752 :Clear grass +STR_2753 :Mow grass +STR_2754 :Water plants +STR_2755 :Fix vandalism +STR_2756 :Remove litter +STR_2763 :??? +STR_2765 :Large tram +STR_2766 :Win scenario +STR_2767 :Disable weather changes +STR_2769 :Open park +STR_2770 :Close park +STR_2773 :Windowed +STR_2774 :Fullscreen +STR_2775 :Fullscreen (borderless window) +STR_2776 :Language: +STR_2777 :{MOVE_X}{10}{STRING} +STR_2778 :»{MOVE_X}{10}{STRING} +STR_2779 :Viewport #{COMMA16} +STR_2780 :Extra viewport +# End of new strings +STR_2781 :{STRINGID}: +STR_2782 :SHIFT + +STR_2783 :CTRL + +STR_2784 :Change keyboard shortcut +STR_2785 :{WINDOW_COLOUR_2}Press new shortcut key for:{NEWLINE}“{STRINGID}” +STR_2786 :Click on shortcut description to select new key +STR_2787 :{WINDOW_COLOUR_2}Giá trị công viên: {BLACK}{CURRENCY} +STR_2788 :{WINDOW_COLOUR_2}Congratulations!{NEWLINE}{BLACK}You achieved your objective with a company value of {CURRENCY}! +STR_2789 :{WINDOW_COLOUR_2}You have failed your objective! +STR_2790 :Enter name into scenario chart +STR_2791 :Enter name +STR_2792 :Please enter your name for the scenario chart: +STR_2793 :{SMALLFONT}(Completed by {STRINGID}) +STR_2794 :{WINDOW_COLOUR_2}Completed by: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} with a company value of: {BLACK}{CURRENCY} +STR_2795 :Sort +STR_2796 :Sort the ride list into order using the information type displayed +STR_2797 :Scroll view when pointer at screen edge +STR_2798 :Scroll the view when the mouse pointer is at the screen edge +STR_2799 :View or change control key assignments +STR_2800 :{WINDOW_COLOUR_2}Total admissions: {BLACK}{COMMA32} +STR_2801 :{WINDOW_COLOUR_2}Income from admissions: {BLACK}{CURRENCY2DP} +STR_2802 :Map +STR_2803 :Show these guests highlighted on map +STR_2804 :Show these staff members highlighted on map +STR_2805 :Show map of park +STR_2806 :{RED}Khách đang phàn nàn đường trong công viên quá bẩn{NEWLINE}Hãy kiểm tra những lao công đang ở đâu và nên sắp xếp họ tốt hơn +STR_2807 :{RED}Khách đang phàn nàn rằng có quá nhiều rác trong công viên{NEWLINE}Hãy kiểm tra những lao công đang ở đâu và nên sắp xếp họ tốt hơn +STR_2808 :{RED}Khách đang phàn nàn về sự phá hoại trong công viên{NEWLINE}Hãy kiểm tra những bảo vệ đang ở đâu và nên sắp xếp họ tốt hơn +STR_2809 :{RED}Khách không tìm được nơi bán thức ăn +STR_2810 :{RED}Khách không tìm được nơi bán nước uống +STR_2811 :{RED}Khách đang phàn nàn vì không thể tìm được nhà vệ sinh +STR_2812 :{RED}Khách đang đi lạc hoặc bị kẹt{NEWLINE}Hãy kiểm tra hệ thống đường trong công viên +STR_2813 :{RED}Giá vé vào cổng quá cao!{NEWLINE}Hãy giảm giá vé vào cổng hoặc tăng giá trị công viên để thu hút nhiều khách hơn +STR_2814 :{WINDOW_COLOUR_2}Most untidy park award +STR_2815 :{WINDOW_COLOUR_2}Tidiest park award +STR_2816 :{WINDOW_COLOUR_2}Award for the park with the best roller coasters +STR_2817 :{WINDOW_COLOUR_2}Best value park award +STR_2818 :{WINDOW_COLOUR_2}Most beautiful park award +STR_2819 :{WINDOW_COLOUR_2}Worst value park award +STR_2820 :{WINDOW_COLOUR_2}Safest park award +STR_2821 :{WINDOW_COLOUR_2}Best staff award +STR_2822 :{WINDOW_COLOUR_2}Best park food award +STR_2823 :{WINDOW_COLOUR_2}Worst park food award +STR_2824 :{WINDOW_COLOUR_2}Best park toilets award +STR_2825 :{WINDOW_COLOUR_2}Most disappointing park award +STR_2826 :{WINDOW_COLOUR_2}Best water rides award +STR_2827 :{WINDOW_COLOUR_2}Best custom-designed rides award +STR_2828 :{WINDOW_COLOUR_2}Most dazzling ride colour schemes award +STR_2829 :{WINDOW_COLOUR_2}Most confusing park layout award +STR_2830 :{WINDOW_COLOUR_2}Best gentle ride award +STR_2831 :{TOPAZ}Your park has received an award for being ‘The most untidy park in the country’! +STR_2832 :{TOPAZ}Your park has received an award for being ‘The tidiest park in the country’! +STR_2833 :{TOPAZ}Your park has received an award for being ‘The park with the best roller coasters’! +STR_2834 :{TOPAZ}Your park has received an award for being ‘The best value park in the country’! +STR_2835 :{TOPAZ}Your park has received an award for being ‘The most beautiful park in the country’! +STR_2836 :{TOPAZ}Your park has received an award for being ‘The worst value park in the country’! +STR_2837 :{TOPAZ}Your park has received an award for being ‘The safest park in the country’! +STR_2838 :{TOPAZ}Your park has received an award for being ‘The park with the best staff’! +STR_2839 :{TOPAZ}Your park has received an award for being ‘The park with the best food in the country’! +STR_2840 :{TOPAZ}Your park has received an award for being ‘The park with the worst food in the country’! +STR_2841 :{TOPAZ}Your park has received an award for being ‘The park with the best toilet facilities in the country’! +STR_2842 :{TOPAZ}Your park has received an award for being ‘The most disappointing park in the country’! +STR_2843 :{TOPAZ}Your park has received an award for being ‘The park with the best water rides in the country’! +STR_2844 :{TOPAZ}Your park has received an award for being ‘The park with the best custom-designed rides’! +STR_2845 :{TOPAZ}Your park has received an award for being ‘The park with the most dazzling choice of colour schemes’! +STR_2846 :{TOPAZ}Your park has received an award for being ‘The park with the most confusing layout’! +STR_2847 :{TOPAZ}Your park has received an award for being ‘The park with the best gentle rides’! +STR_2848 :{WINDOW_COLOUR_2}No recent awards +STR_2849 :New scenario installed successfully +STR_2850 :New track design installed successfully +STR_2851 :Scenario already installed +STR_2852 :Track design already installed +STR_2853 :Forbidden by the local authority! +STR_2854 :{RED}Guests can’t get to the entrance of {STRINGID}!{NEWLINE}Construct a path to the entrance +STR_2855 :{RED}{STRINGID} has no path leading from its exit!{NEWLINE}Construct a path from the ride exit +STR_2858 :Can’t start marketing campaign… +STR_2861 :{WINDOW_COLOUR_2}Licensed to Infogrames Interactive Inc. +STR_2862 :Music acknowledgements… +STR_2863 :Music acknowledgements +STR_2864 :{WINDOW_COLOUR_2}March - Children of the Regiment: (Fucik) non copyright +STR_2865 :{WINDOW_COLOUR_2}Heyken’s Serenade: (J.Heyken) British Standard Music Coy; GEMA, BRITICO +STR_2866 :{WINDOW_COLOUR_2}La Belle Espagnole: (Robert Vollstedt) non copyright +STR_2867 :{WINDOW_COLOUR_2}Wedding Journey: (Traditional) +STR_2868 :{WINDOW_COLOUR_2}Tales from the Vienna Woods: (Johann Strauss) non copyright +STR_2869 :{WINDOW_COLOUR_2}Slavonic Dance: (Traditional) +STR_2870 :{WINDOW_COLOUR_2}Das Alpenhorn: (Traditional) +STR_2871 :{WINDOW_COLOUR_2}The Blond Sailor: (Traditional) +STR_2872 :{WINDOW_COLOUR_2}Overture - Poet and Peasant: (Franz von Suppé) non copyright +STR_2873 :{WINDOW_COLOUR_2}Waltz Medley: (Johann Strauss) non copyright +STR_2874 :{WINDOW_COLOUR_2}Bella Bella Bimba: (Traditional) +STR_2875 :{WINDOW_COLOUR_2}Original recordings (P) 1976 C.J.Mears Organization, used with consent +STR_2876 :{WINDOW_COLOUR_2}RollerCoaster Tycoon 2 Title Music: (Allister Brimble) copyright © Chris Sawyer +STR_2877 :{WINDOW_COLOUR_2}Dodgems Beat: (Allister Brimble) copyright © Chris Sawyer +STR_2878 :{WINDOW_COLOUR_2}Mid Summer’s Heat: (Allister Brimble) copyright © Chris Sawyer +STR_2879 :{WINDOW_COLOUR_2}Pharaoh’s Tomb: (Allister Brimble) copyright © Chris Sawyer +STR_2880 :{WINDOW_COLOUR_2}Caesar’s March: (Allister Brimble) copyright © Chris Sawyer +STR_2881 :{WINDOW_COLOUR_2}Drifting To Heaven: (Allister Brimble) copyright © Chris Sawyer +STR_2882 :{WINDOW_COLOUR_2}Invaders: (Allister Brimble) copyright © Chris Sawyer +STR_2883 :{WINDOW_COLOUR_2}Eternal Toybox: (Allister Brimble) copyright © Chris Sawyer +STR_2884 :{WINDOW_COLOUR_2}Jungle Juice: (Allister Brimble) copyright © Chris Sawyer +STR_2885 :{WINDOW_COLOUR_2}Ninja’s Noodles: (Allister Brimble) copyright © Chris Sawyer +STR_2886 :{WINDOW_COLOUR_2}Voyage to Andromeda: (Allister Brimble) copyright © Chris Sawyer +STR_2887 :{WINDOW_COLOUR_2}Brimble’s Beat: (Allister Brimble) copyright © Chris Sawyer +STR_2888 :{WINDOW_COLOUR_2}Atlantis: (Allister Brimble) copyright © Chris Sawyer +STR_2889 :{WINDOW_COLOUR_2}Wild West Kid: (Allister Brimble) copyright © Chris Sawyer +STR_2890 :{WINDOW_COLOUR_2}Vampire’s Lair: (Allister Brimble) copyright © Chris Sawyer +STR_2891 :{WINDOW_COLOUR_2}Blockbuster: (Allister Brimble) copyright © Chris Sawyer +STR_2892 :{WINDOW_COLOUR_2}Airtime Rock: (Allister Brimble) copyright © Chris Sawyer +STR_2893 :{WINDOW_COLOUR_2}Searchlight Rag: (Scott Joplin/Allister Brimble) copyright © Chris Sawyer +STR_2894 :{WINDOW_COLOUR_2}Flight of Fantasy: (Steve Blenkinsopp) copyright © Chris Sawyer +STR_2895 :{WINDOW_COLOUR_2}Big Rock: (Allister Brimble) copyright © Chris Sawyer +STR_2896 :{WINDOW_COLOUR_2}Hypothermia: (Allister Brimble) copyright © Chris Sawyer +STR_2897 :{WINDOW_COLOUR_2}Last Sleigh Ride: (Allister Brimble) copyright © Chris Sawyer +STR_2898 :{WINDOW_COLOUR_2}Pipes of Glencairn: (Allister Brimble) copyright © Chris Sawyer +STR_2899 :{WINDOW_COLOUR_2}Traffic Jam: (Allister Brimble) copyright © Chris Sawyer +STR_2901 :{WINDOW_COLOUR_2}(Samples courtesy of Spectrasonics “Liquid Grooves”) +STR_2902 :{WINDOW_COLOUR_2}Toccata: (C.M.Widor, played by Peter James Adcock) recording © Chris Sawyer +STR_2903 :{WINDOW_COLOUR_2}Space Rock: (Allister Brimble) copyright © Chris Sawyer +STR_2904 :{WINDOW_COLOUR_2}Manic Mechanic: (Allister Brimble) copyright © Chris Sawyer +STR_2905 :{WINDOW_COLOUR_2}Techno Torture: (Allister Brimble) copyright © Chris Sawyer +STR_2906 :{WINDOW_COLOUR_2}Sweat Dreams: (Allister Brimble) copyright © Chris Sawyer +STR_2907 :{WINDOW_COLOUR_2}What shall we do with the Drunken Sailor: (Anon/Allister Brimble) copyright © Chris Sawyer +STR_2971 :Main colour scheme +STR_2972 :Alternative colour scheme 1 +STR_2973 :Alternative colour scheme 2 +STR_2974 :Alternative colour scheme 3 +STR_2975 :Select which colour scheme to change, or paint ride with +STR_2976 :Paint an individual area of this ride using the selected colour scheme +STR_2977 :Staff member name +STR_2978 :Enter new name for this member of staff: +STR_2979 :Can’t name staff member… +STR_2980 :Too many banners in game +STR_2981 :{RED}No entry +STR_2982 :Banner text +STR_2983 :Enter new text for this banner: +STR_2984 :Can’t set new text for banner… +STR_2985 :Banner +STR_2986 :Change text on banner +STR_2987 :Set this banner as a ‘no-entry’ sign for guests +STR_2988 :Demolish this banner +STR_2989 :Select main colour +STR_2990 :Select text colour +STR_2991 :Sign +STR_2992 :Sign text +STR_2993 :Enter new text for this sign: +STR_2994 :Change text on sign +STR_2995 :Demolish this sign +STR_2996 :{BLACK}ABC +STR_2997 :{GREY}ABC +STR_2998 :{WHITE}ABC +STR_2999 :{RED}ABC +STR_3000 :{GREEN}ABC +STR_3001 :{YELLOW}ABC +STR_3002 :{TOPAZ}ABC +STR_3003 :{CELADON}ABC +STR_3004 :{BABYBLUE}ABC +STR_3005 :{PALELAVENDER}ABC +STR_3006 :{PALEGOLD}ABC +STR_3007 :{LIGHTPINK}ABC +STR_3008 :{PEARLAQUA}ABC +STR_3009 :{PALESILVER}ABC +STR_3010 :Unable to load file… +STR_3011 :File contains invalid data +STR_3012 :Dodgems beat style +STR_3013 :Fairground organ style +STR_3014 :Roman fanfare style +STR_3015 :Oriental style +STR_3016 :Martian style +STR_3017 :Jungle drums style +STR_3018 :Egyptian style +STR_3019 :Toyland style +STR_3020 : +STR_3021 :Space style +STR_3022 :Horror style +STR_3023 :Techno style +STR_3024 :Gentle style +STR_3025 :Summer style +STR_3026 :Water style +STR_3027 :Wild west style +STR_3028 :Jurassic style +STR_3029 :Rock style +STR_3030 :Ragtime style +STR_3031 :Fantasy style +STR_3032 :Rock style 2 +STR_3033 :Ice style +STR_3034 :Snow style +STR_3035 :Custom music 1 +STR_3036 :Custom music 2 +STR_3037 :Medieval style +STR_3038 :Urban style +STR_3039 :Organ style +STR_3040 :Mechanical style +STR_3041 :Modern style +STR_3042 :Pirates style +STR_3043 :Rock style 3 +STR_3044 :Candy style +STR_3045 :Select style of music to play +STR_3047 :Local authority forbids demolition or modifications to this ride +STR_3048 :Marketing campaigns forbidden by local authority +STR_3049 :Golf hole A +STR_3050 :Golf hole B +STR_3051 :Golf hole C +STR_3052 :Golf hole D +STR_3053 :Golf hole E +STR_3054 :Loading… +STR_3058 :Brick walls +STR_3059 :Hedges +STR_3060 :Ice blocks +STR_3061 :Wooden fences +STR_3062 :Standard roller coaster track +STR_3063 :Water channel (track submerged) +STR_3064 :Beginner Parks +STR_3065 :Challenging Parks +STR_3066 :Expert Parks +STR_3067 :“Real” Parks +STR_3068 :Other Parks +STR_3069 :Top Section +STR_3070 :Slope to Level +STR_3071 :{WINDOW_COLOUR_2}Same price throughout park +STR_3072 :Select whether this price is used throughout the entire park +STR_3073 :{RED}WARNING: Your park rating has dropped below 700!{NEWLINE}If you haven’t raised the park rating in 4 weeks, your park will be closed down +STR_3074 :{RED}WARNING: Your park rating is still below 700!{NEWLINE}You have 3 weeks to raise the park rating +STR_3075 :{RED}WARNING: Your park rating is still below 700!{NEWLINE}You have only 2 weeks to raise the park rating, or your park will be closed down +STR_3076 :{RED}FINAL WARNING: Your park rating is still below 700!{NEWLINE}In just 7 days your park will be closed down unless you can raise the rating +STR_3077 :{RED}CLOSURE NOTICE: Your park has been closed down! +STR_3090 :Select style of entrance, exit, and station +STR_3091 :You are not allowed to remove this section! +STR_3092 :You are not allowed to move or modify the station for this ride! +STR_3093 :{WINDOW_COLOUR_2}Favourite: {BLACK}{STRINGID} +STR_3094 :N/A +STR_3095 :{WINDOW_COLOUR_2}Lift hill chain speed: +STR_3096 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{VELOCITY} +STR_3097 :Select lift hill chain speed +STR_3099 :Select colour +STR_3100 :Select second colour +STR_3101 :Select third colour +STR_3102 :Re-paint coloured scenery on landscape +STR_3103 :Can’t re-paint this… +STR_3104 :List rides +STR_3105 :List shops and stalls +STR_3106 :List information kiosks and other guest facilities +STR_3107 :Close +STR_3108 :Test +STR_3109 :Open +STR_3110 :{WINDOW_COLOUR_2}Block Sections: {BLACK}{COMMA16} +STR_3111 :Click on design to build it +STR_3112 :Click on design to rename or delete it +STR_3113 :Select a different design +STR_3114 :Go back to design selection window +STR_3115 :Save track design +STR_3116 :Save track design (Not possible until ride has been tested and statistics have been generated) +STR_3117 :{BLACK}Calling mechanic… +STR_3118 :{BLACK}{STRINGID} is heading for the ride +STR_3119 :{BLACK}{STRINGID} is fixing the ride +STR_3120 :Locate nearest available mechanic, or mechanic fixing ride +STR_3121 :Unable to locate mechanic, or all nearby mechanics are busy +STR_3122 :{WINDOW_COLOUR_2}Favourite ride of: {BLACK}{COMMA16} guest +STR_3123 :{WINDOW_COLOUR_2}Favourite ride of: {BLACK}{COMMA16} guests +STR_3124 :Broken {STRINGID} +STR_3125 :{WINDOW_COLOUR_2}Excitement Factor: {BLACK}+{COMMA16}% +STR_3126 :{WINDOW_COLOUR_2}Intensity Factor: {BLACK}+{COMMA16}% +STR_3127 :{WINDOW_COLOUR_2}Nausea Factor: {BLACK}+{COMMA16}% +STR_3128 :Save Track Design +STR_3129 :Save Track Design with Scenery +STR_3130 :Save +STR_3131 :Cancel +STR_3132 :{BLACK}Click items of scenery to select them to be saved with track design… +STR_3133 :Unable to build this on a slope +STR_3134 :{RED}(Design includes scenery which is unavailable) +STR_3135 :{RED}(Vehicle design unavailable. Ride performance may be affected.) +STR_3136 :Warning: This design will be built with an alternative vehicle type and may not perform as expected +STR_3137 :Select Nearby Scenery +STR_3138 :Reset Selection +STR_3139 :Cable lift unable to work in this operating mode +STR_3140 :Cable lift hill must start immediately after station +STR_3141 :Multi-circuit per ride not possible with cable lift hill +STR_3142 :{WINDOW_COLOUR_2}Capacity: {BLACK}{STRINGID} +STR_3143 :Show people on map +STR_3144 :Show rides and stalls on map +STR_3160 :Select the number of circuits per ride +STR_3162 :Unable to allocate enough memory +STR_3163 :Installing new data: +STR_3164 :{BLACK}{COMMA16} selected (maximum {COMMA16}) +STR_3167 :{WINDOW_COLOUR_2}Includes: {BLACK}{COMMA16} objects +STR_3169 :Data for the following object not found: +STR_3170 :Not enough space for graphics +STR_3171 :Too many objects of this type selected +STR_3172 :The following object must be selected first: {STRING} +STR_3173 :This object is currently in use +STR_3174 :This object is required by another object +STR_3175 :This object is always required +STR_3176 :Unable to select this object +STR_3177 :Unable to de-select this object +STR_3178 :At least one path object must be selected +STR_3179 :At least one ride vehicle/attraction object must be selected +STR_3180 :Invalid selection of objects +STR_3181 :Object Selection - {STRINGID} +STR_3182 :Park entrance type must be selected +STR_3183 :Water type must be selected +STR_3184 :Ride Vehicles/Attractions +STR_3185 :Small Scenery +STR_3186 :Large Scenery +STR_3187 :Walls/Fences +STR_3188 :Path Signs +STR_3189 :Footpaths +STR_3190 :Path Extras +STR_3191 :Scenery Groups +STR_3192 :Park Entrance +STR_3193 :Water +STR_3195 :Invention List +STR_3196 :{WINDOW_COLOUR_2}Research Group: {BLACK}{STRINGID} +STR_3197 :{WINDOW_COLOUR_2}Items pre-invented at start of game: +STR_3198 :{WINDOW_COLOUR_2}Items to invent during game: +STR_3199 :Random Shuffle +STR_3200 :Randomly shuffle the list of items to invent during the game +STR_3201 :Object Selection +STR_3202 :Landscape Editor +STR_3203 :Invention List Set Up +STR_3204 :Options Selection +STR_3205 :Objective Selection +STR_3206 :Save Scenario +STR_3207 :Track Designer +STR_3208 :Track Designs Manager +STR_3209 :Back to Previous Step: +STR_3210 :Forward to Next Step: +STR_3211 :Map size: +STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3213 :Can’t decrease map size any further +STR_3214 :Can’t increase map size any further +STR_3215 :Too close to edge of map +STR_3216 :Select park-owned land etc. +STR_3217 :Land Owned +STR_3218 :Construction Rights Owned +STR_3219 :Land For Sale +STR_3220 :Construction Rights For Sale +STR_3221 :Set land to be owned by the park +STR_3222 :Set construction rights only to be owned by the park +STR_3223 :Set land to be available to purchase by the park +STR_3224 :Set construction rights to be available to purchase by the park +STR_3225 :Toggle on/off building a random cluster of objects around the selected position +STR_3226 :Build park entrance +STR_3227 :Too many park entrances! +STR_3228 :Set starting positions for people +STR_3229 :Block Brakes cannot be used directly after station +STR_3230 :Block Brakes cannot be used directly after each other +STR_3231 :Block Brakes cannot be used directly after the top of this lift hill +STR_3232 :Options - Financial +STR_3233 :Options - Guests +STR_3234 :Options - Park +STR_3235 :Tài chính +STR_3236 :Show guest options +STR_3237 :Show park options +STR_3238 :No Money +STR_3239 :Make this park a ‘no money’ park with no financial restrictions +STR_3240 :{WINDOW_COLOUR_2}Initial cash: +STR_3241 :{WINDOW_COLOUR_2}Initial loan: +STR_3242 :{WINDOW_COLOUR_2}Maximum loan size: +STR_3243 :{WINDOW_COLOUR_2}Annual interest rate: +STR_3244 :Forbid marketing campaigns +STR_3245 :Forbid advertising, promotional schemes, and other marketing campaigns +STR_3246 :{WINDOW_COLOUR_2}{CURRENCY} +STR_3247 :{WINDOW_COLOUR_2}{COMMA16}% +STR_3248 :Can’t increase initial cash any further! +STR_3249 :Can’t reduce initial cash any further! +STR_3250 :Can’t increase initial loan any further! +STR_3251 :Can’t reduce initial loan any further! +STR_3252 :Can’t increase maximum loan size any further! +STR_3253 :Can’t reduce maximum loan size any further! +STR_3254 :Can’t increase interest rate any further! +STR_3255 :Can’t reduce interest rate any further! +STR_3256 :Guests prefer less intense rides +STR_3257 :Select whether guests should generally prefer less intense rides only +STR_3258 :Guests prefer more intense rides +STR_3259 :Select whether guests should generally prefer more intense rides only +STR_3260 :{WINDOW_COLOUR_2}Cash per guest (average): +STR_3261 :{WINDOW_COLOUR_2}Guests initial happiness: +STR_3262 :{WINDOW_COLOUR_2}Guests initial hunger: +STR_3263 :{WINDOW_COLOUR_2}Guests initial thirst: +STR_3264 :Can’t increase this any further! +STR_3265 :Can’t reduce this any further! +STR_3266 :Select how this park charges for entrance and rides +STR_3267 :Forbid tree removal +STR_3268 :Forbid tall trees being removed +STR_3269 :Forbid landscape changes +STR_3270 :Forbid any changes to the landscape +STR_3271 :Forbid high construction +STR_3272 :Forbid any tall construction +STR_3273 :Park rating is harder to increase and maintain +STR_3274 :Make the park rating value more challenging +STR_3275 :Guests are more difficult to attract +STR_3276 :Make it more difficult to attract guests to the park +STR_3277 :{WINDOW_COLOUR_2}Cost to buy land: +STR_3278 :{WINDOW_COLOUR_2}Cost to buy construction rights: +STR_3279 :Free park entry / Pay per ride +STR_3280 :Pay to enter park / Free rides +STR_3281 :{WINDOW_COLOUR_2}Entry price: +STR_3282 :Select objective and park name +STR_3283 :Select rides to be preserved +STR_3284 :Objective Selection +STR_3285 :Preserved Rides +STR_3286 :Select objective for this scenario +STR_3287 :{WINDOW_COLOUR_2}Objective: +STR_3288 :Select climate +STR_3289 :{WINDOW_COLOUR_2}Climate: +STR_3290 :Cool and wet +STR_3291 :Warm +STR_3292 :Hot and dry +STR_3293 :Cold +STR_3294 :Change… +STR_3295 :Change name of park +STR_3296 :Change name of scenario +STR_3297 :Change detail notes about park / scenario +STR_3298 :{WINDOW_COLOUR_2}Park Name: {BLACK}{STRINGID} +STR_3299 :{WINDOW_COLOUR_2}Park/Scenario Details: +STR_3300 :{WINDOW_COLOUR_2}Scenario Name: {BLACK}{STRINGID} +STR_3301 :{WINDOW_COLOUR_2}Objective Date: +STR_3302 :{WINDOW_COLOUR_2}{MONTHYEAR} +STR_3303 :{WINDOW_COLOUR_2}Number of guests: +STR_3304 :{WINDOW_COLOUR_2}Park value: +STR_3305 :{WINDOW_COLOUR_2}Monthly income: +STR_3306 :{WINDOW_COLOUR_2}Monthly profit: +STR_3307 :{WINDOW_COLOUR_2}Minimum length: +STR_3308 :{WINDOW_COLOUR_2}Độ phấn khích: +STR_3309 :{WINDOW_COLOUR_2}{COMMA16} +STR_3310 :{WINDOW_COLOUR_2}{LENGTH} +STR_3311 :{WINDOW_COLOUR_2}{COMMA2DP32} +STR_3312 :{WINDOW_COLOUR_2}Rides/attractions under a preservation order: +STR_3313 :Scenario Name +STR_3314 :Enter name for scenario: +STR_3315 :Park/Scenario Details +STR_3316 :Enter description of this scenario: +STR_3317 :No details yet +STR_3318 :Select which group this scenario appears in +STR_3319 :{WINDOW_COLOUR_2}Scenario Group: +STR_3320 :Unable to save scenario file… +STR_3321 :New objects installed successfully +STR_3322 :{WINDOW_COLOUR_2}Objective: {BLACK}{STRINGID} +STR_3326 :{WINDOW_COLOUR_2}(no image) +STR_3327 :Starting positions for people not set +STR_3328 :Can’t advance to next editor stage… +STR_3329 :Park entrance not yet built +STR_3330 :Park must own some land +STR_3331 :Path from park entrance to map edge either not complete or too complex. Path must be single-width with as few junctions and corners as possible. +STR_3332 :Park entrance is the wrong way round or has no path leading to the map edge +STR_3333 :Export custom objects with saved games +STR_3334 :Select whether to save any additional custom object data required (add-in data not supplied with the main product) in saved game or scenario files, allowing them to be loaded by someone who doesn’t have the additional object data +STR_3335 :Track Designer - Select Ride Types & Vehicles +STR_3336 :Track Designs Manager - Select Ride Type +STR_3338 :{BLACK}Custom-designed layout +STR_3339 :{BLACK}{COMMA16} design available, or custom-designed layout +STR_3340 :{BLACK}{COMMA16} designs available, or custom-designed layout +STR_3341 :Game tools +STR_3342 :Scenario Editor +STR_3343 :Convert saved game to scenario +STR_3344 :Track Designer +STR_3345 :Track Designs Manager +STR_3346 :Can’t save track design… +STR_3347 :Ride is too large, contains too many elements, or scenery is too spread out +STR_3348 :Rename +STR_3349 :Delete +STR_3350 :Track design name +STR_3351 :Enter new name for this track design: +STR_3352 :Can’t rename track design… +STR_3353 :New name contains invalid characters +STR_3354 :Another file exists with this name, or file is write-protected +STR_3355 :File is write-protected or locked +STR_3356 :Delete File +STR_3357 :{WINDOW_COLOUR_2}Are you sure you want to permanently delete {STRING}? +STR_3358 :Can’t delete track design… +STR_3359 :{BLACK}No track designs of this type +STR_3360 :Warning! +STR_3361 :Too many track designs of this type. Some will not be listed. +STR_3364 :Advanced +STR_3365 :Allow selection of individual items of scenery in addition to scenery groups +STR_3366 :{BLACK}= Ride +STR_3367 :{BLACK}= Food Stall +STR_3368 :{BLACK}= Drink Stall +STR_3369 :{BLACK}= Souvenir Stall +STR_3370 :{BLACK}= Info. Kiosk +STR_3371 :{BLACK}= First Aid +STR_3372 :{BLACK}= Cash Machine +STR_3373 :{BLACK}= Toilet +STR_3374 :Warning: Too many objects selected! +STR_3375 :Not all objects in this scenery group could be selected +STR_3376 :Install new +STR_3377 :Install a new track design file +STR_3378 :Install +STR_3379 :Cancel +STR_3380 :Unable to install this track design… +STR_3381 :File is not compatible or contains invalid data +STR_3382 :File copy failed +STR_3383 :Select new name for track design +STR_3384 :An existing track design already has this name. Please select a new name for this design: +STR_3389 :Unable to select additional item of scenery… +STR_3390 :Too many items selected +STR_3437 :Xóa cảnh quan trong một khu vực lớn +STR_3438 :Unable to remove all scenery from here… +STR_3439 :Xóa cảnh quan +STR_3445 :Set Patrol Area +STR_3446 :Cancel Patrol Area + +# New strings, cleaner +STR_5120 :Finances +STR_5121 :Research +STR_5122 :Select rides by track type (like in RCT1) +STR_5123 :Renew rides +STR_5125 :All destructible +STR_5126 :Random title music +STR_5127 :While dragging, paint landscape instead of changing elevation +STR_5128 :Selection size +STR_5129 :Enter selection size between {COMMA16} and {COMMA16} +STR_5130 :Map size +STR_5131 :Enter map size between {COMMA16} and {COMMA16} +STR_5132 :Fix all rides +STR_5133 :Adjust smaller area of land rights +STR_5134 :Adjust larger area of land rights +STR_5135 :Buy land rights and construction rights +STR_5136 :Land rights +STR_5137 :Unlock operating limits +STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5139 :{WHITE}{STRINGID} +STR_5140 :Disable brakes failure +STR_5141 :Disable all breakdowns +STR_5142 :Normal Speed +STR_5143 :Quick Speed +STR_5144 :Fast Speed +STR_5145 :Turbo Speed +STR_5146 :Hyper Speed +STR_5147 :Cheats +STR_5148 :Change the game speed +STR_5149 :Show cheat options +STR_5150 :Enable debugging tools +STR_5151 :, +STR_5152 :. +STR_5153 :Edit Themes… +STR_5154 :Hardware display +STR_5155 :Allow testing of unfinished tracks +STR_5156 :Allows testing of most ride types even when the track is unfinished, does not apply to block sectioned modes +STR_5158 :Quit to menu +STR_5159 :Exit OpenRCT2 +STR_5160 :{POP16}{MONTH} {PUSH16}{PUSH16}{STRINGID}, năm thứ {POP16}{COMMA16} +STR_5161 :Date Format: +STR_5162 :Day/Month/Year +STR_5163 :Month/Day/Year +STR_5177 :Screen mode: +STR_5178 :Show financial cheats +STR_5179 :Show guest cheats +STR_5180 :Show park cheats +STR_5181 :Show ride cheats +STR_5182 :{INT32} +STR_5183 :Base height +STR_5184 :Enter base height between {COMMA16} and {COMMA16} +STR_5185 :Water level +STR_5186 :Enter water level between {COMMA16} and {COMMA16} +STR_5187 :Finances +STR_5188 :New Campaign +STR_5189 :Research +STR_5190 :Map +STR_5191 :Viewport +STR_5192 :Recent News +STR_5193 :Land +STR_5194 :Water +STR_5195 :Xóa cảnh quan +STR_5196 :Land Rights +STR_5197 :Scenery +STR_5198 :Footpath +STR_5199 :Ride Construction +STR_5200 :Track Design Place +STR_5201 :New Ride +STR_5202 :Track Design Selection +STR_5203 :Ride +STR_5204 :Ride List +STR_5205 :Guest +STR_5206 :Guest List +STR_5207 :Nhân viên +STR_5208 :Staff List +STR_5209 :Banner +STR_5210 :Object Selection +STR_5211 :Invention List +STR_5212 :Scenario Options +STR_5213 :Objective Options +STR_5214 :Map Generation +STR_5215 :Track Design Manager +STR_5216 :Track Design Manager List +STR_5217 :Cheats +STR_5218 :Themes +STR_5219 :Options +STR_5220 :Keyboard Shortcuts +STR_5221 :Change Keyboard Shortcut +STR_5222 :Load/Save +STR_5223 :Save Prompt +STR_5224 :Demolish Ride Prompt +STR_5225 :Fire Staff Prompt +STR_5226 :Track Delete Prompt +STR_5227 :Save Overwrite Prompt +STR_5228 :Main UI +STR_5229 :Park +STR_5230 :Tools +STR_5231 :Rides and Guests +STR_5232 :Editors +STR_5233 :Miscellaneous +STR_5234 :Prompts +STR_5235 :Settings +STR_5236 :Window +STR_5237 :Palette +STR_5238 :Current Theme: +STR_5239 :Duplicate +STR_5240 :Enter a name for the theme +STR_5241 :Can’t change this theme +STR_5242 :Theme name already exists +STR_5243 :Invalid characters used +STR_5244 :Themes +STR_5245 :Top Toolbar +STR_5246 :Bottom Toolbar +STR_5247 :Track Editor Bottom Toolbar +STR_5248 :Scenario Editor Bottom Toolbar +STR_5249 :Title Menu Buttons +STR_5250 :Title Exit Button +STR_5251 :Title Options Button +STR_5252 :Title Scenario Selection +STR_5253 :Park Information +STR_5254 :Create +STR_5255 :Create a new title sequence from scratch +STR_5256 :Create a new theme to make changes to +STR_5257 :Create a new theme based on the current one +STR_5258 :Delete the current theme +STR_5259 :Rename the current theme +STR_5260 :Giant Screenshot +STR_5261 :Filter +STR_5262 :Wacky Worlds +STR_5263 :Time Twister +STR_5264 :Custom +STR_5265 :Select which content sources are visible +STR_5266 :Display +STR_5267 :Culture and Units +STR_5268 :Audio +STR_5269 :Controls and interface +STR_5270 :Miscellaneous +STR_5272 :Small Scenery +STR_5273 :Large Scenery +STR_5274 :Footpath +STR_5275 :Search for Objects +STR_5276 :Enter the name of an object to search for +STR_5277 :Clear +STR_5278 :Sandbox mode +STR_5279 :Sandbox mode off +STR_5280 :Allow editing land ownership settings through the Map window and other options that are normally restricted to the Scenario Editor +STR_5281 :Features +STR_5282 :RCT1 Ride Open/Close Lights +STR_5283 :RCT1 Park Open/Close Lights +STR_5284 :RCT1 Scenario Selection Font +STR_5287 :Ride is already broken down +STR_5288 :Ride is closed +STR_5289 :No breakdowns available for this ride +STR_5290 :Fix ride +STR_5291 :Can’t force breakdown +STR_5292 :Force a breakdown +STR_5293 :Close ride/attraction +STR_5294 :Test ride/attraction +STR_5295 :Open ride/attraction +STR_5296 :Close park +STR_5297 :Open park +STR_5298 :{RED}{STRINGID} +STR_5299 :{LIGHTPINK}{STRINGID} +STR_5300 :Quick fire staff +STR_5301 :{MEDIUMFONT}{BLACK}Clear your loan +STR_5302 :Clear loan +STR_5303 :Allow building in pause mode +STR_5304 :Title Sequence: +STR_5305 :RollerCoaster Tycoon 1 +STR_5306 :RollerCoaster Tycoon 1 (AA) +STR_5307 :RollerCoaster Tycoon 1 (AA + LL) +STR_5308 :RollerCoaster Tycoon 2 +STR_5309 :OpenRCT2 +STR_5310 :Random +STR_5311 :Debug tools +STR_5312 :Show console +STR_5313 :Show tile inspector +STR_5314 :Tile inspector +STR_5335 :Ride entrance +STR_5336 :Ride exit +STR_5337 :Park entrance +STR_5338 :Element type +STR_5339 :Base height +STR_5340 :Clearance height +STR_5343 :Automatically place staff +STR_5344 :Changelog +STR_5345 :Financial cheats +STR_5346 :Guest cheats +STR_5347 :Park cheats +STR_5348 :Ride cheats +STR_5349 :All Rides +STR_5350 :Max +STR_5351 :Min +STR_5352 :{BLACK}Happiness: +STR_5353 :{BLACK}Energy: +STR_5354 :{BLACK}Hunger: +STR_5355 :{BLACK}Thirst: +STR_5356 :{BLACK}Nausea: +STR_5357 :{BLACK}Nausea tolerance: +STR_5358 :{BLACK}Toilet: +STR_5359 :Remove guests +STR_5360 :Removes all guests from the map +STR_5361 :Give all guests: +STR_5362 :{BLACK}Set all guests’ preferred ride intensity to: +STR_5363 :More than 1 +STR_5364 :Less than 15 +STR_5365 :{BLACK}Staff speed: +STR_5366 :Normal +STR_5367 :Fast +STR_5368 :Reset crash status +STR_5371 :Object selection +STR_5372 :Invert right mouse dragging +STR_5373 :Name {STRINGID} +STR_5374 :Date {STRINGID} +STR_5375 :▲ +STR_5376 :▼ +STR_5377 :Saves +STR_5378 :Script +STR_5379 :Skip to next wait command +STR_5380 :Start playing title sequence +STR_5381 :Stop playing title sequence +STR_5382 :Restart title sequence +STR_5383 :Create a new title sequence based on the current one +STR_5384 :Delete the current title sequence +STR_5385 :Rename the current title sequence +STR_5386 :Insert a new command +STR_5387 :Edit the selected command +STR_5388 :Delete the selected command +STR_5389 :Skip to the selected command in the title sequence +STR_5390 :Move the selected command down +STR_5391 :Move the selected command up +STR_5392 :Add a save to the title sequence +STR_5393 :Remove the selected save from the title sequence +STR_5394 :Rename the selected save +STR_5395 :Load the selected save in game +STR_5396 :Reload the title sequence if changes have been made to it outside of the game +STR_5397 :Can only be used on the title screen +STR_5398 :Cannot edit title sequence while it’s playing +STR_5399 :Press the stop button to continue editing +STR_5400 :Can’t change this title sequence +STR_5401 :Create a new title sequence to make changes to +STR_5402 :Failed to load title sequence +STR_5403 :There may be no Load or Wait command or a save may be invalid +STR_5404 :Name already exists +STR_5405 :Enter a name for the save +STR_5406 :Enter a name for the title sequence +STR_5407 :Add +STR_5408 :Remove +STR_5409 :Insert +STR_5410 :Edit +STR_5411 :Reload +STR_5412 :Skip to +STR_5413 :Load +STR_5415 :Load{MOVE_X}{87}{STRING} +STR_5416 :Load{MOVE_X}{87}No save selected +STR_5417 :Location +STR_5418 :Location{MOVE_X}{87}{COMMA16} {COMMA16} +STR_5419 :Rotate +STR_5420 :Rotate{MOVE_X}{87}{COMMA16} +STR_5421 :Zoom +STR_5422 :Zoom{MOVE_X}{87}{COMMA16} +STR_5423 :Wait +STR_5424 :Wait{MOVE_X}{87}{UINT16} +STR_5425 :Restart +STR_5426 :End +STR_5427 :Coordinates: +STR_5428 :Anticlockwise rotations: +STR_5429 :Zoom level: +STR_5430 :Milliseconds to wait: +STR_5431 :Save to load: +STR_5432 :Command: +STR_5433 :Title Sequences +STR_5434 :Command Editor +STR_5435 :Rename save +STR_5436 :Edit Title Sequences… +STR_5437 :No save selected +STR_5438 :Can’t make changes while command editor is open +STR_5439 :A wait command with at least 4 seconds is required with a restart command +STR_5440 :Minimise fullscreen on focus loss +STR_5441 :Identifies rides by track type{NEWLINE}so vehicles can be changed{NEWLINE}afterwards (RCT1 behaviour) +STR_5442 :Force park rating: +STR_5443 :Speed{MOVE_X}{87}{STRINGID} +STR_5444 :Speed: +STR_5445 :Speed +STR_5446 :Get +STR_5447 :Type {STRINGID} +STR_5448 :Ride / Vehicle {STRINGID} +STR_5449 :Reduce game speed +STR_5450 :Increase game speed +STR_5451 :Open cheats window +STR_5452 :Toggle visibility of toolbars +STR_5453 :Select another ride +STR_5454 :Uncap FPS +STR_5455 :Enable sandbox mode +STR_5456 :Disable clearance checks +STR_5457 :Disable support limits +STR_5458 :Rotate clockwise +STR_5459 :Rotate anti-clockwise +STR_5460 :Rotate view anti-clockwise +STR_5461 :Set guests’ parameters +STR_5462 :{CURRENCY} +STR_5463 :Goal: Have fun! +STR_5464 :General +STR_5465 :Weather +STR_5466 :Staff +STR_5467 :ALT + +STR_5468 :Recent messages +STR_5469 :Scroll map up +STR_5470 :Scroll map left +STR_5471 :Scroll map down +STR_5472 :Scroll map right +STR_5473 :Cycle day / night +STR_5474 :Display text on banners in uppercase +STR_5475 :{COMMA16} tuần +STR_5476 :Hardware +STR_5477 :Map rendering +STR_5478 :Controls +STR_5479 :Toolbar +STR_5480 :Show toolbar buttons for: +STR_5481 :Themes +STR_5482 :{WINDOW_COLOUR_2}Lần kiểm tra trước: {BLACK}1 phút +STR_5483 :{BLACK}(còn {COMMA16} tuần) +STR_5484 :{BLACK}(còn {COMMA16} tuần) +STR_5485 :{SMALLFONT}{STRING} +STR_5486 :{BLACK}{COMMA16} +STR_5487 :Show recent messages +STR_5489 :Show only tracked guests +STR_5490 :Disable audio on focus loss +STR_5491 :Inventions list +STR_5492 :Scenario options +STR_5493 :Send Message +STR_5495 :Player List +STR_5496 :Player +STR_5497 :Ping +STR_5498 :Server List +STR_5499 :Player Name: +STR_5500 :Add Server +STR_5501 :Start Server +STR_5502 :Multiplayer +STR_5503 :Enter hostname or IP address: +STR_5504 :Show multiplayer status +STR_5505 :Unable to connect to server. +STR_5506 :Guests ignore intensities +STR_5508 :Allow loading files with incorrect checksums +STR_5509 :Allows loading scenarios and saves{NEWLINE}that have an incorrect checksum,{NEWLINE}like the scenarios from the demo{NEWLINE}or damaged saves. +STR_5510 :Default sound device +STR_5511 :(UNKNOWN) +STR_5512 :Save Game As +STR_5513 :(Quick) save game +STR_5514 :Disable vandalism +STR_5515 :Stops guests from vandalising your park when they’re angry +STR_5516 :Black +STR_5517 :Grey +STR_5518 :White +STR_5519 :Dark purple +STR_5520 :Light purple +STR_5521 :Bright purple +STR_5522 :Dark blue +STR_5523 :Light blue +STR_5524 :Icy blue +STR_5525 :Dark water +STR_5526 :Light water +STR_5527 :Saturated green +STR_5528 :Dark green +STR_5529 :Moss green +STR_5530 :Bright green +STR_5531 :Olive green +STR_5532 :Dark olive green +STR_5533 :Bright yellow +STR_5534 :Yellow +STR_5535 :Dark yellow +STR_5536 :Light orange +STR_5537 :Dark orange +STR_5538 :Light brown +STR_5539 :Saturated brown +STR_5540 :Dark brown +STR_5541 :Salmon pink +STR_5542 :Bordeaux red +STR_5543 :Saturated red +STR_5544 :Bright red +STR_5545 :Dark pink +STR_5546 :Bright pink +STR_5547 :Light pink +STR_5548 :Show all operating modes +STR_5549 :Year/Month/Day +STR_5550 :{POP16}{POP16}Year {COMMA16}, {PUSH16}{PUSH16}{MONTH} {PUSH16}{PUSH16}{STRINGID} +STR_5551 :Year/Day/Month +STR_5552 :{POP16}{POP16}Year {COMMA16}, {PUSH16}{PUSH16}{PUSH16}{STRINGID} {MONTH} +STR_5553 :Pause game when Steam overlay is open +STR_5554 :Enable mountain tool +STR_5555 :Show vehicles from other track types +STR_5556 :Kick player +STR_5557 :Stay connected after desynchronisation (Multiplayer) +STR_5558 :This setting will only take effect after you have restarted OpenRCT2 +STR_5559 :10 min. inspections +STR_5560 :Sets the inspection time to ‘Every 10 minutes’ on all rides +STR_5561 :Failed to load language +STR_5562 :WARNING! +STR_5563 :This feature is currently unstable, take extra caution. +STR_5564 :Insert Corrupt Element +STR_5565 :Inserts a corrupt map element at top of tile. This will hide any element above the corrupt element. +STR_5566 :Password: +STR_5567 :Advertise +STR_5568 :Password Required +STR_5569 :This server requires a password +STR_5570 :Fetch Servers +STR_5571 :Join Game +STR_5572 :Add To Favourites +STR_5573 :Remove From Favourites +STR_5574 :Server Name: +STR_5575 :Max Players: +STR_5576 :Port: +STR_5577 :South Korean Won (W) +STR_5578 :Russian Rouble (₽) +STR_5579 :Window scale factor: +STR_5580 :Czech koruna (Kč) +STR_5581 :Show FPS +STR_5582 :Trap mouse cursor in window +STR_5583 :{COMMA1DP16} m/s +STR_5584 :SI +STR_5585 :Unlocks ride operation limits, allowing for things like {VELOCITY} lift hills +STR_5586 :Automatically open shops and stalls +STR_5587 :Shops and stalls will be automatically opened after building them +STR_5588 :Play with other players +STR_5589 :Notification Settings +STR_5590 :Park awards +STR_5591 :Chiến dịch quảng cáo đã kết thúc +STR_5592 :Cảnh báo +STR_5593 :Cảnh báo giá trị công viên +STR_5594 :Trò chơi đã hỏng +STR_5595 :Trò chơi đã gặp tai nạn +STR_5596 :Cảnh báo trò chơi +STR_5597 :Trò chơi / cảnh quan được nghiên cứu xong +STR_5598 :Guest warnings +STR_5600 :Guest has left the park +STR_5601 :Guest is queuing for ride +STR_5602 :Guest is on ride +STR_5603 :Guest has left ride +STR_5604 :Guest has bought item +STR_5605 :Guest has used facility +STR_5606 :Guest has died +STR_5607 :Forcefully remove selected map element. +STR_5608 :BH +STR_5609 :CH +STR_5610 :Remove the currently selected map element. This will forcefully remove it, so no cash will be used/gained. Use with caution. +STR_5611 :G +STR_5612 :Ghost flag +STR_5613 :B +STR_5614 :Broken flag +STR_5615 :L +STR_5616 :Last element for tile flag +STR_5617 :Move selected element up. +STR_5618 :Move selected element down. +STR_5619 :RollerCoaster Tycoon +STR_5620 :Added Attractions +STR_5621 :Loopy Landscapes +STR_5622 :RollerCoaster Tycoon 2 +STR_5623 :Wacky Worlds +STR_5624 :Time Twister +STR_5625 :“Real” Parks +STR_5626 :Other Parks +STR_5627 :Group scenario list by: +STR_5628 :Source game +STR_5629 :Difficulty level +STR_5630 :Enable progressive unlocking +STR_5631 :Original DLC Parks +STR_5632 :Build your own… +STR_5633 :CMD + +STR_5634 :OPTION + +STR_5635 :{WINDOW_COLOUR_2}Money spent: {BLACK}{CURRENCY2DP} +STR_5636 :{WINDOW_COLOUR_2}Commands ran: {BLACK}{COMMA16} +STR_5637 :Can’t do this… +STR_5638 :Permission denied +STR_5639 :Show list of players +STR_5640 :Manage groups +STR_5641 :Default Group: +STR_5642 :Group +STR_5643 :Add Group +STR_5644 :Remove Group +STR_5645 :Chat +STR_5646 :Terraform +STR_5647 :Toggle Pause +STR_5648 :Set Water Level +STR_5649 :Create Ride +STR_5650 :Remove Ride +STR_5651 :Build Ride +STR_5652 :Ride Properties +STR_5653 :Scenery +STR_5654 :Path +STR_5655 :Guest +STR_5656 :Staff +STR_5657 :Park Properties +STR_5658 :Park Funding +STR_5659 :Kick Player +STR_5660 :Modify Groups +STR_5661 :Set Player Group +STR_5662 :N/A +STR_5663 :Clear Landscape +STR_5664 :Cheat +STR_5665 :Toggle Scenery Cluster +STR_5666 :Passwordless Login +STR_5701 :{WINDOW_COLOUR_2}Last action: {BLACK}{STRINGID} +STR_5702 :Locate player’s most recent action +STR_5703 :Can’t kick the host +STR_5704 :Last Action +STR_5705 :Can’t set to this group +STR_5706 :Can’t remove group that players belong to +STR_5707 :This group cannot be modified +STR_5708 :Can’t change the group that the host belongs to +STR_5709 :Rename Group +STR_5710 :Group name +STR_5711 :Enter new name for this group: +STR_5712 :Can’t modify permission that you do not have yourself +STR_5713 :Kick Player +STR_5714 :Show options window +STR_5715 :New Game +STR_5716 :Not allowed in multiplayer mode +# For identifying client network version in server list window +STR_5717 :Network version: {STRING} +STR_5718 :Network version: {STRING} +STR_5719 :Sunny +STR_5720 :Partially Cloudy +STR_5721 :Cloudy +STR_5722 :Rain +STR_5723 :Heavy Rain +STR_5724 :Thunderstorm +STR_5725 :{BLACK}Change weather to: +STR_5726 :Sets the current weather in the park +STR_5727 :Scaling quality: +STR_5731 :Linear +# tooltip for tab in options window +STR_5734 :Rendering +STR_5735 :Network Status +STR_5736 :Player +STR_5737 :Closed, {COMMA16} person still on ride +STR_5738 :Closed, {COMMA16} people still on ride +STR_5739 :{WINDOW_COLOUR_2}Customers on ride: {BLACK}{COMMA16} +STR_5740 :Never-ending marketing campaigns +STR_5741 :Marketing campaigns never end +STR_5742 :Authenticating … +STR_5743 :Connecting … +STR_5744 :Resolving … +STR_5745 :Network desync detected +STR_5746 :Disconnected +STR_5747 :Disconnected: {STRING} +STR_5748 :Kicked +STR_5749 :Get out of the server! +STR_5750 :Connection Closed +STR_5751 :No Data +STR_5752 :{OUTLINE}{RED}{STRING} has disconnected +STR_5753 :{OUTLINE}{RED}{STRING} has disconnected ({STRING}) +STR_5754 :Bad Player Name +STR_5755 :Incorrect Software Version (Server is using {STRING}) +STR_5756 :Bad Password +STR_5757 :Server Full +STR_5758 :{OUTLINE}{GREEN}{STRING} has joined the game +STR_5759 :Downloading map … ({INT32} / {INT32}) KiB +STR_5760 :Hong Kong Dollars (HK$) +STR_5761 :New Taiwan Dollar (NT$) +STR_5762 :Chinese Yuan (CN¥) +STR_5763 :All files +STR_5764 :Invalid ride type +STR_5765 :Cannot edit rides of invalid type +STR_5766 :Hungarian Forint (Ft) +STR_5767 :Income +STR_5768 :Total customers +STR_5769 :Total profit +STR_5770 :Customers per hour +STR_5771 :Running cost +STR_5772 :Age +STR_5773 :Total customers: {COMMA32} +STR_5774 :Total profit: {CURRENCY2DP} +STR_5775 :Customers: {COMMA32} per hour +STR_5776 :Built: This Year +STR_5777 :Built: Last Year +STR_5778 :Built: {COMMA16} Years Ago +STR_5779 :Income: {CURRENCY2DP} per hour +STR_5780 :Running cost: {CURRENCY2DP} per hour +STR_5781 :Running cost: Unknown +STR_5782 :You are now connected. Press ‘{STRING}’ to chat. +STR_5783 :{WINDOW_COLOUR_2}Scenario Locked +STR_5784 :{BLACK}Complete earlier scenarios to unlock this scenario. +STR_5785 :Can’t rename group… +STR_5786 :Invalid group name +STR_5787 :{COMMA32} players online +STR_5788 :Default inspection interval: +STR_5789 :Disable lightning effect +STR_5790 :Toggles RCT1-style pricing{NEWLINE}(e.g. both ride price and entrance price) +STR_5791 :Sets the reliability of all rides to 100%{NEWLINE}and resets their built date to “this year” +STR_5792 :Fixes all broken down rides +STR_5793 :Resets the crash history of a ride,{NEWLINE}so guests will not complain that its unsafe +STR_5794 :Some scenarios disable editing of some{NEWLINE}of the rides already in the park.{NEWLINE}This cheat lifts the restriction +STR_5795 :Guests ride every attraction in the park{NEWLINE}even if the intensity is extremely high +STR_5796 :Forces the park to close or open +STR_5797 :Disables weather changes and{NEWLINE}freezes the selected weather +STR_5798 :Allows building actions in pause mode +STR_5799 :Disables ride breakdowns and crashes due to brake failure +STR_5800 :Prevents rides from breaking down +STR_5801 :Disable littering +STR_5802 :Stops guests from littering and vomiting +STR_5803 :Rotate selected map element +STR_5804 :Mute sound +STR_5805 :If checked, your server will be added to the{NEWLINE}public server list so everyone can find it +STR_5806 :Toggle windowed mode +STR_5807 :{WINDOW_COLOUR_2}Number of rides: {BLACK}{COMMA16} +STR_5808 :{WINDOW_COLOUR_2}Number of shops and stalls: {BLACK}{COMMA16} +STR_5809 :{WINDOW_COLOUR_2}Number of information kiosks and other facilities: {BLACK}{COMMA16} +STR_5810 :Disable vehicle limits +STR_5811 :If checked, you can have up to{NEWLINE}255 cars per train and 31{NEWLINE}trains per ride +STR_5812 :Show multiplayer window +STR_5813 :“{STRING}” +STR_5814 :{WINDOW_COLOUR_1}“{STRING}” + +#tooltips +STR_5815 :Display FPS counter in-game +STR_5816 :Sets ratio to scale the game by.{NEWLINE}Most useful when playing in{NEWLINE}high resolutions +STR_5817 :Sets UI scaling type. Requires hardware display to be used.{NEWLINE}Linear scaling is smooth, but blurry. Smooth Nearest Neighbour scaling is sharp, but can cause a minor performance hit. +STR_5819 :[Requires hardware display]{NEWLINE}Pause the game if Steam{NEWLINE}in-game overlay is opened +STR_5820 :Minimise the game if focus is{NEWLINE}lost while in fullscreen mode +STR_5822 :Cycle between day and night.{NEWLINE}Full cycle takes one in-game month +STR_5823 :Display banners in uppercase (RCT1 behaviour) +STR_5824 :Disables lightning effect{NEWLINE}during a thunderstorm +STR_5825 :Keep the mouse cursor in the window +STR_5826 :Invert right mouse dragging of the viewport +STR_5827 :Sets the colour scheme used for the GUI +STR_5828 :Changes what measurement format is used for distances, speed, etc. +STR_5829 :Changes what currency format is used. Purely visual, there is no exact exchange rate implementation +STR_5830 :Changes what language is used +STR_5831 :Changes what format the{NEWLINE}temperature is displayed in +STR_5832 :Show height as generic units instead of measurement format set under “Distance and Speed” +STR_5833 :Changes what date format is used +STR_5834 :Select which audio device OpenRCT2 will use +STR_5835 :Mute the game if the window loses focus +STR_5836 :Select music to use on the main menu.{NEWLINE}Selecting RCT1 theme requires that you copy ‘data/css17.dat’ from your RCT1 game folder to ‘data/css50.dat’ in your RCT2 folder, or set the path to RCT1 in the Miscellaneous tab. +STR_5837 :Create and manage custom UI themes +STR_5838 :Show a separate button for the finance window in the toolbar +STR_5839 :Show a separate button for the research and development window in the toolbar +STR_5840 :Show a separate button for the cheats window in the toolbar +STR_5841 :Show a separate button for the recent news window in the toolbar +STR_5842 :Sort scenarios into tabs by their difficulty (RCT2 behaviour) or their source game (RCT1 behaviour) +STR_5843 :Enables progressive unlocking of scenarios (RCT1 behaviour) +STR_5844 :Stay connected to a multiplayer server{NEWLINE}even if a desync or error occurs +STR_5845 :Adds a button for{NEWLINE}debugging tools to the toolbar.{NEWLINE}Enables keyboard shortcut for developer console +STR_5846 :Set how often OpenRCT2 automatically saves +STR_5847 :Select park sequence used on the title screen.{NEWLINE}Title sequences from RCT1/2 require imported scenarios to function +STR_5848 :Create and manage custom title sequences +STR_5849 :Automatically place{NEWLINE}newly hired staff members +STR_5851 :Sets the default inspection interval{NEWLINE}on newly built rides +STR_5853 :Toggle sound effects on/off +STR_5854 :Toggle ride music on/off +STR_5855 :Set regular fullscreen, borderless fullscreen{NEWLINE}or windowed display +STR_5856 :Set game resolution when in fullscreen mode +STR_5857 :Game options +STR_5858 :Use GPU for displaying instead of CPU. Improves compatibility with screen capture software. May slightly decrease performance. +STR_5859 :Enables frame tweening for visually{NEWLINE}smoother gameplay. When disabled,{NEWLINE}the game will run at 40 FPS. +STR_5860 :Toggle original/decompiled track drawing +STR_5861 :Key verification failure. +STR_5862 :Block unknown players. +STR_5863 :Only allow players with known keys to join. +STR_5864 :This server only allows whitelisted players to connect. +STR_5865 :Log chat history +STR_5866 :Logs all chat history to files in your user directory. +STR_5867 :{WINDOW_COLOUR_2}Provider Name: {BLACK}{STRING} +STR_5868 :{WINDOW_COLOUR_2}Provider E-mail: {BLACK}{STRING} +STR_5869 :{WINDOW_COLOUR_2}Provider Website: {BLACK}{STRING} +STR_5870 :Show server information +STR_5871 :Disable plants withering +STR_5872 :Disable plant ageing such that they don’t wilt. +STR_5873 :Allow chain lifts on all track pieces +STR_5874 :Allows any piece of track to be made into a chain lift +STR_5875 :Drawing Engine: +STR_5876 :The engine to use for drawing the game. +STR_5877 :Software +STR_5878 :Software (hardware display) +STR_5879 :OpenGL (experimental) +STR_5880 :Selected only +STR_5881 :Non-selected only +STR_5882 :Custom currency +STR_5883 :Custom currency configuration +STR_5884 :{WINDOW_COLOUR_2}Exchange rate: +STR_5885 :{WINDOW_COLOUR_2}is equivalent to {COMMA32} GBP (£) +STR_5886 :{WINDOW_COLOUR_2}Currency symbol: +STR_5887 :Prefix +STR_5888 :Suffix +STR_5889 :Custom currency symbol +STR_5890 :Enter the currency symbol to display +STR_5891 :Default +STR_5892 :Go to the default directory +STR_5893 :Exchange Rate +STR_5894 :Enter the exchange rate +STR_5895 :Save Track +STR_5896 :Track save failed! +STR_5898 :{BLACK}Can’t load the track, the file might be {newline}corrupted, broken or missing! +STR_5899 :Toggle paint debug window +STR_5900 :Use original drawing code +STR_5901 :Show segment heights +STR_5902 :Show bounding boxes +STR_5903 :Show paint debug window +STR_5904 :Reset date +STR_5905 :A map generation tool that automatically creates a custom landscape +STR_5906 :Zoom to cursor position +STR_5907 :When enabled, zooming in will centre around the cursor, as opposed to the screen centre. +STR_5908 :Allow arbitrary ride type changes +STR_5909 :Allows changing ride type freely. May cause crashes. +STR_5910 :Apply +STR_5911 :Nhìn xuyên đường đi +STR_5912 :See-through paths toggle +STR_5913 :Chat +STR_5914 :Unknown ride +STR_5915 :Player +STR_5916 :{COMMA16} player +STR_5917 :{COMMA16} players +STR_5918 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16} +STR_5919 :{COMMA16} +STR_5920 :Render weather effects +STR_5921 :If enabled, rain and gloomy colours will be rendered during storms. +STR_5922 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}Max {STRINGID} +STR_5923 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}Max {COMMA16} {STRINGID} per train +STR_5924 :Surface details +STR_5925 :Path details +STR_5926 :Track details +STR_5927 :Scenery details +STR_5928 :Entrance details +STR_5929 :Wall details +STR_5930 :Large scenery details +STR_5931 :Banner details +STR_5932 :Corrupt element details +STR_5933 :Properties +STR_5934 :{WINDOW_COLOUR_2}Terrain texture: {BLACK}{STRINGID} +STR_5935 :{WINDOW_COLOUR_2}Terrain edge: {BLACK}{STRINGID} +STR_5936 :{WINDOW_COLOUR_2}Land ownership: {BLACK}{STRINGID} +STR_5937 :Not owned and not for sale +STR_5938 :{WINDOW_COLOUR_2}Water level: {BLACK}{COMMA16} +STR_5939 :Remove park fences +STR_5940 :Restore park fences +STR_5941 :{WINDOW_COLOUR_2}Base height: +STR_5942 :{WINDOW_COLOUR_2}Path name: {BLACK}{STRINGID} +STR_5943 :{WINDOW_COLOUR_2}Additions: {BLACK}{STRINGID} +STR_5944 :{WINDOW_COLOUR_2}Additions: {BLACK}None +STR_5945 :{WINDOW_COLOUR_2}Connected edges: +STR_5946 :{WINDOW_COLOUR_2}Ride type: {BLACK}{STRINGID} +STR_5947 :{WINDOW_COLOUR_2}Ride ID: {BLACK}{COMMA16} +STR_5948 :{WINDOW_COLOUR_2}Ride name: {BLACK}{STRINGID} +STR_5949 :{WINDOW_COLOUR_2}Chain lift +STR_5950 :{WINDOW_COLOUR_2}Apply changes to entire track piece +STR_5951 :{WINDOW_COLOUR_2}Track piece ID: {BLACK}{COMMA16} +STR_5952 :{WINDOW_COLOUR_2}Sequence number: {BLACK}{COMMA16} +STR_5953 :Sort the map elements on the current tile based on their base height. +STR_5954 :{WINDOW_COLOUR_2}Scenery age: {BLACK}{COMMA16} +STR_5955 :{WINDOW_COLOUR_2}Quadrant placement: {BLACK}{STRINGID} +STR_5956 :Southwest +STR_5957 :Northwest +STR_5958 :Northeast +STR_5959 :Southeast +STR_5960 :{WINDOW_COLOUR_2}Quadrant placement: +STR_5961 :{WINDOW_COLOUR_2}Entry index: {BLACK}{COMMA16} +STR_5962 :{WINDOW_COLOUR_2}Collision detection: +STR_5963 :{WINDOW_COLOUR_2}Raised Corners: +STR_5964 :{WINDOW_COLOUR_2}Diagonal +STR_5965 :{WINDOW_COLOUR_2}Entrance type: {BLACK}{STRINGID} +STR_5966 :{WINDOW_COLOUR_2}Park entrance part: {BLACK}{STRINGID} +STR_5967 :Middle +STR_5968 :Left +STR_5969 :Right +STR_5970 :{WINDOW_COLOUR_2}Entrance ID: {BLACK}{COMMA16} +STR_5971 :{WINDOW_COLOUR_2}Exit ID: {BLACK}{COMMA16} +STR_5972 :{WINDOW_COLOUR_2}Ride ID: {BLACK}{COMMA16} +STR_5973 :Clamp to next +STR_5974 :Changes the base- and clearance height so that it’s at the same as the next element on the current tile. Doing this makes it easier to build on this tile. +STR_5975 :Slope: +STR_5976 :Flat +STR_5977 :Right side up +STR_5978 :Left side up +STR_5979 :{WINDOW_COLOUR_2}Wall type: {BLACK}{COMMA16} +STR_5980 :{WINDOW_COLOUR_2}Banner text: {BLACK}{STRINGID} +STR_5981 :{WINDOW_COLOUR_2}Not a banner +STR_5982 :{WINDOW_COLOUR_2}Large scenery type: {BLACK}{COMMA16} +STR_5983 :{WINDOW_COLOUR_2}Large scenery piece ID: {BLACK}{COMMA16} +STR_5984 :Blocked paths: +STR_5985 :New folder +STR_5986 :Type the name of the new folder. +STR_5987 :Unable to create folder +STR_5988 :No remaining land rights for sale +STR_5989 :No remaining construction rights for sale +STR_5990 :No remaining land rights or construction rights for sale +STR_5991 :Can’t paste element… +STR_5992 :The map elements limit has been reached +STR_5993 :Copy selected element +STR_5994 :Paste copied element +STR_5995 :Booster +STR_5996 :Booster speed +STR_5997 :Add/set money +STR_5998 :Add money +STR_5999 :Set money +STR_6000 :Enter new value +STR_6001 :Enable lighting effects (experimental) +STR_6002 :Lamps and rides will be lit up at night.{NEWLINE}Requires rendering engine to be set to hardware display. +STR_6003 :Cut-away View +STR_6004 :Cut-away View +STR_6005 :Enable cut-away view +STR_6006 :Cut-away view only displays map elements at or below the cut height (vertical clipping) and in the selected area (horizontal clipping). +STR_6007 :Cut height +STR_6008 :Click to toggle raw value<->value in measurement units +STR_6009 :Select cut height +STR_6010 :{COMMA2DP32}m +STR_6011 :{COMMA1DP16}ft +STR_6012 :{COMMA1DP16} +STR_6013 :Guests will only pay the ticket to enter the park and services.{NEWLINE}Ride entry is free. +STR_6014 :Guests will only pay entrance tickets for rides and services.{NEWLINE}They won’t pay anything to enter the park. +STR_6015 :Sloped +STR_6016 :Modify Tile +STR_6017 :Please slow down +STR_6018 :Construction - Turn left +STR_6019 :Construction - Turn right +STR_6020 :Construction - Use default track +STR_6021 :Construction - Slope down +STR_6022 :Construction - Slope up +STR_6023 :Construction - Toggle chain lift +STR_6024 :Construction - Bank left +STR_6025 :Construction - Bank right +STR_6026 :Construction - Previous track +STR_6027 :Construction - Next track +STR_6028 :Construction - Build current +STR_6029 :Construction - Demolish current +STR_6030 :Scenery picker. Click any scenery on the map to select the same piece for construction. +STR_6031 :Server Description: +STR_6032 :Server Greeting: +STR_6033 :Path to RCT1 installation: +STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6035 :Please select your RCT1 directory +STR_6036 :Clear +STR_6037 :The selected folder does not contain a valid RollerCoaster Tycoon 1 install. +STR_6038 :If you have RCT1 installed, set this option to its directory to load scenarios, music, etc. +STR_6039 :Quick demolish ride +STR_6040 :Edit Scenario Options +STR_6041 :{BLACK}No mechanics are hired! +STR_6042 :Load height map +STR_6043 :Select height map +STR_6044 :Smooth height map +STR_6045 :Strength +STR_6046 :Normalise height map +STR_6047 :Smooth tiles +STR_6048 :Height map error +STR_6049 :Error reading PNG +STR_6050 :Error reading bitmap +STR_6051 :The width and height need to match +STR_6052 :The heightmap is too big, and will be cut off +STR_6053 :The heightmap cannot be normalised +STR_6054 :Only 24-bit bitmaps are supported +STR_6055 :OpenRCT2 Heightmap File +STR_6056 :Mute +STR_6057 :Show a separate button for the Mute Option in the toolbar +STR_6058 :Mute +STR_6059 :» +STR_6060 :Show guest purchases as animation +STR_6061 :Show animated money effect{NEWLINE}when guests make purchases. +STR_6062 :{OUTLINE}{GREEN}+ {CURRENCY2DP} +STR_6063 :{OUTLINE}{RED}- {CURRENCY2DP} +STR_6064 :Own all land +STR_6065 :Log user actions +STR_6066 :Logs all user actions to files in your user directory. +STR_6067 :Server started. +STR_6068 :Server shutdown. +STR_6069 :{STRING} was kicked from the server by {STRING}. +STR_6070 :{STRING} was set to group ‘{STRING}’ by {STRING}. +STR_6071 :{STRING} created new player group ‘{STRING}’. +STR_6072 :{STRING} deleted player group ‘{STRING}’. +STR_6073 :{STRING} edited permissions for player group ‘{STRING}’. +STR_6074 :{STRING} changed player group name from ‘{STRING}’ to ‘{STRING}’. +STR_6075 :{STRING} changed the default player group to ‘{STRING}’. +STR_6076 :{STRING} used/toggled cheat ‘{STRING}’. +STR_6077 :Add Money +STR_6078 :{STRING} created ride ‘{STRING}’. +STR_6079 :{STRING} demolished ride ‘{STRING}’. +STR_6080 :{STRING} changed the appearance of ride ‘{STRING}’. +STR_6081 :{STRING} changed the status of ride ‘{STRING}’ to closed. +STR_6082 :{STRING} changed the status of ride ‘{STRING}’ to open. +STR_6083 :{STRING} changed the status of ride ‘{STRING}’ to testing. +STR_6084 :{STRING} changed the vehicle settings of ride ‘{STRING}’. +STR_6085 :{STRING} changed the ride settings of ride ‘{STRING}’. +STR_6086 :{STRING} renamed the ride ‘{STRING}’ to ‘{STRING}’. +STR_6087 :{STRING} changed the price of ride ‘{STRING}’ to {STRING} +STR_6088 :{STRING} changed the secondary price of ride ‘{STRING}’ to {STRING} +STR_6089 :{STRING} renamed the park from ‘{STRING}’ to ‘{STRING}’. +STR_6090 :{STRING} opened the park. +STR_6091 :{STRING} closed the park. +STR_6092 :{STRING} changed the park entrance fee to {STRING} +STR_6093 :{STRING} placed new scenery. +STR_6094 :{STRING} removed scenery. +STR_6095 :{STRING} edited scenery. +STR_6096 :{STRING} set sign name to ‘{STRING}’. +STR_6097 :{STRING} placed a track of ride ‘{STRING}’. +STR_6098 :{STRING} removed a track of ride. +STR_6099 :You connected to the server. +STR_6100 :You disconnected from the server. +STR_6101 :Rides don’t decrease in value over time +STR_6102 :The value of a ride won’t decrease over time, so guests will not suddenly think that a ride is too expensive. +STR_6103 :This option is disabled during network play. +STR_6105 :Hypercoaster +STR_6107 :Monster Trucks +STR_6109 :Hyper-Twister +STR_6111 :Classic Mini Roller Coaster +STR_6113 :A tall non-inverting roller coaster with large drops, high speed, and comfortable trains with only lap bar restraints +STR_6115 :Powered giant 4 x 4 trucks which can climb steep slopes +STR_6116 :Wide roller coaster trains glide along smooth steel track, travelling through a variety of inversions +STR_6119 :A cheap and easy to build roller coaster, but with a limited height +STR_6120 :{BABYBLUE}New vehicle now available for {STRINGID}:{NEWLINE}{STRINGID} +STR_6121 :Extends the park’s land rights all the way to the edges of the map +STR_6122 :There are not enough roller coasters in this scenario! +STR_6123 :Error loading objects for park +STR_6124 :Object name +STR_6125 :Object type +STR_6126 :Unknown type +STR_6127 :File: {STRING} +STR_6128 :The file could not be loaded as some of the objects referenced in it are missing or corrupt. A list of these objects is given below. +STR_6129 :Copy +STR_6130 :Copy all +STR_6131 :Object source +STR_6132 :Ignore research status +STR_6133 :Access rides and scenery that have not yet been invented +STR_6134 :Xóa cảnh quan +STR_6135 :Client sent invalid request +STR_6136 :Server sent invalid request +STR_6137 :OpenRCT2, a free and open source clone of Roller Coaster Tycoon 2. +STR_6138 :OpenRCT2 is the work of many authors, a full list can be found in “contributors.md”. For more information, visit http://github.com/OpenRCT2/OpenRCT2 +STR_6139 :All product and company names belong to their respective holders. Use of them does not imply any affiliation with or endorsement by them. +STR_6140 :Changelog… +STR_6141 :RCT1 Bottom Toolbar +STR_6142 :{WINDOW_COLOUR_2}Track name: {BLACK}{STRING} +STR_6143 :{WINDOW_COLOUR_2}Ride type: {BLACK}{STRINGID} +STR_6144 :Show dirty visuals +STR_6145 :Set speed limit for boosters +STR_6146 :Enable all drawable track pieces +STR_6147 :Enables all track pieces the ride type is capable of in the construction window, regardless of whether the vehicle supports them. +STR_6148 :Connecting to master server… +STR_6149 :Unable to connect to master server +STR_6150 :Invalid response from master server (no JSON number) +STR_6151 :Master server failed to return servers +STR_6152 :Invalid response from master server (no JSON array) +STR_6153 :Pay to enter park / Pay per ride +STR_6154 :For security reasons, it is not recommended to run OpenRCT2 with elevated permissions. +STR_6155 :Neither KDialog nor Zenity are installed. Please install one, or configure from the command line. +STR_6156 :Name is reserved +STR_6157 :Console +STR_6158 :Failed to load this file…{NEWLINE}Incompatible RCTC version: {COMMA16} +STR_6159 :Smooth Nearest Neighbour +STR_6160 :{WINDOW_COLOUR_2}Available vehicles: {BLACK}{STRING} +STR_6161 :Gridlines display toggle +STR_6162 :Spinning Wild Mouse +STR_6163 :Mouse shaped cars speed through tight corners and short drops, gently spinning around to disorientate the riders +STR_6164 :{WHITE}❌ +STR_6165 :Use vertical sync +STR_6166 :Synchronises each frame displayed to the monitor’s refresh rate, preventing screen tearing. +STR_6167 :Advanced +STR_6168 :Title Sequence +STR_6169 :Scenario selection +STR_6170 :Interface Tweaks +STR_6171 :Search +STR_6172 :Search +STR_6173 :Please provide the name to search: +STR_6174 :Load Save +STR_6175 :Load Scenario +STR_6176 :Scenario to load: +STR_6177 :Load{MOVE_X}{87}No scenario selected +STR_6178 :Load{MOVE_X}{87}{RED}Missing scenario +STR_6179 :Select +STR_6180 :No scenario selected +STR_6181 :{RED}Missing scenario +STR_6182 :Follow{MOVE_X}{87}{STRING} +STR_6183 :Follow{MOVE_X}{87}No sprite selected +STR_6184 :Follow Sprite +STR_6185 :Select Sprite +STR_6186 :No sprite selected +STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6188 :Vomit +STR_6189 :Duck +STR_6190 :You cannot select a sprite while the main title screen is active. +STR_6191 :Surface +STR_6192 :Wall +STR_6193 :{COMMA16} guest +STR_6194 :{INLINE_SPRITE}{11}{20}{00}{00}{COMMA16} guest +STR_6195 :{INLINE_SPRITE}{10}{20}{00}{00}{COMMA16} guest +STR_6196 :{BLACK}Year: +STR_6197 :{BLACK}Month: +STR_6198 :{BLACK}Day: +STR_6199 :Set date +STR_6200 :Reset date +STR_6201 :{MONTH} +STR_6202 :Virtual floor style: +STR_6203 :When enabled, a virtual floor will be rendered when holding Ctrl or Shift to ease vertical placement of elements. +STR_6215 :Construction +STR_6216 :Operation +STR_6217 :Ride / track availability +STR_6218 :OpenRCT2 Official +STR_6219 :Highlight path issues +STR_6220 :Make Usable +STR_6221 :This will set the ride’s known entrance or exit location to the currently selected tile. Only one entrance and exit location can be made usable per station. +STR_6222 :Can’t place guest entry point here… +STR_6223 :Must be outside park boundaries! +STR_6224 :{STRING} placed a guest entry point. +STR_6225 :Not supported with OpenGL renderer +STR_6226 :Enable early scenario completion +STR_6227 :Triggers scenario completion when all scenario goals are met before the target date. +STR_6228 :Scenario Options +STR_6229 :{WINDOW_COLOUR_2}{STRINGID}: {STRINGID} +STR_6230 :{BLACK}{STRINGID}: +STR_6231 :{WINDOW_COLOUR_2}{STRINGID}: {MOVE_X}{185}{STRINGID} +STR_6232 :Frozen +STR_6233 :Cut-away view +STR_6234 :Highlight path issues +STR_6235 :Server Information +STR_6236 :Players +STR_6237 :Groups +STR_6238 :Multiplayer Options +STR_6239 :Vertical Clipping +STR_6240 :Horizontal Clipping +STR_6241 :Select area +STR_6242 :Clear selection +STR_6243 :Refurbishes the ride,{NEWLINE}makes it like new +STR_6244 :Can’t refurbish ride… +STR_6245 :Ride doesn’t need refurbishing +STR_6246 :Refurbish +STR_6247 :Refurbish ride/attraction +STR_6248 :{WINDOW_COLOUR_1}Do you want to refurbish {STRINGID} for {CURRENCY}? +STR_6249 :{WINDOW_COLOUR_1}Do you want to refurbish {STRINGID}? +STR_6250 :{WINDOW_COLOUR_1}Are you sure you want to completely demolish {STRINGID} and gain {CURRENCY}? +STR_6251 :Ride is not empty yet +STR_6255 :URL is not valid +STR_6256 :Rendering effects +STR_6257 :Glassy (translucent) +STR_6258 :Clear (transparent) +STR_6259 :Disabled +STR_6260 :Show blocked tiles +STR_6261 :Show wide paths +STR_6262 :Master volume +STR_6263 :Toggle all sound on/off +STR_6264 :Always use system file browser +STR_6265 :When enabled, your operating system’s file browser will be used instead of OpenRCT2’s. +STR_6266 :Open custom content folder +STR_6267 :Open tile inspector +STR_6268 :Advance to next tick +STR_6269 :Invalid climate ID +STR_6270 :Terrain Surfaces +STR_6271 :Terrain Edges +STR_6272 :Stations +STR_6273 :Music +STR_6274 :Can’t set colour scheme… +STR_6275 :{WINDOW_COLOUR_2}Station style: +STR_6276 :{RED}{STRINGID} has guests getting stuck, possibly due to invalid ride type or operating mode. +STR_6277 :{WINDOW_COLOUR_2}Station index: {BLACK}{STRINGID} +STR_6278 :Autosave amount +STR_6279 :Number of autosaves that should be kept +STR_6280 :Chat +STR_6281 :Show a separate button for the Chat window in the toolbar +STR_6282 :Chat +STR_6283 :Chat not available at this time. Are you connected to a server? +STR_6293 :B +STR_6294 :KiB +STR_6295 :MiB +STR_6296 :GiB +STR_6297 :TiB +STR_6298 :{STRING}/sec +STR_6299 :Download all +STR_6300 :Download all missing objects if available online. +STR_6301 :Copy the selected object name to the clipboard. +STR_6302 :Copy the entire list of missing objects to the clipboard. +STR_6303 :Downloading object ({COMMA16} / {COMMA16}): [{STRING}] +STR_6304 :Open scenery picker +STR_6305 :Multithreading +STR_6306 :Experimental option to use multiple threads to render, may cause instability. +STR_6307 :Colour scheme: {BLACK}{STRINGID} +STR_6308 :{TOPAZ}“{STRINGID}{OUTLINE}{TOPAZ}”{NEWLINE}{STRINGID} +STR_6309 :Reconnect +STR_6310 :{WINDOW_COLOUR_2}Position: {BLACK}{INT32} {INT32} {INT32} +STR_6311 :{WINDOW_COLOUR_2}Next: {BLACK}{INT32} {INT32} {INT32} +STR_6312 :(surface) +STR_6313 :(slope {INT32}) +STR_6314 :{WINDOW_COLOUR_2}Dest: {BLACK}{INT32}, {INT32} tolerance {INT32} +STR_6315 :{WINDOW_COLOUR_2}Pathfind Goal: {BLACK}{INT32}, {INT32}, {INT32} dir {INT32} +STR_6316 :{WINDOW_COLOUR_2}Pathfind history: +STR_6317 :{BLACK}{INT32}, {INT32}, {INT32} dir {INT32} +STR_6318 :Network desync detected.{NEWLINE}Log file: {STRING} +STR_6319 :{WINDOW_COLOUR_2}Block Brake Closed +STR_6320 :{WINDOW_COLOUR_2}Indestructible +STR_6321 :{WINDOW_COLOUR_2}Addition is broken +STR_6322 :{WINDOW_COLOUR_2}Sprite Id: {BLACK}{INT32} +STR_6323 :Simulating +STR_6324 :Simulate +STR_6325 :Simulate ride/attraction +STR_6326 :Can’t simulate {POP16}{POP16}{POP16}{STRINGID}… +STR_6327 :Transparent background for giant screenshots +STR_6328 :With this option enabled, giant screenshots will have a transparent background instead of the default black colour. +STR_6329 :{STRING}{STRINGID} +STR_6330 :Downloading [{STRING}] from {STRING} ({COMMA16} / {COMMA16}) +STR_6331 :Create ducks +STR_6332 :Remove ducks +STR_6333 :Increase scale factor +STR_6334 :Decrease scale factor +STR_6335 :Tile Inspector: Insert corrupt element +STR_6336 :Tile Inspector: Copy element +STR_6337 :Tile Inspector: Paste element +STR_6338 :Tile Inspector: Delete element +STR_6339 :Tile Inspector: Move element up +STR_6340 :Tile Inspector: Move element down +STR_6341 :Tile Inspector: Increase X coordinate +STR_6342 :Tile Inspector: Decrease X coordinate +STR_6343 :Tile Inspector: Increase Y coordinate +STR_6344 :Tile Inspector: Decrease Y coordinate +STR_6345 :Tile Inspector: Increase element height +STR_6346 :Tile Inspector: Decrease element height +STR_6347 :Path additions cannot be placed on level crossings! +STR_6348 :Remove level crossing first! +STR_6349 :Random title sequence +STR_6350 :Scatter +STR_6351 :Scenery Scatter Tool +STR_6352 :Density +STR_6353 :Low density +STR_6354 :Medium density +STR_6355 :High density +STR_6356 :Spawns ducks if park contains water +STR_6357 :Removes all ducks from the map +STR_6358 :Page {UINT16} +STR_6359 :{POP16}{POP16}Page {UINT16} +STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6361 :Enable lighting effects on rides (experimental) +STR_6362 :If enabled, vehicles for tracked rides will be lit up at night. +STR_6363 :Copied text to clipboard +STR_6364 :{RED}{COMMA16} person has died in an accident on {STRINGID} +STR_6365 :Ride casualties +STR_6366 :Stuck or stalled vehicles +STR_6367 :{WINDOW_COLOUR_2}Animation frame: +STR_6368 :For compatibility reasons, it is not recommended to run OpenRCT2 with Wine. OpenRCT2 has native support for macOS, Linux, FreeBSD and OpenBSD. +STR_6369 :Allow building track at invalid heights +STR_6370 :Allows placing track pieces at any height interval +STR_6371 :The specified path contains a RollerCoaster Tycoon 1 installation, but the “csg1i.dat” file is missing. This file needs to be copied from the RollerCoaster Tycoon 1 CD to the “Data” folder of the RollerCoaster Tycoon 1 install on your hard drive. +STR_6372 :The specified path contains a RollerCoaster Tycoon 1 installation, but this version is not suitable. OpenRCT2 needs a Loopy Landscapes or RCT Deluxe install in order to use RollerCoaster Tycoon 1 assets. +STR_6373 :Toggle clearance checks +STR_6374 :C +STR_6375 :Unknown Ride +STR_6376 :{WINDOW_COLOUR_2}Ride vehicle:{NEWLINE}{BLACK}{STRINGID} for {STRINGID} +STR_6377 :{WINDOW_COLOUR_2}Type: {BLACK}{STRINGID} for {STRINGID} +STR_6378 :Receiving objects list: {INT32} / {INT32} +STR_6379 :Received invalid data +STR_6380 :Update available! +STR_6381 :Join OpenRCT2 Discord! +STR_6382 :Newer release of OpenRCT2 is available: {STRING}! +STR_6383 :Open download page +STR_6384 :Snow +STR_6385 :Heavy Snow +STR_6386 :Blizzard +STR_6387 :Can’t lower element here… +STR_6388 :Can’t raise element here… +STR_6389 :Invalid clearance +STR_6390 :OpenRCT2 needs files from the original RollerCoaster Tycoon 2 in order to work. Please select the directory where you installed RollerCoaster Tycoon 2. +STR_6391 :Please select your RCT2 directory +STR_6392 :Could not find {STRING} at this path. +STR_6393 :Objective Selection +STR_6394 :Objective +STR_6395 :Maintenance +STR_6396 :Disable screensaver and monitor power saving +STR_6397 :If checked, screensaver and other monitor power saving features will be inhibited while OpenRCT2 is running. +STR_6398 :File contains unsupported ride types. Please update to a newer version of OpenRCT2. +STR_6399 :OpenRCT2 needs files from the original RollerCoaster Tycoon 2 in order to work. Please set the “game_path” variable in config.ini to the directory where you installed RollerCoaster Tycoon 2, then restart OpenRCT2. +STR_6400 :I have the GOG offline installer for RollerCoaster Tycoon 2 downloaded, but it is not installed +STR_6401 :I have RollerCoaster Tycoon 2 installed already +STR_6402 :OpenRCT2 Data Setup +STR_6403 :Select which applies best to you +STR_6404 :Please select the GOG RollerCoaster Tycoon 2 installer. +STR_6405 :Select GOG Installer +STR_6406 :GOG RollerCoaster Tycoon 2 Installer +STR_6407 :This may take a few minutes. +STR_6408 :Please install “innoextract” to extract GOG Installer, then restart OpenRCT2. +STR_6409 :The selected file is not the offline GOG Installer for RollerCoaster Tycoon 2. You may have downloaded the GOG Galaxy downloader stub or selected the wrong file. +STR_6410 :Zoom in/out +STR_6411 :Show buttons for zooming in and out in the toolbar +STR_6412 :NumPad Enter +STR_6413 :Shift +STR_6414 :L Shift +STR_6415 :R Shift +STR_6416 :Ctrl +STR_6417 :L Ctrl +STR_6418 :R Ctrl +STR_6419 :Alt +STR_6420 :L Alt +STR_6421 :R Alt +STR_6422 :Cmd +STR_6423 :L Cmd +STR_6424 :R Cmd +STR_6425 :Joy Left +STR_6426 :Joy Right +STR_6427 :Joy Up +STR_6428 :Joy Down +STR_6429 :Joy {INT32} +STR_6430 :LMB +STR_6431 :RMB +STR_6432 :Mouse {INT32} +STR_6433 :Remove +STR_6434 :Remove all bindings for this shortcut. + +############# +# Scenarios # +################ +# RCT Original # +################ + +STR_SCNR :Forest Frontiers +STR_PARK :Forest Frontiers +STR_DTLS :Deep in the forest, build a thriving theme park in a large cleared area + + +STR_SCNR :Dynamite Dunes +STR_PARK :Dynamite Dunes +STR_DTLS :Built in the middle of the desert, this theme park contains just one roller coaster but has space for expansion + + +STR_SCNR :Leafy Lake +STR_PARK :Leafy Lake +STR_DTLS :Starting from scratch, build a theme park around a large lake + + +STR_SCNR :Diamond Heights +STR_PARK :Diamond Heights +STR_DTLS :Diamond Heights is already a successful theme park with great rides - develop it to double its value + + +STR_SCNR :Evergreen Gardens +STR_PARK :Evergreen Gardens +STR_DTLS :Convert the beautiful Evergreen Gardens into a thriving theme park + + +STR_SCNR :Bumbly Beach +STR_PARK :Bumbly Beach +STR_DTLS :Develop Bumbly Beach’s small amusement park into a thriving theme park + + +STR_SCNR :Trinity Islands +STR_PARK :Trinity Islands +STR_DTLS :Several islands form the basis for this new park + + +STR_SCNR :Katie’s Dreamland +STR_PARK :Katie’s Dreamland +STR_DTLS :A small theme park with a few rides and room for expansion. Your aim is to double the park value. + + +STR_SCNR :Pokey Park +STR_PARK :Pokey Park +STR_DTLS :A small, cramped amusement park which requires major expansion + + +STR_SCNR :White Water Park +STR_PARK :White Water Park +STR_DTLS :A park with some excellent water-based rides requires expansion + + +STR_SCNR :Millennium Mines +STR_PARK :Millennium Mines +STR_DTLS :Convert a large abandoned mine from a tourist attraction into a theme park + + +STR_SCNR :Karts & Coasters +STR_PARK :Karts & Coasters +STR_DTLS :A large park hidden in the forest, with only go-kart tracks and wooden roller coasters + + +STR_SCNR :Mel’s World +STR_PARK :Mel’s World +STR_DTLS :This theme park has some well-designed modern rides, but plenty of space for expansion + + +STR_SCNR :Mystic Mountain +STR_PARK :Mystic Mountain +STR_DTLS :In the hilly forests of Mystic Mountain, build a theme park from scratch + + +STR_SCNR :Pacific Pyramids +STR_PARK :Pacific Pyramids +STR_DTLS :Convert the Egyptian Ruins tourist attraction into a thriving theme park + + +STR_SCNR :Crumbly Woods +STR_PARK :Crumbly Woods +STR_DTLS :A large park with well-designed but rather old rides. Replace the old rides or add new rides to make the park more popular. + + +STR_SCNR :Paradise Pier +STR_PARK :Paradise Pier +STR_DTLS :Convert this sleepy town’s pier into a thriving attraction + + +STR_SCNR :Lightning Peaks +STR_PARK :Lightning Peaks +STR_DTLS :The beautiful mountains of Lightning Peaks are popular with walkers and sightseers. Use the available land to attract a new thrill-seeking clientele. + + +STR_SCNR :Ivory Towers +STR_PARK :Ivory Towers +STR_DTLS :A well-established park, which has a few problems + + +STR_SCNR :Rainbow Valley +STR_PARK :Rainbow Valley +STR_DTLS :Rainbow Valley’s local authority won’t allow any landscape changes or large tree removal, but you must develop the area into a large theme park + + +STR_SCNR :Thunder Rock +STR_PARK :Thunder Rock +STR_DTLS :Thunder Rock stands in the middle of a desert and attracts many tourists. Use the available space to build rides to attract more people. + + +STR_SCNR :Mega Park +STR_PARK :Mega Park +STR_DTLS :Just for fun! + +## Added Attractions + +STR_SCNR :Whispering Cliffs +STR_PARK :Whispering Cliffs +STR_DTLS :Develop the seaside cliffs into a thriving amusement park + + +STR_SCNR :Three Monkeys Park +STR_PARK :Three Monkeys Park +STR_DTLS :Central to this large developing park is a giant triple-track racing/duelling steel coaster + + +STR_SCNR :Canary Mines +STR_PARK :Canary Mines +STR_DTLS :This abandoned mine already has the makings of a tourist attraction with its miniature railway and a pair of vertical drop roller coasters + + +STR_SCNR :Barony Bridge +STR_PARK :Barony Bridge +STR_DTLS :An old redundant bridge is yours to develop into an amusement park + + +STR_SCNR :Funtopia +STR_PARK :Funtopia +STR_DTLS :Covering land both sides of a highway, this park has several rides already operating + + +STR_SCNR :Haunted Harbour +STR_PARK :Haunted Harbour +STR_DTLS :The local authority has agreed to sell nearby land cheaply to this small seaside park, on the condition that certain rides are preserved + + +STR_SCNR :Fun Fortress +STR_PARK :Fun Fortress +STR_DTLS :This castle is all yours to turn into a theme park + + +STR_SCNR :Future World +STR_PARK :Future World +STR_DTLS :This futuristic park has plenty of space for new rides on its alien landscape + + +STR_SCNR :Gentle Glen +STR_PARK :Gentle Glen +STR_DTLS :The local population prefer gentle and relaxing rides, so it is your job to expand this park to suit their tastes + + +STR_SCNR :Jolly Jungle +STR_PARK :Jolly Jungle +STR_DTLS :Deep in the jungle lies a large area of land ready to be turned into a theme park + + +STR_SCNR :Hydro Hills +STR_PARK :Hydro Hills +STR_DTLS :A series of stepped lakes form the basis for this new park + + +STR_SCNR :Sprightly Park +STR_PARK :Sprightly Park +STR_DTLS :This elderly park has many historical rides but is badly in debt + + +STR_SCNR :Magic Quarters +STR_PARK :Magic Quarters +STR_DTLS :A large area of land has been cleared and partially themed ready for you to develop into a landscaped theme park + + +STR_SCNR :Fruit Farm +STR_PARK :Fruit Farm +STR_DTLS :A thriving fruit farm has built a railroad to boost its income, your job is to develop it into a full-blown amusement park + + +STR_SCNR :Butterfly Dam +STR_PARK :Butterfly Dam +STR_DTLS :The area around a dam is available for you to develop into an amusement park + + +STR_SCNR :Coaster Canyon +STR_PARK :Coaster Canyon +STR_DTLS :A vast canyon is yours to turn into a theme park + + +STR_SCNR :Thunderstorm Park +STR_PARK :Thunderstorm Park +STR_DTLS :The weather is so wet here that a giant pyramid has been built to allow some rides to be built under cover + + +STR_SCNR :Harmonic Hills +STR_PARK :Harmonic Hills +STR_DTLS :The local authority won’t allow you to build above tree height in this park + + +STR_SCNR :Roman Village +STR_PARK :Roman Village +STR_DTLS :Develop this Roman-themed park by adding rides and roller coasters + + +STR_SCNR :Swamp Cove +STR_PARK :Swamp Cove +STR_DTLS :Built partly on a series of small islands, this park already has a pair of large roller coasters as its centrepiece + + +STR_SCNR :Adrenaline Heights +STR_PARK :Adrenaline Heights +STR_DTLS :Build a park to appeal to the high-intensity thrill-seeking local people + + +STR_SCNR :Utopia Park +STR_PARK :Utopia +STR_DTLS :An oasis in the middle of the desert provides an unusual opportunity to build an amusement park + + +STR_SCNR :Rotting Heights +STR_PARK :Rotting Heights +STR_DTLS :Overgrown and dilapidated, can you resurrect this once-great amusement park? + + +STR_SCNR :Fiasco Forest +STR_PARK :Fiasco Forest +STR_DTLS :Full of badly designed and dangerous rides, you have a very limited budget and time to fix the problems and turn the park around + + +STR_SCNR :Pickle Park +STR_PARK :Pickle Park +STR_DTLS :The local authority will not allow any kind of advertising or promotion, so this park must succeed by reputation only + + +STR_SCNR :Giggle Downs +STR_PARK :Giggle Downs +STR_DTLS :A four lane steeplechase ride is the centrepiece of this expanding park + + +STR_SCNR :Mineral Park +STR_PARK :Mineral Park +STR_DTLS :Turn this abandoned stone quarry into a place to attract thrill-seeking tourists + + +STR_SCNR :Coaster Crazy +STR_PARK :Coaster Crazy +STR_DTLS :You have limited funds but unlimited time to turn this mountainside area into a vast roller coaster park + + +STR_SCNR :Urban Park +STR_PARK :Urban Park +STR_DTLS :A tiny park has done a deal with the nearby town to allow expansion through the town itself + + +STR_SCNR :Geoffrey Gardens +STR_PARK :Geoffrey Gardens +STR_DTLS :A large garden park needs turning into a thriving theme park + + +## Loopy Landscapes + +STR_SCNR :Iceberg Islands +STR_PARK :Iceberg Islands +STR_DTLS :A collection of icebergs make a cold setting for this ambitious theme park + + +STR_SCNR :Volcania +STR_PARK :Volcania +STR_DTLS :A dormant volcano is the setting of this coaster-building challenge + + +STR_SCNR :Arid Heights +STR_PARK :Arid Heights +STR_DTLS :Free of any financial limits, your challenge is to develop this desert park while keeping the guests happy + + +STR_SCNR :Razor Rocks +STR_PARK :Razor Rocks +STR_DTLS :Your task is to build a massive coaster-filled park in amongst Razor Rocks + + +STR_SCNR :Crater Lake +STR_PARK :Crater Lake +STR_DTLS :A large lake in an ancient crater is the setting for this park + + +STR_SCNR :Vertigo Views +STR_PARK :Vertigo Views +STR_DTLS :This large park already has an excellent hyper-coaster, but your task is to massively increase its profit + + +STR_SCNR :Paradise Pier 2 +STR_PARK :Paradise Pier 2 +STR_DTLS :Paradise Pier has expanded its network of walkways over the sea, and your task is to expand the park to use the extra space + + +STR_SCNR :Dragon’s Cove +STR_PARK :Dragon’s Cove +STR_DTLS :This sea-side cove is the setting for this coaster-building challenge + + +STR_SCNR :Good Knight Park +STR_PARK :Good Knight Park +STR_DTLS :A castle with a pair of roller coasters needs developing into a larger theme park + + +STR_SCNR :Wacky Warren +STR_PARK :Wacky Warren +STR_DTLS :A park which has much of its footpaths and coasters underground + + +STR_SCNR :Grand Glacier +STR_PARK :Grand Glacier +STR_DTLS :A glacier-filled valley is yours to develop into a theme park + + +STR_SCNR :Crazy Craters +STR_PARK :Crazy Craters +STR_DTLS :In a far-off world where money is not needed, you must build an entertainment centre to keep the people happy + + +STR_SCNR :Dusty Desert +STR_PARK :Dusty Desert +STR_DTLS :Five coasters require completion in this desert park + + +STR_SCNR :Woodworm Park +STR_PARK :Woodworm Park +STR_DTLS :This historical park is only allowed to build older-styled rides + + +STR_SCNR :Icarus Park +STR_PARK :Icarus Park +STR_DTLS :Develop this alien park to maximise its profit + + +STR_SCNR :Sunny Swamps +STR_PARK :Sunny Swamps +STR_DTLS :This well-themed amusement park already has several rides, but has plenty of space for expansion + + +STR_SCNR :Frightmare Hills +STR_PARK :Frightmare Hills +STR_DTLS :A scary park with a giant centrepiece coaster + + +STR_SCNR :Thunder Rocks +STR_PARK :Thunder Rocks +STR_DTLS :Two large hunks of rock stick out of the sand, upon which the beginnings of a theme park are constructed + + +STR_SCNR :Octagon Park +STR_PARK :Octagon Park +STR_DTLS :In this large park you must design and build ten large coasters + + +STR_SCNR :Pleasure Island +STR_PARK :Pleasure Island +STR_DTLS :A long thin island makes a challenging setting to build a selection of coasters + + +STR_SCNR :Icicle Worlds +STR_PARK :Icicle Worlds +STR_DTLS :An icy landscape needs turning into a thriving theme park + + +STR_SCNR :Southern Sands +STR_PARK :Southern Sands +STR_DTLS :A desert park with some cleverly designed coasters is yours to expand + + +STR_SCNR :Tiny Towers +STR_PARK :Tiny Towers +STR_DTLS :In this tiny park you must finish building the five existing coasters + + +STR_SCNR :Nevermore Park +STR_PARK :Nevermore Park +STR_DTLS :A large park with a novel transportation system around its edge + + +STR_SCNR :Pacifica +STR_PARK :Pacifica +STR_DTLS :This large island is all yours to develop as an amusement park + + +STR_SCNR :Urban Jungle +STR_PARK :Urban Jungle +STR_DTLS :A giant abandoned skyscraper is a unique opportunity for a theme park developer + + +STR_SCNR :Terror Town +STR_PARK :Terror Town +STR_DTLS :This urban area is all yours to develop into an amusement park + + +STR_SCNR :Megaworld Park +STR_PARK :Megaworld Park +STR_DTLS :A giant park already packed full of rides needs improving + + +STR_SCNR :Venus Ponds +STR_PARK :Venus Ponds +STR_DTLS :On a far-away planet this area of land needs turning into a theme park + + +STR_SCNR :Micro Park +STR_PARK :Micro Park +STR_DTLS :Try to create the world’s smallest profitable park + +## Real Parks from RCT1 +# None of them had details + +STR_SCNR :Alton Towers +STR_PARK :Alton Towers +STR_DTLS : + + +STR_SCNR :Heide-Park +STR_PARK :Heide-Park +STR_DTLS : + + +STR_SCNR :Blackpool Pleasure Beach +STR_PARK :Blackpool Pleasure Beach +STR_DTLS : + +## Misc parks from RCT1 +# Had no details + +STR_SCNR :Fort Anachronism +STR_PARK :Fort Anachronism +STR_DTLS : + +########### +# Scenery # +########### + +## Start OpenRCT2 Official + +[TTPIRF02] +STR_NAME :Roof + +[TTPIRF03] +STR_NAME :Roof + +[TTPIRF04] +STR_NAME :Roof + +[TTPIRF05] +STR_NAME :Roof + +[TTPIRF07] +STR_NAME :Roof + +[TTPIRF08] +STR_NAME :Roof + +[TTRFWD01] +STR_NAME :Roof + +[TTRFWD02] +STR_NAME :Roof + +[TTRFWD03] +STR_NAME :Roof + +[TTRFWD04] +STR_NAME :Roof + +[TTRFWD05] +STR_NAME :Roof + +[TTRFWD06] +STR_NAME :Roof + +[TTRFWD07] +STR_NAME :Roof + +[TTRFWD08] +STR_NAME :Roof + +[TTRFGL01] +STR_NAME :Glass Roof + +[TTRFGL02] +STR_NAME :Glass Roof + +[TTRFGL03] +STR_NAME :Glass Roof + +[ACWW33] +STR_NAME :Wooden Post Wall + +[ACWWF32] +STR_NAME :Wooden Post Wall + +## End OpenRCT2 Official + +############################################################################### +## RCT2 Scenarios +############################################################################### + +STR_SCNR :Alpine Adventures +STR_PARK :Alpine Adventures +STR_DTLS :Convert a small mountain ski resort into a snow-themed amusement park + + +STR_SCNR :Amity Airfield +STR_PARK :Amity Airfield +STR_DTLS :Build a flying-themed amusement park in this abandoned airport + + +STR_SCNR :Botany Breakers +STR_PARK :Botany Breakers +STR_DTLS :Your challenge is to build a high-profit park on this paradise island + + +STR_SCNR :Build your own Six Flags Belgium +STR_PARK :Six Flags Belgium +STR_DTLS :Build your own version of this European Six Flags park + + +STR_SCNR :Build your own Six Flags Great Adventure +STR_PARK :Six Flags Great Adventure +STR_DTLS :Use your design skills to recreate this Six Flags park + + +STR_SCNR :Build your own Six Flags Holland +STR_PARK :Six Flags Holland +STR_DTLS :Build this European Six Flags park the way you want to + + +STR_SCNR :Build your own Six Flags Magic Mountain +STR_PARK :Six Flags Magic Mountain +STR_DTLS :Create your own version of this massive Six Flags park + + +STR_SCNR :Build your own Six Flags over Texas +STR_PARK :Six Flags over Texas +STR_DTLS :Starting from scratch, build the rides in this Six Flags park + + +STR_SCNR :Build your own Six Flags Park +STR_PARK :Six Flags +STR_DTLS :Build your own design of Six Flags park - either build rides from other Six Flags parks or design and build your own rides + + +STR_SCNR :Bumbly Bazaar +STR_PARK :Bumbly Bazaar +STR_DTLS :Starting with a small market bazaar, your challenge is to increase the profit from shops and stalls by building rides and roller coasters to attract more customers + + +STR_SCNR :Crazy Castle +STR_PARK :Crazy Castle +STR_DTLS :You have inherited a large castle. Your job is to convert it into a small theme park. + + +STR_SCNR :Dusty Greens +STR_PARK :Dusty Greens +STR_DTLS :Situated near a highway junction in the desert, Dusty Greens is an opportunity to develop a small golf resort into a thriving theme park + + +STR_SCNR :Electric Fields +STR_PARK :Electric Fields +STR_DTLS :You have inherited a small farm, and your challenge is to build a small theme park amongst the fields and farm buildings + + +STR_SCNR :Extreme Heights +STR_PARK :Extreme Heights +STR_DTLS :Free of financial restrictions, your challenge is to expand this desert park to attract people seeking the ultimate thrills + + +STR_SCNR :Factory Capers +STR_PARK :Factory Capers +STR_DTLS :An abandoned factory complex is an opportunity to build a mechanical-themed amusement park + + +STR_SCNR :Fungus Woods +STR_PARK :Fungus Woods +STR_DTLS :Restricted to only older-style wooden rides, your challenge is to build a thriving theme park in Fungus Woods + + +STR_SCNR :Ghost Town +STR_PARK :Ghost Town +STR_DTLS :Hired by a large amusement park chain, your task is to build them a giant roller coaster park around an abandoned mining town + + +STR_SCNR :Gravity Gardens +STR_PARK :Gravity Gardens +STR_DTLS :Your challenge is to build a roller coaster park in the beautiful Gravity Gardens. No other rides, just roller coasters! + + +STR_SCNR :Infernal Views +STR_PARK :Infernal Views +STR_DTLS :A park nestled precariously on lava rock with streams of magma + + +STR_SCNR :Lucky Lake +STR_PARK :Lucky Lake +STR_DTLS :With unlimited funds but a challenging lake location, this park will be a challenge to expand and manage + + +STR_SCNR :Rainbow Summit +STR_PARK :Rainbow Summit +STR_DTLS :Built on a hillside, this park is forbidden from building anything tall. Can you expand the park and make it successful? + + +STR_SCNR :Six Flags Belgium +STR_PARK :Six Flags Belgium +STR_DTLS :Try your hand at running and improving this Six Flags park + + +STR_SCNR :Six Flags Great Adventure +STR_PARK :Six Flags Great Adventure +STR_DTLS :Build the missing Six Flags rides, or create your own designs to improve the park! But don’t forget your ultimate aim: to attract more guests to the park! + + +STR_SCNR :Six Flags Holland +STR_PARK :Six Flags Holland +STR_DTLS :Try your hand at running and improving this Six Flags park + + +STR_SCNR :Six Flags Magic Mountain +STR_PARK :Six Flags Magic Mountain +STR_DTLS :Build the missing Six Flags rides, or create your own designs to improve the park! But don’t forget your ultimate aim: to repay your loan while keeping the park value up! + + +STR_SCNR :Six Flags over Texas +STR_PARK :Six Flags over Texas +STR_DTLS :Build the missing Six Flags rides, or create your own designs to improve the park! But don’t forget your ultimate aim: to attract more guests to the park! + +############################################################################### +## Wacky Worlds Scenarios +############################################################################### + +STR_SCNR :Africa - African Diamond Mine +STR_PARK :Mines of Africa +STR_DTLS :You inherited a disused diamond mine, and find a valuable diamond. You decide to invest that money to build a world-famous theme park. + + +STR_SCNR :Africa - Oasis +STR_PARK :Mirage Madness +STR_DTLS :A desert Oasis has been discovered and would provide a beautiful location for a park. Transport to the oasis has been provided. + + +STR_SCNR :Africa - Victoria Falls +STR_PARK :Over The Edge +STR_DTLS :A dam has been built offering abundant, cheap hydroelectric power with which to run a park. You need to reach a high park value to help repay the loan for the dam. + + +STR_SCNR :Antarctic - Ecological Salvage +STR_PARK :Icy Adventures +STR_DTLS :The environment agency has turned to you to transform an old oil refinery ecological eyesore into a top tourist attraction. Land is cheap but loan interest is high. You can sell the old buildings for salvage. + + +STR_SCNR :Asia - Great Wall of China Tourism Enhancement +STR_PARK :Great Wall of China +STR_DTLS :The authorities have decided to enhance tourism around the Great Wall by building a theme park on the adjacent land. Money is no object! + + +STR_SCNR :Asia - Japanese Coastal Reclaim +STR_PARK :Okinawa Coast +STR_DTLS :An existing park has run out of space. Your only option is to build out into the sea, and so you have taken out a loan. Height restrictions on your building are enforced due to foundations and earthquake risk. + + +STR_SCNR :Asia - Maharaja Palace +STR_PARK :Park Maharaja +STR_DTLS :You have been commissioned by the Maharaja to bring entertainment to the large local population. Build a park inspired by the Maharaja’s palace. + + +STR_SCNR :Australasia - Ayers Rock +STR_PARK :Ayers Adventure +STR_DTLS :You are helping Aboriginal people to build a park as part of a cultural awareness program. You need to get a large number of guests to educate them in the unique heritage of the Aboriginal people. + + +STR_SCNR :Australasia - Fun at the Beach +STR_PARK :Beach Barbecue Blast +STR_DTLS :A local entrepreneur’s sealife park has gone bust. You already operate a small park and buy the other park from the construction company. Develop a big combined park. + + +STR_SCNR :Europe - European Cultural Festival +STR_PARK :European Extravaganza +STR_DTLS :You have been brought in to take over a European Cultural Visitor Attraction and must increase the number of guests in order to pay back the EU subsidy by the end of the current European parliament term. + + +STR_SCNR :Europe - Renovation +STR_PARK :From The Ashes +STR_DTLS :An old park has fallen into disrepair. You gain a European Union grant to return this deprived area to its former glory! You need to renovate the park and repay the grant. + + +STR_SCNR :North America - Extreme Hawaiian Island +STR_PARK :Wacky Waikiki +STR_DTLS :The people of Hawaii are bored of surfing and are looking for something more intense. You need to build a park with this in mind to keep the area’s tourist attraction rating high. + + +STR_SCNR :North America - Grand Canyon +STR_PARK :Canyon Calamities +STR_DTLS :You have to build a park on limited land either side of this natural treasure - you do have the opportunity to buy neighbouring land from the Native American Indians. You need to complete the objective to sustain the local town’s population. + + +STR_SCNR :North America - Rollercoaster Heaven +STR_PARK :Rollercoaster Heaven +STR_DTLS :You are a successful business tycoon on long sabbatical who desires to use this time transforming the city park into Rollercoaster Heaven. Money is no object! + + +STR_SCNR :South America - Inca Lost City +STR_PARK :Lost City Founder +STR_DTLS :To further boost local tourism you must construct a park that is in tune with its surroundings, and has height restrictions. + + +STR_SCNR :South America - Rain Forest Plateau +STR_PARK :Rainforest Romp +STR_DTLS :Space is limited in the precious rainforest - you must cram as much as possible into the existing clearing, in order to provide a viable alternative to the local timber industry. + + +STR_SCNR :South America - Rio Carnival +STR_PARK :Sugarloaf Shores +STR_DTLS :You run a small park near Rio but the bank has called in your loan. You need to quickly increase your earning capacity to repay this unexpected debt. + +############################################################################### +## Time Twister Scenarios +############################################################################### + +STR_SCNR :Dark Age - Castle +STR_PARK :Cliffside Castle +STR_DTLS :Local members of the battle re-enactment society are rather serious about their hobby. They’ve entrusted you with the job of constructing a Dark Age theme park on the grounds of Cliffside Castle. + + +STR_SCNR :Dark Age - Robin Hood +STR_PARK :Sherwood Forest +STR_DTLS :To liberate wealth from the rich and distribute it to the needy, you and your Merry Men have decided to build a theme park in Sherwood Forest. + + +STR_SCNR :Future - First Encounters +STR_PARK :Extraterrestrial Extravaganza +STR_DTLS :Life has been discovered on a distant planet Build an alien theme park to cash in on the unprecedented wave of interest. + + +STR_SCNR :Future - Future World +STR_PARK :Gemini City +STR_DTLS :Show off your inventive, utopian vision of the future - come up with a futuristic park design that incorporates state-of-the-art attractions. + + +STR_SCNR :Mythological - Animatronic Film Set +STR_PARK :Animatronic Antics +STR_DTLS :You have been given the task of running and improving an existing theme park, which has been built on an old film set. Build a tribute to the pioneering stop-motion animators who first brought mythical creatures to life on the silver screen. + + +STR_SCNR :Mythological - Cradle of Civilisation +STR_PARK :Mythological Madness +STR_DTLS :You own an island of particular archaeological value. You’ve decided to fund its preservation by constructing a theme park based on the area’s rich Mythological heritage. + + +STR_SCNR :Prehistoric - After the Asteroid +STR_PARK :Crater Carnage +STR_DTLS :You own a dusty old meteor crater. In the true entrepreneurial spirit, you’ve decided to construct an asteroid theme park and convert your seemingly worthless land into a sizeable fortune. + + +STR_SCNR :Prehistoric - Jurassic Safari +STR_PARK :Coastersaurus +STR_DTLS :You’ve been given the task of constructing a Jurassic era theme park. To optimize your visitors’ access to the exotic plant and animal exhibits, you will need to build rides going over and into the valley. + + +STR_SCNR :Prehistoric - Stone Age +STR_PARK :Rocky Rambles +STR_DTLS :To thwart the highway developers and preserve the mysterious ancient stone circles, you will need to construct a Stone Age theme park and turn a profit. However, attracting visitors may pose a challenge, as the terrain is a tad inhospitable. + + +STR_SCNR :Roaring Twenties - Prison Island +STR_PARK :Alcatraz +STR_DTLS :The infamous Prison Island - whose population once swelled with bootleggers and racketeers - is now up for sale. You’ve decided to convert it into a top tourist attraction, and money is no object + + +STR_SCNR :Roaring Twenties - Schneider Cup +STR_PARK :Schneider Shores +STR_DTLS :The 75th anniversary of your grandfather’s Schneider Cup victory is coming up in a few years. You’re going to honour his achievement by building a theme park based on the famous seaplane race. + + +STR_SCNR :Roaring Twenties - Skyscrapers +STR_PARK :Metropolis +STR_DTLS :You own an empty lot near the low-rise part of town. To squeeze the most out of your urban property, build a skyscraper theme park inspired by the soaring art deco architecture of the twenties. + + +STR_SCNR :Rock ‘n’ Roll - Flower Power +STR_PARK :Woodstock +STR_DTLS :A large annual music festival takes place on your land. Build a hip theme park to keep the free-spirited audience entertained. + + +STR_SCNR :Rock ‘n’ Roll - Rock ‘n’ Roll +STR_PARK :Rock ‘n’ Roll Revival +STR_DTLS :This aging theme park has seen better days. Help the owner give it a retro rock ‘n’ roll makeover and turn the place into a successful venue. + +############################################################################### +## Official Custom Content Scenarios +############################################################################### + +STR_SCNR :Panda World +STR_PARK :Panda World +STR_DTLS :Add more rides and attract more people to this panda-themed park diff --git a/data/language/zh-CN.txt b/data/language/zh-CN.txt index f96990dc57..8d5c0afad9 100644 --- a/data/language/zh-CN.txt +++ b/data/language/zh-CN.txt @@ -241,8 +241,8 @@ STR_0831 :缩小 STR_0832 :顺时针旋转90° STR_0833 :暂停游戏 STR_0834 :磁盘和游戏选项 -STR_0839 :{UINT16} x {UINT16} -STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} x {UINT16} +STR_0839 :{UINT16} × {UINT16} +STR_0840 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{UINT16} × {UINT16} # The following six strings were used for display resolutions, but have been replaced. STR_0847 :关于'OpenRCT2' STR_0850 :{WINDOW_COLOUR_2}版权 © 2002 Chris Sawyer, 版权所有 @@ -800,14 +800,14 @@ STR_1410 :垂直高塔 STR_1411 :{STRINGID}挡道 STR_1412 :{WINDOW_COLOUR_3}无该类型游乐设施数据记录 STR_1413 :{WINDOW_COLOUR_3}数据将于下一个 {STRINGID} 离开 {STRINGID}后记录 -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}速度 STR_1416 :{WINDOW_COLOUR_2}高度 STR_1417 :{WINDOW_COLOUR_2}垂直重力 STR_1418 :{WINDOW_COLOUR_2}水平重力 -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :来自 {POP16}{STRINGID}的记录数据 STR_1423 :队列线路 STR_1424 :道路 @@ -866,131 +866,131 @@ STR_1476 :{WINDOW_COLOUR_2}刺激度: {BLACK}暂无 STR_1477 :{WINDOW_COLOUR_2}刺激度: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}恶心度: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}恶心度: {BLACK}暂无 -STR_1480 :{SMALLFONT}“我负担不起{STRINGID}” -STR_1481 :{SMALLFONT}“这个月又要吃土了” -STR_1482 :{SMALLFONT}“我感到不舒服” -STR_1483 :{SMALLFONT}“香菇蓝瘦” -STR_1484 :{SMALLFONT}“我想试试比{STRINGID}更刺激的” -STR_1485 :{SMALLFONT}“对我来说,{STRINGID}看起来太过刺激了” -STR_1486 :{SMALLFONT}“等等,我还没试过{STRINGID}” -STR_1487 :{SMALLFONT}“看看{STRINGID}就让我感到不适” -STR_1488 :{SMALLFONT}“{STRINGID}太贵了吧,这个乐园真坑爹” -STR_1489 :{SMALLFONT}“我想回家” -STR_1490 :{SMALLFONT}“{STRINGID}真是超值”” -STR_1491 :{SMALLFONT}“我已经有{STRINGID}了” -STR_1492 :{SMALLFONT}“我负担不起{STRINGID}” -STR_1493 :{SMALLFONT}“我不饿” -STR_1494 :{SMALLFONT}“我不渴” -STR_1495 :{SMALLFONT}“救命! 我溺水了!” -STR_1496 :{SMALLFONT}“我迷路了!” -STR_1497 :{SMALLFONT}“{STRINGID}棒棒哒” -STR_1498 :{SMALLFONT}“我等候在这{STRINGID}老久了,啥时才轮到我啊 ” -STR_1499 :{SMALLFONT}“我累了” -STR_1500 :{SMALLFONT}“我饿了” -STR_1501 :{SMALLFONT}“我渴了” -STR_1502 :{SMALLFONT}“我需要去厕所” -STR_1503 :{SMALLFONT}“我找不到 {STRINGID}” -STR_1504 :{SMALLFONT}“我才没有那么多钱去 {STRINGID}” -STR_1505 :{SMALLFONT}“我不想去 {STRINGID} 因为那里在下雨” -STR_1506 :{SMALLFONT}“这里是垃圾场吗?” -STR_1507 :{SMALLFONT}“哇塞!这个乐园的出口在哪?” -STR_1508 :{SMALLFONT}“我想下车 {STRINGID}” -STR_1509 :{SMALLFONT}“我想离开 {STRINGID}” -STR_1510 :{SMALLFONT}“我不想去{STRINGID},感觉它随时都会出问题” -STR_1511 :{SMALLFONT}“这路有点恶心啊!” -STR_1512 :{SMALLFONT}“这里怎么这么挤啊!” -STR_1513 :{SMALLFONT}“这里的损坏是非常糟糕的” -STR_1514 :{SMALLFONT}“壮丽的景色!” -STR_1515 :{SMALLFONT}“这个公园真的很干净” -STR_1516 :{SMALLFONT}“跳跃喷泉太好了” -STR_1517 :{SMALLFONT}“这里的音乐很好” -STR_1518 :{SMALLFONT}“这个{STRINGID}的气球好便宜” -STR_1519 :{SMALLFONT}“这个{STRINGID}的毛绒公仔好便宜” -STR_1520 :{SMALLFONT}“这个{STRINGID}的乐园地图好便宜” -STR_1521 :{SMALLFONT}“这个{STRINGID}的即时照片好便宜” -STR_1522 :{SMALLFONT}“这个{STRINGID}的伞好便宜” -STR_1523 :{SMALLFONT}“这个{STRINGID}的饮料好便宜” -STR_1524 :{SMALLFONT}“这个{STRINGID}的汉堡好便宜” -STR_1525 :{SMALLFONT}“这个{STRINGID}的薯条好便宜” -STR_1526 :{SMALLFONT}“这个{STRINGID}的冰激好是便宜” -STR_1527 :{SMALLFONT}“这个{STRINGID}的棉花糖好便宜” +STR_1480 :“我负担不起{STRINGID}” +STR_1481 :“这个月又要吃土了” +STR_1482 :“我感到不舒服” +STR_1483 :“香菇蓝瘦” +STR_1484 :“我想试试比{STRINGID}更刺激的” +STR_1485 :“对我来说,{STRINGID}看起来太过刺激了” +STR_1486 :“等等,我还没试过{STRINGID}” +STR_1487 :“看看{STRINGID}就让我感到不适” +STR_1488 :“{STRINGID}太贵了吧,这个乐园真坑爹” +STR_1489 :“我想回家” +STR_1490 :“{STRINGID}真是超值”” +STR_1491 :“我已经有{STRINGID}了” +STR_1492 :“我负担不起{STRINGID}” +STR_1493 :“我不饿” +STR_1494 :“我不渴” +STR_1495 :“救命! 我溺水了!” +STR_1496 :“我迷路了!” +STR_1497 :“{STRINGID}棒棒哒” +STR_1498 :“我等候在这{STRINGID}老久了,啥时才轮到我啊 ” +STR_1499 :“我累了” +STR_1500 :“我饿了” +STR_1501 :“我渴了” +STR_1502 :“我需要去厕所” +STR_1503 :“我找不到 {STRINGID}” +STR_1504 :“我才没有那么多钱去 {STRINGID}” +STR_1505 :“我不想去 {STRINGID} 因为那里在下雨” +STR_1506 :“这里是垃圾场吗?” +STR_1507 :“哇塞!这个乐园的出口在哪?” +STR_1508 :“我想下车 {STRINGID}” +STR_1509 :“我想离开 {STRINGID}” +STR_1510 :“我不想去{STRINGID},感觉它随时都会出问题” +STR_1511 :“这路有点恶心啊!” +STR_1512 :“这里怎么这么挤啊!” +STR_1513 :“这里的损坏是非常糟糕的” +STR_1514 :“壮丽的景色!” +STR_1515 :“这个公园真的很干净” +STR_1516 :“跳跃喷泉太好了” +STR_1517 :“这里的音乐很好” +STR_1518 :“这个{STRINGID}的气球好便宜” +STR_1519 :“这个{STRINGID}的毛绒公仔好便宜” +STR_1520 :“这个{STRINGID}的乐园地图好便宜” +STR_1521 :“这个{STRINGID}的即时照片好便宜” +STR_1522 :“这个{STRINGID}的伞好便宜” +STR_1523 :“这个{STRINGID}的饮料好便宜” +STR_1524 :“这个{STRINGID}的汉堡好便宜” +STR_1525 :“这个{STRINGID}的薯条好便宜” +STR_1526 :“这个{STRINGID}的冰激好是便宜” +STR_1527 :“这个{STRINGID}的棉花糖好便宜” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“这个{STRINGID}的披萨好便宜” +STR_1531 :“这个{STRINGID}的披萨好便宜” STR_1532 : -STR_1533 :{SMALLFONT}“这个{STRINGID}的爆米花好便宜” -STR_1534 :{SMALLFONT}“这个{STRINGID}的热狗好便宜” -STR_1535 :{SMALLFONT}“这个{STRINGID}的触手好便宜” -STR_1536 :{SMALLFONT}“这个{STRINGID}的帽子好便宜” -STR_1537 :{SMALLFONT}“这个{STRINGID}的太妃糖苹果好便宜” -STR_1538 :{SMALLFONT}“这个{STRINGID}的T恤好便宜” -STR_1539 :{SMALLFONT}“这个{STRINGID}的甜甜圈好便宜” -STR_1540 :{SMALLFONT}“这个{STRINGID}的咖啡好便宜” +STR_1533 :“这个{STRINGID}的爆米花好便宜” +STR_1534 :“这个{STRINGID}的热狗好便宜” +STR_1535 :“这个{STRINGID}的触手好便宜” +STR_1536 :“这个{STRINGID}的帽子好便宜” +STR_1537 :“这个{STRINGID}的太妃糖苹果好便宜” +STR_1538 :“这个{STRINGID}的T恤好便宜” +STR_1539 :“这个{STRINGID}的甜甜圈好便宜” +STR_1540 :“这个{STRINGID}的咖啡好便宜” STR_1541 : -STR_1542 :{SMALLFONT}“这个{STRINGID}的炸鸡好便宜” -STR_1543 :{SMALLFONT}“这个{STRINGID}的柠檬水好便宜” +STR_1542 :“这个{STRINGID}的炸鸡好便宜” +STR_1543 :“这个{STRINGID}的柠檬水好便宜” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“哇!” -STR_1551 :{SMALLFONT}“我有种奇怪的感觉, 像是有人在监视我” -STR_1552 :{SMALLFONT}“{STRINGID}的气球里充的是仙气吧,怎么这么贵” -STR_1553 :{SMALLFONT}“我相信{STRINGID}的毛绒公仔里面塞的不是棉花,是钱” -STR_1554 :{SMALLFONT}“{STRINGID}的游乐园地图是都精确,居然卖的这么贵” -STR_1555 :{SMALLFONT}“都什么年代了,{STRINGID}的即时照片还这么贵” -STR_1556 :{SMALLFONT}“我宁可淋雨,也不会买{STRINGID}的天价雨伞” -STR_1557 :{SMALLFONT}“{STRINGID}的饮料,可真是滴水寸金” -STR_1558 :{SMALLFONT}“{STRINGID}的汉堡比上海迪斯尼的包子还贵” -STR_1559 :{SMALLFONT}“{STRINGID}的薯条使用什么土豆做的?怎么这么贵” -STR_1560 :{SMALLFONT}“{STRINGID}的冰淇淋贵的有点离谱” -STR_1561 :{SMALLFONT}“{STRINGID}的棉花糖是真滴贵” +STR_1550 :“哇!” +STR_1551 :“我有种奇怪的感觉, 像是有人在监视我” +STR_1552 :“{STRINGID}的气球里充的是仙气吧,怎么这么贵” +STR_1553 :“我相信{STRINGID}的毛绒公仔里面塞的不是棉花,是钱” +STR_1554 :“{STRINGID}的游乐园地图是都精确,居然卖的这么贵” +STR_1555 :“都什么年代了,{STRINGID}的即时照片还这么贵” +STR_1556 :“我宁可淋雨,也不会买{STRINGID}的天价雨伞” +STR_1557 :“{STRINGID}的饮料,可真是滴水寸金” +STR_1558 :“{STRINGID}的汉堡比上海迪斯尼的包子还贵” +STR_1559 :“{STRINGID}的薯条使用什么土豆做的?怎么这么贵” +STR_1560 :“{STRINGID}的冰淇淋贵的有点离谱” +STR_1561 :“{STRINGID}的棉花糖是真滴贵” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“{STRINGID}的披萨真的贵” +STR_1565 :“{STRINGID}的披萨真的贵” STR_1566 : -STR_1567 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份爆米花” -STR_1568 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一个热狗” -STR_1569 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份触手” -STR_1570 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一个帽子” -STR_1571 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一个太妃糖苹果” -STR_1572 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一件T恤” -STR_1573 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份甜甜圈” -STR_1574 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一杯咖啡” +STR_1567 :“我不会花那么多钱去{STRINGID}购买一份爆米花” +STR_1568 :“我不会花那么多钱去{STRINGID}购买一个热狗” +STR_1569 :“我不会花那么多钱去{STRINGID}购买一份触手” +STR_1570 :“我不会花那么多钱去{STRINGID}购买一个帽子” +STR_1571 :“我不会花那么多钱去{STRINGID}购买一个太妃糖苹果” +STR_1572 :“我不会花那么多钱去{STRINGID}购买一件T恤” +STR_1573 :“我不会花那么多钱去{STRINGID}购买一份甜甜圈” +STR_1574 :“我不会花那么多钱去{STRINGID}购买一杯咖啡” STR_1575 : -STR_1576 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份炸鸡” -STR_1577 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一杯柠檬水” +STR_1576 :“我不会花那么多钱去{STRINGID}购买一份炸鸡” +STR_1577 :“我不会花那么多钱去{STRINGID}购买一杯柠檬水” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“这张从{STRINGID}购买的即时照片真是超值” -STR_1585 :{SMALLFONT}“这张从{STRINGID}购买的即时照片真是超值” -STR_1586 :{SMALLFONT}“这张从{STRINGID}购买的即时照片真是超值” -STR_1587 :{SMALLFONT}“这张从{STRINGID}购买的椒盐卷饼真是超值” -STR_1588 :{SMALLFONT}“这杯从{STRINGID}购买的热巧克力真是超值” -STR_1589 :{SMALLFONT}“这杯从{STRINGID}购买的冰红茶真是超值” -STR_1590 :{SMALLFONT}“这个从{STRINGID}购买的漏斗蛋糕真是超值” -STR_1591 :{SMALLFONT}“这副从{STRINGID}购买的太阳镜真是超值” -STR_1592 :{SMALLFONT}“这碗从{STRINGID}购买的牛肉面真是超值” -STR_1593 :{SMALLFONT}“这份从{STRINGID}购买的炒米粉真是超值” -STR_1594 :{SMALLFONT}“这份从{STRINGID}购买的上汤云吞真是超值” -STR_1595 :{SMALLFONT}“这份从{STRINGID}购买的肉丸汤{真是超值” -STR_1596 :{SMALLFONT}“这杯从{STRINGID}购买的果汁真是超值” -STR_1597 :{SMALLFONT}“这杯从{STRINGID}购买的豆浆真是超值” -STR_1598 :{SMALLFONT}“这份从{STRINGID}购买的水正果真是超值” -STR_1599 :{SMALLFONT}“这块从{STRINGID}购买的潜艇三明治真是超值” -STR_1600 :{SMALLFONT}“这份从{STRINGID}购买的曲奇饼干真是超值” +STR_1584 :“这张从{STRINGID}购买的即时照片真是超值” +STR_1585 :“这张从{STRINGID}购买的即时照片真是超值” +STR_1586 :“这张从{STRINGID}购买的即时照片真是超值” +STR_1587 :“这张从{STRINGID}购买的椒盐卷饼真是超值” +STR_1588 :“这杯从{STRINGID}购买的热巧克力真是超值” +STR_1589 :“这杯从{STRINGID}购买的冰红茶真是超值” +STR_1590 :“这个从{STRINGID}购买的漏斗蛋糕真是超值” +STR_1591 :“这副从{STRINGID}购买的太阳镜真是超值” +STR_1592 :“这碗从{STRINGID}购买的牛肉面真是超值” +STR_1593 :“这份从{STRINGID}购买的炒米粉真是超值” +STR_1594 :“这份从{STRINGID}购买的上汤云吞真是超值” +STR_1595 :“这份从{STRINGID}购买的肉丸汤{真是超值” +STR_1596 :“这杯从{STRINGID}购买的果汁真是超值” +STR_1597 :“这杯从{STRINGID}购买的豆浆真是超值” +STR_1598 :“这份从{STRINGID}购买的水正果真是超值” +STR_1599 :“这块从{STRINGID}购买的潜艇三明治真是超值” +STR_1600 :“这份从{STRINGID}购买的曲奇饼干真是超值” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“这根从{STRINGID}购买的烤香肠真是超值” +STR_1604 :“这根从{STRINGID}购买的烤香肠真是超值” STR_1605 : STR_1606 : STR_1607 : @@ -1002,27 +1002,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“我不会花那么多钱去购买一张在{STRINGID}的即时照片” -STR_1617 :{SMALLFONT}“我不会花那么多钱去购买一张在{STRINGID}的即时照片” -STR_1618 :{SMALLFONT}“我不会花那么多钱去购买一张在{STRINGID}的即时照片” -STR_1619 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一张椒盐卷饼” -STR_1620 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一杯热巧克力” -STR_1621 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一杯冰红茶” -STR_1622 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一个漏斗蛋糕” -STR_1623 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一副太阳镜” -STR_1624 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一碗牛肉面” -STR_1625 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份炒米粉” -STR_1626 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份上汤云吞” -STR_1627 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份肉丸汤” -STR_1628 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一杯果汁” -STR_1629 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一杯豆浆” -STR_1630 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份水正果” -STR_1631 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一块潜艇三明治” -STR_1632 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份曲奇饼干” +STR_1616 :“我不会花那么多钱去购买一张在{STRINGID}的即时照片” +STR_1617 :“我不会花那么多钱去购买一张在{STRINGID}的即时照片” +STR_1618 :“我不会花那么多钱去购买一张在{STRINGID}的即时照片” +STR_1619 :“我不会花那么多钱去{STRINGID}购买一张椒盐卷饼” +STR_1620 :“我不会花那么多钱去{STRINGID}购买一杯热巧克力” +STR_1621 :“我不会花那么多钱去{STRINGID}购买一杯冰红茶” +STR_1622 :“我不会花那么多钱去{STRINGID}购买一个漏斗蛋糕” +STR_1623 :“我不会花那么多钱去{STRINGID}购买一副太阳镜” +STR_1624 :“我不会花那么多钱去{STRINGID}购买一碗牛肉面” +STR_1625 :“我不会花那么多钱去{STRINGID}购买一份炒米粉” +STR_1626 :“我不会花那么多钱去{STRINGID}购买一份上汤云吞” +STR_1627 :“我不会花那么多钱去{STRINGID}购买一份肉丸汤” +STR_1628 :“我不会花那么多钱去{STRINGID}购买一杯果汁” +STR_1629 :“我不会花那么多钱去{STRINGID}购买一杯豆浆” +STR_1630 :“我不会花那么多钱去{STRINGID}购买一份水正果” +STR_1631 :“我不会花那么多钱去{STRINGID}购买一块潜艇三明治” +STR_1632 :“我不会花那么多钱去{STRINGID}购买一份曲奇饼干” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“我不会花那么多钱去{STRINGID}购买一份烤香肠” +STR_1636 :“我不会花那么多钱去{STRINGID}购买一份烤香肠” STR_1637 : STR_1638 : STR_1639 : @@ -1034,11 +1034,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“救命! 放我下来!” -STR_1649 :{SMALLFONT}“我的现金不够了!” -STR_1650 :{SMALLFONT}“喔!一个新的设施正在建造” +STR_1648 :“救命! 放我下来!” +STR_1649 :“我的现金不够了!” +STR_1650 :“喔!一个新的设施正在建造” # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}“…现在我们已经在{STRINGID}上!” +STR_1653 :“…现在我们已经在{STRINGID}上!” STR_1654 :{WINDOW_COLOUR_2}最近的想法: STR_1655 :在地上建造道路 STR_1656 :建造桥梁或隧道 @@ -1068,12 +1068,12 @@ STR_1679 :向上盘旋 (向左) STR_1680 :向上盘旋 (向右) STR_1681 :向下盘旋 (向左) STR_1682 :向下盘旋 (向右) -STR_1683 :2 x 2地基 -STR_1684 :4 x 4地基 -STR_1685 :2 x 4地基 -STR_1686 :5 x 1地基 +STR_1683 :2 × 2地基 +STR_1684 :4 × 4地基 +STR_1685 :2 × 4地基 +STR_1686 :5 × 1地基 STR_1687 :水溅 -STR_1688 :4 x 1地基 +STR_1688 :4 × 1地基 STR_1689 :刹车装置 STR_1690 :{WINDOW_COLOUR_2}{STRINGID}{NEWLINE}{BLACK}{STRINGID} STR_1691 :{WINDOW_COLOUR_2} 费用: {BLACK}{CURRENCY} @@ -1190,7 +1190,7 @@ STR_1808 :{WINDOW_COLOUR_2}上次故障原因: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}本次故障原因: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}搬运中: STR_1811 :Can't build this here… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :其他物体 STR_1814 :动作 STR_1815 :想法 @@ -1200,7 +1200,7 @@ STR_1818 :{WINDOW_COLOUR_2}所有游客 STR_1819 :{WINDOW_COLOUR_2}所有游客(汇总) STR_1820 :{WINDOW_COLOUR_2}{STRINGID}的游客 STR_1821 :{WINDOW_COLOUR_2}在想{STRINGID}的游客 -STR_1822 :{WINDOW_COLOUR_2}在想{POP16}{STRINGID}的游客 +STR_1822 :{WINDOW_COLOUR_2}在想{POP16}{SMALLFONT}{STRINGID}{MEDIUMFONT}的游客 STR_1823 :显示游客对此游乐设施/店铺的想法 STR_1824 :显示在此游乐设施/店铺的游客 STR_1825 :显示在此游乐设施/店铺排队等候的游客 @@ -1302,7 +1302,6 @@ STR_1921 :开始新游戏 STR_1922 :从存档继续玩 STR_1924 :退出游戏 STR_1925 :不能放置人物于此… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID}发生故障了 STR_1928 :{RED}{STRINGID}毁坏了! STR_1929 :{RED}{STRINGID}依然未修复好{NEWLINE}请检查机械师位置所在, 或考虑以更好的方法管理他们 @@ -1583,7 +1582,7 @@ STR_2218 :{RED}{STRINGID}, {STRINGID}的一部份,尚未返回到{STRINGID} STR_2219 :{RED}{COMMA16}人已丧生于{STRINGID}的意外中 STR_2220 :{WINDOW_COLOUR_2}乐园评价: {BLACK}{COMMA16} STR_2221 :乐园评价: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}园内游客: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}现金: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}现金: {RED}{CURRENCY2DP} @@ -1596,7 +1595,7 @@ STR_2231 :下落刹车设备 STR_2232 :缆索坡道 STR_2233 :游乐园信息 STR_2234 :最近消息 -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :1月 STR_2237 :2月 STR_2238 :3月 @@ -1676,7 +1675,7 @@ STR_2312 :{WINDOW_COLOUR_2}刺激度: {BLACK}{COMMA2DP32} (大约) STR_2313 :{WINDOW_COLOUR_2}恶心度: {BLACK}{COMMA2DP32} (大约) STR_2314 :{WINDOW_COLOUR_2}轨道长度: {BLACK}{STRINGID} STR_2315 :{WINDOW_COLOUR_2}建造费用: {BLACK}约{CURRENCY} -STR_2316 :{WINDOW_COLOUR_2}需要空间: {BLACK}{COMMA16} x {COMMA16}格 +STR_2316 :{WINDOW_COLOUR_2}需要空间: {BLACK}{COMMA16} × {COMMA16}格 STR_2321 :{WINDOW_COLOUR_2}游乐设施/店铺数目: {BLACK}{COMMA16} STR_2322 :{WINDOW_COLOUR_2}员工数目: {BLACK}{COMMA16} STR_2323 :{WINDOW_COLOUR_2}乐园大小: {BLACK}{COMMA32}m² @@ -1800,31 +1799,31 @@ STR_2450 :{YELLOW}你针对乐园的推广计划现已结束 STR_2451 :{YELLOW}你针对{STRINGID}的推广计划现已结束 STR_2452 :{WINDOW_COLOUR_2}现金(减去贷款):{BLACK} {CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}现金(减去贷款):{RED} {CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{SMALLFONT} {BLACK} {CURRENCY2DP} - -STR_2457 :{SMALLFONT} {BLACK}显示财政报表 -STR_2458 :{SMALLFONT} {BLACK}以图表显示过往到现在的净现金 -STR_2459 :{SMALLFONT} {BLACK}以图表显示过往到现在的乐园价格 -STR_2460 :{SMALLFONT} {BLACK}以图表显示过往到现在的每周营利 -STR_2461 :{SMALLFONT} {BLACK}显示营销计划详情 -STR_2462 :{SMALLFONT} {BLACK}显示乐园入口的视点 -STR_2463 :{SMALLFONT} {BLACK}以图表显示过往到现在的乐园评价 -STR_2464 :{SMALLFONT} {BLACK}以图表显示过往到现在的游客人员 -STR_2465 :{SMALLFONT} {BLACK}显示乐园门票价格以及其资讯 -STR_2466 :{SMALLFONT} {BLACK}显示乐园的统计资料 -STR_2467 :{SMALLFONT} {BLACK}显示是次游戏的目标 -STR_2468 :{SMALLFONT} {BLACK}显示这个乐园最近获得的奖项 -STR_2469 :{SMALLFONT} {BLACK}选择投放多少资金到研发当中 -STR_2470 :{SMALLFONT} {BLACK}研发新的运输类游游设施 -STR_2471 :{SMALLFONT} {BLACK}研发新的温和类游乐设施 -STR_2472 :{SMALLFONT} {BLACK}研发新的过山车 -STR_2473 :{SMALLFONT} {BLACK}研发新的刺激类游乐设施 -STR_2474 :{SMALLFONT} {BLACK}研发新的水文类游乐设施 -STR_2475 :{SMALLFONT} {BLACK}研发新的商店及摊贩 -STR_2476 :{SMALLFONT} {BLACK}研发新的景物及主题景物 -STR_2477 :{SMALLFONT} {BLACK}选择这个游乐设施的运作模式 -STR_2478 :{SMALLFONT} {BLACK}以图表显示速度与运作时间的关系 -STR_2479 :{SMALLFONT} {BLACK}以图表显示高度与运作时间的关系 -STR_2480 :{SMALLFONT} {BLACK}以图表显示垂直加速与运作时间的关系 +STR_2454 :{BLACK} {BLACK} {CURRENCY2DP} - +STR_2457 : {BLACK}显示财政报表 +STR_2458 : {BLACK}以图表显示过往到现在的净现金 +STR_2459 : {BLACK}以图表显示过往到现在的乐园价格 +STR_2460 : {BLACK}以图表显示过往到现在的每周营利 +STR_2461 : {BLACK}显示营销计划详情 +STR_2462 : {BLACK}显示乐园入口的视点 +STR_2463 : {BLACK}以图表显示过往到现在的乐园评价 +STR_2464 : {BLACK}以图表显示过往到现在的游客人员 +STR_2465 : {BLACK}显示乐园门票价格以及其资讯 +STR_2466 : {BLACK}显示乐园的统计资料 +STR_2467 : {BLACK}显示是次游戏的目标 +STR_2468 : {BLACK}显示这个乐园最近获得的奖项 +STR_2469 : {BLACK}选择投放多少资金到研发当中 +STR_2470 : {BLACK}研发新的运输类游游设施 +STR_2471 : {BLACK}研发新的温和类游乐设施 +STR_2472 : {BLACK}研发新的过山车 +STR_2473 : {BLACK}研发新的刺激类游乐设施 +STR_2474 : {BLACK}研发新的水文类游乐设施 +STR_2475 : {BLACK}研发新的商店及摊贩 +STR_2476 : {BLACK}研发新的景物及主题景物 +STR_2477 : {BLACK}选择这个游乐设施的运作模式 +STR_2478 : {BLACK}以图表显示速度与运作时间的关系 +STR_2479 : {BLACK}以图表显示高度与运作时间的关系 +STR_2480 : {BLACK}以图表显示垂直加速与运作时间的关系 STR_2481 :以图表显示横向加速与运作时间的关系 STR_2482 :营利: 每周{CURRENCY}, 乐园价值: {CURRENCY} STR_2483 :{WINDOW_COLOUR_2}每周营利: {BLACK}+{CURRENCY2DP} @@ -1910,7 +1909,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :所有项目已研发完毕 -STR_2681 :{MEDIUMFONT}{BLACK}增加{CURRENCY}到你的账上 STR_2684 :一大批游客到访 STR_2685 :单形噪声参数 STR_2686 :低值: @@ -1997,7 +1995,7 @@ STR_2789 :{WINDOW_COLOUR_2}你未达成目标 ! STR_2790 :请输入你要在剧情列表显示的名字 STR_2791 :输入名字 STR_2792 :请输入你要在剧情列表显示的名字: -STR_2793 :{SMALLFONT}(由{STRINGID}达成) +STR_2793 :(由{STRINGID}达成) STR_2794 :{WINDOW_COLOUR_2}完成者: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} 公司价值: {BLACK}{CURRENCY} STR_2795 :排序 STR_2796 :将游乐设施按照不同类别排列 @@ -2311,7 +2309,7 @@ STR_3208 :轨道设计管理工具 STR_3209 :上一步: STR_3210 :下一步: STR_3211 :地图大小: -STR_3212 :{POP16}{COMMA16} x {PUSH16}{COMMA16} +STR_3212 :{POP16}{COMMA16} × {PUSH16}{COMMA16} STR_3213 :不能再缩小地图 STR_3214 :不能再扩大地图 STR_3215 :太接近地图的边缘 @@ -2506,7 +2504,7 @@ STR_5134 :选择较大一些的土地范围 STR_5135 :购买土地权和建造权 STR_5136 :土地权 STR_5137 :解锁操作限制 -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :禁用制动器故障 STR_5141 :禁用所有故障 @@ -2652,7 +2650,7 @@ STR_5297 :开启乐园 STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :快速解雇员工 -STR_5301 :{MEDIUMFONT}{BLACK}清除你的贷款 +STR_5301 :清除你的贷款 STR_5302 :清除贷款 STR_5303 :允许在暂停模式下继续建造 STR_5304 :主菜单动画: @@ -2811,7 +2809,7 @@ STR_5481 :主题 STR_5482 :{WINDOW_COLOUR_2}上次检查时间: {BLACK} 1分钟前 STR_5483 :{BLACK}(还剩{COMMA16}周结束) STR_5484 :{BLACK}(还剩{COMMA16}周结束) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :显示最近消息 STR_5489 :只显示追踪中的游客 @@ -3316,7 +3314,7 @@ STR_6030 :景物选择器. 点击地图上任意景物来建造相同的景 STR_6031 :服务器描述: STR_6032 :服务器欢迎信息: STR_6033 :过山车大亨1安装路径: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :请选择你的过山车大亨1的目录 STR_6036 :清除 STR_6037 :请选择一个有效的过山车大亨1的目录 @@ -3461,7 +3459,7 @@ STR_6183 :跟随{MOVE_X}{87}没有选择sprite STR_6184 :跟随Sprite STR_6185 :选择Sprite STR_6186 :没有选择sprite -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :呕吐物 STR_6189 :样子 STR_6190 :当主界面激活时你无法选择一个sprite. @@ -3558,7 +3556,7 @@ STR_6303 :下载文件 ({COMMA16} / {COMMA16}): [{STRING}] STR_6304 :打开景物选择器 STR_6305 :多线程 STR_6306 :使用多个线程进行渲染的实验选项可能会导致游戏不稳定 -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} ############# # Scenarios # diff --git a/data/language/zh-TW.txt b/data/language/zh-TW.txt index d4a58184f4..0d8ec78805 100644 --- a/data/language/zh-TW.txt +++ b/data/language/zh-TW.txt @@ -795,14 +795,14 @@ STR_1410 :垂直高塔 STR_1411 :{STRINGID}擋在路上 STR_1412 :{WINDOW_COLOUR_3}數據記錄並不適合這類型的遊樂設施 STR_1413 :{WINDOW_COLOUR_3}數據會於{STRINGID}離開{STRINGID}後記錄 -STR_1414 :{SMALLFONT}{BLACK}{DURATION} +STR_1414 :{BLACK}{DURATION} STR_1415 :{WINDOW_COLOUR_2}速度 STR_1416 :{WINDOW_COLOUR_2}高度 STR_1417 :{WINDOW_COLOUR_2}垂直重力 STR_1418 :{WINDOW_COLOUR_2}橫向重力 -STR_1419 :{SMALLFONT}{BLACK}{VELOCITY} -STR_1420 :{SMALLFONT}{BLACK}{LENGTH} -STR_1421 :{SMALLFONT}{BLACK}{COMMA16}g +STR_1419 :{BLACK}{VELOCITY} +STR_1420 :{BLACK}{LENGTH} +STR_1421 :{BLACK}{COMMA16}g STR_1422 :從{POP16}{STRINGID}記錄數據中 STR_1423 :輪侯區道路 STR_1424 :道路 @@ -861,131 +861,131 @@ STR_1476 :{WINDOW_COLOUR_2}刺激度: {BLACK}暫無 STR_1477 :{WINDOW_COLOUR_2}刺激度: {OUTLINE}{RED}{COMMA2DP32} ({STRINGID}) STR_1478 :{WINDOW_COLOUR_2}噁心度: {BLACK}{COMMA2DP32} ({STRINGID}) STR_1479 :{WINDOW_COLOUR_2}噁心度: {BLACK}暫無 -STR_1480 :{SMALLFONT}“我已經沒錢去乘坐{STRINGID}了” -STR_1481 :{SMALLFONT}“我已經花光我的錢了” -STR_1482 :{SMALLFONT}“我感到不適” -STR_1483 :{SMALLFONT}“我感到非常不適” -STR_1484 :{SMALLFONT}“我想去試試比{STRINGID}更刺激的遊樂設施” -STR_1485 :{SMALLFONT}“對我來說, {STRINGID}看起來太刺激了” -STR_1486 :{SMALLFONT}“我還未吃/喝完我的{STRINGID}” -STR_1487 :{SMALLFONT}“只是看著{STRINGID}已經讓我感到不適” -STR_1488 :{SMALLFONT}“我不會花這麼多錢去乘坐{STRINGID}” -STR_1489 :{SMALLFONT}“我想回家” -STR_1490 :{SMALLFONT}“{STRINGID}真的是超值” -STR_1491 :{SMALLFONT}“我已經擁有{STRINGID}了” -STR_1492 :{SMALLFONT}“我已經不夠錢從{STRINGID}購買東西了” -STR_1493 :{SMALLFONT}“我還未餓” -STR_1494 :{SMALLFONT}“我還未渴” -STR_1495 :{SMALLFONT}“救命! 我快要溺死了!” -STR_1496 :{SMALLFONT}“我迷路了!” -STR_1497 :{SMALLFONT}“{STRINGID}真棒” -STR_1498 :{SMALLFONT}“我輪候{STRINGID}很長時間了” -STR_1499 :{SMALLFONT}“我累了” -STR_1500 :{SMALLFONT}“我餓了” -STR_1501 :{SMALLFONT}“我渴了” -STR_1502 :{SMALLFONT}“我要上廁所” -STR_1503 :{SMALLFONT}“我找不到{STRINGID}” -STR_1504 :{SMALLFONT}“我不會花這麼多錢去使用{STRINGID}” -STR_1505 :{SMALLFONT}“我不會在下雨時乘坐{STRINGID}” -STR_1506 :{SMALLFONT}“這裡真多垃圾” -STR_1507 :{SMALLFONT}“我找不到樂園出口” -STR_1508 :{SMALLFONT}“我想從{STRINGID}中下來” -STR_1509 :{SMALLFONT}“我想從{STRINGID}中出來” -STR_1510 :{SMALLFONT}“我不會乘坐{STRINGID} - 它一點都不安全” -STR_1511 :{SMALLFONT}“這道路真是令人噁心” -STR_1512 :{SMALLFONT}“這裡實在太擠迫了” -STR_1513 :{SMALLFONT}“這裡真多被刻意毀壞的設施” -STR_1514 :{SMALLFONT}“這裡的景色真是美不勝收!” -STR_1515 :{SMALLFONT}“這樂園真是又整齊又乾淨” -STR_1516 :{SMALLFONT}“這些跳躍噴泉真棒” -STR_1517 :{SMALLFONT}“這裡播放的音樂挺不錯” -STR_1518 :{SMALLFONT}“這個由{STRINGID}購買的氣球真的是超值” -STR_1519 :{SMALLFONT}“這隻由{STRINGID}購買的毛公仔真的是超值” -STR_1520 :{SMALLFONT}“這份由{STRINGID}購買的樂園地圖真的是超值” -STR_1521 :{SMALLFONT}“這張由{STRINGID}購買的即時照片真的是超值” -STR_1522 :{SMALLFONT}“這把由{STRINGID}購買的雨傘真的是超值” -STR_1523 :{SMALLFONT}“這杯由{STRINGID}購買的飲料真的是超值” -STR_1524 :{SMALLFONT}“這個由{STRINGID}購買的漢堡真的是超值” -STR_1525 :{SMALLFONT}“這客由{STRINGID}購買的薯條真的是超值” -STR_1526 :{SMALLFONT}“這個由{STRINGID}購買的冰淇淋真的是超值” -STR_1527 :{SMALLFONT}“這個由{STRINGID}購買的棉花糖真的是超值” +STR_1480 :“我已經沒錢去乘坐{STRINGID}了” +STR_1481 :“我已經花光我的錢了” +STR_1482 :“我感到不適” +STR_1483 :“我感到非常不適” +STR_1484 :“我想去試試比{STRINGID}更刺激的遊樂設施” +STR_1485 :“對我來說, {STRINGID}看起來太刺激了” +STR_1486 :“我還未吃/喝完我的{STRINGID}” +STR_1487 :“只是看著{STRINGID}已經讓我感到不適” +STR_1488 :“我不會花這麼多錢去乘坐{STRINGID}” +STR_1489 :“我想回家” +STR_1490 :“{STRINGID}真的是超值” +STR_1491 :“我已經擁有{STRINGID}了” +STR_1492 :“我已經不夠錢從{STRINGID}購買東西了” +STR_1493 :“我還未餓” +STR_1494 :“我還未渴” +STR_1495 :“救命! 我快要溺死了!” +STR_1496 :“我迷路了!” +STR_1497 :“{STRINGID}真棒” +STR_1498 :“我輪候{STRINGID}很長時間了” +STR_1499 :“我累了” +STR_1500 :“我餓了” +STR_1501 :“我渴了” +STR_1502 :“我要上廁所” +STR_1503 :“我找不到{STRINGID}” +STR_1504 :“我不會花這麼多錢去使用{STRINGID}” +STR_1505 :“我不會在下雨時乘坐{STRINGID}” +STR_1506 :“這裡真多垃圾” +STR_1507 :“我找不到樂園出口” +STR_1508 :“我想從{STRINGID}中下來” +STR_1509 :“我想從{STRINGID}中出來” +STR_1510 :“我不會乘坐{STRINGID} - 它一點都不安全” +STR_1511 :“這道路真是令人噁心” +STR_1512 :“這裡實在太擠迫了” +STR_1513 :“這裡真多被刻意毀壞的設施” +STR_1514 :“這裡的景色真是美不勝收!” +STR_1515 :“這樂園真是又整齊又乾淨” +STR_1516 :“這些跳躍噴泉真棒” +STR_1517 :“這裡播放的音樂挺不錯” +STR_1518 :“這個由{STRINGID}購買的氣球真的是超值” +STR_1519 :“這隻由{STRINGID}購買的毛公仔真的是超值” +STR_1520 :“這份由{STRINGID}購買的樂園地圖真的是超值” +STR_1521 :“這張由{STRINGID}購買的即時照片真的是超值” +STR_1522 :“這把由{STRINGID}購買的雨傘真的是超值” +STR_1523 :“這杯由{STRINGID}購買的飲料真的是超值” +STR_1524 :“這個由{STRINGID}購買的漢堡真的是超值” +STR_1525 :“這客由{STRINGID}購買的薯條真的是超值” +STR_1526 :“這個由{STRINGID}購買的冰淇淋真的是超值” +STR_1527 :“這個由{STRINGID}購買的棉花糖真的是超值” STR_1528 : STR_1529 : STR_1530 : -STR_1531 :{SMALLFONT}“這件由{STRINGID}購買的批薩真的是超值” +STR_1531 :“這件由{STRINGID}購買的批薩真的是超值” STR_1532 : -STR_1533 :{SMALLFONT}“這客由{STRINGID}購買的爆米花真的是超值” -STR_1534 :{SMALLFONT}“這隻由{STRINGID}購買的熱狗真的是超值” -STR_1535 :{SMALLFONT}“這隻由{STRINGID}購買的觸手真的是超值” -STR_1536 :{SMALLFONT}“這頂由{STRINGID}購買的帽子真的是超值” -STR_1537 :{SMALLFONT}“這個由{STRINGID}購買的太妃蘋果糖真的是超值” -STR_1538 :{SMALLFONT}“這件由{STRINGID}購買的T恤真的是超值” -STR_1539 :{SMALLFONT}“這件由{STRINGID}購買的甜甜圈真的是超值” -STR_1540 :{SMALLFONT}“這杯由{STRINGID}購買的咖啡真的是超值” +STR_1533 :“這客由{STRINGID}購買的爆米花真的是超值” +STR_1534 :“這隻由{STRINGID}購買的熱狗真的是超值” +STR_1535 :“這隻由{STRINGID}購買的觸手真的是超值” +STR_1536 :“這頂由{STRINGID}購買的帽子真的是超值” +STR_1537 :“這個由{STRINGID}購買的太妃蘋果糖真的是超值” +STR_1538 :“這件由{STRINGID}購買的T恤真的是超值” +STR_1539 :“這件由{STRINGID}購買的甜甜圈真的是超值” +STR_1540 :“這杯由{STRINGID}購買的咖啡真的是超值” STR_1541 : -STR_1542 :{SMALLFONT}“這客由{STRINGID}購買的炸雞真的是超值” -STR_1543 :{SMALLFONT}“這杯由{STRINGID}購買的檸檬水真的是超值” +STR_1542 :“這客由{STRINGID}購買的炸雞真的是超值” +STR_1543 :“這杯由{STRINGID}購買的檸檬水真的是超值” STR_1544 : STR_1545 : STR_1546 : STR_1547 : STR_1548 : STR_1549 : -STR_1550 :{SMALLFONT}“嘩!” -STR_1551 :{SMALLFONT}“奇怪, 我覺得有人在悄悄地監視我” -STR_1552 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一個氣球” -STR_1553 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一隻毛公仔” -STR_1554 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一份樂園地圖” -STR_1555 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一張即時照片” -STR_1556 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一把雨傘” -STR_1557 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯飲料” -STR_1558 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一個漢堡” -STR_1559 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一客薯條” -STR_1560 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一個冰淇淋” -STR_1561 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一球棉花糖” +STR_1550 :“嘩!” +STR_1551 :“奇怪, 我覺得有人在悄悄地監視我” +STR_1552 :“我不會花這麼多錢在{STRINGID}購買一個氣球” +STR_1553 :“我不會花這麼多錢在{STRINGID}購買一隻毛公仔” +STR_1554 :“我不會花這麼多錢在{STRINGID}購買一份樂園地圖” +STR_1555 :“我不會花這麼多錢在{STRINGID}購買一張即時照片” +STR_1556 :“我不會花這麼多錢在{STRINGID}購買一把雨傘” +STR_1557 :“我不會花這麼多錢在{STRINGID}購買一杯飲料” +STR_1558 :“我不會花這麼多錢在{STRINGID}購買一個漢堡” +STR_1559 :“我不會花這麼多錢在{STRINGID}購買一客薯條” +STR_1560 :“我不會花這麼多錢在{STRINGID}購買一個冰淇淋” +STR_1561 :“我不會花這麼多錢在{STRINGID}購買一球棉花糖” STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一件批薩” +STR_1565 :“我不會花這麼多錢在{STRINGID}購買一件批薩” STR_1566 : -STR_1567 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一客爆米花” -STR_1568 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一隻熱狗” -STR_1569 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一隻觸手” -STR_1570 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一頂帽子” -STR_1571 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一個太妃蘋果糖” -STR_1572 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一件T恤” -STR_1573 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一件甜甜圈” -STR_1574 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯咖啡” +STR_1567 :“我不會花這麼多錢在{STRINGID}購買一客爆米花” +STR_1568 :“我不會花這麼多錢在{STRINGID}購買一隻熱狗” +STR_1569 :“我不會花這麼多錢在{STRINGID}購買一隻觸手” +STR_1570 :“我不會花這麼多錢在{STRINGID}購買一頂帽子” +STR_1571 :“我不會花這麼多錢在{STRINGID}購買一個太妃蘋果糖” +STR_1572 :“我不會花這麼多錢在{STRINGID}購買一件T恤” +STR_1573 :“我不會花這麼多錢在{STRINGID}購買一件甜甜圈” +STR_1574 :“我不會花這麼多錢在{STRINGID}購買一杯咖啡” STR_1575 : -STR_1576 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一客炸雞” -STR_1577 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯檸檬水” +STR_1576 :“我不會花這麼多錢在{STRINGID}購買一客炸雞” +STR_1577 :“我不會花這麼多錢在{STRINGID}購買一杯檸檬水” STR_1578 : STR_1579 : STR_1580 : STR_1581 : STR_1582 : STR_1583 : -STR_1584 :{SMALLFONT}“這張由{STRINGID}購買的即時照片真的是超值” -STR_1585 :{SMALLFONT}“這張由{STRINGID}購買的即時照片真的是超值” -STR_1586 :{SMALLFONT}“這張由{STRINGID}購買的即時照片真的是超值” -STR_1587 :{SMALLFONT}“這件由{STRINGID}購買的椒鹽卷餅真的是超值” -STR_1588 :{SMALLFONT}“這杯由{STRINGID}購買的熱巧克力真的是超值” -STR_1589 :{SMALLFONT}“這杯由{STRINGID}購買的冰紅茶真的是超值” -STR_1590 :{SMALLFONT}“這個由{STRINGID}購買的漏斗蛋糕真的是超值” -STR_1591 :{SMALLFONT}“這副由{STRINGID}購買的太陽眼鏡真的是超值” -STR_1592 :{SMALLFONT}“這份由{STRINGID}購買的牛肉麵真的是超值” -STR_1593 :{SMALLFONT}“這份由{STRINGID}購買的炒米粉真的是超值” -STR_1594 :{SMALLFONT}“這客由{STRINGID}購買的湯雲吞真的是超值” -STR_1595 :{SMALLFONT}“這客由{STRINGID}購買的肉丸湯真的是超值” -STR_1596 :{SMALLFONT}“這杯由{STRINGID}購買的果汁真的是超值” -STR_1597 :{SMALLFONT}“這杯由{STRINGID}購買的豆漿真的是超值” -STR_1598 :{SMALLFONT}“這杯由{STRINGID}購買的水正果真的是超值” -STR_1599 :{SMALLFONT}“這件由{STRINGID}購買的潛艇三文治真的是超值” -STR_1600 :{SMALLFONT}“這件由{STRINGID}購買的曲奇真的是超值” +STR_1584 :“這張由{STRINGID}購買的即時照片真的是超值” +STR_1585 :“這張由{STRINGID}購買的即時照片真的是超值” +STR_1586 :“這張由{STRINGID}購買的即時照片真的是超值” +STR_1587 :“這件由{STRINGID}購買的椒鹽卷餅真的是超值” +STR_1588 :“這杯由{STRINGID}購買的熱巧克力真的是超值” +STR_1589 :“這杯由{STRINGID}購買的冰紅茶真的是超值” +STR_1590 :“這個由{STRINGID}購買的漏斗蛋糕真的是超值” +STR_1591 :“這副由{STRINGID}購買的太陽眼鏡真的是超值” +STR_1592 :“這份由{STRINGID}購買的牛肉麵真的是超值” +STR_1593 :“這份由{STRINGID}購買的炒米粉真的是超值” +STR_1594 :“這客由{STRINGID}購買的湯雲吞真的是超值” +STR_1595 :“這客由{STRINGID}購買的肉丸湯真的是超值” +STR_1596 :“這杯由{STRINGID}購買的果汁真的是超值” +STR_1597 :“這杯由{STRINGID}購買的豆漿真的是超值” +STR_1598 :“這杯由{STRINGID}購買的水正果真的是超值” +STR_1599 :“這件由{STRINGID}購買的潛艇三文治真的是超值” +STR_1600 :“這件由{STRINGID}購買的曲奇真的是超值” STR_1601 : STR_1602 : STR_1603 : -STR_1604 :{SMALLFONT}“這條由{STRINGID}購買的烤香腸真的是超值” +STR_1604 :“這條由{STRINGID}購買的烤香腸真的是超值” STR_1605 : STR_1606 : STR_1607 : @@ -997,27 +997,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一張即時照片” -STR_1617 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一張即時照片” -STR_1618 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一張即時照片” -STR_1619 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一件椒鹽卷餅” -STR_1620 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯熱巧克力” -STR_1621 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯冰紅茶” -STR_1622 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一個漏斗蛋糕” -STR_1623 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一副太陽眼鏡” -STR_1624 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一份牛肉麵” -STR_1625 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一份炒米粉” -STR_1626 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一客湯雲吞” -STR_1627 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一客肉丸湯” -STR_1628 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯果汁” -STR_1629 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯豆漿” -STR_1630 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一杯水正果” -STR_1631 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一件潛艇三文治” -STR_1632 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一件曲奇” +STR_1616 :“我不會花這麼多錢在{STRINGID}購買一張即時照片” +STR_1617 :“我不會花這麼多錢在{STRINGID}購買一張即時照片” +STR_1618 :“我不會花這麼多錢在{STRINGID}購買一張即時照片” +STR_1619 :“我不會花這麼多錢在{STRINGID}購買一件椒鹽卷餅” +STR_1620 :“我不會花這麼多錢在{STRINGID}購買一杯熱巧克力” +STR_1621 :“我不會花這麼多錢在{STRINGID}購買一杯冰紅茶” +STR_1622 :“我不會花這麼多錢在{STRINGID}購買一個漏斗蛋糕” +STR_1623 :“我不會花這麼多錢在{STRINGID}購買一副太陽眼鏡” +STR_1624 :“我不會花這麼多錢在{STRINGID}購買一份牛肉麵” +STR_1625 :“我不會花這麼多錢在{STRINGID}購買一份炒米粉” +STR_1626 :“我不會花這麼多錢在{STRINGID}購買一客湯雲吞” +STR_1627 :“我不會花這麼多錢在{STRINGID}購買一客肉丸湯” +STR_1628 :“我不會花這麼多錢在{STRINGID}購買一杯果汁” +STR_1629 :“我不會花這麼多錢在{STRINGID}購買一杯豆漿” +STR_1630 :“我不會花這麼多錢在{STRINGID}購買一杯水正果” +STR_1631 :“我不會花這麼多錢在{STRINGID}購買一件潛艇三文治” +STR_1632 :“我不會花這麼多錢在{STRINGID}購買一件曲奇” STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}“我不會花這麼多錢在{STRINGID}購買一條烤香腸” +STR_1636 :“我不會花這麼多錢在{STRINGID}購買一條烤香腸” STR_1637 : STR_1638 : STR_1639 : @@ -1029,11 +1029,11 @@ STR_1644 : STR_1645 : STR_1646 : STR_1647 : -STR_1648 :{SMALLFONT}“救命! 放我下去!” -STR_1649 :{SMALLFONT}“我花光了我身上的錢了!” -STR_1650 :{SMALLFONT}“嘩! 嶄新的遊樂設施在建造中呢!” +STR_1648 :“救命! 放我下去!” +STR_1649 :“我花光了我身上的錢了!” +STR_1650 :“嘩! 嶄新的遊樂設施在建造中呢!” # Two removed inside jokes about Intamin and Phoenix -STR_1653 :{SMALLFONT}“…然而, 現在我們已經在{STRINGID}之上!” +STR_1653 :“…然而, 現在我們已經在{STRINGID}之上!” STR_1654 :{WINDOW_COLOUR_2}最近的想法: STR_1655 :在地上建造道路 STR_1656 :建造橋樑或隧道 @@ -1185,7 +1185,7 @@ STR_1808 :{WINDOW_COLOUR_2}上次故障原因: {BLACK}{STRINGID} STR_1809 :{WINDOW_COLOUR_2}今次故障原因: {OUTLINE}{RED}{STRINGID} STR_1810 :{WINDOW_COLOUR_2}攜帶中: STR_1811 :不能建造於此… -STR_1812 :{SMALLFONT}{BLACK}{STRINGID} +STR_1812 :{BLACK}{STRINGID} STR_1813 :其他物件 STR_1814 :動作 STR_1815 :想法 @@ -1195,7 +1195,7 @@ STR_1818 :{WINDOW_COLOUR_2}所有遊客 STR_1819 :{WINDOW_COLOUR_2}所有遊客 (總匯) STR_1820 :{WINDOW_COLOUR_2}{STRINGID}的遊客 STR_1821 :{WINDOW_COLOUR_2}在想{STRINGID}的遊客 -STR_1822 :{WINDOW_COLOUR_2}在想{POP16}{STRINGID}的遊客 +STR_1822 :{WINDOW_COLOUR_2}在想{POP16}{SMALLFONT}{STRINGID}{MEDIUMFONT}的遊客 STR_1823 :顯示遊客對此遊樂設施/店面的想法 STR_1824 :顯示在使用此遊樂設施/店面的遊客 STR_1825 :顯示在輪候此遊樂設施/店面的遊客 @@ -1297,7 +1297,6 @@ STR_1921 :開始新遊戲 STR_1922 :繼續遊玩存檔 STR_1924 :退出遊戲 STR_1925 :不能放置人物於此… -STR_1926 :{SMALLFONT} STR_1927 :{YELLOW}{STRINGID}發生故障了 STR_1928 :{RED}{STRINGID}毀壞了! STR_1929 :{RED}{STRINGID}依然未修復好{NEWLINE}請檢查維修人員位置所在, 或考慮以更好的方法管理他們 @@ -1578,7 +1577,7 @@ STR_2218 :{RED}{STRINGID}, {STRINGID}的一部份, 尚未返回到{STRINGID}! STR_2219 :{RED}{COMMA16}人已喪生於{STRINGID}的意外中 STR_2220 :{WINDOW_COLOUR_2}樂園評價: {BLACK}{COMMA16} STR_2221 :樂園評價: {COMMA16} -STR_2222 :{SMALLFONT}{BLACK}{STRINGID} +STR_2222 :{BLACK}{STRINGID} STR_2223 :{WINDOW_COLOUR_2}園內遊客: {BLACK}{COMMA32} STR_2224 :{WINDOW_COLOUR_2}現金: {BLACK}{CURRENCY2DP} STR_2225 :{WINDOW_COLOUR_2}現金: {RED}{CURRENCY2DP} @@ -1591,7 +1590,7 @@ STR_2231 :下落煞車裝置 STR_2232 :纜索坡道 STR_2233 :樂園資料 STR_2234 :最近訊息 -STR_2235 :{SMALLFONT}{STRINGID} {STRINGID} +STR_2235 :{STRINGID} {STRINGID} STR_2236 :1月 STR_2237 :2月 STR_2238 :3月 @@ -1795,7 +1794,7 @@ STR_2450 :{YELLOW}你針對樂園的推廣計劃現已結束 STR_2451 :{YELLOW}你針對{STRINGID}的推廣計劃現已結束 STR_2452 :{WINDOW_COLOUR_2}現金 (減去貸款): {BLACK}{CURRENCY2DP} STR_2453 :{WINDOW_COLOUR_2}現金 (減去貸款): {RED}{CURRENCY2DP} -STR_2454 :{SMALLFONT}{BLACK}{CURRENCY2DP} - +STR_2454 :{BLACK}{CURRENCY2DP} - STR_2457 :顯示財政報表 STR_2458 :以圖表顯示過往到現在的凈現金 STR_2459 :以圖表顯示過往到現在的樂園價格 @@ -1905,7 +1904,6 @@ STR_2636 :NumPad / STR_2669 :NumLock STR_2670 :Scroll STR_2680 :所有項目都已研發完畢 -STR_2681 :{MEDIUMFONT}{BLACK}增加{CURRENCY}到你的金錢裡 STR_2684 :一大群遊客到訪 STR_2685 :簡單雜噪參數 STR_2686 :最低值: @@ -1992,7 +1990,7 @@ STR_2789 :{WINDOW_COLOUR_2}你未能達到目標! STR_2790 :請輸入你要在劇情列表顯示的名字 STR_2791 :輸入名字 STR_2792 :請輸入你要在劇情列表顯示的名字: -STR_2793 :{SMALLFONT}(已由{STRINGID}完成) +STR_2793 :(已由{STRINGID}完成) STR_2794 :{WINDOW_COLOUR_2}完成目標者: {BLACK}{STRINGID}{NEWLINE}{WINDOW_COLOUR_2} 令公司價值增至: {BLACK}{CURRENCY} STR_2795 :排序 STR_2796 :將遊樂設施以不同類別列出 @@ -2501,7 +2499,7 @@ STR_5134 :選擇較大的土地範圍 STR_5135 :購買土地擁有權或建造權 STR_5136 :土地擁有權 STR_5137 :移除遊樂設施的運行限制 -STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID} +STR_5138 :{WINDOW_COLOUR_2}{STRINGID} STR_5139 :{WHITE}{STRINGID} STR_5140 :去除煞車組件故障 STR_5141 :去除所有故障機會 @@ -2647,7 +2645,7 @@ STR_5297 :開放樂園 STR_5298 :{RED}{STRINGID} STR_5299 :{LIGHTPINK}{STRINGID} STR_5300 :一鍵解僱員工 -STR_5301 :{MEDIUMFONT}{BLACK}付清你的貸款 +STR_5301 :付清你的貸款 STR_5302 :付清貸款 STR_5303 :暫停時可以建造物件 STR_5304 :主選單動畫: @@ -2806,7 +2804,7 @@ STR_5481 :主題 STR_5482 :{WINDOW_COLOUR_2}上次檢查時間: {BLACK} 1分鐘前 STR_5483 :{BLACK}(還剩{COMMA16}週結束) STR_5484 :{BLACK}(還剩{COMMA16}週結束) -STR_5485 :{SMALLFONT}{STRING} +STR_5485 :{STRING} STR_5486 :{BLACK}{COMMA16} STR_5487 :顯示最近消息 STR_5489 :只顯示追蹤中的遊客 @@ -3310,7 +3308,7 @@ STR_6030 :景物選取器. 點撃選取地圖上的景物來建造相同的 STR_6031 :伺服器描述: STR_6032 :伺服器歡迎訊息: STR_6033 :夢幻遊樂園(RCT1)安裝路徑: -STR_6034 :{SMALLFONT}{BLACK}{STRING} +STR_6034 :{BLACK}{STRING} STR_6035 :請選擇已安裝夢幻遊樂園(RCT1)的文件夾 STR_6036 :清除 STR_6037 :請選擇一個正確的夢幻遊樂園(RCT1)文件夾 @@ -3455,7 +3453,7 @@ STR_6183 :追蹤{MOVE_X}{87}無選取中的元素 STR_6184 :追蹤元素 STR_6185 :選取元素 STR_6186 :無選取中的元素 -STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING} +STR_6187 :{OUTLINE}{WINDOW_COLOUR_2}{STRING} STR_6188 :嘔吐物 STR_6189 :鴨子 STR_6190 :你不能於主標題畫面中選取元素. @@ -3608,7 +3606,7 @@ STR_6356 :如果樂園中有水域存在, 則會生成鴨子 STR_6357 :移除所有於地圖上的鴨子 STR_6358 :第{UINT16}頁 STR_6359 :{POP16}{POP16}第{UINT16}頁 -STR_6360 :{SMALLFONT}{BLACK}{COMMA32} +STR_6360 :{BLACK}{COMMA32} STR_6361 :啟用遊樂設施的燈光效果 (實驗性質) STR_6362 :當啟用此選項時, 所有在擁有軌道的遊樂設施中的車輛將會於晚中被照亮. STR_6363 :複製文字到剪貼簿 diff --git a/data/shaders/drawline.vert b/data/shaders/drawline.vert index 2faf19dc2a..dea6af7f47 100644 --- a/data/shaders/drawline.vert +++ b/data/shaders/drawline.vert @@ -16,12 +16,12 @@ flat out uint fColour; void main() { - vec2 pos = clamp(vVertMat * vBounds, vClip.xy, vClip.zw); + vec2 pos = clamp(vVertMat * vec4(vBounds), vec2(vClip.xy), vec2(vClip.zw)); // Transform screen coordinates to viewport coordinates - pos = (pos * (2.0 / uScreenSize)) - 1.0; - pos.y *= -1; - float depth = 1.0 - (vDepth + 1) * DEPTH_INCREMENT; + pos = (pos * (2.0 / vec2(uScreenSize))) - 1.0; + pos.y *= -1.0; + float depth = 1.0 - (float(vDepth) + 1.0) * DEPTH_INCREMENT; fColour = vColour; diff --git a/data/shaders/drawrect.vert b/data/shaders/drawrect.vert index b752f364dc..6c1e0a9be7 100644 --- a/data/shaders/drawrect.vert +++ b/data/shaders/drawrect.vert @@ -30,16 +30,16 @@ flat out vec3 fPalettes; void main() { // Clamp position by vClip, correcting interpolated values for the clipping - vec2 m = clamp(((vVertMat * vClip) - (vVertMat * vBounds))/(vBounds.zw - vBounds.xy) + vVertVec, 0.0, 1.0); - vec2 pos = mix(vBounds.xy, vBounds.zw, m); + vec2 m = clamp(((vVertMat * vec4(vClip)) - (vVertMat * vec4(vBounds)))/vec2(vBounds.zw - vBounds.xy) + vVertVec, 0.0, 1.0); + vec2 pos = mix(vec2(vBounds.xy), vec2(vBounds.zw), m); fTexColour = vec3(mix(vTexColourBounds.xy, vTexColourBounds.zw, m), vTexColourAtlas); fTexMask = vec3(mix(vTexMaskBounds.xy, vTexMaskBounds.zw, m), vTexMaskAtlas); fPosition = pos; // Transform screen coordinates to texture coordinates - float depth = 1.0 - (vDepth + 1) * DEPTH_INCREMENT; - pos = pos / uScreenSize; + float depth = 1.0 - (float(vDepth) + 1.0) * DEPTH_INCREMENT; + pos = pos / vec2(uScreenSize); pos.y = pos.y * -1.0 + 1.0; fPeelPos = vec3(pos, depth * 0.5 + 0.5); diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 9d7344845c..d4a902bef9 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,3 +1,44 @@ +0.3.3+ (in development) +------------------------------------------------------------------------ +- Feature: [#13967] Track List window now displays the path to the design when debugging tools are on. +- Feature: [#14071] “Vandals stopped” statistic for security guards. +- Feature: [#14169] Lighting effects for shops and stalls. +- Feature: [#14296] Allow using early scenario completion in multiplayer. +- Feature: [#14538] [Plugin] Add property for getting current plugin api version. +- Feature: [#14620] [Plugin] Add properties related to guest generation. +- Feature: [#14636] [Plugin] Add properties related to climate and weather. +- Feature: [#14731] Opaque water (like in RCT1). +- Change: [#14496] [Plugin] Rename Object to LoadedObject to fix conflicts with Typescript's Object interface. +- Change: [#14536] [Plugin] Rename ListView to ListViewWidget to make it consistent with names of other widgets. +- Change: [#14751] “No construction above tree height” limitation now allows placing high trees. +- Change: [#14841] Redesign the About window, including new button to copy the current version info. +- Fix: [#11829] Visual glitches and crashes when using RCT1 assets from mismatched or corrupt CSG1.DAT and CSG1i.DAT files. +- Fix: [#12262] Windows can appear off screen with small screens or high scaling. +- Fix: [#13581] Opening the Options menu causes a noticeable drop in FPS. +- Fix: [#13894] Block brakes do not animate. +- Fix: [#13986] OpenGL: Track preview window, flip/rotate button do not update the thumbnail. +- Fix: [#14315] Crash when trying to rename Air Powered Vertical Coaster in Korean. +- Fix: [#14330] join_server uses default_port from config. +- Fix: [#14415] Entrances/exits are removed when built on top of each other. +- Fix: [#14449] Surface smoothing at extra zoom levels not working. +- Fix: [#14468] Cannot close Options window on Android. +- Fix: [#14493] [Plugin] isHidden only works for tile elements up to the first element with a base height of over 32. +- Fix: [#14587] Confusing message when joining server with mismatched network version. +- Fix: [#14604] American-style Steam Trains are not imported correctly from RCT1 saves. +- Fix: [#14638] The “About OpenRCT2” window cannot be themed. +- Fix: [#14682] Crash when painting Swinging Ships with invalid subtype. +- Fix: [#14707] Crash when window is closed during text input. +- Fix: [#14710] Ride/Track Design preview does not show if it costs more money than available. +- Fix: [#14774] Incorrect import of scenery research caused all scenery to be unlocked. +- Fix: [#14806] Incorrect function call in WallPlaceAction plugin code. +- Fix: [#14871] Crash when trying to place track when there are no free tile elements. +- Fix: [#14880] Unable to close changelog window when its content fails to load. +- Fix: [#14945] Incorrect drop height penalty on log flume ride. +- Fix: [#14964] Unable to build in multiplayer as client with "Build while paused" cheat enabled when the host is paused. +- Improved: [#14511] “Unlock operating limits” cheat now also unlocks all music. +- Improved: [#14712, #14716] Improve startup times. +- Improved: [#14982] Add Malgun Gothic and change Nanum Gothic filename for Korean. + 0.3.3 (2021-03-13) ------------------------------------------------------------------------ - Feature: [#6677] Add Discord RPC to macOS builds. diff --git a/distribution/macos/Info.plist b/distribution/macos/Info.plist index 800f356eaa..f7fd4c88c5 100644 --- a/distribution/macos/Info.plist +++ b/distribution/macos/Info.plist @@ -3,13 +3,13 @@ CFBundleExecutable - $(EXECUTABLE_NAME) + ${EXECUTABLE_NAME} CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) + ${PRODUCT_BUNDLE_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName - $(PRODUCT_NAME) + ${PRODUCT_NAME} CFBundlePackageType APPL CFBundleShortVersionString @@ -17,7 +17,7 @@ CFBundleSignature ORCT LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) + ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright OpenRCT2 is licensed under the GNU General Public License version 3 CFBundleAllowMixedLocalizations diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index 320b597772..72efec0980 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -37,6 +37,8 @@ declare global { var park: Park; /** APIs for the current scenario. */ var scenario: Scenario; + /** APIs for the climate and weather. */ + var climate: Climate; /** * APIs for creating and editing title sequences. * These will only be available to clients that are not running headless mode. @@ -159,6 +161,12 @@ declare global { * Core APIs for storage and subscriptions. */ interface Context { + /** + * Gets the current version of the plugin api. This is an integer that increments + * by 1 every time a change to the plugin api is made. + */ + readonly apiVersion: number; + /** * The user's current configuration. */ @@ -186,11 +194,11 @@ declare global { * @param type The object type. * @param index The index. */ - getObject(type: ObjectType, index: number): Object; + getObject(type: ObjectType, index: number): LoadedObject; getObject(type: "ride", index: number): RideObject; getObject(type: "small_scenery", index: number): SmallSceneryObject; - getAllObjects(type: ObjectType): Object[]; + getAllObjects(type: ObjectType): LoadedObject[]; getAllObjects(type: "ride"): RideObject[]; /** @@ -258,6 +266,7 @@ declare global { subscribe(hook: "network.leave", callback: (e: NetworkEventArgs) => void): IDisposable; subscribe(hook: "ride.ratings.calculate", callback: (e: RideRatingsCalculateArgs) => void): IDisposable; subscribe(hook: "action.location", callback: (e: ActionLocationArgs) => void): IDisposable; + subscribe(hook: "guest.generation", callback: (id: number) => void): IDisposable; /** * Registers a function to be called every so often in realtime, specified by the given delay. @@ -723,7 +732,7 @@ declare global { /** * Represents the definition of a loaded object (.DAT or .json) such a ride type or scenery item. */ - interface Object { + interface LoadedObject { /** * The object type. */ @@ -756,7 +765,7 @@ declare global { /** * Represents the object definition of a ride or stall. */ - interface RideObject extends Object { + interface RideObject extends LoadedObject { /** * The description of the ride / stall in the player's current language. */ @@ -839,7 +848,7 @@ declare global { /** * Represents the object definition of a small scenery item such a tree. */ - interface SmallSceneryObject extends Object { + interface SmallSceneryObject extends LoadedObject { /** * Raw bit flags that describe characteristics of the scenery item. */ @@ -1611,6 +1620,40 @@ declare global { */ readonly guests: number; + /** + * The maximum number of guests that will spawn naturally (soft guest cap). + * In scenarios with difficult guest generation, guests will not spawn above + * this value without advertisements. + */ + readonly suggestedGuestMaximum: number; + + /** + * The probability out of 65535 that guests will spawn per tick. + * The number of guest spawns per second is equal to + * guests per second = 40 * (guestGenerationProbability / 65535) + */ + readonly guestGenerationProbability: number; + + /** + * The average amount of cash guests will spawn with. + */ + readonly guestInitialCash: number; + + /** + * The average happiness guests will spawn at out of 255. + */ + readonly guestInitialHappiness: number; + + /** + * The average hunger guests will spawn at out of 255. + */ + readonly guestInitialHunger: number; + + /** + * The average thirst guests will spawn at out of 255. + */ + readonly guestInitialThirst: number; + /** * The park value, will be updated every 512 ticks. */ @@ -1622,6 +1665,13 @@ declare global { */ companyValue: number; + /** + * The sum of ride values, used to determine the most guests will + * pay to enter the park and for some awards. + * Calculated as the sum of (ride value - ride price) * 2. + */ + readonly totalRideValueForMoney: number; + /** * The total number of guests that have entered the park. */ @@ -1771,6 +1821,45 @@ declare global { companyValueRecord: number; } + type ClimateType = + "coolAndWet" | + "warm" | + "hotAndDry" | + "cold"; + + type WeatherType = + "sunny" | + "partiallyCloudy" | + "cloudy" | + "rain" | + "heavyRain" | + "thunder" | + "snow" | + "heavySnow" | + "blizzard"; + + interface ClimateState { + readonly weather: WeatherType; + readonly temperature: number; + } + + interface Climate { + /** + * The climate of the park. + */ + readonly type: ClimateType; + + /** + * The current weather in the park. + */ + readonly current: ClimateState; + + /** + * The next weather the park will experience. + */ + readonly future: ClimateState; + } + interface Cheats { allowArbitraryRideTypeChanges: boolean; allowTrackPlaceInvalidHeights: boolean; @@ -2053,7 +2142,7 @@ declare global { type Widget = ButtonWidget | CheckboxWidget | ColourPickerWidget | CustomWidget | DropdownWidget | GroupBoxWidget | - LabelWidget | ListView | SpinnerWidget | TextBoxWidget | ViewportWidget; + LabelWidget | ListViewWidget | SpinnerWidget | TextBoxWidget | ViewportWidget; interface WidgetBase { readonly window?: Window; @@ -2146,7 +2235,7 @@ declare global { column: number; } - interface ListView extends WidgetBase { + interface ListViewWidget extends WidgetBase { type: "listview"; scrollbars?: ScrollbarType; isStriped?: boolean; diff --git a/openrct2.proj b/openrct2.proj index 77c0bb2de9..999ffe9873 100644 --- a/openrct2.proj +++ b/openrct2.proj @@ -48,8 +48,8 @@ 304d13a126c15bf2c86ff13b81a2f2cc1856ac8d https://github.com/OpenRCT2/objects/releases/download/v1.0.21/objects.zip c38af45d51a6e440386180feacf76c64720b6ac5 - https://github.com/OpenRCT2/replays/releases/download/v0.0.31/replays.zip - 693BDD6F4B7C3B312AABEBCAEA4800FE97B33527 + https://github.com/OpenRCT2/replays/releases/download/v0.0.43/replays.zip + 269E4FC432A73AE9A5D601EC2A1C882F3D9BDF3C diff --git a/readme.md b/readme.md index 43c993a547..9e872d4f5c 100644 --- a/readme.md +++ b/readme.md @@ -68,7 +68,7 @@ OpenRCT2 requires original files of RollerCoaster Tycoon 2 to play. It can be bo * [Latest development build](https://flathub.org/beta-repo/appstream/io.openrct2.OpenRCT2.flatpakref) Some Linux distributions offer native packages already. These packages are usually third-party, but we're trying to resolve issues they are facing. -* ArchLinux AUR: [openrct2-git](https://aur.archlinux.org/packages/openrct2-git) and [openrct2](https://aur.archlinux.org/packages/openrct2) +* ArchLinux: [openrct2-git](https://aur.archlinux.org/packages/openrct2-git) (AUR) and [openrct2](https://archlinux.org/packages/community/x86_64/openrct2/) (Community) * Ubuntu PPA: [`develop` branch](https://launchpad.net/~openrct2/+archive/ubuntu/nightly) (nightly builds) * openSUSE OBS: [games/openrct2](https://software.opensuse.org/download.html?project=games&package=openrct2) * Gentoo (main portage tree): [games-simulation/openrct2](https://packages.gentoo.org/packages/games-simulation/openrct2) @@ -217,7 +217,7 @@ We would also like to distribute additional scenarios with the game, when the ti | [OpenLoco](https://github.com/OpenLoco/OpenLoco) | [OpenTTD](https://github.com/OpenTTD/OpenTTD) | [openage](https://github.com/SFTtech/openage) | [OpenRA](https://github.com/OpenRA/OpenRA) | |:------------------------------------------------:|:----------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------:| -| [![icon_x128](https://user-images.githubusercontent.com/604665/53047651-2c533c00-3493-11e9-911a-1a3540fc1156.png)](https://github.com/OpenLoco/OpenLoco) | [![](https://github.com/OpenTTD/OpenTTD/raw/850d05d24d4768c81d97765204ef2a487dd4972c/media/openttd.128.png)](https://github.com/OpenTTD/OpenTTD) | [![](https://user-images.githubusercontent.com/550290/36507534-4693f354-175a-11e8-93a7-faa0481474fb.png)](https://github.com/SFTtech/openage) | [![](https://raw.githubusercontent.com/OpenRA/OpenRA/bleed/packaging/linux/icons/ra_128x128.png)](https://github.com/OpenRA/OpenRA) | +| [![icon_x128](https://user-images.githubusercontent.com/604665/53047651-2c533c00-3493-11e9-911a-1a3540fc1156.png)](https://github.com/OpenLoco/OpenLoco) | [![](https://github.com/OpenTTD/OpenTTD/raw/850d05d24d4768c81d97765204ef2a487dd4972c/media/openttd.128.png)](https://github.com/OpenTTD/OpenTTD) | [![](https://user-images.githubusercontent.com/550290/36507534-4693f354-175a-11e8-93a7-faa0481474fb.png)](https://github.com/SFTtech/openage) | [![](https://raw.githubusercontent.com/OpenRA/OpenRA/bleed/packaging/artwork/ra_128x128.png)](https://github.com/OpenRA/OpenRA) | | Chris Sawyer's Locomotion | Transport Tycoon Deluxe | Age of Empires 2 | Red Alert | # 7. Sponsors diff --git a/scripts/build b/scripts/build index 160d7c331b..9274410488 100755 --- a/scripts/build +++ b/scripts/build @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash -e # Ensure we are in root directory if [[ $(uname) == "Darwin" ]]; then diff --git a/scripts/build-appimage b/scripts/build-appimage index 498706c5ba..0bc94c9a14 100755 --- a/scripts/build-appimage +++ b/scripts/build-appimage @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash -e echo -e "\033[0;36mBuilding AppImage for OpenRCT2...\033[0m" @@ -8,7 +7,7 @@ basedir="$(readlink -f `dirname $0`/..)" cd $basedir linuxdeploy=/tmp/linuxdeploy-x86_64.AppImage -curl -Lo $linuxdeploy https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage +curl -fLo $linuxdeploy https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage chmod +x $linuxdeploy pushd bin $linuxdeploy --appimage-extract-and-run --appdir install/ --output appimage --desktop-file install/usr/share/applications/openrct2.desktop diff --git a/scripts/build-installer b/scripts/build-installer index 49101bf4a5..2f2fb5adff 100755 --- a/scripts/build-installer +++ b/scripts/build-installer @@ -1,5 +1,5 @@ -#!/bin/bash -set -e +#!/bin/bash -e + if [[ "$#" -gt 2 || "$1" == "-h" ]]; then echo 'Create a Windows installer for OpenRCT2' echo '' diff --git a/scripts/build-portable b/scripts/build-portable index 8e2912b15b..bd4460cfa1 100755 --- a/scripts/build-portable +++ b/scripts/build-portable @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash -e if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then # Create a Windows symbols archive for OpenRCT2 @@ -54,6 +53,9 @@ else mkdir -p $workdir/OpenRCT2 cp -r $install/bin/* $workdir/OpenRCT2 + if [[ "$OSTYPE" == "darwin"* ]]; then + cp -R $install/lib/ $workdir/OpenRCT2 + fi cp -r $install/share/doc/openrct2 $workdir/OpenRCT2/doc cp -r $install/share/openrct2 $workdir/OpenRCT2/data pushd $workdir > /dev/null diff --git a/scripts/build-symbols b/scripts/build-symbols index d3e28e446b..5fede436c6 100755 --- a/scripts/build-symbols +++ b/scripts/build-symbols @@ -1,5 +1,14 @@ -#!/bin/bash -set -e +#!/bin/bash -e + +# Check 7z or zip is available +if [ -x "$(command -v 7z)" ]; then + archiver="7z a" +elif [ -x "$(command -v zip)" ]; then + archiver=zip +else + echo -e >&2 "\033[0;7z and zip not found\033[0m" + exit 1 +fi # Create a Windows symbols archive for OpenRCT2 basedir="$(readlink -f `dirname $0`/..)" @@ -7,17 +16,11 @@ cd $basedir/bin destination=../artifacts/openrct2-symbols-$CONFIGURATION-$PLATFORM.zip -# Check 7z is available -if ! [ -x "$(command -v 7z)" ]; then - echo -e >&2 "\033[0;7z not found\033[0m" - exit 1 -fi - echo -e "\033[0;36mCreating symbols archive for OpenRCT2...\033[0m" if [[ -f $destination ]]; then rm $destination fi -7z a $destination openrct2.exe openrct2.com openrct2-win.pdb +$archiver $destination openrct2.exe openrct2.com openrct2-win.pdb destination=$(cygpath -w $(readlink -f $destination)) printf '\033[0;32m%s\033[0m\n' "${destination} created successfully" diff --git a/scripts/check-code-formatting b/scripts/check-code-formatting index 04cc0e1a0d..86c2e64b22 100755 --- a/scripts/check-code-formatting +++ b/scripts/check-code-formatting @@ -1,5 +1,4 @@ -#!/bin/sh -set -e +#!/bin/sh -e readlink_bin='readlink' diff --git a/scripts/get-discord-rpc b/scripts/get-discord-rpc index 1305efacb2..cd785ff567 100755 --- a/scripts/get-discord-rpc +++ b/scripts/get-discord-rpc @@ -1,5 +1,5 @@ -#!/bin/bash -set -e +#!/bin/bash -e + if [[ $(uname) == "Linux" ]]; then basedir="$(readlink -f `dirname $0`/..)" elif [[ $(uname) == "Darwin" ]]; then @@ -10,5 +10,5 @@ else fi cd $basedir -git clone https://github.com/discordapp/discord-rpc -b v3.4.0 -git clone https://github.com/janisozaur/rapidjson discord-rpc/thirdparty/rapidjson -b patch-1 +git clone --depth 1 -b v3.4.0 https://github.com/discordapp/discord-rpc +git clone --depth 1 -b patch-1 https://github.com/janisozaur/rapidjson discord-rpc/thirdparty/rapidjson diff --git a/scripts/install-nsis b/scripts/install-nsis index 43a1ec2029..a31d6e3d18 100755 --- a/scripts/install-nsis +++ b/scripts/install-nsis @@ -1,5 +1,5 @@ -#!/bin/bash -set -e +#!/bin/bash -e + if [[ "$#" -ne 0 && "$#" -ne 2 ]]; then echo 'Install a portable version of NSIS which can build the OpenRCT2 Windows installer.' echo '' @@ -11,7 +11,7 @@ fi if [[ "$1" == "-d" ]]; then echo -e "\033[0;36mDownloading prebuilt NSIS from GitHub...\033[0m" - curl -sLo nsis.zip "https://github.com/OpenRCT2/Dependencies/releases/download/v20/nsis.zip" + curl -sSfLO "https://github.com/OpenRCT2/Dependencies/releases/download/v20/nsis.zip" 7z -bd -y "-o$2" x nsis.zip rm nsis.zip echo -e "\033[0;32mNSIS downloaded, add "$2/bin" to PATH\033[0m" @@ -19,7 +19,7 @@ if [[ "$1" == "-d" ]]; then fi # Download NSIS with chocolatey and then download extra plugins -nsisdir="C:/ProgramData/chocolatey/lib/nsis.portable" +nsisdir="$ProgramData/chocolatey/lib/nsis.portable" if [[ -d $nsisdir ]] then echo -e "\033[0;36mNSIS already installed.\033[0m" @@ -30,13 +30,13 @@ echo -e "\033[0;36mDownloading NSIS from chocolatey...\033[0m" cinst nsis.portable --version=3.01-beta1 echo -e "\033[0;36mDownloading KillProcDLL for NSIS...\033[0m" -curl -sLo nsisxtra.zip "http://nsis.sourceforge.net/mediawiki/images/5/53/KillProcDll%26FindProcDll.zip" +curl -sSfLo nsisxtra.zip "http://nsis.sourceforge.net/mediawiki/images/5/53/KillProcDll%26FindProcDll.zip" 7z x nsisxtra.zip cp FindProcDLL.dll "$nsisdir/tools/nsis-3.0b1/Plugins/x86-ansi" echo -e "\033[0;36mDownloading UAC plugin for NSIS...\033[0m" -curl -sLo uac.zip "http://nsis.sourceforge.net/mediawiki/images/8/8f/UAC.zip" -7z x uac.zip +curl -sSfLO "http://nsis.sourceforge.net/mediawiki/images/8/8f/UAC.zip" +7z x UAC.zip cp UAC.nsh "$nsisdir/tools/nsis-3.0b1/Include" cp -r Plugins "$nsisdir/tools/nsis-3.0b1" diff --git a/scripts/linux/build-appimage-docker.sh b/scripts/linux/build-appimage-docker.sh index 8ac54e010a..cde760edf4 100755 --- a/scripts/linux/build-appimage-docker.sh +++ b/scripts/linux/build-appimage-docker.sh @@ -1,12 +1,10 @@ -#! /bin/bash - -set -ex +#!/bin/bash -ex REPO_ROOT=$(readlink -f $(dirname "$0")/../..) -docker run --rm -it -e NO_CLEANUP=1 -e CI=1 --device /dev/fuse:mrw -v $(readlink -f .):/ws openrct2/openrct2:ubuntu_amd64 bash -xc " +docker run --rm -it -e NO_CLEANUP=1 -e CI=1 --device /dev/fuse:mrw -v $(readlink -f .):/ws openrct2/openrct2:ubuntu_amd64 bash -exc " cd /ws apt-get update apt-get install -y wget libcairo2 -bash -xe scripts/linux/build-appimage.sh +scripts/linux/build-appimage.sh " diff --git a/scripts/linux/build-appimage.sh b/scripts/linux/build-appimage.sh index fd0da9511a..6d2b1529c7 100755 --- a/scripts/linux/build-appimage.sh +++ b/scripts/linux/build-appimage.sh @@ -1,7 +1,4 @@ -#! /bin/bash - -set -e -set -x +#!/bin/bash -ex # use RAM disk if possible if [ "$CI" == "" ] && [ -d /dev/shm ]; then @@ -18,7 +15,7 @@ cleanup () { fi } -[ "$NO_CLEANUP" == "" ] && trap cleanup EXIT +if [ "$NO_CLEANUP" == "" ] && trap cleanup EXIT # store repo root as variable REPO_ROOT=$(readlink -f $(dirname "$0")/../..) diff --git a/scripts/linux/build.sh b/scripts/linux/build.sh deleted file mode 100755 index bbc323b687..0000000000 --- a/scripts/linux/build.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/bash - -set -e - -if [[ $TRAVIS != "true" ]] -then - echo This script is only meant to be run on Travis-CI. - echo Please use CMake to build the project. - exit 1 -fi - -cachedir=.cache -mkdir -p $cachedir - -ci_env=`bash <(curl -s https://codecov.io/env)` - -# Sets default target to "linux", if none specified -TARGET=${TARGET-linux} - -if [[ ! -d build ]]; then - mkdir -p build -fi - -PARENT=$(readlink -f ./) -chmod -R a+rwX "$(pwd)" -chmod -R g+s "$(pwd)" - -pushd build - echo OPENRCT2_CMAKE_OPTS = "$OPENRCT2_CMAKE_OPTS" - if [[ $TARGET == "docker64" ]] - then - # CMAKE and MAKE opts from environment - docker run $ci_env -e CCACHE_DIR=/ccache -v $HOME/.ccache:/ccache -v "$PARENT":"$PARENT" -w "$PARENT"/build -i -t openrct2/openrct2:64bit-only bash -c "export PATH=/usr/lib/ccache/bin:\$PATH LD_PRELOAD=/usr/lib/libSegFault.so && ccache --show-stats > ccache_before && cmake ../ -DWITH_TESTS=on $OPENRCT2_CMAKE_OPTS && ninja all install $OPENRCT2_MAKE_OPTS && ccache --show-stats > ccache_after && ( diff -U100 ccache_before ccache_after || true ) && ./openrct2-cli scan-objects && ctest --output-on-failure && cd .. && bash <(curl -s https://codecov.io/bash) 2>\&1 | grep -v \"has arcs\"" - elif [[ $TARGET == "ubuntu_i686" ]] - then - # CMAKE and MAKE opts from environment - docker run $ci_env -e CCACHE_DIR=/ccache -v $HOME/.ccache:/ccache -v "$PARENT":"$PARENT" -w "$PARENT"/build -i -t openrct2/openrct2:ubuntu_i686 bash -c "export PATH=/usr/lib/ccache:\$PATH && ccache --show-stats > ccache_before && cmake ../ -DWITH_TESTS=on $OPENRCT2_CMAKE_OPTS && ninja all testpaint install $OPENRCT2_MAKE_OPTS && ccache --show-stats > ccache_after && ( diff -U100 ccache_before ccache_after || true ) && LD_PRELOAD=/lib/i386-linux-gnu/libSegFault.so ./openrct2-cli scan-objects && LD_PRELOAD=/lib/i386-linux-gnu/libSegFault.so ctest --output-on-failure && ( LD_PRELOAD=/lib/i386-linux-gnu/libSegFault.so ./testpaint --quiet || if [[ \$? -eq 1 ]] ; then echo Allowing failed tests to pass ; else echo here ; false; fi ) && cd .. && bash <(curl -s https://codecov.io/bash)" - elif [[ $TARGET == "ubuntu_amd64" ]] - then - # CMAKE and MAKE opts from environment - docker run $ci_env -e CCACHE_DIR=/ccache -v $HOME/.ccache:/ccache -v "$PARENT":"$PARENT" -w "$PARENT"/build -i -t openrct2/openrct2:ubuntu_amd64 bash -c "export PATH=/usr/lib/ccache:\$PATH LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so && ccache --show-stats > ccache_before && cmake ../ -DWITH_TESTS=on $OPENRCT2_CMAKE_OPTS && ninja $OPENRCT2_MAKE_OPTS install && ccache --show-stats > ccache_after && ( diff -U100 ccache_before ccache_after || true ) && ./openrct2-cli scan-objects && ctest --output-on-failure && cd .. && bash <(curl -s https://codecov.io/bash)" - elif [[ $TARGET == "windows" ]] - then - # CMAKE and MAKE opts from environment - docker run -v "$PARENT":"$PARENT" -w "$PARENT"/build -i -t openrct2/openrct2:mingw-arch bash -c "cmake ../ $OPENRCT2_CMAKE_OPTS && ninja $OPENRCT2_MAKE_OPTS" - else - echo "Unknown target $TARGET" - exit 1 - fi -popd - -if [[ $TARGET == "windows" ]]; then - if [[ ! -h openrct2.dll ]]; then - ln -s build/openrct2.dll openrct2.dll - fi -fi - -if [[ ! -h build/data ]]; then - ln -s ../data build/data -fi - -if [[ $TARGET == "ubuntu_i686" ]]; then - if [[ ! -h openrct2 ]]; then - ln -s build/openrct2 openrct2 - fi -fi - -if [[ -z "$DISABLE_G2_BUILD" ]]; then - echo Building: g2.dat - pushd build - ninja g2 - popd -fi - -if [[ $TARGET == "windows" ]]; then - if [[ -t 1 ]]; then - echo -e "\nDone! Run OpenRCT2 by typing:\n\n\033[95mwine openrct2.exe\n\033[0m" - else - echo -e "\nDone! Run OpenRCT2 by typing:\n\nwine openrct2.exe\n" - fi -else - if [[ -t 1 ]]; then - echo -e "\nDone! Run OpenRCT2 by typing:\n\n\033[95m./openrct2\n\033[0m" - else - echo -e "\nDone! Run OpenRCT2 by typing:\n\n./openrct2\n" - fi -fi diff --git a/scripts/linux/clean.sh b/scripts/linux/clean.sh deleted file mode 100755 index 91bf63302b..0000000000 --- a/scripts/linux/clean.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -set -ev - -if [[ $TRAVIS != "true" ]] -then - echo This script is only meant to be run on Travis-CI. - echo Please use CMake to build the project. - exit 1 -fi - - -sudo rm -rf /usr/local/cross-tools/i686-w64-mingw32 -sudo rm -rf /usr/local/cross-tools/orcalibs -sudo rm -rf /usr/local/cross-tools/orctlibs -rm -rf .cache -rm -rf build diff --git a/scripts/linux/install.sh b/scripts/linux/install.sh deleted file mode 100755 index 438fd0a7b0..0000000000 --- a/scripts/linux/install.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/bash - -if [[ $TRAVIS != "true" ]] -then - echo This script is only meant to be run on Travis-CI. - echo Please use CMake to build the project. - exit 1 -fi - -cachedir=.cache -if [[ $(uname -s) == "Darwin" ]]; then - liburl=https://openrct2.io/files/orctlibs-osx.zip -else - liburl=https://openrct2.io/files/orctlibs.zip -fi -mkdir -p "$cachedir" - -# Sets default target to "ubuntu_amd64", if none specified -TARGET=${TARGET-ubuntu_amd64} - -function has_cmd { - command -v "$1" >/dev/null 2>&1 -} - -function calculate_sha256 { - if has_cmd "shasum"; then - command shasum -a 256 "$1" | cut -f1 -d" " - elif has_cmd "sha256sum"; then - command sha256sum "$1" | cut -f1 -d" " - else - echo "Please install either sha256sum or shasum to continue" - exit 1 - fi -} - -function download { - if has_cmd "curl"; then - curl -L -o "$2" "$1" - elif has_cmd "wget"; then - wget -O "$2" "$1" - else - echo "Please install either wget or curl to continue" - exit 1 - fi -} - -function download_libs { - if [[ ! -f $cachedir/orctlibs.zip ]]; then - download $liburl $cachedir/orctlibs.zip; - fi - if [[ ! -d $cachedir/orctlibs ]]; then - mkdir -p $cachedir/orctlibs - pushd $cachedir/orctlibs - unzip -uaq ../orctlibs.zip - popd - fi -} - -function mac_os_install_mingw_32 { - local mingw_name="mingw-w32-bin_i686-darwin" - local mingw_tar="${mingw_name}_20130531.tar.bz2" - local mingw_path="/usr/local/$mingw_name" - - if [[ ! -f "$cachedir/$mingw_tar" ]]; then - download "https://downloads.sourceforge.net/project/mingw-w64/Toolchains targetting Win32/Automated Builds/$mingw_tar" "$cachedir/$mingw_tar" - fi - - if [[ ! -d "$mingw_path" ]]; then - echo "Extracting contents of $mingw_tar to $mingw_path" - echo "Don't forget to add $mingw_path/bin to your PATH variable!" - - mkdir "$mingw_path" - tar -xyf "$cachedir/$mingw_tar" -C "$mingw_path" - - pushd "$mingw_path" - find . -type d -exec chmod 755 {} \; - popd - fi -} - -echo "HOST = $(uname)" -echo "TARGET = $TARGET" - -if [[ "$(uname)" == "Darwin" ]]; then - if ! has_cmd "brew"; then - echo "Homebrew is not installed, or brew is not in your \$PATH" - echo "install instructions: http://brew.sh/" - exit 1 - fi - - brew install cmake - - if [[ $TARGET == "windows" ]]; then - brew install wine - mac_os_install_mingw_32 - else - brew install jansson sdl2 speex --universal - fi -elif [[ $(uname) == "Linux" ]]; then - # Clone discord-rpc for Discord's Rich Presence support - # Use tagged release to prevent upstream changes from breaking our code - git clone https://github.com/IntelOrca/discord-rpc -b fix/134-iothreadholder - # Use rapidjson with a hack for GCC 8, while awaiting a fix upstream: - # https://github.com/Tencent/rapidjson/issues/1205 - git clone https://github.com/janisozaur/rapidjson discord-rpc/thirdparty/rapidjson -b patch-1 - # prevent build.sh from re-doing all the steps again - case "$TARGET" in - "ubuntu_i686") - docker pull openrct2/openrct2:ubuntu_i686 - ;; - "ubuntu_amd64") - docker pull openrct2/openrct2:ubuntu_amd64 - ;; - "windows") - docker pull openrct2/openrct2:mingw-arch - ;; - "docker64") - docker pull openrct2/openrct2:64bit-only - ;; - *) - echo "unkown target $TARGET" - exit 1 - esac -fi - -if [[ $(uname -s) == "Darwin" ]]; then - download_libs - calculate_sha256 "$cachedir/orctlibs.zip" > "$libVFile" - echo "Downloaded library with sha256sum: $(cat "$libVFile")" - # Local libs are required for all targets -# $(uname -s) == "Darwin" -fi diff --git a/scripts/run-clang-format.py b/scripts/run-clang-format.py index 8f88bfc462..df3c498488 100755 --- a/scripts/run-clang-format.py +++ b/scripts/run-clang-format.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 + """A wrapper script around clang-format, suitable for linting multiple files and to use for continuous integration. diff --git a/scripts/run-testpaint b/scripts/run-testpaint index 479640a7ad..de0968afc3 100755 --- a/scripts/run-testpaint +++ b/scripts/run-testpaint @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash -e # Ensure we are in root directory basedir="$(readlink -f `dirname $0`/..)" diff --git a/scripts/run-tests b/scripts/run-tests index a5cc969a77..e02f7d926b 100755 --- a/scripts/run-tests +++ b/scripts/run-tests @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash -e # Ensure we are in root directory if [[ $(uname) == "Darwin" ]]; then @@ -11,7 +10,7 @@ cd $basedir/bin # Scan objects first so that does not happen within a test echo -e "\033[0;36mBuilding OpenRCT2 repository indexes...\033[0m" -./openrct2 scan-objects +./openrct2-cli scan-objects if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then # Now run all the tests diff --git a/scripts/setenv b/scripts/setenv index b7791237e2..e34e5fd703 100755 --- a/scripts/setenv +++ b/scripts/setenv @@ -1,6 +1,6 @@ #!/bin/bash -# This sets up more environment variables using existing the environment +# This sets up more environment variables using the existing environment # It should be dot sourced into your environment if [[ "$GITHUB_ACTIONS" != "true" ]]; then export OPENRCT2_BUILD_SERVER=$(hostname) @@ -22,10 +22,10 @@ get_build_number() export OPENRCT2_BUILD=$(get_build_number) # Get the name of the branch and decide whether we should push the build to openrct2.org -export OPENRCT2_TAG= -export OPENRCT2_PUSH= +unset OPENRCT2_TAG +unset OPENRCT2_PUSH if [[ $GITHUB_REF == refs/tags/* ]]; then - export OPENRCT2_BRANCH= + unset OPENRCT2_BRANCH export OPENRCT2_TAG=true export OPENRCT2_PUSH=true else @@ -35,13 +35,13 @@ else fi fi if [[ "$OPENRCT2_ORG_TOKEN" == "" ]]; then - export OPENRCT2_PUSH= + unset OPENRCT2_PUSH fi # Get the short SHA1 export OPENRCT2_SHA1=$GITHUB_SHA export OPENRCT2_SHA1_SHORT=${OPENRCT2_SHA1:0:7} -export OPENRCT2_VERSION_EXTRA= +unset OPENRCT2_VERSION_EXTRA if [[ "$OPENRCT2_TAG" != "true" ]]; then export OPENRCT2_VERSION_EXTRA=$OPENRCT2_BRANCH-$OPENRCT2_SHA1_SHORT fi diff --git a/scripts/stats/count-rct-globals.php b/scripts/stats/count-rct-globals.php index ea04033d53..99ae2f901b 100755 --- a/scripts/stats/count-rct-globals.php +++ b/scripts/stats/count-rct-globals.php @@ -1,4 +1,5 @@ #!/usr/bin/env php + _hasFilePicker = std::nullopt; + public: LinuxContext() { @@ -253,8 +255,13 @@ namespace OpenRCT2::Ui bool HasFilePicker() const override { - std::string dummy; - return GetDialogApp(&dummy) != DIALOG_TYPE::NONE; + if (!_hasFilePicker.has_value()) + { + std::string dummy; + _hasFilePicker = (GetDialogApp(&dummy) != DIALOG_TYPE::NONE); + } + + return _hasFilePicker.value(); } bool HasMenuSupport() override diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index aa82b7f493..7e483bb5e7 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 59f0497c3e..3617123463 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -104,7 +104,7 @@ public: void Clear(uint8_t paletteIndex) override; void FillRect(uint32_t colour, int32_t x, int32_t y, int32_t w, int32_t h) override; void FilterRect(FilterPaletteID palette, int32_t left, int32_t top, int32_t right, int32_t bottom) override; - void DrawLine(uint32_t colour, int32_t x1, int32_t y1, int32_t x2, int32_t y2) override; + void DrawLine(uint32_t colour, const ScreenLine& line) override; void DrawSprite(uint32_t image, int32_t x, int32_t y, uint32_t tertiaryColour) override; void DrawSpriteRawMasked(int32_t x, int32_t y, uint32_t maskImage, uint32_t colourImage) override; void DrawSpriteSolid(uint32_t image, int32_t x, int32_t y, uint8_t colour) override; @@ -165,7 +165,7 @@ public: int32_t pixelX = xPixelOffset % dpi->width; int32_t pixelY = (xPixelOffset / dpi->width) % dpi->height; - _drawingContext->DrawLine(patternPixel, pixelX, pixelY, pixelX + 1, pixelY + 1); + _drawingContext->DrawLine(patternPixel, { { pixelX, pixelY }, { pixelX + 1, pixelY + 1 } }); } } @@ -598,17 +598,12 @@ void OpenGLDrawingContext::FilterRect(FilterPaletteID palette, int32_t left, int command.depth = _drawCount++; } -void OpenGLDrawingContext::DrawLine(uint32_t colour, int32_t x1, int32_t y1, int32_t x2, int32_t y2) +void OpenGLDrawingContext::DrawLine(uint32_t colour, const ScreenLine& line) { - x1 += _offsetX; - y1 += _offsetY; - x2 += _offsetX; - y2 += _offsetY; - DrawLineCommand& command = _commandBuffers.lines.allocate(); command.clip = { _clipLeft, _clipTop, _clipRight, _clipBottom }; - command.bounds = { x1, y1, x2, y2 }; + command.bounds = { line.GetX1() + _offsetX, line.GetY1() + _offsetY, line.GetX2() + _offsetX, line.GetY2() + _offsetY }; command.colour = colour & 0xFF; command.depth = _drawCount++; } @@ -799,10 +794,10 @@ void OpenGLDrawingContext::DrawSpriteRawMasked(int32_t x, int32_t y, uint32_t ma right -= _dpi->x; bottom -= _dpi->y; - left = left * _dpi->zoom_level; - top = top * _dpi->zoom_level; - right = right * _dpi->zoom_level; - bottom = bottom * _dpi->zoom_level; + left = left / _dpi->zoom_level; + top = top / _dpi->zoom_level; + right = right / _dpi->zoom_level; + bottom = bottom / _dpi->zoom_level; left += _spriteOffset.x; top += _spriteOffset.y; diff --git a/src/openrct2-ui/input/InputManager.h b/src/openrct2-ui/input/InputManager.h index a1f389cd55..04e3e19f8d 100644 --- a/src/openrct2-ui/input/InputManager.h +++ b/src/openrct2-ui/input/InputManager.h @@ -46,11 +46,11 @@ namespace OpenRCT2::Ui class InputManager { private: - uint32_t _lastJoystickCheck; + uint32_t _lastJoystickCheck{}; std::vector _joysticks; std::queue _events; ScreenCoordsXY _viewScroll; - uint32_t _mouseState; + uint32_t _mouseState{}; std::vector _keyboardState; void CheckJoysticks(); diff --git a/src/openrct2-ui/input/MouseInput.cpp b/src/openrct2-ui/input/MouseInput.cpp index fbcef9ac90..d4c15a7b31 100644 --- a/src/openrct2-ui/input/MouseInput.cpp +++ b/src/openrct2-ui/input/MouseInput.cpp @@ -31,7 +31,6 @@ #include #include #include -#include struct RCTMouseData { diff --git a/src/openrct2-ui/input/ShortcutIds.h b/src/openrct2-ui/input/ShortcutIds.h index 6220a7338a..4facaa43ba 100644 --- a/src/openrct2-ui/input/ShortcutIds.h +++ b/src/openrct2-ui/input/ShortcutIds.h @@ -69,6 +69,7 @@ namespace OpenRCT2::Ui::ShortcutId // View / toggle constexpr std::string_view ViewToggleUnderground = "view.toggle.show_underground"; + constexpr std::string_view ViewToggleTransparentWater = "view.toggle.transparent_water"; constexpr std::string_view ViewToggleBaseLand = "view.toggle.hide_base_land"; constexpr std::string_view ViewToggleVerticalLand = "view.toggle.hide_vertical_land"; constexpr std::string_view ViewToggleRides = "view.toggle.transparent_rides"; diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index 6f61b58bb6..6e604ec79b 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -704,6 +704,15 @@ static void ShortcutConstructionDemolishCurrent() } } +static void ShortcutToggleTransparentWater() +{ + if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) + return; + + gConfigGeneral.transparent_water ^= 1; + config_save_default(); +} + #pragma endregion using namespace OpenRCT2::Ui; @@ -817,6 +826,7 @@ void ShortcutManager::RegisterDefaultShortcuts() RegisterShortcut(ShortcutId::ViewScrollDown, STR_SHORTCUT_SCROLL_MAP_DOWN, "DOWN", []() { }); RegisterShortcut(ShortcutId::ViewToggleUnderground, STR_SHORTCUT_UNDERGROUND_VIEW_TOGGLE, "1", []() { ToggleViewFlag(VIEWPORT_FLAG_UNDERGROUND_INSIDE); }); + RegisterShortcut(ShortcutId::ViewToggleTransparentWater, STR_VIEWPORT_TRANSPARENT_WATER, "2", []() { ShortcutToggleTransparentWater(); }); RegisterShortcut(ShortcutId::ViewToggleBaseLand, STR_SHORTCUT_REMOVE_BASE_LAND_TOGGLE, "H", []() { ToggleViewFlag(VIEWPORT_FLAG_HIDE_BASE); }); RegisterShortcut(ShortcutId::ViewToggleVerticalLand, STR_SHORTCUT_REMOVE_VERTICAL_LAND_TOGGLE, "V", []() { ToggleViewFlag(VIEWPORT_FLAG_HIDE_VERTICAL); }); RegisterShortcut(ShortcutId::ViewToggleRides, STR_SHORTCUT_SEE_THROUGH_RIDES_TOGGLE, "3", []() { ToggleViewFlag(VIEWPORT_FLAG_SEETHROUGH_RIDES); }); diff --git a/src/openrct2-ui/interface/Graph.cpp b/src/openrct2-ui/interface/Graph.cpp index df0e547a0a..85b3272264 100644 --- a/src/openrct2-ui/interface/Graph.cpp +++ b/src/openrct2-ui/interface/Graph.cpp @@ -14,22 +14,22 @@ namespace Graph { - static void DrawMonths(rct_drawpixelinfo* dpi, const uint8_t* history, int32_t count, int32_t baseX, int32_t baseY) + static void DrawMonths(rct_drawpixelinfo* dpi, const uint8_t* history, int32_t count, const ScreenCoordsXY& origCoords) { - int32_t i, yearOver32, currentMonth, currentDay; - - currentMonth = date_get_month(gDateMonthsElapsed); - currentDay = gDateMonthTicks; - yearOver32 = (currentMonth * 4) + (currentDay >> 14) - 31; - auto screenCoords = ScreenCoordsXY{ baseX, baseY }; - for (i = count - 1; i >= 0; i--) + int32_t currentMonth = date_get_month(gDateMonthsElapsed); + int32_t currentDay = gDateMonthTicks; + int32_t yearOver32 = (currentMonth * 4) + (currentDay >> 14) - 31; + auto screenCoords = origCoords; + for (int32_t i = count - 1; i >= 0; i--) { if (history[i] != 255 && yearOver32 % 4 == 0) { // Draw month text auto ft = Formatter(); ft.Add(DateGameShortMonthNames[date_get_month((yearOver32 / 4) + MONTH_COUNT)]); - DrawTextBasic(dpi, screenCoords - ScreenCoordsXY{ 0, 10 }, STR_GRAPH_LABEL, ft, { TextAlignment::CENTRE }); + DrawTextBasic( + dpi, screenCoords - ScreenCoordsXY{ 0, 10 }, STR_GRAPH_LABEL, ft, + { FontSpriteBase::SMALL, TextAlignment::CENTRE }); // Draw month mark gfx_fill_rect(dpi, { screenCoords, screenCoords + ScreenCoordsXY{ 0, 3 } }, PALETTE_INDEX_10); @@ -40,71 +40,64 @@ namespace Graph } } - static void DrawLineA(rct_drawpixelinfo* dpi, const uint8_t* history, int32_t count, int32_t baseX, int32_t baseY) + static void DrawLineA(rct_drawpixelinfo* dpi, const uint8_t* history, int32_t count, const ScreenCoordsXY& origCoords) { - int32_t i, x, y, lastX, lastY; - lastX = -1; - lastY = -1; - x = baseX; - for (i = count - 1; i >= 0; i--) + auto lastCoords = ScreenCoordsXY{ -1, -1 }; + auto coords = origCoords; + for (int32_t i = count - 1; i >= 0; i--) { if (history[i] != 255) { - y = baseY + ((255 - history[i]) * 100) / 256; + coords.y = origCoords.y + ((255 - history[i]) * 100) / 256; - if (lastX != -1) + if (lastCoords.x != -1) { - auto leftTop1 = ScreenCoordsXY{ lastX + 1, lastY + 1 }; - auto rightBottom1 = ScreenCoordsXY{ x + 1, y + 1 }; - auto leftTop2 = ScreenCoordsXY{ lastX, lastY + 1 }; - auto rightBottom2 = ScreenCoordsXY{ x, y + 1 }; + auto leftTop1 = lastCoords + ScreenCoordsXY{ 1, 1 }; + auto rightBottom1 = coords + ScreenCoordsXY{ 1, 1 }; + auto leftTop2 = lastCoords + ScreenCoordsXY{ 0, 1 }; + auto rightBottom2 = coords + ScreenCoordsXY{ 0, 1 }; gfx_draw_line(dpi, { leftTop1, rightBottom1 }, PALETTE_INDEX_10); gfx_draw_line(dpi, { leftTop2, rightBottom2 }, PALETTE_INDEX_10); } if (i == 0) - gfx_fill_rect(dpi, { { x, y }, { x + 2, y + 2 } }, PALETTE_INDEX_10); + gfx_fill_rect(dpi, { coords, coords + ScreenCoordsXY{ 2, 2 } }, PALETTE_INDEX_10); - lastX = x; - lastY = y; + lastCoords = coords; } - x += 6; + coords.x += 6; } } - static void DrawLineB(rct_drawpixelinfo* dpi, const uint8_t* history, int32_t count, int32_t baseX, int32_t baseY) + static void DrawLineB(rct_drawpixelinfo* dpi, const uint8_t* history, int32_t count, const ScreenCoordsXY& origCoords) { - int32_t i, x, y, lastX, lastY; - - lastX = -1; - lastY = -1; - x = baseX; - for (i = count - 1; i >= 0; i--) + auto lastCoords = ScreenCoordsXY{ -1, -1 }; + auto coords = origCoords; + for (int32_t i = count - 1; i >= 0; i--) { if (history[i] != 255) { - y = baseY + ((255 - history[i]) * 100) / 256; + coords.y = origCoords.y + ((255 - history[i]) * 100) / 256; - if (lastX != -1) + if (lastCoords.x != -1) { - auto leftTop = ScreenCoordsXY{ lastX, lastY }; - auto rightBottom = ScreenCoordsXY{ x, y }; + auto leftTop = lastCoords; + auto rightBottom = coords; gfx_draw_line(dpi, { leftTop, rightBottom }, PALETTE_INDEX_21); } if (i == 0) - gfx_fill_rect(dpi, { { x - 1, y - 1 }, { x + 1, y + 1 } }, PALETTE_INDEX_21); + gfx_fill_rect(dpi, { coords - ScreenCoordsXY{ 1, 1 }, coords + ScreenCoordsXY{ 1, 1 } }, PALETTE_INDEX_21); - lastX = x; - lastY = y; + lastCoords = coords; } - x += 6; + coords.x += 6; } } - void Draw(rct_drawpixelinfo* dpi, uint8_t* history, int32_t count, int32_t baseX, int32_t baseY) + void Draw(rct_drawpixelinfo* dpi, uint8_t* history, int32_t count, const ScreenCoordsXY& screenPos) { - DrawMonths(dpi, history, count, baseX, baseY); - DrawLineA(dpi, history, count, baseX, baseY); - DrawLineB(dpi, history, count, baseX, baseY); + DrawMonths(dpi, history, count, screenPos); + DrawLineA(dpi, history, count, screenPos); + DrawLineB(dpi, history, count, screenPos); } } // namespace Graph @@ -132,9 +125,8 @@ static const ScreenCoordsXY ScreenCoordsForHistoryIndex( const int32_t index, const money32* history, const int32_t chartX, const int32_t chartY, const int32_t modifier, const int32_t offset) { - ScreenCoordsXY coords; - coords.x = chartX + ChartDataWidth * (ChartMaxIndex - index); - coords.y = chartY + ChartMaxHeight - ((((history[index] >> modifier) + offset) * 170) / 256); + auto coords = ScreenCoordsXY{ chartX + ChartDataWidth * (ChartMaxIndex - index), + chartY + ChartMaxHeight - ((((history[index] >> modifier) + offset) * 170) / 256) }; return coords; } @@ -151,19 +143,19 @@ static const FinancialTooltipInfo finance_tooltip_info_from_money( const auto coords = ScreenCoordsForHistoryIndex( historyIndex, history, chartFrame.GetLeft(), chartFrame.GetTop(), modifier, offset); - return { { coords.x, coords.y }, history[historyIndex] }; + return { coords, history[historyIndex] }; } namespace Graph { - static void DrawMonths(rct_drawpixelinfo* dpi, const money32* history, int32_t count, int32_t baseX, int32_t baseY) + static void DrawMonths(rct_drawpixelinfo* dpi, const money32* history, int32_t count, const ScreenCoordsXY& origCoords) { int32_t i, yearOver32, currentMonth, currentDay; currentMonth = date_get_month(gDateMonthsElapsed); currentDay = gDateMonthTicks; yearOver32 = (currentMonth * 4) + (currentDay >> 14) - 31; - auto screenCoords = ScreenCoordsXY{ baseX, baseY }; + auto screenCoords = origCoords; for (i = count - 1; i >= 0; i--) { if (history[i] != MONEY32_UNDEFINED && yearOver32 % 4 == 0) @@ -171,7 +163,8 @@ namespace Graph // Draw month text int32_t monthFormat = DateGameShortMonthNames[date_get_month((yearOver32 / 4) + MONTH_COUNT)]; DrawTextBasic( - dpi, screenCoords - ScreenCoordsXY{ 0, 10 }, STR_GRAPH_LABEL, &monthFormat, { TextAlignment::CENTRE }); + dpi, screenCoords - ScreenCoordsXY{ 0, 10 }, STR_GRAPH_LABEL, &monthFormat, + { FontSpriteBase::SMALL, TextAlignment::CENTRE }); // Draw month mark gfx_fill_rect(dpi, { screenCoords, screenCoords + ScreenCoordsXY{ 0, 3 } }, PALETTE_INDEX_10); @@ -183,75 +176,68 @@ namespace Graph } static void DrawLineA( - rct_drawpixelinfo* dpi, const money32* history, int32_t count, int32_t baseX, int32_t baseY, int32_t modifier, + rct_drawpixelinfo* dpi, const money32* history, int32_t count, const ScreenCoordsXY& origCoords, int32_t modifier, int32_t offset) { - int32_t i, x, y, lastX, lastY; - lastX = -1; - lastY = -1; - x = baseX; - for (i = count - 1; i >= 0; i--) + auto lastCoords = ScreenCoordsXY{ -1, -1 }; + auto coords = origCoords; + for (int32_t i = count - 1; i >= 0; i--) { if (history[i] != MONEY32_UNDEFINED) { - y = baseY + 170 - 6 - ((((history[i] >> modifier) + offset) * 170) / 256); + coords.y = origCoords.y + 170 - 6 - ((((history[i] >> modifier) + offset) * 170) / 256); - if (lastX != -1) + if (lastCoords.x != -1) { - auto leftTop1 = ScreenCoordsXY{ lastX + 1, lastY + 1 }; - auto rightBottom1 = ScreenCoordsXY{ x + 1, y + 1 }; - auto leftTop2 = ScreenCoordsXY{ lastX, lastY + 1 }; - auto rightBottom2 = ScreenCoordsXY{ x, y + 1 }; + auto leftTop1 = lastCoords + ScreenCoordsXY{ 1, 1 }; + auto rightBottom1 = coords + ScreenCoordsXY{ 1, 1 }; + auto leftTop2 = lastCoords + ScreenCoordsXY{ 0, 1 }; + auto rightBottom2 = coords + ScreenCoordsXY{ 0, 1 }; gfx_draw_line(dpi, { leftTop1, rightBottom1 }, PALETTE_INDEX_10); gfx_draw_line(dpi, { leftTop2, rightBottom2 }, PALETTE_INDEX_10); } if (i == 0) - gfx_fill_rect(dpi, { { x, y }, { x + 2, y + 2 } }, PALETTE_INDEX_10); + gfx_fill_rect(dpi, { coords, coords + ScreenCoordsXY{ 2, 2 } }, PALETTE_INDEX_10); - lastX = x; - lastY = y; + lastCoords = coords; } - x += 6; + coords.x += 6; } } static void DrawLineB( - rct_drawpixelinfo* dpi, const money32* history, int32_t count, int32_t baseX, int32_t baseY, int32_t modifier, + rct_drawpixelinfo* dpi, const money32* history, int32_t count, const ScreenCoordsXY& origCoords, int32_t modifier, int32_t offset) { - int32_t i, x, y, lastX, lastY; - - lastX = -1; - lastY = -1; - x = baseX; - for (i = count - 1; i >= 0; i--) + auto lastCoords = ScreenCoordsXY{ -1, -1 }; + auto coords = origCoords; + for (int32_t i = count - 1; i >= 0; i--) { if (history[i] != MONEY32_UNDEFINED) { - y = baseY + 170 - 6 - ((((history[i] >> modifier) + offset) * 170) / 256); + coords.y = origCoords.y + 170 - 6 - ((((history[i] >> modifier) + offset) * 170) / 256); - if (lastX != -1) + if (lastCoords.x != -1) { - auto leftTop = ScreenCoordsXY{ lastX, lastY }; - auto rightBottom = ScreenCoordsXY{ x, y }; + auto leftTop = lastCoords; + auto rightBottom = coords; gfx_draw_line(dpi, { leftTop, rightBottom }, PALETTE_INDEX_21); } if (i == 0) - gfx_fill_rect(dpi, { { x - 1, y - 1 }, { x + 1, y + 1 } }, PALETTE_INDEX_21); + gfx_fill_rect(dpi, { coords - ScreenCoordsXY{ 1, 1 }, coords + ScreenCoordsXY{ 1, 1 } }, PALETTE_INDEX_21); - lastX = x; - lastY = y; + lastCoords = coords; } - x += 6; + coords.x += 6; } } static void DrawHoveredValue( - rct_drawpixelinfo* dpi, const money32* history, const int32_t historyCount, const int32_t baseX, const int32_t baseY, + rct_drawpixelinfo* dpi, const money32* history, const int32_t historyCount, const ScreenCoordsXY& screenCoords, const int32_t modifier, const int32_t offset) { const auto cursorPosition = context_get_cursor_position_scaled(); - const ScreenRect chartFrame{ { baseX, baseY }, { baseX + ChartMaxWidth, baseY + ChartMaxHeight } }; + const ScreenRect chartFrame{ screenCoords, screenCoords + ScreenCoordsXY{ ChartMaxWidth, ChartMaxHeight } }; if (!chartFrame.Contains(cursorPosition)) { @@ -284,12 +270,12 @@ namespace Graph } void Draw( - rct_drawpixelinfo* dpi, const money32* history, const int32_t count, const int32_t baseX, const int32_t baseY, + rct_drawpixelinfo* dpi, const money32* history, const int32_t count, const ScreenCoordsXY& screenCoords, const int32_t modifier, const int32_t offset) { - DrawMonths(dpi, history, count, baseX, baseY); - DrawLineA(dpi, history, count, baseX, baseY, modifier, offset); - DrawLineB(dpi, history, count, baseX, baseY, modifier, offset); - DrawHoveredValue(dpi, history, count, baseX, baseY, modifier, offset); + DrawMonths(dpi, history, count, screenCoords); + DrawLineA(dpi, history, count, screenCoords, modifier, offset); + DrawLineB(dpi, history, count, screenCoords, modifier, offset); + DrawHoveredValue(dpi, history, count, screenCoords, modifier, offset); } } // namespace Graph diff --git a/src/openrct2-ui/interface/Graph.h b/src/openrct2-ui/interface/Graph.h index b359f4bdc9..296c41ba88 100644 --- a/src/openrct2-ui/interface/Graph.h +++ b/src/openrct2-ui/interface/Graph.h @@ -12,12 +12,13 @@ #include #include +#include namespace Graph { - void Draw(rct_drawpixelinfo* dpi, uint8_t* history, int32_t count, int32_t baseX, int32_t baseY); + void Draw(rct_drawpixelinfo* dpi, uint8_t* history, int32_t count, const ScreenCoordsXY& screenPos); void Draw( - rct_drawpixelinfo* dpi, const money32* history, const int32_t count, const int32_t baseX, const int32_t baseY, + rct_drawpixelinfo* dpi, const money32* history, const int32_t count, const ScreenCoordsXY& coords, const int32_t modifier, const int32_t offset); } // namespace Graph diff --git a/src/openrct2-ui/interface/InGameConsole.cpp b/src/openrct2-ui/interface/InGameConsole.cpp index c1b204a1d4..f52f3addcc 100644 --- a/src/openrct2-ui/interface/InGameConsole.cpp +++ b/src/openrct2-ui/interface/InGameConsole.cpp @@ -237,15 +237,13 @@ void InGameConsole::WriteLine(const std::string& input, FormatToken colourFormat void InGameConsole::Invalidate() const { - gfx_set_dirty_blocks({ { _consoleLeft, _consoleTop }, { _consoleRight, _consoleBottom } }); + gfx_set_dirty_blocks({ _consoleTopLeft, _consoleBottomRight }); } void InGameConsole::Update() { - _consoleLeft = 0; - _consoleTop = 0; - _consoleRight = context_get_width(); - _consoleBottom = 322; + _consoleTopLeft = { 0, 0 }; + _consoleBottomRight = { context_get_width(), 322 }; if (_isOpen) { @@ -298,23 +296,22 @@ void InGameConsole::Draw(rct_drawpixelinfo* dpi) const Invalidate(); // Give console area a translucent effect. - gfx_filter_rect(dpi, { { _consoleLeft, _consoleTop }, { _consoleRight, _consoleBottom } }, FilterPaletteID::Palette51); + gfx_filter_rect(dpi, { _consoleTopLeft, _consoleBottomRight }, FilterPaletteID::Palette51); // Make input area more opaque. gfx_filter_rect( - dpi, { { _consoleLeft, _consoleBottom - lineHeight - 10 }, { _consoleRight, _consoleBottom - 1 } }, + dpi, { { _consoleTopLeft.x, _consoleBottomRight.y - lineHeight - 10 }, _consoleBottomRight - ScreenCoordsXY{ 0, 1 } }, FilterPaletteID::Palette51); // Paint background colour. uint8_t backgroundColour = ThemeGetColour(WC_CONSOLE, 0); + gfx_fill_rect_inset(dpi, { _consoleTopLeft, _consoleBottomRight }, backgroundColour, INSET_RECT_FLAG_FILL_NONE); gfx_fill_rect_inset( - dpi, _consoleLeft, _consoleTop, _consoleRight, _consoleBottom, backgroundColour, INSET_RECT_FLAG_FILL_NONE); - gfx_fill_rect_inset( - dpi, _consoleLeft + 1, _consoleTop + 1, _consoleRight - 1, _consoleBottom - 1, backgroundColour, + dpi, { _consoleTopLeft + ScreenCoordsXY{ 1, 1 }, _consoleBottomRight - ScreenCoordsXY{ 1, 1 } }, backgroundColour, INSET_RECT_FLAG_BORDER_INSET); std::string lineBuffer; - auto screenCoords = ScreenCoordsXY{ _consoleLeft + CONSOLE_EDGE_PADDING, _consoleTop + CONSOLE_EDGE_PADDING }; + auto screenCoords = _consoleTopLeft + ScreenCoordsXY{ CONSOLE_EDGE_PADDING, CONSOLE_EDGE_PADDING }; // Draw text inside console for (std::size_t i = 0; i < _consoleLines.size() && i < static_cast(maxLines); i++) @@ -325,7 +322,7 @@ void InGameConsole::Draw(rct_drawpixelinfo* dpi) const screenCoords.y += lineHeight; } - screenCoords.y = _consoleBottom - lineHeight - CONSOLE_EDGE_PADDING - 1; + screenCoords.y = _consoleBottomRight.y - lineHeight - CONSOLE_EDGE_PADDING - 1; // Draw current line lineBuffer = colourFormatStr + _consoleCurrentLine; @@ -345,22 +342,28 @@ void InGameConsole::Draw(rct_drawpixelinfo* dpi) const // Input area top border gfx_fill_rect( - dpi, { { _consoleLeft, _consoleBottom - lineHeight - 11 }, { _consoleRight, _consoleBottom - lineHeight - 11 } }, + dpi, + { { _consoleTopLeft.x, _consoleBottomRight.y - lineHeight - 11 }, + { _consoleBottomRight.x, _consoleBottomRight.y - lineHeight - 11 } }, borderColour1); gfx_fill_rect( - dpi, { { _consoleLeft, _consoleBottom - lineHeight - 10 }, { _consoleRight, _consoleBottom - lineHeight - 10 } }, + dpi, + { { _consoleTopLeft.x, _consoleBottomRight.y - lineHeight - 10 }, + { _consoleBottomRight.x, _consoleBottomRight.y - lineHeight - 10 } }, borderColour2); // Input area bottom border - gfx_fill_rect(dpi, { { _consoleLeft, _consoleBottom - 1 }, { _consoleRight, _consoleBottom - 1 } }, borderColour1); - gfx_fill_rect(dpi, { { _consoleLeft, _consoleBottom }, { _consoleRight, _consoleBottom } }, borderColour2); + gfx_fill_rect( + dpi, { { _consoleTopLeft.x, _consoleBottomRight.y - 1 }, { _consoleBottomRight.x, _consoleBottomRight.y - 1 } }, + borderColour1); + gfx_fill_rect(dpi, { { _consoleTopLeft.x, _consoleBottomRight.y }, _consoleBottomRight }, borderColour2); } // Calculates the amount of visible lines, based on the console size, excluding the input line. int32_t InGameConsole::GetNumVisibleLines() const { const int32_t lineHeight = InGameConsoleGetLineHeight(); - const int32_t consoleHeight = _consoleBottom - _consoleTop; + const int32_t consoleHeight = _consoleBottomRight.y - _consoleTopLeft.y; if (consoleHeight == 0) return 0; const int32_t drawableHeight = consoleHeight - 2 * lineHeight - 4; // input line, separator - padding diff --git a/src/openrct2-ui/interface/InGameConsole.h b/src/openrct2-ui/interface/InGameConsole.h index 359089f7c3..b576bd1424 100644 --- a/src/openrct2-ui/interface/InGameConsole.h +++ b/src/openrct2-ui/interface/InGameConsole.h @@ -26,7 +26,8 @@ namespace OpenRCT2::Ui static constexpr int32_t CONSOLE_CARET_WIDTH = 6; bool _isOpen = false; - int32_t _consoleLeft, _consoleTop, _consoleRight, _consoleBottom; + ScreenCoordsXY _consoleTopLeft; + ScreenCoordsXY _consoleBottomRight; ScreenCoordsXY _lastMainViewport; std::deque _consoleLines; utf8 _consoleCurrentLine[CONSOLE_INPUT_SIZE] = {}; diff --git a/src/openrct2-ui/interface/LandTool.cpp b/src/openrct2-ui/interface/LandTool.cpp index 834d2d3383..4019c4486d 100644 --- a/src/openrct2-ui/interface/LandTool.cpp +++ b/src/openrct2-ui/interface/LandTool.cpp @@ -56,7 +56,7 @@ uint32_t LandTool::SizeToSpriteIndex(uint16_t size) } } -void LandTool::ShowSurfaceStyleDropdown(rct_window* w, rct_widget* widget, uint8_t currentSurfaceType) +void LandTool::ShowSurfaceStyleDropdown(rct_window* w, rct_widget* widget, ObjectEntryIndex currentSurfaceType) { auto& objManager = GetContext()->GetObjectManager(); @@ -90,7 +90,7 @@ void LandTool::ShowSurfaceStyleDropdown(rct_window* w, rct_widget* widget, uint8 gDropdownDefaultIndex = defaultIndex; } -void LandTool::ShowEdgeStyleDropdown(rct_window* w, rct_widget* widget, uint8_t currentEdgeType) +void LandTool::ShowEdgeStyleDropdown(rct_window* w, rct_widget* widget, ObjectEntryIndex currentEdgeType) { auto& objManager = GetContext()->GetObjectManager(); diff --git a/src/openrct2-ui/interface/LandTool.h b/src/openrct2-ui/interface/LandTool.h index 1a4295aa95..c851ef7838 100644 --- a/src/openrct2-ui/interface/LandTool.h +++ b/src/openrct2-ui/interface/LandTool.h @@ -29,6 +29,6 @@ extern money32 gWaterToolLowerCost; namespace LandTool { uint32_t SizeToSpriteIndex(uint16_t size); - void ShowSurfaceStyleDropdown(rct_window* w, rct_widget* widget, uint8_t currentSurfaceType); - void ShowEdgeStyleDropdown(rct_window* w, rct_widget* widget, uint8_t currentEdgeType); + void ShowSurfaceStyleDropdown(rct_window* w, rct_widget* widget, ObjectEntryIndex currentSurfaceType); + void ShowEdgeStyleDropdown(rct_window* w, rct_widget* widget, ObjectEntryIndex currentEdgeType); } // namespace LandTool diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index 4b92da7a45..192d04d23a 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -130,7 +130,7 @@ static constexpr const WindowThemeDesc WindowThemeDescriptors[] = { THEME_WC(WC_DEMOLISH_RIDE_PROMPT), STR_THEMES_WINDOW_DEMOLISH_RIDE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, { THEME_WC(WC_SCENERY), STR_THEMES_WINDOW_SCENERY, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_GREEN, COLOUR_DARK_GREEN ) }, { THEME_WC(WC_SCENERY_SCATTER), STR_THEMES_WINDOW_SCENERY_SCATTER, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_GREEN, COLOUR_DARK_GREEN ) }, - { THEME_WC(WC_OPTIONS), STR_THEMES_WINDOW_OPTIONS, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_OPTIONS), STR_THEMES_WINDOW_OPTIONS, COLOURS_3(COLOUR_GREY, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, { THEME_WC(WC_FOOTPATH), STR_THEMES_WINDOW_FOOTPATH, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, { THEME_WC(WC_LAND), STR_THEMES_WINDOW_LAND, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, { THEME_WC(WC_WATER), STR_THEMES_WINDOW_WATER, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, @@ -174,6 +174,7 @@ static constexpr const WindowThemeDesc WindowThemeDescriptors[] = { THEME_WC(WC_TITLE_EDITOR), STR_TITLE_EDITOR_TITLE, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, { THEME_WC(WC_TILE_INSPECTOR), STR_TILE_INSPECTOR_TITLE, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, { THEME_WC(WC_VIEW_CLIPPING), STR_VIEW_CLIPPING_TITLE, COLOURS_1(COLOUR_DARK_GREEN ) }, + { THEME_WC(WC_ABOUT), STR_ABOUT, COLOURS_2(COLOUR_GREY, COLOUR_LIGHT_BLUE ) }, { THEME_WC(WC_CHANGELOG), STR_CHANGELOG_TITLE, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, { THEME_WC(WC_MULTIPLAYER), STR_MULTIPLAYER, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, { THEME_WC(WC_PLAYER), STR_THEMES_WINDOW_PLAYER, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, @@ -205,9 +206,13 @@ static constexpr const UIThemeWindowEntry PredefinedThemeRCT1_Entries[] = { WC_NEW_CAMPAIGN, COLOURS_RCT1(COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, { WC_TITLE_OPTIONS, COLOURS_RCT1(TRANSLUCENT(COLOUR_GREY), TRANSLUCENT(COLOUR_GREY), TRANSLUCENT(COLOUR_GREY), COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, { WC_STAFF, COLOURS_RCT1(COLOUR_DARK_GREEN, COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, - { WC_OPTIONS, COLOURS_RCT1(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, + { WC_OPTIONS, COLOURS_RCT1(COLOUR_GREY, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, { WC_KEYBOARD_SHORTCUT_LIST, COLOURS_RCT1(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, { WC_CHANGE_KEYBOARD_SHORTCUT, COLOURS_RCT1(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, + { WC_TRACK_DESIGN_LIST, COLOURS_RCT1(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, + { WC_MAP, COLOURS_RCT1(COLOUR_DARK_BROWN, COLOUR_GREY, COLOUR_GREY, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, + { WC_ABOUT, COLOURS_RCT1(COLOUR_GREY, COLOUR_DARK_BROWN, COLOUR_WHITE, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, + { WC_CHANGELOG, COLOURS_RCT1(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_WHITE, COLOUR_BLACK, COLOUR_BLACK, COLOUR_BLACK) }, THEME_DEF_END }; @@ -531,7 +536,7 @@ namespace ThemeManager } auto themesPattern = Path::Combine(GetThemePath(), "*.json"); - auto scanner = std::unique_ptr(Path::ScanDirectory(themesPattern, true)); + auto scanner = Path::ScanDirectory(themesPattern, true); while (scanner->Next()) { auto fileInfo = scanner->GetFileInfo(); diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index 3bfc5f66cf..8211f06472 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -28,9 +28,12 @@ #include #include #include +#include #include #include +#include #include +#include #include #include #include @@ -86,18 +89,19 @@ InteractionInfo ViewportInteractionGetItemLeft(const ScreenCoordsXY& screenCoord switch (info.SpriteType) { case ViewportInteractionItem::Entity: - switch (sprite->sprite_identifier) + switch (sprite->Type) { - case SpriteIdentifier::Vehicle: + case EntityType::Vehicle: { auto vehicle = sprite->As(); - if (vehicle != nullptr && vehicle->ride_subtype != RIDE_ENTRY_INDEX_NULL) + if (vehicle != nullptr && vehicle->ride_subtype != OBJECT_ENTRY_INDEX_NULL) vehicle->SetMapToolbar(); else info.SpriteType = ViewportInteractionItem::None; } break; - case SpriteIdentifier::Peep: + case EntityType::Guest: + case EntityType::Staff: { auto peep = sprite->As(); if (peep != nullptr) @@ -110,9 +114,7 @@ InteractionInfo ViewportInteractionGetItemLeft(const ScreenCoordsXY& screenCoord } } break; - case SpriteIdentifier::Misc: - case SpriteIdentifier::Litter: - case SpriteIdentifier::Null: + default: break; } break; @@ -176,54 +178,45 @@ bool ViewportInteractionLeftClick(const ScreenCoordsXY& screenCoords) case ViewportInteractionItem::Entity: { auto entity = info.Entity; - switch (entity->sprite_identifier) + switch (entity->Type) { - case SpriteIdentifier::Vehicle: + case EntityType::Vehicle: { auto intent = Intent(WD_VEHICLE); intent.putExtra(INTENT_EXTRA_VEHICLE, entity); context_open_intent(&intent); break; } - case SpriteIdentifier::Peep: + case EntityType::Guest: + case EntityType::Staff: { auto intent = Intent(WC_PEEP); intent.putExtra(INTENT_EXTRA_PEEP, entity); context_open_intent(&intent); break; } - case SpriteIdentifier::Misc: + case EntityType::Balloon: + { if (game_is_not_paused()) { - auto miscEntity = entity->As(); - if (miscEntity == nullptr) + auto balloonPress = BalloonPressAction(entity->sprite_index); + GameActions::Execute(&balloonPress); + } + } + break; + case EntityType::Duck: + { + if (game_is_not_paused()) + { + auto duck = entity->As(); + if (duck != nullptr) { - break; - } - switch (miscEntity->SubType) - { - case MiscEntityType::Balloon: - { - auto balloonPress = BalloonPressAction(entity->sprite_index); - GameActions::Execute(&balloonPress); - } - break; - case MiscEntityType::Duck: - { - auto duck = entity->As(); - if (duck != nullptr) - { - duck_press(duck); - } - } - break; - default: - break; + duck->Press(); } } - break; - case SpriteIdentifier::Litter: - case SpriteIdentifier::Null: + } + break; + default: break; } return true; @@ -249,7 +242,6 @@ bool ViewportInteractionLeftClick(const ScreenCoordsXY& screenCoords) */ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoords) { - rct_scenery_entry* sceneryEntry; Ride* ride; int32_t i, stationIndex; InteractionInfo info{}; @@ -261,7 +253,8 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor if ((gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER) && gS6Info.editor_step != EditorStep::RollercoasterDesigner) return info; - auto flags = static_cast(~EnumsToFlags(ViewportInteractionItem::Terrain, ViewportInteractionItem::Water)); + constexpr auto flags = static_cast( + ~EnumsToFlags(ViewportInteractionItem::Terrain, ViewportInteractionItem::Water)); info = get_map_coordinates_from_pos(screenCoords, flags); auto tileElement = info.Element; @@ -270,7 +263,7 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor case ViewportInteractionItem::Entity: { auto sprite = info.Entity; - if ((gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || sprite->sprite_identifier != SpriteIdentifier::Vehicle) + if ((gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || sprite->Type != EntityType::Vehicle) { info.SpriteType = ViewportInteractionItem::None; return info; @@ -283,7 +276,7 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor return info; } ride = get_ride(vehicle->ride); - if (ride != nullptr && ride->status == RIDE_STATUS_CLOSED) + if (ride != nullptr && ride->status == RideStatus::Closed) { auto ft = Formatter(); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_MODIFY); @@ -312,7 +305,7 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor return info; } - if (ride->status != RIDE_STATUS_CLOSED) + if (ride->status != RideStatus::Closed) return info; auto ft = Formatter(); @@ -390,8 +383,9 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor return info; } case ViewportInteractionItem::Wall: - sceneryEntry = tileElement->AsWall()->GetEntry(); - if (sceneryEntry->wall.scrolling_mode != SCROLLING_MODE_NONE) + { + auto* wallEntry = tileElement->AsWall()->GetEntry(); + if (wallEntry->scrolling_mode != SCROLLING_MODE_NONE) { auto banner = tileElement->AsWall()->GetBanner(); if (banner != nullptr) @@ -400,16 +394,17 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor ft.Add(STR_MAP_TOOLTIP_BANNER_STRINGID_STRINGID); banner->FormatTextTo(ft); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_MODIFY); - ft.Add(sceneryEntry->name); + ft.Add(wallEntry->name); SetMapTooltip(ft); return info; } } break; - + } case ViewportInteractionItem::LargeScenery: - sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + { + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { auto banner = tileElement->AsLargeScenery()->GetBanner(); if (banner != nullptr) @@ -424,17 +419,17 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor } } break; - + } case ViewportInteractionItem::Banner: { auto banner = tileElement->AsBanner()->GetBanner(); - sceneryEntry = get_banner_entry(banner->type); + auto* bannerEntry = get_banner_entry(banner->type); auto ft = Formatter(); ft.Add(STR_MAP_TOOLTIP_BANNER_STRINGID_STRINGID); banner->FormatTextTo(ft, /*addColour*/ true); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_MODIFY); - ft.Add(sceneryEntry->name); + ft.Add(bannerEntry->name); SetMapTooltip(ft); return info; } @@ -455,12 +450,13 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor switch (info.SpriteType) { case ViewportInteractionItem::Scenery: - sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + { + auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE); ft.Add(sceneryEntry->name); SetMapTooltip(ft); return info; - + } case ViewportInteractionItem::Footpath: ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE); if (tileElement->AsPath()->IsQueue()) @@ -471,16 +467,17 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor return info; case ViewportInteractionItem::FootpathItem: - sceneryEntry = tileElement->AsPath()->GetAdditionEntry(); + { + auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE); if (tileElement->AsPath()->IsBroken()) { ft.Add(STR_BROKEN); } - ft.Add(sceneryEntry->name); + ft.Add(pathAddEntry->name); SetMapTooltip(ft); return info; - + } case ViewportInteractionItem::ParkEntrance: if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !gCheatsSandboxMode) break; @@ -494,18 +491,21 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor return info; case ViewportInteractionItem::Wall: - sceneryEntry = tileElement->AsWall()->GetEntry(); + { + auto* wallEntry = tileElement->AsWall()->GetEntry(); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE); - ft.Add(sceneryEntry->name); + ft.Add(wallEntry->name); SetMapTooltip(ft); return info; - + } case ViewportInteractionItem::LargeScenery: - sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + { + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE); ft.Add(sceneryEntry->name); SetMapTooltip(ft); return info; + } default: break; } @@ -541,7 +541,7 @@ bool ViewportInteractionRightClick(const ScreenCoordsXY& screenCoords) case ViewportInteractionItem::Entity: { auto entity = info.Entity; - if (entity->sprite_identifier == SpriteIdentifier::Vehicle) + if (entity->Type == EntityType::Vehicle) { auto vehicle = entity->As(); if (vehicle == nullptr) @@ -663,8 +663,8 @@ void ViewportInteractionRemoveParkEntrance(TileElement* tileElement, CoordsXY ma */ static void ViewportInteractionRemoveParkWall(TileElement* tileElement, const CoordsXY& mapCoords) { - rct_scenery_entry* sceneryEntry = tileElement->AsWall()->GetEntry(); - if (sceneryEntry->wall.scrolling_mode != SCROLLING_MODE_NONE) + auto* wallEntry = tileElement->AsWall()->GetEntry(); + if (wallEntry->scrolling_mode != SCROLLING_MODE_NONE) { context_open_detail_window(WD_SIGN_SMALL, tileElement->AsWall()->GetBannerIndex()); } @@ -682,9 +682,9 @@ static void ViewportInteractionRemoveParkWall(TileElement* tileElement, const Co */ static void ViewportInteractionRemoveLargeScenery(TileElement* tileElement, const CoordsXY& mapCoords) { - rct_scenery_entry* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { auto bannerIndex = tileElement->AsLargeScenery()->GetBannerIndex(); context_open_detail_window(WD_SIGN, bannerIndex); @@ -707,7 +707,7 @@ struct PeepDistance template PeepDistance GetClosestPeep(const ScreenCoordsXY& viewportCoords, const int32_t maxDistance, PeepDistance goal) { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->sprite_left == LOCATION_NULL) continue; diff --git a/src/openrct2-ui/interface/Widget.cpp b/src/openrct2-ui/interface/Widget.cpp index 957450ea75..4c883a04c7 100644 --- a/src/openrct2-ui/interface/Widget.cpp +++ b/src/openrct2-ui/interface/Widget.cpp @@ -135,7 +135,7 @@ static void WidgetFrameDraw(rct_drawpixelinfo* dpi, rct_window* w, rct_widgetind // Draw the resize sprite at the bottom right corner leftTop = w->windowPos + ScreenCoordsXY{ widget->right - 18, widget->bottom - 18 }; - gfx_draw_sprite(dpi, SPR_RESIZE | IMAGE_TYPE_REMAP | ((colour & 0x7F) << 19), leftTop, 0); + gfx_draw_sprite(dpi, ImageId(SPR_RESIZE, colour & 0x7F), leftTop); } /** @@ -166,7 +166,7 @@ static void WidgetResizeDraw(rct_drawpixelinfo* dpi, rct_window* w, rct_widgetin // Draw the resize sprite at the bottom right corner leftTop = w->windowPos + ScreenCoordsXY{ widget->right - 18, widget->bottom - 18 }; - gfx_draw_sprite(dpi, SPR_RESIZE | IMAGE_TYPE_REMAP | ((colour & 0x7F) << 19), leftTop, 0); + gfx_draw_sprite(dpi, ImageId(SPR_RESIZE, colour & 0x7F), leftTop); } /** @@ -246,7 +246,7 @@ static void WidgetTabDraw(rct_drawpixelinfo* dpi, rct_window* w, rct_widgetindex uint32_t image = widget->image + 2; // Draw disabled image - gfx_draw_sprite(dpi, image | (colour << 19), leftTop, 0); + gfx_draw_sprite(dpi, ImageId(image, colour), leftTop); } /** @@ -835,7 +835,7 @@ static void WidgetDrawImage(rct_drawpixelinfo* dpi, rct_window* w, rct_widgetind else image |= colour << 19; - gfx_draw_sprite(dpi, image, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId::FromUInt32(image), screenCoords); } } diff --git a/src/openrct2-ui/interface/Window.cpp b/src/openrct2-ui/interface/Window.cpp index 8942e803e2..bf11d1c644 100644 --- a/src/openrct2-ui/interface/Window.cpp +++ b/src/openrct2-ui/interface/Window.cpp @@ -86,14 +86,21 @@ static bool WindowFitsOnScreen(const ScreenCoordsXY& loc, int32_t width, int32_t return WindowFitsBetweenOthers(loc, width, height); } -static ScreenCoordsXY ClampWindowToScreen(const ScreenCoordsXY& pos, const int32_t screenWidth, const int32_t width) +static ScreenCoordsXY ClampWindowToScreen( + const ScreenCoordsXY& pos, const int32_t screenWidth, const int32_t screenHeight, const int32_t width, const int32_t height) { auto screenPos = pos; - if (screenPos.x < 0) + if (width > screenWidth || screenPos.x < 0) screenPos.x = 0; - if (screenPos.x + width > screenWidth) + else if (screenPos.x + width > screenWidth) screenPos.x = screenWidth - width; + auto toolbarAllowance = (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) ? 0 : (TOP_TOOLBAR_HEIGHT + 1); + if (height - toolbarAllowance > screenHeight || screenPos.y < toolbarAllowance) + screenPos.y = toolbarAllowance; + else if (screenPos.y + height - toolbarAllowance > screenHeight) + screenPos.y = screenHeight + toolbarAllowance - height; + return screenPos; } @@ -115,7 +122,7 @@ static ScreenCoordsXY GetAutoPositionForNewWindow(int32_t width, int32_t height) { if (WindowFitsWithinSpace(cornerPos, width, height)) { - return ClampWindowToScreen(cornerPos, screenWidth, width); + return ClampWindowToScreen(cornerPos, screenWidth, screenHeight, width, height); } } @@ -139,7 +146,7 @@ static ScreenCoordsXY GetAutoPositionForNewWindow(int32_t width, int32_t height) auto screenPos = w->windowPos + offset; if (WindowFitsWithinSpace(screenPos, width, height)) { - return ClampWindowToScreen(screenPos, screenWidth, width); + return ClampWindowToScreen(screenPos, screenWidth, screenHeight, width, height); } } } @@ -164,7 +171,7 @@ static ScreenCoordsXY GetAutoPositionForNewWindow(int32_t width, int32_t height) auto screenPos = w->windowPos + offset; if (WindowFitsOnScreen(screenPos, width, height)) { - return ClampWindowToScreen(screenPos, screenWidth, width); + return ClampWindowToScreen(screenPos, screenWidth, screenHeight, width, height); } } } @@ -180,7 +187,7 @@ static ScreenCoordsXY GetAutoPositionForNewWindow(int32_t width, int32_t height) } } - return ClampWindowToScreen(screenPos, screenWidth, width); + return ClampWindowToScreen(screenPos, screenWidth, screenHeight, width, height); } static ScreenCoordsXY GetCentrePositionForNewWindow(int32_t width, int32_t height) @@ -650,7 +657,7 @@ void WindowDrawWidgets(rct_window* w, rct_drawpixelinfo* dpi) if (w->flags & WF_WHITE_BORDER_MASK) { gfx_fill_rect_inset( - dpi, w->windowPos.x, w->windowPos.y, w->windowPos.x + w->width - 1, w->windowPos.y + w->height - 1, COLOUR_WHITE, + dpi, { w->windowPos, w->windowPos + ScreenCoordsXY{ w->width - 1, w->height - 1 } }, COLOUR_WHITE, INSET_RECT_FLAG_FILL_NONE); } } diff --git a/src/openrct2-ui/scripting/CustomListView.cpp b/src/openrct2-ui/scripting/CustomListView.cpp index 96611dbfb7..e90060a8e5 100644 --- a/src/openrct2-ui/scripting/CustomListView.cpp +++ b/src/openrct2-ui/scripting/CustomListView.cpp @@ -671,7 +671,7 @@ void CustomListView::PaintHeading( { boxFlags = INSET_RECT_FLAG_BORDER_INSET; } - gfx_fill_rect_inset(dpi, pos.x, pos.y, pos.x + size.width - 1, pos.y + size.height - 1, w->colours[1], boxFlags); + gfx_fill_rect_inset(dpi, { pos, pos + ScreenCoordsXY{ size.width - 1, size.height - 1 } }, w->colours[1], boxFlags); if (!text.empty()) { PaintCell(dpi, pos, size, text.c_str(), false); diff --git a/src/openrct2-ui/scripting/CustomMenu.cpp b/src/openrct2-ui/scripting/CustomMenu.cpp index 21483a8051..3e1e673096 100644 --- a/src/openrct2-ui/scripting/CustomMenu.cpp +++ b/src/openrct2-ui/scripting/CustomMenu.cpp @@ -14,7 +14,6 @@ # include # include # include -# include using namespace OpenRCT2; using namespace OpenRCT2::Ui; diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index 673c90a224..fd0a123a30 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -26,7 +26,6 @@ # include # include # include -# include # include # include # include @@ -393,7 +392,7 @@ namespace OpenRCT2::Ui::Windows { number = GetNewWindowNumber(); custom_info = new CustomWindowInfo(owner, desc); - enabled_widgets = (1 << WIDX_CLOSE); + enabled_widgets = (1ULL << WIDX_CLOSE); // Set window tab page = desc.TabIndex.value_or(0); @@ -866,7 +865,7 @@ namespace OpenRCT2::Ui::Windows auto imageOffset = frame % tab.imageFrameCount; image = image.WithIndex(image.GetIndex() + imageOffset); } - gfx_draw_sprite(&dpi, image.ToUInt32(), leftTop, image.GetTertiary()); + gfx_draw_sprite(&dpi, image, leftTop); } tabIndex++; } diff --git a/src/openrct2-ui/scripting/ScGraphicsContext.hpp b/src/openrct2-ui/scripting/ScGraphicsContext.hpp index c89f9c313d..046ad972e6 100644 --- a/src/openrct2-ui/scripting/ScGraphicsContext.hpp +++ b/src/openrct2-ui/scripting/ScGraphicsContext.hpp @@ -227,7 +227,8 @@ namespace OpenRCT2::Scripting img = img.WithSecondary(*_secondaryColour); } } - gfx_draw_sprite(&_dpi, static_cast(img.ToUInt32()), { x, y }, _ternaryColour.value_or(0)); + + gfx_draw_sprite(&_dpi, img.WithTertiary(_ternaryColour.value_or(0)), { x, y }); } void line(int32_t x1, int32_t y1, int32_t x2, int32_t y2) diff --git a/src/openrct2-ui/windows/About.cpp b/src/openrct2-ui/windows/About.cpp index 077aa81677..f7f776689b 100644 --- a/src/openrct2-ui/windows/About.cpp +++ b/src/openrct2-ui/windows/About.cpp @@ -7,10 +7,12 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include #include #include #include #include +#include #include #include #include @@ -18,9 +20,9 @@ #include static constexpr const int32_t WW = 400; -static constexpr const int32_t WH = 385; +static constexpr const int32_t WH = 352; static constexpr const rct_string_id WINDOW_TITLE = STR_ABOUT; -constexpr int32_t TABHEIGHT = 50; +static constexpr const int32_t TABHEIGHT = 50; // clang-format off enum @@ -40,9 +42,15 @@ enum WINDOW_ABOUT_WIDGET_IDX { WIDX_PAGE_START, // About OpenRCT2 - WIDX_CHANGELOG = WIDX_PAGE_START, - WIDX_JOIN_DISCORD, + WIDX_INTRO = WIDX_PAGE_START, + WIDX_OPENRCT2_LOGO, + WIDX_VERSION, + WIDX_COPY_BUILD_INFO, WIDX_NEW_VERSION, + WIDX_CHANGELOG, + WIDX_JOIN_DISCORD, + WIDX_CONTRIBUTORS, + WIDX_COPYRIGHT, // About RCT2 WIDX_MUSIC_CREDITS = WIDX_PAGE_START, @@ -56,9 +64,15 @@ enum WINDOW_ABOUT_WIDGET_IDX { static rct_widget window_about_openrct2_widgets[] = { WIDGETS_MAIN, - MakeWidget({100, WH - TABHEIGHT - (14 + 3) * 2}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_CHANGELOG_ELLIPSIS), // changelog button - MakeWidget({100, WH - TABHEIGHT - (14 + 3) * 1}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_JOIN_DISCORD ), // "join discord" button - MakeWidget({100, WH - TABHEIGHT - (14 + 3) * 0}, {200, 14}, WindowWidgetType::Placeholder, WindowColour::Secondary, STR_UPDATE_AVAILABLE ), // "new version" button + MakeWidget({10, 60}, {WW - 20, 20}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_DESCRIPTION), // Introduction + MakeWidget({30, 90}, {128, 128}, WindowWidgetType::Placeholder, WindowColour::Secondary, STR_NONE), // OpenRCT2 Logo + MakeWidget({168, 100}, {173, 24}, WindowWidgetType::Placeholder, WindowColour::Secondary, STR_NONE), // Build version + MakeWidget({344, 100 }, {24, 24}, WindowWidgetType::ImgBtn, WindowColour::Secondary, SPR_G2_COPY, STR_COPY_BUILD_HASH ), // "Copy build info" button + MakeWidget({168, 115 + 24}, {200, 14}, WindowWidgetType::Placeholder, WindowColour::Secondary, STR_UPDATE_AVAILABLE ), // "new version" button + MakeWidget({168, 115 + 48}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_CHANGELOG_ELLIPSIS), // changelog button + MakeWidget({168, 115 + 72}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_JOIN_DISCORD ), // "join discord" button + MakeWidget({10, 250}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_DESCRIPTION_2), // Contributors + MakeWidget({10, 300}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_DESCRIPTION_3), // Copyright { WIDGETS_END } }; @@ -77,7 +91,7 @@ static rct_widget *window_about_page_widgets[] = { (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB_ABOUT_OPENRCT2) | (1ULL << WIDX_TAB_ABOUT_RCT2) static uint64_t window_about_page_enabled_widgets[] = { - DEFAULT_ENABLED_WIDGETS | (1ULL << WIDX_CHANGELOG) | (1 << WIDX_JOIN_DISCORD), + DEFAULT_ENABLED_WIDGETS | (1ULL << WIDX_COPY_BUILD_INFO) | (1ULL << WIDX_CHANGELOG) | (1ULL << WIDX_JOIN_DISCORD), DEFAULT_ENABLED_WIDGETS | (1ULL << WIDX_MUSIC_CREDITS), }; @@ -128,9 +142,6 @@ rct_window* window_about_open() window_about_set_page(window, WINDOW_ABOUT_PAGE_OPENRCT2); WindowInitScrollWidgets(window); - window->colours[0] = COLOUR_GREY; - window->colours[1] = COLOUR_LIGHT_BLUE; - window->colours[2] = COLOUR_LIGHT_BLUE; return window; } @@ -157,6 +168,9 @@ static void window_about_openrct2_mouseup(rct_window* w, rct_widgetindex widgetI case WIDX_NEW_VERSION: context_open_window_view(WV_NEW_VERSION_INFO); break; + case WIDX_COPY_BUILD_INFO: + SDL_SetClipboardText(gVersionInfoFull); + break; } } @@ -171,6 +185,7 @@ static void window_about_openrct2_common_paint(rct_window* w, rct_drawpixelinfo* ScreenCoordsXY aboutOpenRCT2Coords(w->windowPos.x + aboutOpenRCT2.left + 45, y); ScreenCoordsXY aboutRCT2Coords(w->windowPos.x + aboutRCT2.left + 45, y); + // Draw tab names { auto ft = Formatter(); ft.Add(STR_TITLE_SEQUENCE_OPENRCT2); @@ -189,33 +204,10 @@ static void window_about_openrct2_paint(rct_window* w, rct_drawpixelinfo* dpi) { window_about_openrct2_common_paint(w, dpi); - int32_t lineHeight = font_get_line_height(FontSpriteBase::MEDIUM); - - ScreenCoordsXY aboutCoords( - w->windowPos.x + (w->width / 2), w->windowPos.y + w->widgets[WIDX_PAGE_BACKGROUND].top + lineHeight); - int32_t width = w->width - 20; - - aboutCoords.y += DrawTextWrapped( - dpi, aboutCoords, width, STR_ABOUT_OPENRCT2_DESCRIPTION, {}, { w->colours[2], TextAlignment::CENTRE }) - + lineHeight; - - rct_size16 logoSize = gfx_get_sprite_size(SPR_G2_LOGO); - gfx_draw_sprite(dpi, SPR_G2_LOGO, aboutCoords - ScreenCoordsXY{ logoSize.width / 2, 0 }, 0); - aboutCoords.y += logoSize.height + lineHeight * 2; - - // About OpenRCT2 text - aboutCoords.y += DrawTextWrapped( - dpi, aboutCoords, width, STR_ABOUT_OPENRCT2_DESCRIPTION_2, {}, - { w->colours[2], TextAlignment::CENTRE }) - + lineHeight + 5; - - // Copyright disclaimer; hidden when using truetype fonts to prevent - // the text from overlapping the changelog button. - if (!LocalisationService_UseTrueTypeFont()) - { - DrawTextWrapped( - dpi, aboutCoords, width, STR_ABOUT_OPENRCT2_DESCRIPTION_3, {}, { w->colours[2], TextAlignment::CENTRE }); - } + // Draw logo on placeholder widget + ScreenCoordsXY logoCoords = w->windowPos + + ScreenCoordsXY(w->widgets[WIDX_OPENRCT2_LOGO].left, w->widgets[WIDX_OPENRCT2_LOGO].top); + gfx_draw_sprite(dpi, ImageId(SPR_G2_LOGO), logoCoords); // Version info utf8 buffer[256]; @@ -224,8 +216,12 @@ static void window_about_openrct2_paint(rct_window* w, rct_drawpixelinfo* dpi) auto ft = Formatter(); ft.Add(buffer); - aboutCoords.y = w->windowPos.y + WH - 25; - DrawTextWrapped(dpi, aboutCoords, width, STR_STRING, ft, { w->colours[2], TextAlignment::CENTRE }); + auto const& versionPlaceholder = w->widgets[WIDX_VERSION]; + auto width = versionPlaceholder.right - versionPlaceholder.left; + auto centreX = versionPlaceholder.left + width / 2; + auto centreY = (versionPlaceholder.top + versionPlaceholder.bottom - font_get_line_height(FontSpriteBase::MEDIUM)) / 2; + auto centrePos = w->windowPos + ScreenCoordsXY(centreX, centreY); + DrawTextWrapped(dpi, centrePos, width, STR_STRING, ft, { w->colours[1], TextAlignment::CENTRE }); } static void window_about_openrct2_invalidate(rct_window* w) @@ -297,7 +293,7 @@ static void window_about_rct2_paint(rct_window* w, rct_drawpixelinfo* dpi) DrawTextBasic(dpi, screenCoords, STR_LICENSED_TO_INFOGRAMES_INTERACTIVE_INC, {}, { TextAlignment::CENTRE }); // Images - gfx_draw_sprite(dpi, SPR_CREDITS_CHRIS_SAWYER_SMALL, { w->windowPos.x + 92, yPage + 24 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_CREDITS_CHRIS_SAWYER_SMALL), { w->windowPos.x + 92, yPage + 24 }); // Licence } diff --git a/src/openrct2-ui/windows/Banner.cpp b/src/openrct2-ui/windows/Banner.cpp index eef24e875c..d9ffbb28c3 100644 --- a/src/openrct2-ui/windows/Banner.cpp +++ b/src/openrct2-ui/windows/Banner.cpp @@ -69,264 +69,221 @@ static rct_widget window_banner_widgets[] = { { WIDGETS_END }, }; -static void window_banner_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_banner_mousedown(rct_window *w, rct_widgetindex widgetIndex, rct_widget* widget); -static void window_banner_dropdown(rct_window *w, rct_widgetindex widgetIndex, int32_t dropdownIndex); -static void window_banner_textinput(rct_window *w, rct_widgetindex widgetIndex, char *text); -static void window_banner_viewport_rotate(rct_window *w); -static void window_banner_invalidate(rct_window *w); -static void window_banner_paint(rct_window *w, rct_drawpixelinfo *dpi); - -static rct_window_event_list window_banner_events([](auto& events) -{ - events.mouse_up = &window_banner_mouseup; - events.mouse_down = &window_banner_mousedown; - events.dropdown = &window_banner_dropdown; - events.text_input = &window_banner_textinput; - events.viewport_rotate = &window_banner_viewport_rotate; - events.invalidate = &window_banner_invalidate; - events.paint = &window_banner_paint; -}); // clang-format on +class BannerWindow final : public Window +{ +private: + Banner* _banner; + CoordsXYZ _bannerViewPos; + BannerElement* _bannerElement = nullptr; + + void CreateViewport() + { + rct_widget* viewportWidget = &window_banner_widgets[WIDX_VIEWPORT]; + viewport_create( + this, windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, + (viewportWidget->width()) - 1, (viewportWidget->height()) - 1, 0, _bannerViewPos, 0, SPRITE_INDEX_NULL); + + if (viewport != nullptr) + viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; + Invalidate(); + } + + void InitTileElement() + { + TileElement* tileElement = map_get_first_element_at(_banner->position.ToCoordsXY().ToTileCentre()); + if (tileElement != nullptr) + { + while (1) + { + if ((tileElement->GetType() == TILE_ELEMENT_TYPE_BANNER) && (tileElement->AsBanner()->GetIndex() == number)) + { + _bannerElement = tileElement->AsBanner(); + return; + } + if (tileElement->IsLastForTile()) + break; + tileElement++; + } + } + _bannerElement = nullptr; + } + +public: + void OnOpen() override + { + widgets = window_banner_widgets; + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_BANNER_TEXT) | (1ULL << WIDX_BANNER_NO_ENTRY) + | (1ULL << WIDX_BANNER_DEMOLISH) | (1ULL << WIDX_MAIN_COLOUR) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN) + | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN_BUTTON); + WindowInitScrollWidgets(this); + } + + void Initialise(rct_windownumber _number) + { + number = _number; + _banner = GetBanner(number); + + InitTileElement(); + if (_bannerElement == nullptr) + return; + + frame_no = _bannerElement->GetBaseZ(); + _bannerViewPos = CoordsXYZ{ _banner->position.ToCoordsXY().ToTileCentre(), frame_no }; + CreateViewport(); + } + + void OnMouseDown(rct_widgetindex widgetIndex) override + { + rct_widget* widget = &widgets[widgetIndex]; + + switch (widgetIndex) + { + case WIDX_MAIN_COLOUR: + WindowDropdownShowColour(this, widget, TRANSLUCENT(colours[1]), _banner->colour); + break; + case WIDX_TEXT_COLOUR_DROPDOWN_BUTTON: + + for (int32_t i = 0; i < 13; ++i) + { + gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL; + gDropdownItemsArgs[i] = BannerColouredTextFormats[i + 1]; + } + + // Switch to the dropdown box widget. + widget--; + + WindowDropdownShowTextCustomWidth( + { widget->left + windowPos.x, widget->top + windowPos.y }, widget->height() + 1, colours[1], 0, + Dropdown::Flag::StayOpen, 13, widget->width() - 3); + + Dropdown::SetChecked(_banner->text_colour - 1, true); + break; + } + } + + void OnMouseUp(rct_widgetindex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + break; + case WIDX_BANNER_DEMOLISH: + { + if (_banner == nullptr || _bannerElement == nullptr) + break; + + auto bannerRemoveAction = BannerRemoveAction( + { _banner->position.ToCoordsXY(), _bannerElement->GetBaseZ(), _bannerElement->GetPosition() }); + GameActions::Execute(&bannerRemoveAction); + break; + } + case WIDX_BANNER_TEXT: + window_text_input_raw_open( + this, WIDX_BANNER_TEXT, STR_BANNER_TEXT, STR_ENTER_BANNER_TEXT, _banner->GetText().c_str(), 32); + break; + case WIDX_BANNER_NO_ENTRY: + { + textinput_cancel(); + auto bannerSetStyle = BannerSetStyleAction( + BannerSetStyleType::NoEntry, number, _banner->flags ^ BANNER_FLAG_NO_ENTRY); + GameActions::Execute(&bannerSetStyle); + break; + } + } + } + + void OnDropdown(rct_widgetindex widgetIndex, int32_t dropdownIndex) override + { + switch (widgetIndex) + { + case WIDX_MAIN_COLOUR: + { + if (dropdownIndex == -1) + break; + + auto bannerSetStyle = BannerSetStyleAction(BannerSetStyleType::PrimaryColour, number, dropdownIndex); + GameActions::Execute(&bannerSetStyle); + break; + } + case WIDX_TEXT_COLOUR_DROPDOWN_BUTTON: + { + if (dropdownIndex == -1) + break; + auto bannerSetStyle = BannerSetStyleAction(BannerSetStyleType::TextColour, number, dropdownIndex + 1); + GameActions::Execute(&bannerSetStyle); + break; + } + } + } + + void OnTextInput(rct_widgetindex widgetIndex, std::string_view text) override + { + if (widgetIndex == WIDX_BANNER_TEXT) + { + auto bannerSetNameAction = BannerSetNameAction(number, std::string(text)); + GameActions::Execute(&bannerSetNameAction); + } + } + + void OnViewportRotate() override + { + RemoveViewport(); + CreateViewport(); + } + + void OnDraw(rct_drawpixelinfo& dpi) override + { + DrawWidgets(dpi); + + if (viewport != nullptr) + { + window_draw_viewport(&dpi, this); + } + } + + void OnPrepareDraw() override + { + rct_widget* colourBtn = &window_banner_widgets[WIDX_MAIN_COLOUR]; + colourBtn->type = WindowWidgetType::Empty; + + auto* bannerEntry = get_banner_entry(_banner->type); + if (bannerEntry != nullptr && (bannerEntry->flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR)) + { + colourBtn->type = WindowWidgetType::ColourBtn; + } + pressed_widgets &= ~(1ULL << WIDX_BANNER_NO_ENTRY); + disabled_widgets &= ~( + (1ULL << WIDX_BANNER_TEXT) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN_BUTTON)); + if (_banner->flags & BANNER_FLAG_NO_ENTRY) + { + pressed_widgets |= (1ULL << WIDX_BANNER_NO_ENTRY); + disabled_widgets |= (1ULL << WIDX_BANNER_TEXT) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN) + | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN_BUTTON); + } + colourBtn->image = SPRITE_ID_PALETTE_COLOUR_1(_banner->colour) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; + rct_widget* dropDownWidget = &window_banner_widgets[WIDX_TEXT_COLOUR_DROPDOWN]; + dropDownWidget->text = BannerColouredTextFormats[_banner->text_colour]; + } +}; + /** * * rct2: 0x006BA305 */ rct_window* window_banner_open(rct_windownumber number) { - rct_window* w; - rct_widget* viewportWidget; + auto w = static_cast(window_bring_to_front_by_number(WC_BANNER, number)); - // Check if window is already open - w = window_bring_to_front_by_number(WC_BANNER, number); if (w != nullptr) return w; - w = WindowCreateAutoPos(WW, WH, &window_banner_events, WC_BANNER, WF_NO_SCROLLING); - w->widgets = window_banner_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_BANNER_TEXT) | (1 << WIDX_BANNER_NO_ENTRY) | (1 << WIDX_BANNER_DEMOLISH) - | (1 << WIDX_MAIN_COLOUR) | (1 << WIDX_TEXT_COLOUR_DROPDOWN) | (1 << WIDX_TEXT_COLOUR_DROPDOWN_BUTTON); + w = WindowCreate(WC_BANNER, WW, WH, 0); - w->number = number; - WindowInitScrollWidgets(w); - - auto banner = GetBanner(w->number); - auto bannerViewPos = banner->position.ToCoordsXY().ToTileCentre(); - - TileElement* tile_element = map_get_first_element_at(bannerViewPos); - if (tile_element == nullptr) - return nullptr; - while (1) - { - if ((tile_element->GetType() == TILE_ELEMENT_TYPE_BANNER) && (tile_element->AsBanner()->GetIndex() == w->number)) - { - break; - } - - tile_element++; - } - - int32_t view_z = tile_element->GetBaseZ(); - w->frame_no = view_z; - - // Create viewport - viewportWidget = &window_banner_widgets[WIDX_VIEWPORT]; - viewport_create( - w, w->windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 2, - viewportWidget->height() - 2, 0, { bannerViewPos, view_z }, 0, SPRITE_INDEX_NULL); - - w->viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; - w->Invalidate(); + if (w != nullptr) + w->Initialise(number); return w; } - -/** - * - * rct2: 0x6ba4d6 - */ -static void window_banner_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - auto banner = GetBanner(w->number); - auto bannerPos = banner->position.ToCoordsXY(); - - TileElement* tile_element = map_get_first_element_at(bannerPos); - if (tile_element == nullptr) - return; - - while (1) - { - if ((tile_element->GetType() == TILE_ELEMENT_TYPE_BANNER) && (tile_element->AsBanner()->GetIndex() == w->number)) - break; - tile_element++; - } - - switch (widgetIndex) - { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_BANNER_DEMOLISH: - { - auto bannerRemoveAction = BannerRemoveAction( - { bannerPos, tile_element->GetBaseZ(), tile_element->AsBanner()->GetPosition() }); - GameActions::Execute(&bannerRemoveAction); - break; - } - case WIDX_BANNER_TEXT: - window_text_input_raw_open( - w, WIDX_BANNER_TEXT, STR_BANNER_TEXT, STR_ENTER_BANNER_TEXT, banner->GetText().c_str(), 32); - break; - case WIDX_BANNER_NO_ENTRY: - { - textinput_cancel(); - auto bannerSetStyle = BannerSetStyleAction( - BannerSetStyleType::NoEntry, w->number, banner->flags ^ BANNER_FLAG_NO_ENTRY); - GameActions::Execute(&bannerSetStyle); - break; - } - } -} - -/** - * - * rct2: 0x6ba4ff - */ -static void window_banner_mousedown(rct_window* w, rct_widgetindex widgetIndex, rct_widget* widget) -{ - auto banner = GetBanner(w->number); - - switch (widgetIndex) - { - case WIDX_MAIN_COLOUR: - WindowDropdownShowColour(w, widget, TRANSLUCENT(w->colours[1]), banner->colour); - break; - case WIDX_TEXT_COLOUR_DROPDOWN_BUTTON: - - for (int32_t i = 0; i < 13; ++i) - { - gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL; - gDropdownItemsArgs[i] = BannerColouredTextFormats[i + 1]; - } - - // Switch to the dropdown box widget. - widget--; - - WindowDropdownShowTextCustomWidth( - { widget->left + w->windowPos.x, widget->top + w->windowPos.y }, widget->height() + 1, w->colours[1], 0, - Dropdown::Flag::StayOpen, 13, widget->width() - 3); - - Dropdown::SetChecked(banner->text_colour - 1, true); - break; - } -} - -/** - * - * rct2: 0x6ba517 - */ -static void window_banner_dropdown(rct_window* w, rct_widgetindex widgetIndex, int32_t dropdownIndex) -{ - switch (widgetIndex) - { - case WIDX_MAIN_COLOUR: - { - if (dropdownIndex == -1) - break; - - auto bannerSetStyle = BannerSetStyleAction(BannerSetStyleType::PrimaryColour, w->number, dropdownIndex); - GameActions::Execute(&bannerSetStyle); - break; - } - case WIDX_TEXT_COLOUR_DROPDOWN_BUTTON: - { - if (dropdownIndex == -1) - break; - auto bannerSetStyle = BannerSetStyleAction(BannerSetStyleType::TextColour, w->number, dropdownIndex + 1); - GameActions::Execute(&bannerSetStyle); - break; - } - } -} - -/** - * - * rct2: 0x6ba50c - */ -static void window_banner_textinput(rct_window* w, rct_widgetindex widgetIndex, char* text) -{ - if (widgetIndex == WIDX_BANNER_TEXT && text != nullptr) - { - auto bannerSetNameAction = BannerSetNameAction(w->number, text); - GameActions::Execute(&bannerSetNameAction); - } -} - -/** - * - * rct2: 0x006BA44D - */ -static void window_banner_invalidate(rct_window* w) -{ - auto banner = GetBanner(w->number); - rct_widget* colour_btn = &window_banner_widgets[WIDX_MAIN_COLOUR]; - colour_btn->type = WindowWidgetType::Empty; - - // Scenery item not sure why we use this instead of banner? - rct_scenery_entry* sceneryEntry = get_banner_entry(banner->type); - if (sceneryEntry != nullptr && (sceneryEntry->banner.flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR)) - { - colour_btn->type = WindowWidgetType::ColourBtn; - } - - w->pressed_widgets &= ~(1ULL << WIDX_BANNER_NO_ENTRY); - w->disabled_widgets &= ~( - (1ULL << WIDX_BANNER_TEXT) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN_BUTTON)); - - if (banner->flags & BANNER_FLAG_NO_ENTRY) - { - w->pressed_widgets |= (1ULL << WIDX_BANNER_NO_ENTRY); - w->disabled_widgets |= (1ULL << WIDX_BANNER_TEXT) | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN) - | (1ULL << WIDX_TEXT_COLOUR_DROPDOWN_BUTTON); - } - - colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(banner->colour) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; - - rct_widget* drop_down_widget = &window_banner_widgets[WIDX_TEXT_COLOUR_DROPDOWN]; - drop_down_widget->text = BannerColouredTextFormats[banner->text_colour]; -} - -/* rct2: 0x006BA4C5 */ -static void window_banner_paint(rct_window* w, rct_drawpixelinfo* dpi) -{ - WindowDrawWidgets(w, dpi); - - // Draw viewport - if (w->viewport != nullptr) - { - window_draw_viewport(dpi, w); - } -} - -/** - * - * rct2: 0x6BA7B5 - */ -static void window_banner_viewport_rotate(rct_window* w) -{ - w->RemoveViewport(); - - auto banner = GetBanner(w->number); - auto bannerViewPos = CoordsXYZ{ banner->position.ToCoordsXY().ToTileCentre(), w->frame_no }; - - // Create viewport - rct_widget* viewportWidget = &window_banner_widgets[WIDX_VIEWPORT]; - viewport_create( - w, w->windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, (viewportWidget->width()) - 1, - (viewportWidget->height()) - 1, 0, bannerViewPos, 0, SPRITE_INDEX_NULL); - - if (w->viewport != nullptr) - w->viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; - w->Invalidate(); -} diff --git a/src/openrct2-ui/windows/Changelog.cpp b/src/openrct2-ui/windows/Changelog.cpp index 7e5cbeb216..61bdc07687 100644 --- a/src/openrct2-ui/windows/Changelog.cpp +++ b/src/openrct2-ui/windows/Changelog.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -41,7 +41,7 @@ static constexpr const rct_string_id WINDOW_TITLE = STR_CHANGELOG_TITLE; constexpr int32_t MIN_WW = 300; constexpr int32_t MIN_WH = 250; -static rct_widget window_changelog_widgets[] = { +static rct_widget _windowChangelogWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({0, 14}, {500, 382}, WindowWidgetType::Resize, WindowColour::Secondary ), // content panel MakeWidget({3, 16}, {495, 366}, WindowWidgetType::Scroll, WindowColour::Secondary, SCROLL_BOTH ), // scroll area @@ -49,265 +49,286 @@ static rct_widget window_changelog_widgets[] = { { WIDGETS_END }, }; -static void window_changelog_close(rct_window *w); -static void window_changelog_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_changelog_resize(rct_window *w); -static void window_changelog_scrollgetsize(rct_window *w, int32_t scrollIndex, int32_t *width, int32_t *height); -static void window_changelog_invalidate(rct_window *w); -static void window_changelog_paint(rct_window *w, rct_drawpixelinfo *dpi); -static void window_changelog_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, int32_t scrollIndex); - -static rct_window_event_list window_changelog_events([](auto& events) -{ - events.close = &window_changelog_close; - events.mouse_up = &window_changelog_mouseup; - events.resize = &window_changelog_resize; - events.get_scroll_size = &window_changelog_scrollgetsize; - events.invalidate = &window_changelog_invalidate; - events.paint = &window_changelog_paint; - events.scroll_paint = &window_changelog_scrollpaint; -}); // clang-format on -static void window_new_version_process_info(); -static void window_changelog_dispose_data(); -static bool window_changelog_read_file(); +class ChangelogWindow final : public Window +{ + const NewVersionInfo* _newVersionInfo; + std::vector _changelogLines; + int32_t _changelogLongestLineWidth = 0; + int _personality = 0; -static const NewVersionInfo* _newVersionInfo; -static std::vector _changelogLines; -static int32_t _changelogLongestLineWidth = 0; -static int _persnality = 0; +public: + /** + * @brief Retrieves the changelog contents. + */ + const std::string GetChangelogText() + { + auto path = GetChangelogPath(); +#if defined(_WIN32) && !defined(__MINGW32__) + auto pathW = String::ToWideChar(path); + auto fs = std::ifstream(pathW, std::ios::in); +#else + auto fs = std::ifstream(path, std::ios::in); +#endif + if (!fs.is_open()) + { + throw std::runtime_error("Unable to open " + path); + } + return std::string((std::istreambuf_iterator(fs)), std::istreambuf_iterator()); + } + + /** + * @brief Set the Changelog Window's Personality, should be called just after creation. Returns true on success + * + * @param personality + */ + bool SetPersonality(int personality) + { + enabled_widgets = (1ULL << WIDX_CLOSE); + + switch (personality) + { + case WV_NEW_VERSION_INFO: + if (!GetContext()->HasNewVersionInfo()) + { + return false; + } + _personality = WV_NEW_VERSION_INFO; + NewVersionProcessInfo(); + enabled_widgets |= (1ULL << WIDX_OPEN_URL); + widgets[WIDX_OPEN_URL].type = WindowWidgetType::Button; + return true; + + case WV_CHANGELOG: + if (!ReadChangelogFile()) + { + return false; + } + _personality = WV_CHANGELOG; + return true; + + default: + log_error("Invalid personality for changelog window: %d", personality); + return false; + } + } + + void OnOpen() override + { + widgets = _windowChangelogWidgets; + + WindowInitScrollWidgets(this); + min_width = MIN_WW; + min_height = MIN_WH; + max_width = MIN_WW; + max_height = MIN_WH; + } + + void OnResize() override + { + int32_t screenWidth = context_get_width(); + int32_t screenHeight = context_get_height(); + + max_width = (screenWidth * 4) / 5; + max_height = (screenHeight * 4) / 5; + + min_width = MIN_WW; + min_height = MIN_WH; + + auto download_button_width = widgets[WIDX_OPEN_URL].width(); + widgets[WIDX_OPEN_URL].left = (width - download_button_width) / 2; + widgets[WIDX_OPEN_URL].right = widgets[WIDX_OPEN_URL].left + download_button_width; + + if (width < min_width) + { + Invalidate(); + width = min_width; + } + if (height < min_height) + { + Invalidate(); + height = min_height; + } + } + + void OnPrepareDraw() override + { + widgets[WIDX_BACKGROUND].right = width - 1; + widgets[WIDX_BACKGROUND].bottom = height - 1; + widgets[WIDX_TITLE].right = width - 2; + widgets[WIDX_CLOSE].left = width - 13; + widgets[WIDX_CLOSE].right = width - 3; + widgets[WIDX_CONTENT_PANEL].right = width - 1; + widgets[WIDX_CONTENT_PANEL].bottom = height - 1; + widgets[WIDX_SCROLL].right = width - 3; + widgets[WIDX_SCROLL].bottom = height - 22; + widgets[WIDX_OPEN_URL].bottom = height - 5; + widgets[WIDX_OPEN_URL].top = height - 19; + } + + void OnMouseUp(rct_widgetindex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + break; + case WIDX_OPEN_URL: + if (_newVersionInfo) + { + GetContext()->GetUiContext()->OpenURL(_newVersionInfo->url); + } + else + { + log_error("Cannot open URL: NewVersionInfo for ChangelogWindow is undefined!"); + } + break; + } + } + + void OnScrollDraw(int32_t scrollIndex, rct_drawpixelinfo& dpi) override + { + const int32_t lineHeight = font_get_line_height(FontSpriteBase::MEDIUM); + + ScreenCoordsXY screenCoords(3, 3 - lineHeight); + for (const auto& line : _changelogLines) + { + screenCoords.y += lineHeight; + if (screenCoords.y + lineHeight < dpi.y || screenCoords.y >= dpi.y + dpi.height) + continue; + + gfx_draw_string(&dpi, screenCoords, line.c_str(), { colours[0] }); + } + } + + ScreenSize OnScrollGetSize(int32_t scrollIndex) override + { + return ScreenSize( + _changelogLongestLineWidth + 4, + static_cast(_changelogLines.size()) * font_get_line_height(FontSpriteBase::MEDIUM)); + } + + // TODO: This probably should be a utility function defined elsewhere for reusability + /** + * @brief Reimplementation of Window's GetCentrePositionForNewWindow for ChangelogWindow. + * + * @return ScreenCoordsXY + */ + static ScreenCoordsXY GetCentrePositionForNewWindow(int32_t width, int32_t height) + { + auto uiContext = GetContext()->GetUiContext(); + auto screenWidth = uiContext->GetWidth(); + auto screenHeight = uiContext->GetHeight(); + return ScreenCoordsXY{ (screenWidth - width) / 2, std::max(TOP_TOOLBAR_HEIGHT + 1, (screenHeight - height) / 2) }; + } + +private: + /** + * @brief Converts NewVersionInfo into changelog lines + * + */ + void NewVersionProcessInfo() + { + _newVersionInfo = GetContext()->GetNewVersionInfo(); + if (_newVersionInfo != nullptr) + { + char version_info[256]; + + const char* version_info_ptr = _newVersionInfo->name.c_str(); + format_string(version_info, 256, STR_NEW_RELEASE_VERSION_INFO, &version_info_ptr); + + _changelogLines.emplace_back(version_info); + _changelogLines.emplace_back(""); + + ProcessChangelogText(_newVersionInfo->changelog); + } + else + { + log_error("ChangelogWindow: Could not process NewVersionInfo, result was undefined"); + } + } + + /** + * @brief Get the absolute path for the changelog file + * + * @return std::string + */ + std::string GetChangelogPath() + { + auto env = GetContext()->GetPlatformEnvironment(); + return env->GetFilePath(PATHID::CHANGELOG); + } + + /** + * @brief Attempts to read the changelog file, returns true on success + * + */ + bool ReadChangelogFile() + { + std::string _changelogText; + try + { + _changelogText = GetChangelogText(); + } + catch (const std::bad_alloc&) + { + log_error("Unable to allocate memory for changelog.txt"); + return false; + } + catch (const std::exception&) + { + log_error("Unable to read changelog.txt"); + return false; + } + + ProcessChangelogText(_changelogText); + return true; + } + + /** + * @brief Ingests a string of text and splits it into lines for the changelog and updates the longest line width for + * scrolling purposes + * + * @param text + */ + void ProcessChangelogText(const std::string& text) + { + std::string::size_type pos = 0; + std::string::size_type prev = 0; + while ((pos = text.find("\n", prev)) != std::string::npos) + { + _changelogLines.push_back(text.substr(prev, pos - prev)); + prev = pos + 1; + } + + // To get the last substring (or only, if delimiter is not found) + _changelogLines.push_back(text.substr(prev)); + + _changelogLongestLineWidth = 0; + for (const auto& line : _changelogLines) + { + int32_t linewidth = gfx_get_string_width(line.c_str(), FontSpriteBase::MEDIUM); + _changelogLongestLineWidth = std::max(linewidth, _changelogLongestLineWidth); + } + } +}; rct_window* window_changelog_open(int personality) { - rct_window* window; - - window = window_bring_to_front_by_class(WC_CHANGELOG); - if (window != nullptr) + auto* window = window_bring_to_front_by_class(WC_CHANGELOG); + if (window == nullptr) { - return window; + // Create a new centred window + int32_t screenWidth = context_get_width(); + int32_t screenHeight = context_get_height(); + int32_t width = (screenWidth * 4) / 5; + int32_t height = (screenHeight * 4) / 5; + + auto pos = ChangelogWindow::GetCentrePositionForNewWindow(width, height); + auto* newWindow = WindowCreate(WC_CHANGELOG, pos, width, height, WF_RESIZABLE); + newWindow->SetPersonality(personality); + return newWindow; } - - uint64_t enabled_widgets{}; - - window_changelog_widgets[WIDX_OPEN_URL].type = WindowWidgetType::Placeholder; - switch (personality) - { - case WV_NEW_VERSION_INFO: - if (!GetContext()->HasNewVersionInfo()) - { - return nullptr; - } - - _persnality = WV_NEW_VERSION_INFO; - window_new_version_process_info(); - enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_OPEN_URL); - window_changelog_widgets[WIDX_OPEN_URL].type = WindowWidgetType::Button; - break; - - case WV_CHANGELOG: - if (!window_changelog_read_file()) - { - return nullptr; - } - - _persnality = WV_CHANGELOG; - enabled_widgets = (1 << WIDX_CLOSE); - break; - - default: - log_error("Invalid personality for changelog window: %d", personality); - return nullptr; - } - - int32_t screenWidth = context_get_width(); - int32_t screenHeight = context_get_height(); - - window = WindowCreateCentred( - screenWidth * 4 / 5, screenHeight * 4 / 5, &window_changelog_events, WC_CHANGELOG, WF_RESIZABLE); - window->widgets = window_changelog_widgets; - window->enabled_widgets = enabled_widgets; - - WindowInitScrollWidgets(window); - window->min_width = MIN_WW; - window->min_height = MIN_WH; - window->max_width = MIN_WW; - window->max_height = MIN_WH; - return window; } - -static void window_changelog_close([[maybe_unused]] rct_window* w) -{ - window_changelog_dispose_data(); -} - -static void window_changelog_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_OPEN_URL: - GetContext()->GetUiContext()->OpenURL(_newVersionInfo->url); - break; - } -} - -static void window_changelog_resize(rct_window* w) -{ - int32_t screenWidth = context_get_width(); - int32_t screenHeight = context_get_height(); - - w->max_width = (screenWidth * 4) / 5; - w->max_height = (screenHeight * 4) / 5; - - w->min_width = MIN_WW; - w->min_height = MIN_WH; - - auto download_button_width = window_changelog_widgets[WIDX_OPEN_URL].width(); - window_changelog_widgets[WIDX_OPEN_URL].left = (w->width - download_button_width) / 2; - window_changelog_widgets[WIDX_OPEN_URL].right = window_changelog_widgets[WIDX_OPEN_URL].left + download_button_width; - - if (w->width < w->min_width) - { - w->Invalidate(); - w->width = w->min_width; - } - if (w->height < w->min_height) - { - w->Invalidate(); - w->height = w->min_height; - } -} - -static void window_changelog_scrollgetsize( - [[maybe_unused]] rct_window* w, [[maybe_unused]] int32_t scrollIndex, int32_t* width, int32_t* height) -{ - *width = _changelogLongestLineWidth + 4; - - const int32_t lineHeight = font_get_line_height(FontSpriteBase::MEDIUM); - *height = static_cast(_changelogLines.size() * lineHeight); -} - -static void window_changelog_invalidate(rct_window* w) -{ - window_changelog_widgets[WIDX_BACKGROUND].right = w->width - 1; - window_changelog_widgets[WIDX_BACKGROUND].bottom = w->height - 1; - window_changelog_widgets[WIDX_TITLE].right = w->width - 2; - window_changelog_widgets[WIDX_CLOSE].left = w->width - 13; - window_changelog_widgets[WIDX_CLOSE].right = w->width - 3; - window_changelog_widgets[WIDX_CONTENT_PANEL].right = w->width - 1; - window_changelog_widgets[WIDX_CONTENT_PANEL].bottom = w->height - 1; - window_changelog_widgets[WIDX_SCROLL].right = w->width - 3; - window_changelog_widgets[WIDX_SCROLL].bottom = w->height - 22; - window_changelog_widgets[WIDX_OPEN_URL].bottom = w->height - 5; - window_changelog_widgets[WIDX_OPEN_URL].top = w->height - 19; -} - -static void window_changelog_paint(rct_window* w, rct_drawpixelinfo* dpi) -{ - WindowDrawWidgets(w, dpi); -} - -static void window_changelog_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, [[maybe_unused]] int32_t scrollIndex) -{ - const int32_t lineHeight = font_get_line_height(FontSpriteBase::MEDIUM); - - ScreenCoordsXY screenCoords(3, 3 - lineHeight); - for (const auto& line : _changelogLines) - { - screenCoords.y += lineHeight; - if (screenCoords.y + lineHeight < dpi->y || screenCoords.y >= dpi->y + dpi->height) - continue; - - gfx_draw_string(dpi, screenCoords, line.c_str(), { w->colours[0] }); - } -} - -static void window_changelog_process_changelog_text(const std::string& text) -{ - std::string::size_type pos = 0; - std::string::size_type prev = 0; - while ((pos = text.find("\n", prev)) != std::string::npos) - { - _changelogLines.push_back(text.substr(prev, pos - prev)); - prev = pos + 1; - } - - // To get the last substring (or only, if delimiter is not found) - _changelogLines.push_back(text.substr(prev)); - - _changelogLongestLineWidth = 0; - for (const auto& line : _changelogLines) - { - auto width = gfx_get_string_width(line.c_str(), FontSpriteBase::MEDIUM); - _changelogLongestLineWidth = std::max(width, _changelogLongestLineWidth); - } -} - -static void window_new_version_process_info() -{ - _newVersionInfo = GetContext()->GetNewVersionInfo(); - - char version_info[256]; - - const char* version_info_ptr = _newVersionInfo->name.c_str(); - format_string(version_info, 256, STR_NEW_RELEASE_VERSION_INFO, &version_info_ptr); - - _changelogLines.emplace_back(version_info); - _changelogLines.emplace_back(""); - - window_changelog_process_changelog_text(_newVersionInfo->changelog); -} - -static void window_changelog_dispose_data() -{ - _changelogLines.clear(); - _changelogLines.shrink_to_fit(); -} - -static std::string GetChangelogPath() -{ - auto env = GetContext()->GetPlatformEnvironment(); - return env->GetFilePath(PATHID::CHANGELOG); -} - -static std::string GetChangelogText() -{ - auto path = GetChangelogPath(); -#if defined(_WIN32) && !defined(__MINGW32__) - auto pathW = String::ToWideChar(path); - auto fs = std::ifstream(pathW, std::ios::in); -#else - auto fs = std::ifstream(path, std::ios::in); -#endif - if (!fs.is_open()) - { - throw std::runtime_error("Unable to open " + path); - } - return std::string((std::istreambuf_iterator(fs)), std::istreambuf_iterator()); -} - -static bool window_changelog_read_file() -{ - std::string _changelogText; - try - { - _changelogText = GetChangelogText(); - } - catch (const std::bad_alloc&) - { - log_error("Unable to allocate memory for changelog.txt"); - return false; - } - catch (const std::exception&) - { - log_error("Unable to read changelog.txt"); - return false; - } - - window_changelog_process_changelog_text(_changelogText); - return true; -} diff --git a/src/openrct2-ui/windows/Cheats.cpp b/src/openrct2-ui/windows/Cheats.cpp index 9af8eb14f6..03ad9bb394 100644 --- a/src/openrct2-ui/windows/Cheats.cpp +++ b/src/openrct2-ui/windows/Cheats.cpp @@ -161,7 +161,7 @@ enum WINDOW_CHEATS_WIDGET_IDX WIDX_ALLOW_TRACK_PLACE_INVALID_HEIGHTS, WIDX_OPERATION_MODES_GROUP, WIDX_SHOW_ALL_OPERATING_MODES, - WIDX_FAST_LIFT_HILL, + WIDX_UNLOCK_OPERATING_LIMITS, WIDX_DISABLE_BRAKES_FAILURE, WIDX_DISABLE_ALL_BREAKDOWNS, WIDX_DISABLE_RIDE_VALUE_AGING, @@ -399,7 +399,7 @@ static uint64_t window_cheats_page_enabled_widgets[] = { (1ULL << WIDX_RENEW_RIDES) | (1ULL << WIDX_MAKE_DESTRUCTIBLE) | (1ULL << WIDX_FIX_ALL) | - (1ULL << WIDX_FAST_LIFT_HILL) | + (1ULL << WIDX_UNLOCK_OPERATING_LIMITS) | (1ULL << WIDX_DISABLE_BRAKES_FAILURE) | (1ULL << WIDX_DISABLE_ALL_BREAKDOWNS) | (1ULL << WIDX_BUILD_IN_PAUSE_MODE) | @@ -446,7 +446,7 @@ static rct_string_id window_cheats_page_titles[] = { class CheatsWindow final : public Window { private: - char _moneySpinnerText[MONEY_STRING_MAXLENGTH]; + char _moneySpinnerText[MONEY_STRING_MAXLENGTH]{}; money32 _moneySpinnerValue = CHEATS_MONEY_DEFAULT; int32_t _selectedStaffSpeed = 1; int32_t _parkRatingSpinnerValue{}; @@ -574,7 +574,7 @@ public: SetCheckboxValue(WIDX_DISABLE_PLANT_AGING, gCheatsDisablePlantAging); break; case WINDOW_CHEATS_PAGE_RIDES: - SetCheckboxValue(WIDX_FAST_LIFT_HILL, gCheatsFastLiftHill); + SetCheckboxValue(WIDX_UNLOCK_OPERATING_LIMITS, gCheatsUnlockOperatingLimits); SetCheckboxValue(WIDX_DISABLE_BRAKES_FAILURE, gCheatsDisableBrakesFailure); SetCheckboxValue(WIDX_DISABLE_ALL_BREAKDOWNS, gCheatsDisableAllBreakdowns); SetCheckboxValue(WIDX_BUILD_IN_PAUSE_MODE, gCheatsBuildInPauseMode); @@ -689,7 +689,7 @@ public: OpenRCT2String OnTooltip(rct_widgetindex widgetIndex, rct_string_id fallback) override { - if (page == WINDOW_CHEATS_PAGE_RIDES && widgetIndex == WIDX_FAST_LIFT_HILL) + if (page == WINDOW_CHEATS_PAGE_RIDES && widgetIndex == WIDX_UNLOCK_OPERATING_LIMITS) { auto ft = Formatter{}; ft.Add(255); @@ -754,7 +754,7 @@ private: if (page == WINDOW_CHEATS_PAGE_MONEY) sprite_idx += (frame_no / 2) % 8; gfx_draw_sprite( - &dpi, sprite_idx, windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_1].left, widgets[WIDX_TAB_1].top }, 0); + &dpi, ImageId(sprite_idx), windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_1].left, widgets[WIDX_TAB_1].top }); } // Guests tab @@ -764,15 +764,14 @@ private: if (page == WINDOW_CHEATS_PAGE_GUESTS) sprite_idx += (frame_no / 3) % 8; gfx_draw_sprite( - &dpi, sprite_idx, windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_2].left, widgets[WIDX_TAB_2].top }, 0); + &dpi, ImageId(sprite_idx), windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_2].left, widgets[WIDX_TAB_2].top }); } // Misc tab if (!IsWidgetDisabled(WIDX_TAB_3)) { - uint32_t sprite_idx = SPR_TAB_PARK; gfx_draw_sprite( - &dpi, sprite_idx, windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_3].left, widgets[WIDX_TAB_3].top }, 0); + &dpi, ImageId(SPR_TAB_PARK), windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_3].left, widgets[WIDX_TAB_3].top }); } // Rides tab @@ -782,7 +781,7 @@ private: if (page == WINDOW_CHEATS_PAGE_RIDES) sprite_idx += (frame_no / 4) % 16; gfx_draw_sprite( - &dpi, sprite_idx, windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_4].left, widgets[WIDX_TAB_4].top }, 0); + &dpi, ImageId(sprite_idx), windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_4].left, widgets[WIDX_TAB_4].top }); } } @@ -1120,8 +1119,8 @@ private: case WIDX_FIX_ALL: CheatsSet(CheatType::FixRides); break; - case WIDX_FAST_LIFT_HILL: - CheatsSet(CheatType::FastLiftHill, !gCheatsFastLiftHill); + case WIDX_UNLOCK_OPERATING_LIMITS: + CheatsSet(CheatType::FastLiftHill, !gCheatsUnlockOperatingLimits); break; case WIDX_DISABLE_BRAKES_FAILURE: CheatsSet(CheatType::DisableBrakesFailure, !gCheatsDisableBrakesFailure); diff --git a/src/openrct2-ui/windows/ClearScenery.cpp b/src/openrct2-ui/windows/ClearScenery.cpp index d4ee3ed454..4875ccd888 100644 --- a/src/openrct2-ui/windows/ClearScenery.cpp +++ b/src/openrct2-ui/windows/ClearScenery.cpp @@ -81,9 +81,9 @@ rct_window* window_clear_scenery_open() window = WindowCreate( ScreenCoordsXY(context_get_width() - WW, 29), WW, WH, &window_clear_scenery_events, WC_CLEAR_SCENERY, 0); window->widgets = window_clear_scenery_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT) | (1 << WIDX_PREVIEW) - | (1 << WIDX_SMALL_SCENERY) | (1 << WIDX_LARGE_SCENERY) | (1 << WIDX_FOOTPATH); - window->hold_down_widgets = (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_DECREMENT) + | (1ULL << WIDX_PREVIEW) | (1ULL << WIDX_SMALL_SCENERY) | (1ULL << WIDX_LARGE_SCENERY) | (1ULL << WIDX_FOOTPATH); + window->hold_down_widgets = (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_DECREMENT); WindowInitScrollWidgets(window); window_push_others_below(window); @@ -202,8 +202,8 @@ static void window_clear_scenery_update(rct_window* w) static void window_clear_scenery_invalidate(rct_window* w) { // Set the preview image button to be pressed down - w->pressed_widgets = (1 << WIDX_PREVIEW) | (gClearSmallScenery ? (1 << WIDX_SMALL_SCENERY) : 0) - | (gClearLargeScenery ? (1 << WIDX_LARGE_SCENERY) : 0) | (gClearFootpath ? (1 << WIDX_FOOTPATH) : 0); + w->pressed_widgets = (1ULL << WIDX_PREVIEW) | (gClearSmallScenery ? (1ULL << WIDX_SMALL_SCENERY) : 0) + | (gClearLargeScenery ? (1ULL << WIDX_LARGE_SCENERY) : 0) | (gClearFootpath ? (1ULL << WIDX_FOOTPATH) : 0); // Update the preview image (for tool sizes up to 7) window_clear_scenery_widgets[WIDX_PREVIEW].image = LandTool::SizeToSpriteIndex(gLandToolSize); diff --git a/src/openrct2-ui/windows/CustomCurrency.cpp b/src/openrct2-ui/windows/CustomCurrency.cpp index 356f7f33ec..73772f03a3 100644 --- a/src/openrct2-ui/windows/CustomCurrency.cpp +++ b/src/openrct2-ui/windows/CustomCurrency.cpp @@ -71,10 +71,10 @@ rct_window* custom_currency_window_open() window = WindowCreateCentred(400, 100, &_windowCustomCurrencyEvents, WC_CUSTOM_CURRENCY_CONFIG, 0); window->widgets = window_custom_currency_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_RATE) | (1 << WIDX_RATE_UP) | (1 << WIDX_RATE_DOWN) - | (1 << WIDX_SYMBOL_TEXT) | (1 << WIDX_AFFIX_DROPDOWN) | (1 << WIDX_AFFIX_DROPDOWN_BUTTON); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_RATE) | (1ULL << WIDX_RATE_UP) | (1ULL << WIDX_RATE_DOWN) + | (1ULL << WIDX_SYMBOL_TEXT) | (1ULL << WIDX_AFFIX_DROPDOWN) | (1ULL << WIDX_AFFIX_DROPDOWN_BUTTON); - window->hold_down_widgets = (1 << WIDX_RATE_UP) | (1 << WIDX_RATE_DOWN); + window->hold_down_widgets = (1ULL << WIDX_RATE_UP) | (1ULL << WIDX_RATE_DOWN); WindowInitScrollWidgets(window); window->colours[0] = COLOUR_LIGHT_BROWN; window->colours[1] = COLOUR_LIGHT_BROWN; diff --git a/src/openrct2-ui/windows/DebugPaint.cpp b/src/openrct2-ui/windows/DebugPaint.cpp index 28d25eea45..c67f5275c0 100644 --- a/src/openrct2-ui/windows/DebugPaint.cpp +++ b/src/openrct2-ui/windows/DebugPaint.cpp @@ -71,8 +71,9 @@ rct_window* window_debug_paint_open() &window_debug_paint_events, WC_DEBUG_PAINT, WF_STICK_TO_FRONT | WF_TRANSPARENT); window->widgets = window_debug_paint_widgets; - window->enabled_widgets = (1 << WIDX_TOGGLE_SHOW_WIDE_PATHS) | (1 << WIDX_TOGGLE_SHOW_BLOCKED_TILES) - | (1 << WIDX_TOGGLE_SHOW_BOUND_BOXES) | (1 << WIDX_TOGGLE_SHOW_SEGMENT_HEIGHTS) | (1 << WIDX_TOGGLE_SHOW_DIRTY_VISUALS); + window->enabled_widgets = (1ULL << WIDX_TOGGLE_SHOW_WIDE_PATHS) | (1ULL << WIDX_TOGGLE_SHOW_BLOCKED_TILES) + | (1ULL << WIDX_TOGGLE_SHOW_BOUND_BOXES) | (1ULL << WIDX_TOGGLE_SHOW_SEGMENT_HEIGHTS) + | (1ULL << WIDX_TOGGLE_SHOW_DIRTY_VISUALS); WindowInitScrollWidgets(window); window_push_others_below(window); diff --git a/src/openrct2-ui/windows/DemolishRidePrompt.cpp b/src/openrct2-ui/windows/DemolishRidePrompt.cpp index f9b7814a83..e79477b548 100644 --- a/src/openrct2-ui/windows/DemolishRidePrompt.cpp +++ b/src/openrct2-ui/windows/DemolishRidePrompt.cpp @@ -82,7 +82,7 @@ rct_window* window_ride_demolish_prompt_open(Ride* ride) } w->widgets = window_ride_demolish_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_CANCEL) | (1 << WIDX_DEMOLISH); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_CANCEL) | (1ULL << WIDX_DEMOLISH); WindowInitScrollWidgets(w); w->number = ride->id; _demolishRideCost = -ride_get_refund_price(ride); @@ -107,7 +107,7 @@ rct_window* window_ride_refurbish_prompt_open(Ride* ride) } w->widgets = window_ride_refurbish_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_CANCEL) | (1 << WIDX_REFURBISH); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_CANCEL) | (1ULL << WIDX_REFURBISH); WindowInitScrollWidgets(w); w->number = ride->id; _demolishRideCost = -ride_get_refund_price(ride); diff --git a/src/openrct2-ui/windows/Dropdown.cpp b/src/openrct2-ui/windows/Dropdown.cpp index fe313ec380..a8ea39dd92 100644 --- a/src/openrct2-ui/windows/Dropdown.cpp +++ b/src/openrct2-ui/windows/Dropdown.cpp @@ -345,9 +345,8 @@ static void window_dropdown_paint(rct_window* w, rct_drawpixelinfo* dpi) image++; gfx_draw_sprite( - dpi, image, - w->windowPos + ScreenCoordsXY{ 2 + (cell_x * _dropdown_item_width), 2 + (cell_y * _dropdown_item_height) }, - 0); + dpi, ImageId::FromUInt32(image), + w->windowPos + ScreenCoordsXY{ 2 + (cell_x * _dropdown_item_width), 2 + (cell_y * _dropdown_item_height) }); } else { diff --git a/src/openrct2-ui/windows/EditorBottomToolbar.cpp b/src/openrct2-ui/windows/EditorBottomToolbar.cpp index 86ee4d289f..62f4d61997 100644 --- a/src/openrct2-ui/windows/EditorBottomToolbar.cpp +++ b/src/openrct2-ui/windows/EditorBottomToolbar.cpp @@ -110,8 +110,8 @@ rct_window* window_editor_bottom_toolbar_open() WC_BOTTOM_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND); window->widgets = window_editor_bottom_toolbar_widgets; - window->enabled_widgets |= (1 << WIDX_PREVIOUS_STEP_BUTTON) | (1 << WIDX_NEXT_STEP_BUTTON) | (1 << WIDX_PREVIOUS_IMAGE) - | (1 << WIDX_NEXT_IMAGE); + window->enabled_widgets |= (1ULL << WIDX_PREVIOUS_STEP_BUTTON) | (1ULL << WIDX_NEXT_STEP_BUTTON) + | (1ULL << WIDX_PREVIOUS_IMAGE) | (1ULL << WIDX_NEXT_IMAGE); WindowInitScrollWidgets(window); set_all_scenery_items_invented(); @@ -176,14 +176,14 @@ static bool window_editor_bottom_toolbar_check_object_selection() { rct_window* w; - ObjectType missingObjectType = Editor::CheckObjectSelection(); + auto [missingObjectType, errorString] = Editor::CheckObjectSelection(); if (missingObjectType == ObjectType::None) { window_close_by_class(WC_EDITOR_OBJECT_SELECTION); return true; } - context_show_error(STR_INVALID_SELECTION_OF_OBJECTS, gGameCommandErrorText, {}); + context_show_error(STR_INVALID_SELECTION_OF_OBJECTS, errorString, {}); w = window_find_by_class(WC_EDITOR_OBJECT_SELECTION); if (w != nullptr) { @@ -219,7 +219,8 @@ void window_editor_bottom_toolbar_jump_forward_from_object_selection() */ void window_editor_bottom_toolbar_jump_forward_to_invention_list_set_up() { - if (Editor::CheckPark()) + auto [checksPassed, errorString] = Editor::CheckPark(); + if (checksPassed) { window_close_all(); context_open_window(WC_EDITOR_INVENTION_LIST); @@ -227,7 +228,7 @@ void window_editor_bottom_toolbar_jump_forward_to_invention_list_set_up() } else { - context_show_error(STR_CANT_ADVANCE_TO_NEXT_EDITOR_STAGE, gGameCommandErrorText, {}); + context_show_error(STR_CANT_ADVANCE_TO_NEXT_EDITOR_STAGE, errorString, {}); } gfx_invalidate_screen(); @@ -409,24 +410,20 @@ void window_editor_bottom_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) { + const auto topLeft = w->windowPos + + ScreenCoordsXY{ window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].left + 1, + window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].top + 1 }; + const auto bottomRight = w->windowPos + + ScreenCoordsXY{ window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].right - 1, + window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].bottom - 1 }; if (drawPreviousButton) { - gfx_fill_rect_inset( - dpi, window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].left + 1 + w->windowPos.x, - window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].top + 1 + w->windowPos.y, - window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].right - 1 + w->windowPos.x, - window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].bottom - 1 + w->windowPos.y, w->colours[1], - INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { topLeft, bottomRight }, w->colours[1], INSET_RECT_F_30); } if ((drawPreviousButton || drawNextButton) && gS6Info.editor_step != EditorStep::RollercoasterDesigner) { - gfx_fill_rect_inset( - dpi, window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].left + 1 + w->windowPos.x, - window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].top + 1 + w->windowPos.y, - window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].right - 1 + w->windowPos.x, - window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].bottom - 1 + w->windowPos.y, w->colours[1], - INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { topLeft, bottomRight }, w->colours[1], INSET_RECT_F_30); } int16_t stateX = (window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].right @@ -441,11 +438,10 @@ void window_editor_bottom_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) if (drawPreviousButton) { gfx_draw_sprite( - dpi, SPR_PREVIOUS, + dpi, ImageId(SPR_PREVIOUS), w->windowPos + ScreenCoordsXY{ window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].left + 6, - window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].top + 6 }, - 0); + window_editor_bottom_toolbar_widgets[WIDX_PREVIOUS_IMAGE].top + 6 }); colour_t textColour = NOT_TRANSLUCENT(w->colours[1]); if (gHoverWidget.window_classification == WC_BOTTOM_TOOLBAR @@ -471,11 +467,10 @@ void window_editor_bottom_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) if ((drawPreviousButton || drawNextButton) && gS6Info.editor_step != EditorStep::RollercoasterDesigner) { gfx_draw_sprite( - dpi, SPR_NEXT, + dpi, ImageId(SPR_NEXT), w->windowPos + ScreenCoordsXY{ window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].right - 29, - window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].top + 6 }, - 0); + window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].top + 6 }); colour_t textColour = NOT_TRANSLUCENT(w->colours[1]); diff --git a/src/openrct2-ui/windows/EditorInventionsList.cpp b/src/openrct2-ui/windows/EditorInventionsList.cpp index f532f1db8e..527cba02aa 100644 --- a/src/openrct2-ui/windows/EditorInventionsList.cpp +++ b/src/openrct2-ui/windows/EditorInventionsList.cpp @@ -256,8 +256,8 @@ rct_window* window_editor_inventions_list_open() w = WindowCreateCentred( WW, WH, &window_editor_inventions_list_events, WC_EDITOR_INVENTION_LIST, WF_NO_SCROLLING | WF_RESIZABLE); w->widgets = window_editor_inventions_list_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_RESIZE) | (1 << WIDX_TAB_1) | (1 << WIDX_RANDOM_SHUFFLE) - | (1 << WIDX_MOVE_ITEMS_TO_BOTTOM) | (1 << WIDX_MOVE_ITEMS_TO_TOP); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_RESIZE) | (1ULL << WIDX_TAB_1) | (1ULL << WIDX_RANDOM_SHUFFLE) + | (1ULL << WIDX_MOVE_ITEMS_TO_BOTTOM) | (1ULL << WIDX_MOVE_ITEMS_TO_TOP); WindowInitScrollWidgets(w); w->selected_tab = 0; w->research_item = nullptr; @@ -447,8 +447,8 @@ static void window_editor_inventions_list_cursor( */ static void window_editor_inventions_list_invalidate(rct_window* w) { - w->pressed_widgets |= 1 << WIDX_PREVIEW; - w->pressed_widgets |= 1 << WIDX_TAB_1; + w->pressed_widgets |= 1ULL << WIDX_PREVIEW; + w->pressed_widgets |= 1ULL << WIDX_TAB_1; w->widgets[WIDX_CLOSE].type = gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR ? WindowWidgetType::Empty : WindowWidgetType::CloseBox; @@ -504,7 +504,7 @@ static void window_editor_inventions_list_paint(rct_window* w, rct_drawpixelinfo // Tab image auto screenPos = w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_1].left, w->widgets[WIDX_TAB_1].top }; - gfx_draw_sprite(dpi, SPR_TAB_FINANCES_RESEARCH_0 + (w->frame_no / 2) % 8, screenPos, 0); + gfx_draw_sprite(dpi, ImageId(SPR_TAB_FINANCES_RESEARCH_0 + (w->frame_no / 2) % 8), screenPos); // Pre-researched items label screenPos = w->windowPos diff --git a/src/openrct2-ui/windows/EditorMain.cpp b/src/openrct2-ui/windows/EditorMain.cpp index d014972adc..2df57c7f7a 100644 --- a/src/openrct2-ui/windows/EditorMain.cpp +++ b/src/openrct2-ui/windows/EditorMain.cpp @@ -13,7 +13,6 @@ #include #include #include -#include static void window_editor_main_paint(rct_window* w, rct_drawpixelinfo* dpi); @@ -48,7 +47,7 @@ rct_window* window_editor_main_open() gShowGridLinesRefCount = 0; gShowLandRightsRefCount = 0; gShowConstuctionRightsRefCount = 0; - gFootpathSelectedType = 0; + window_footpath_reset_selected_path(); context_open_window(WC_TOP_TOOLBAR); context_open_window_view(WV_EDITOR_BOTTOM_TOOLBAR); diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index f6fef734f7..7048fc880f 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -23,10 +23,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include @@ -379,9 +381,9 @@ rct_window* window_editor_object_selection_open() window->widgets = _window_editor_object_selection_widgets.data(); window->widgets[WIDX_FILTER_TEXT_BOX].string = _filter_string; - window->enabled_widgets = (1 << WIDX_ADVANCED) | (1 << WIDX_INSTALL_TRACK) | (1 << WIDX_FILTER_DROPDOWN) - | (1 << WIDX_FILTER_TEXT_BOX) | (1 << WIDX_FILTER_CLEAR_BUTTON) | (1 << WIDX_CLOSE) | (1 << WIDX_LIST_SORT_TYPE) - | (1UL << WIDX_LIST_SORT_RIDE); + window->enabled_widgets = (1ULL << WIDX_ADVANCED) | (1ULL << WIDX_INSTALL_TRACK) | (1ULL << WIDX_FILTER_DROPDOWN) + | (1ULL << WIDX_FILTER_TEXT_BOX) | (1ULL << WIDX_FILTER_CLEAR_BUTTON) | (1ULL << WIDX_CLOSE) + | (1ULL << WIDX_LIST_SORT_TYPE) | (1UL << WIDX_LIST_SORT_RIDE); _filter_flags = gConfigInterface.object_selection_filter_flags; std::fill_n(_filter_string, sizeof(_filter_string), 0x00); @@ -806,12 +808,12 @@ static void window_editor_object_selection_invalidate(rct_window* w) w->widgets[WIDX_FILTER_DROPDOWN].right = w->width - 137; // Set pressed widgets - w->pressed_widgets |= 1 << WIDX_PREVIEW; + w->pressed_widgets |= 1ULL << WIDX_PREVIEW; window_editor_object_selection_set_pressed_tab(w); if (w->list_information_type & 1) - w->pressed_widgets |= (1 << WIDX_ADVANCED); + w->pressed_widgets |= (1ULL << WIDX_ADVANCED); else - w->pressed_widgets &= ~(1 << WIDX_ADVANCED); + w->pressed_widgets &= ~(1ULL << WIDX_ADVANCED); // Set window title and buttons auto ft = Formatter::Common(); @@ -884,15 +886,16 @@ static void window_editor_object_selection_invalidate(rct_window* w) if (ridePage) { - w->enabled_widgets |= (1 << WIDX_FILTER_RIDE_TAB_ALL) | (1 << WIDX_FILTER_RIDE_TAB_TRANSPORT) - | (1 << WIDX_FILTER_RIDE_TAB_GENTLE) | (1 << WIDX_FILTER_RIDE_TAB_COASTER) | (1 << WIDX_FILTER_RIDE_TAB_THRILL) - | (1 << WIDX_FILTER_RIDE_TAB_WATER) | (1 << WIDX_FILTER_RIDE_TAB_STALL); + w->enabled_widgets |= (1ULL << WIDX_FILTER_RIDE_TAB_ALL) | (1ULL << WIDX_FILTER_RIDE_TAB_TRANSPORT) + | (1ULL << WIDX_FILTER_RIDE_TAB_GENTLE) | (1ULL << WIDX_FILTER_RIDE_TAB_COASTER) + | (1ULL << WIDX_FILTER_RIDE_TAB_THRILL) | (1ULL << WIDX_FILTER_RIDE_TAB_WATER) + | (1ULL << WIDX_FILTER_RIDE_TAB_STALL); for (int32_t i = 0; i < 7; i++) w->pressed_widgets &= ~(1 << (WIDX_FILTER_RIDE_TAB_ALL + i)); if ((_filter_flags & FILTER_RIDES) == FILTER_RIDES) - w->pressed_widgets |= (1 << WIDX_FILTER_RIDE_TAB_ALL); + w->pressed_widgets |= (1ULL << WIDX_FILTER_RIDE_TAB_ALL); else { for (int32_t i = 0; i < 6; i++) @@ -925,9 +928,10 @@ static void window_editor_object_selection_invalidate(rct_window* w) else { w->enabled_widgets &= ~( - (1 << WIDX_FILTER_RIDE_TAB_ALL) | (1 << WIDX_FILTER_RIDE_TAB_TRANSPORT) | (1 << WIDX_FILTER_RIDE_TAB_GENTLE) - | (1 << WIDX_FILTER_RIDE_TAB_COASTER) | (1 << WIDX_FILTER_RIDE_TAB_THRILL) | (1 << WIDX_FILTER_RIDE_TAB_WATER) - | (1 << WIDX_FILTER_RIDE_TAB_STALL)); + (1ULL << WIDX_FILTER_RIDE_TAB_ALL) | (1ULL << WIDX_FILTER_RIDE_TAB_TRANSPORT) + | (1ULL << WIDX_FILTER_RIDE_TAB_GENTLE) | (1ULL << WIDX_FILTER_RIDE_TAB_COASTER) + | (1ULL << WIDX_FILTER_RIDE_TAB_THRILL) | (1ULL << WIDX_FILTER_RIDE_TAB_WATER) + | (1ULL << WIDX_FILTER_RIDE_TAB_STALL)); for (int32_t i = WIDX_FILTER_RIDE_TAB_FRAME; i <= WIDX_FILTER_RIDE_TAB_STALL; i++) w->widgets[i].type = WindowWidgetType::Empty; @@ -936,6 +940,120 @@ static void window_editor_object_selection_invalidate(rct_window* w) } } +static void window_editor_object_selection_paint_descriptions(rct_window* w, rct_drawpixelinfo* dpi) +{ + auto widget = &w->widgets[WIDX_PREVIEW]; + auto screenPos = w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_LIST].right + 4, widget->bottom + 23 }; + auto width = w->windowPos.x + w->width - screenPos.x - 4; + + auto description = object_get_description(_loadedObject.get()); + if (!description.empty()) + { + auto ft = Formatter(); + ft.Add(STR_STRING); + ft.Add(description.c_str()); + + screenPos.y += DrawTextWrapped(dpi, screenPos, width, STR_WINDOW_COLOUR_2_STRINGID, ft) + LIST_ROW_HEIGHT; + } + if (get_selected_object_type(w) == ObjectType::Ride) + { + auto* rideObject = reinterpret_cast(_loadedObject.get()); + const auto* rideEntry = reinterpret_cast(rideObject->GetLegacyData()); + if (rideEntry->shop_item[0] != ShopItem::None) + { + std::string sells = ""; + for (size_t i = 0; i < std::size(rideEntry->shop_item); i++) + { + if (rideEntry->shop_item[i] == ShopItem::None) + continue; + + if (!sells.empty()) + sells += ", "; + + sells += language_get_string(GetShopItemDescriptor(rideEntry->shop_item[i]).Naming.Plural); + } + auto ft = Formatter(); + ft.Add(sells.c_str()); + screenPos.y += DrawTextWrapped(dpi, screenPos, width, STR_RIDE_OBJECT_SHOP_SELLS, ft) + 2; + } + } + else if (get_selected_object_type(w) == ObjectType::SceneryGroup) + { + const auto* sceneryGroupObject = reinterpret_cast(_loadedObject.get()); + auto ft = Formatter(); + ft.Add(sceneryGroupObject->GetNumIncludedObjects()); + screenPos.y += DrawTextWrapped(dpi, screenPos, width, STR_INCLUDES_X_OBJECTS, ft) + 2; + } + else if (get_selected_object_type(w) == ObjectType::Music) + { + screenPos.y += DrawTextWrapped(dpi, screenPos, width, STR_MUSIC_OBJECT_TRACK_HEADER) + 2; + const auto* musicObject = reinterpret_cast(_loadedObject.get()); + for (size_t i = 0; i < musicObject->GetTrackCount(); i++) + { + const auto* track = musicObject->GetTrack(i); + if (track->Name.empty()) + continue; + + auto stringId = track->Composer.empty() ? STR_MUSIC_OBJECT_TRACK_LIST_ITEM + : STR_MUSIC_OBJECT_TRACK_LIST_ITEM_WITH_COMPOSER; + auto ft = Formatter(); + ft.Add(track->Name.c_str()); + ft.Add(track->Composer.c_str()); + screenPos.y += DrawTextWrapped(dpi, screenPos + ScreenCoordsXY{ 10, 0 }, width, stringId, ft); + } + } +} + +static void window_editor_object_selection_paint_debug_data(rct_window* w, rct_drawpixelinfo* dpi) +{ + list_item* listItem = &_listItems[w->selected_list_item]; + auto screenPos = w->windowPos + ScreenCoordsXY{ w->width - 5, w->height - (LIST_ROW_HEIGHT * 5) }; + // Draw ride type. + if (get_selected_object_type(w) == ObjectType::Ride) + { + auto stringId = get_ride_type_string_id(listItem->repositoryItem); + DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT }); + } + + screenPos.y += LIST_ROW_HEIGHT; + + // Draw object source + auto stringId = object_manager_get_source_game_string(listItem->repositoryItem->GetFirstSourceGame()); + DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT }); + screenPos.y += LIST_ROW_HEIGHT; + + // Draw object dat name + { + const char* path = path_get_filename(listItem->repositoryItem->Path.c_str()); + auto ft = Formatter(); + ft.Add(STR_STRING); + ft.Add(path); + DrawTextBasic( + dpi, { w->windowPos.x + w->width - 5, screenPos.y }, STR_WINDOW_COLOUR_2_STRINGID, ft, + { COLOUR_BLACK, TextAlignment::RIGHT }); + screenPos.y += LIST_ROW_HEIGHT; + } + + // Draw object author (will be blank space if no author in file or a non JSON object) + { + auto ft = Formatter(); + std::string authorsString; + for (size_t i = 0; i < listItem->repositoryItem->Authors.size(); i++) + { + if (i > 0) + { + authorsString.append(", "); + } + authorsString.append(listItem->repositoryItem->Authors[i]); + } + ft.Add(STR_STRING); + ft.Add(authorsString.c_str()); + DrawTextEllipsised( + dpi, { w->windowPos.x + w->width - 5, screenPos.y }, w->width - w->widgets[WIDX_LIST].right - 4, + STR_WINDOW_COLOUR_2_STRINGID, ft, { TextAlignment::RIGHT }); + } +} + /** * * rct2: 0x006AAB56 @@ -953,9 +1071,9 @@ static void window_editor_object_selection_paint(rct_window* w, rct_drawpixelinf widget = &w->widgets[WIDX_TAB_1 + i]; if (widget->type != WindowWidgetType::Empty) { - auto image = ObjectSelectionPages[i].Image; + auto image = ImageId(ObjectSelectionPages[i].Image); auto screenPos = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - gfx_draw_sprite(dpi, image, screenPos, 0); + gfx_draw_sprite(dpi, image, screenPos); } } @@ -983,7 +1101,7 @@ static void window_editor_object_selection_paint(rct_window* w, rct_drawpixelinf spriteIndex += (i == 4 ? ThrillRidesTabAnimationSequence[frame] : frame); auto screenPos = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - gfx_draw_sprite(dpi, spriteIndex | (w->colours[1] << 19), screenPos, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex, w->colours[1]), screenPos); } } @@ -1059,66 +1177,8 @@ static void window_editor_object_selection_paint(rct_window* w, rct_drawpixelinf DrawTextEllipsised(dpi, screenPos, width, STR_WINDOW_COLOUR_2_STRINGID, ft, { TextAlignment::CENTRE }); } - // Draw description of object - auto description = object_get_description(_loadedObject.get()); - if (!description.empty()) - { - auto ft = Formatter(); - ft.Add(STR_STRING); - ft.Add(description.c_str()); - - auto screenPos = w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_LIST].right + 4, widget->bottom + 18 }; - width = w->windowPos.x + w->width - screenPos.x - 4; - - DrawTextWrapped(dpi, screenPos + ScreenCoordsXY{ 0, 5 }, width, STR_WINDOW_COLOUR_2_STRINGID, ft); - } - - auto screenPos = w->windowPos + ScreenCoordsXY{ w->width - 5, w->height - (LIST_ROW_HEIGHT * 5) }; - - // Draw ride type. - if (get_selected_object_type(w) == ObjectType::Ride) - { - auto stringId = get_ride_type_string_id(listItem->repositoryItem); - DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT }); - } - - screenPos.y += LIST_ROW_HEIGHT; - - // Draw object source - auto stringId = object_manager_get_source_game_string(listItem->repositoryItem->GetFirstSourceGame()); - DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT }); - screenPos.y += LIST_ROW_HEIGHT; - - // Draw object dat name - { - const char* path = path_get_filename(listItem->repositoryItem->Path.c_str()); - auto ft = Formatter(); - ft.Add(STR_STRING); - ft.Add(path); - DrawTextBasic( - dpi, { w->windowPos.x + w->width - 5, screenPos.y }, STR_WINDOW_COLOUR_2_STRINGID, ft, - { COLOUR_BLACK, TextAlignment::RIGHT }); - screenPos.y += LIST_ROW_HEIGHT; - } - - // Draw object author (will be blank space if no author in file or a non JSON object) - { - auto ft = Formatter(); - std::string authorsString; - for (size_t i = 0; i < listItem->repositoryItem->Authors.size(); i++) - { - if (i > 0) - { - authorsString.append(", "); - } - authorsString.append(listItem->repositoryItem->Authors[i]); - } - ft.Add(STR_STRING); - ft.Add(authorsString.c_str()); - DrawTextEllipsised( - dpi, { w->windowPos.x + w->width - 5, screenPos.y }, w->width - w->widgets[WIDX_LIST].right - 4, - STR_WINDOW_COLOUR_2_STRINGID, ft, { TextAlignment::RIGHT }); - } + window_editor_object_selection_paint_descriptions(w, dpi); + window_editor_object_selection_paint_debug_data(w, dpi); } /** * @@ -1140,7 +1200,8 @@ static void window_editor_object_selection_scrollpaint(rct_window* w, rct_drawpi { // Draw checkbox if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) && !(*listItem.flags & 0x20)) - gfx_fill_rect_inset(dpi, 2, screenCoords.y, 11, screenCoords.y + 10, w->colours[1], INSET_RECT_F_E0); + gfx_fill_rect_inset( + dpi, { { 2, screenCoords.y }, { 11, screenCoords.y + 10 } }, w->colours[1], INSET_RECT_F_E0); // Highlight background auto highlighted = listItem.entry == w->object_entry && !(*listItem.flags & OBJECT_SELECTION_FLAG_6); @@ -1298,7 +1359,7 @@ static void editor_load_selected_objects() { const ObjectRepositoryItem* item = &items[i]; const rct_object_entry* entry = &item->ObjectEntry; - void* loadedObject = object_manager_get_loaded_object(entry); + const auto* loadedObject = object_manager_get_loaded_object(ObjectEntryDescriptor(*item)); if (loadedObject == nullptr) { loadedObject = object_manager_load_object(entry); diff --git a/src/openrct2-ui/windows/EditorObjectiveOptions.cpp b/src/openrct2-ui/windows/EditorObjectiveOptions.cpp index cf7037e82a..5d0759806f 100644 --- a/src/openrct2-ui/windows/EditorObjectiveOptions.cpp +++ b/src/openrct2-ui/windows/EditorObjectiveOptions.cpp @@ -176,31 +176,31 @@ static rct_window_event_list *window_editor_objective_options_page_events[] = { #pragma region Enabled widgets static uint64_t window_editor_objective_options_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_OBJECTIVE) | - (1 << WIDX_OBJECTIVE_DROPDOWN) | - (1 << WIDX_OBJECTIVE_ARG_1_INCREASE) | - (1 << WIDX_OBJECTIVE_ARG_1_DECREASE) | - (1 << WIDX_OBJECTIVE_ARG_2_INCREASE) | - (1 << WIDX_OBJECTIVE_ARG_2_DECREASE) | - (1 << WIDX_PARK_NAME) | - (1 << WIDX_SCENARIO_NAME) | - (1 << WIDX_CATEGORY) | - (1 << WIDX_CATEGORY_DROPDOWN) | - (1 << WIDX_DETAILS), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_OBJECTIVE) | + (1ULL << WIDX_OBJECTIVE_DROPDOWN) | + (1ULL << WIDX_OBJECTIVE_ARG_1_INCREASE) | + (1ULL << WIDX_OBJECTIVE_ARG_1_DECREASE) | + (1ULL << WIDX_OBJECTIVE_ARG_2_INCREASE) | + (1ULL << WIDX_OBJECTIVE_ARG_2_DECREASE) | + (1ULL << WIDX_PARK_NAME) | + (1ULL << WIDX_SCENARIO_NAME) | + (1ULL << WIDX_CATEGORY) | + (1ULL << WIDX_CATEGORY_DROPDOWN) | + (1ULL << WIDX_DETAILS), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) }; static uint64_t window_editor_objective_options_page_hold_down_widgets[] = { - (1 << WIDX_OBJECTIVE_ARG_1_INCREASE) | - (1 << WIDX_OBJECTIVE_ARG_1_DECREASE) | - (1 << WIDX_OBJECTIVE_ARG_2_INCREASE) | - (1 << WIDX_OBJECTIVE_ARG_2_DECREASE), + (1ULL << WIDX_OBJECTIVE_ARG_1_INCREASE) | + (1ULL << WIDX_OBJECTIVE_ARG_1_DECREASE) | + (1ULL << WIDX_OBJECTIVE_ARG_2_INCREASE) | + (1ULL << WIDX_OBJECTIVE_ARG_2_DECREASE), 0 }; @@ -267,17 +267,17 @@ static void window_editor_objective_options_draw_tab_images(rct_window* w, rct_d if (w->page == WINDOW_EDITOR_OBJECTIVE_OPTIONS_PAGE_MAIN) spriteIndex += (w->frame_no / 4) % 16; - gfx_draw_sprite(dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget->left, widget->top }); // Tab 2 - if (!(w->disabled_widgets & (1 << WIDX_TAB_2))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_2))) { widget = &w->widgets[WIDX_TAB_2]; spriteIndex = SPR_TAB_RIDE_0; if (w->page == WINDOW_EDITOR_OBJECTIVE_OPTIONS_PAGE_RIDES) spriteIndex += (w->frame_no / 4) % 16; - gfx_draw_sprite(dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget->left, widget->top }); } } @@ -1083,7 +1083,7 @@ static void window_editor_objective_options_rides_scrollpaint(rct_window* w, rct continue; // Checkbox - gfx_fill_rect_inset(dpi, 2, y, 11, y + 10, w->colours[1], INSET_RECT_F_E0); + gfx_fill_rect_inset(dpi, { { 2, y }, { 11, y + 10 } }, w->colours[1], INSET_RECT_F_E0); // Highlighted auto stringId = STR_BLACK_STRING; @@ -1125,10 +1125,10 @@ static void window_editor_objective_options_update_disabled_widgets(rct_window* const auto& rideManager = GetRideManager(); if (std::any_of(rideManager.begin(), rideManager.end(), [](const Ride& ride) { return ride.IsRide(); })) { - w->disabled_widgets &= ~(1 << WIDX_TAB_2); + w->disabled_widgets &= ~(1ULL << WIDX_TAB_2); } else { - w->disabled_widgets |= (1 << WIDX_TAB_2); + w->disabled_widgets |= (1ULL << WIDX_TAB_2); } } diff --git a/src/openrct2-ui/windows/EditorScenarioOptions.cpp b/src/openrct2-ui/windows/EditorScenarioOptions.cpp index ca9a2bac0e..2647f982c0 100644 --- a/src/openrct2-ui/windows/EditorScenarioOptions.cpp +++ b/src/openrct2-ui/windows/EditorScenarioOptions.cpp @@ -376,7 +376,7 @@ static void window_editor_scenario_options_draw_tab_images(rct_window* w, rct_dr if (w->page == WINDOW_EDITOR_SCENARIO_OPTIONS_PAGE_FINANCIAL) spriteIndex += (w->frame_no / 2) % 8; - gfx_draw_sprite(dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget->left, widget->top }); // Tab 2 widget = &w->widgets[WIDX_TAB_2]; @@ -384,12 +384,12 @@ static void window_editor_scenario_options_draw_tab_images(rct_window* w, rct_dr if (w->page == WINDOW_EDITOR_SCENARIO_OPTIONS_PAGE_GUESTS) spriteIndex += (w->frame_no / 4) % 8; - gfx_draw_sprite(dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget->left, widget->top }); // Tab 3 widget = &w->widgets[WIDX_TAB_3]; spriteIndex = SPR_TAB_PARK; - gfx_draw_sprite(dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget->left, widget->top }); } /** @@ -639,13 +639,13 @@ static void window_editor_scenario_options_financial_invalidate(rct_window* w) if (((gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && (gParkFlags & PARK_FLAGS_NO_MONEY_SCENARIO)) || (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && (gParkFlags & PARK_FLAGS_NO_MONEY))) { - w->pressed_widgets |= (1 << WIDX_NO_MONEY); + w->pressed_widgets |= (1ULL << WIDX_NO_MONEY); for (int32_t i = WIDX_INITIAL_CASH; i <= WIDX_FORBID_MARKETING; i++) w->widgets[i].type = WindowWidgetType::Empty; } else { - w->pressed_widgets &= ~(1 << WIDX_NO_MONEY); + w->pressed_widgets &= ~(1ULL << WIDX_NO_MONEY); w->widgets[WIDX_INITIAL_CASH].type = WindowWidgetType::Spinner; w->widgets[WIDX_INITIAL_CASH_INCREASE].type = WindowWidgetType::Button; w->widgets[WIDX_INITIAL_CASH_DECREASE].type = WindowWidgetType::Button; @@ -662,9 +662,9 @@ static void window_editor_scenario_options_financial_invalidate(rct_window* w) } if (gParkFlags & PARK_FLAGS_FORBID_MARKETING_CAMPAIGN) - w->pressed_widgets |= (1 << WIDX_FORBID_MARKETING); + w->pressed_widgets |= (1ULL << WIDX_FORBID_MARKETING); else - w->pressed_widgets &= ~(1 << WIDX_FORBID_MARKETING); + w->pressed_widgets &= ~(1ULL << WIDX_FORBID_MARKETING); w->widgets[WIDX_CLOSE].type = (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) ? WindowWidgetType::Empty : WindowWidgetType::CloseBox; @@ -933,15 +933,15 @@ static void window_editor_scenario_options_guests_invalidate(rct_window* w) // Guests prefer less intense rides checkbox if (gParkFlags & PARK_FLAGS_PREF_LESS_INTENSE_RIDES) - w->pressed_widgets |= (1 << WIDX_GUEST_PREFER_LESS_INTENSE_RIDES); + w->pressed_widgets |= (1ULL << WIDX_GUEST_PREFER_LESS_INTENSE_RIDES); else - w->pressed_widgets &= ~(1 << WIDX_GUEST_PREFER_LESS_INTENSE_RIDES); + w->pressed_widgets &= ~(1ULL << WIDX_GUEST_PREFER_LESS_INTENSE_RIDES); // Guests prefer more intense rides checkbox if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) - w->pressed_widgets |= (1 << WIDX_GUEST_PREFER_MORE_INTENSE_RIDES); + w->pressed_widgets |= (1ULL << WIDX_GUEST_PREFER_MORE_INTENSE_RIDES); else - w->pressed_widgets &= ~(1 << WIDX_GUEST_PREFER_MORE_INTENSE_RIDES); + w->pressed_widgets &= ~(1ULL << WIDX_GUEST_PREFER_MORE_INTENSE_RIDES); w->widgets[WIDX_CLOSE].type = (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) ? WindowWidgetType::Empty : WindowWidgetType::CloseBox; @@ -1285,22 +1285,22 @@ static void window_editor_scenario_options_park_invalidate(rct_window* w) // Set checkboxes pressedWidgets = w->pressed_widgets; - pressedWidgets &= ~(1 << WIDX_FORBID_TREE_REMOVAL); - pressedWidgets &= ~(1 << WIDX_FORBID_LANDSCAPE_CHANGES); - pressedWidgets &= ~(1 << WIDX_FORBID_HIGH_CONSTRUCTION); - pressedWidgets &= ~(1 << WIDX_HARD_PARK_RATING); - pressedWidgets &= ~(1 << WIDX_HARD_GUEST_GENERATION); + pressedWidgets &= ~(1ULL << WIDX_FORBID_TREE_REMOVAL); + pressedWidgets &= ~(1ULL << WIDX_FORBID_LANDSCAPE_CHANGES); + pressedWidgets &= ~(1ULL << WIDX_FORBID_HIGH_CONSTRUCTION); + pressedWidgets &= ~(1ULL << WIDX_HARD_PARK_RATING); + pressedWidgets &= ~(1ULL << WIDX_HARD_GUEST_GENERATION); if (gParkFlags & PARK_FLAGS_FORBID_TREE_REMOVAL) - pressedWidgets |= (1 << WIDX_FORBID_TREE_REMOVAL); + pressedWidgets |= (1ULL << WIDX_FORBID_TREE_REMOVAL); if (gParkFlags & PARK_FLAGS_FORBID_LANDSCAPE_CHANGES) - pressedWidgets |= (1 << WIDX_FORBID_LANDSCAPE_CHANGES); + pressedWidgets |= (1ULL << WIDX_FORBID_LANDSCAPE_CHANGES); if (gParkFlags & PARK_FLAGS_FORBID_HIGH_CONSTRUCTION) - pressedWidgets |= (1 << WIDX_FORBID_HIGH_CONSTRUCTION); + pressedWidgets |= (1ULL << WIDX_FORBID_HIGH_CONSTRUCTION); if (gParkFlags & PARK_FLAGS_DIFFICULT_PARK_RATING) - pressedWidgets |= (1 << WIDX_HARD_PARK_RATING); + pressedWidgets |= (1ULL << WIDX_HARD_PARK_RATING); if (gParkFlags & PARK_FLAGS_DIFFICULT_GUEST_GENERATION) - pressedWidgets |= (1 << WIDX_HARD_GUEST_GENERATION); + pressedWidgets |= (1ULL << WIDX_HARD_GUEST_GENERATION); w->pressed_widgets = pressedWidgets; diff --git a/src/openrct2-ui/windows/Error.cpp b/src/openrct2-ui/windows/Error.cpp index f531feb90d..0aa501a991 100644 --- a/src/openrct2-ui/windows/Error.cpp +++ b/src/openrct2-ui/windows/Error.cpp @@ -136,27 +136,42 @@ static void window_error_unknown5(rct_window* w) */ static void window_error_paint(rct_window* w, rct_drawpixelinfo* dpi) { - int32_t t, l, r, b; + ScreenCoordsXY leftTop{ w->windowPos }; + ScreenCoordsXY rightBottom{ w->windowPos + ScreenCoordsXY{ w->width - 1, w->height - 1 } }; + ScreenCoordsXY leftBottom{ leftTop.x, rightBottom.y }; + ScreenCoordsXY rightTop{ rightBottom.x, leftTop.y }; - l = w->windowPos.x; - t = w->windowPos.y; - r = w->windowPos.x + w->width - 1; - b = w->windowPos.y + w->height - 1; + gfx_filter_rect( + dpi, ScreenRect{ leftTop + ScreenCoordsXY{ 1, 1 }, rightBottom - ScreenCoordsXY{ 1, 1 } }, FilterPaletteID::Palette45); + gfx_filter_rect(dpi, ScreenRect{ leftTop, rightBottom }, FilterPaletteID::PaletteGlassSaturatedRed); - gfx_filter_rect(dpi, l + 1, t + 1, r - 1, b - 1, FilterPaletteID::Palette45); - gfx_filter_rect(dpi, l, t, r, b, FilterPaletteID::PaletteGlassSaturatedRed); + gfx_filter_rect( + dpi, ScreenRect{ leftTop + ScreenCoordsXY{ 0, 2 }, leftBottom - ScreenCoordsXY{ 0, 2 } }, + FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ rightTop + ScreenCoordsXY{ 0, 2 }, rightBottom - ScreenCoordsXY{ 0, 2 } }, + FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ leftBottom + ScreenCoordsXY{ 2, 0 }, rightBottom - ScreenCoordsXY{ 2, 0 } }, + FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ leftTop + ScreenCoordsXY{ 2, 0 }, rightTop - ScreenCoordsXY{ 2, 0 } }, + FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, l, t + 2, l, b - 2, FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, r, t + 2, r, b - 2, FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, l + 2, b, r - 2, b, FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, l + 2, t, r - 2, t, FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ rightTop + ScreenCoordsXY{ 1, 1 }, rightTop + ScreenCoordsXY{ 1, 1 } }, + FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ rightTop + ScreenCoordsXY{ -1, 1 }, rightTop + ScreenCoordsXY{ -1, 1 } }, + FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ leftBottom + ScreenCoordsXY{ 1, -1 }, leftBottom + ScreenCoordsXY{ 1, -1 } }, + FilterPaletteID::PaletteDarken3); + gfx_filter_rect( + dpi, ScreenRect{ rightBottom - ScreenCoordsXY{ 1, 1 }, rightBottom - ScreenCoordsXY{ 1, 1 } }, + FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, r + 1, t + 1, r + 1, t + 1, FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, r - 1, t + 1, r - 1, t + 1, FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, l + 1, b - 1, l + 1, b - 1, FilterPaletteID::PaletteDarken3); - gfx_filter_rect(dpi, r - 1, b - 1, r - 1, b - 1, FilterPaletteID::PaletteDarken3); - - l = w->windowPos.x + (w->width + 1) / 2 - 1; - t = w->windowPos.y + 1; - draw_string_centred_raw(dpi, { l, t }, _window_error_num_lines, _window_error_text.data(), FontSpriteBase::MEDIUM); + draw_string_centred_raw( + dpi, { leftTop + ScreenCoordsXY{ (w->width + 1) / 2 - 1, 1 } }, _window_error_num_lines, _window_error_text.data(), + FontSpriteBase::MEDIUM); } diff --git a/src/openrct2-ui/windows/Finances.cpp b/src/openrct2-ui/windows/Finances.cpp index 3b4c2ef5f6..16ee1e81b9 100644 --- a/src/openrct2-ui/windows/Finances.cpp +++ b/src/openrct2-ui/windows/Finances.cpp @@ -550,7 +550,7 @@ static void window_finances_summary_paint(rct_window* w, rct_drawpixelinfo* dpi) // Horizontal rule below expenditure / income table gfx_fill_rect_inset( - dpi, w->windowPos.x + 8, w->windowPos.y + 272, w->windowPos.x + 8 + 513, w->windowPos.y + 272 + 1, w->colours[1], + dpi, { w->windowPos + ScreenCoordsXY{ 8, 272 }, w->windowPos + ScreenCoordsXY{ 8 + 513, 272 + 1 } }, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); // Loan and interest rate @@ -705,32 +705,28 @@ static void window_finances_financial_graph_invalidate(rct_window* w) */ static void window_finances_financial_graph_paint(rct_window* w, rct_drawpixelinfo* dpi) { - int32_t i, x, y, graphLeft, graphTop, graphRight, graphBottom; - WindowDrawWidgets(w, dpi); window_finances_draw_tab_images(dpi, w); rct_widget* pageWidget = &_windowFinancesCashWidgets[WIDX_PAGE_BACKGROUND]; - graphLeft = w->windowPos.x + pageWidget->left + 4; - graphTop = w->windowPos.y + pageWidget->top + 15; - graphRight = w->windowPos.x + pageWidget->right - 4; - graphBottom = w->windowPos.y + pageWidget->bottom - 4; + auto graphTopLeft = w->windowPos + ScreenCoordsXY{ pageWidget->left + 4, pageWidget->top + 15 }; + auto graphBottomRight = w->windowPos + ScreenCoordsXY{ pageWidget->right - 4, pageWidget->bottom - 4 }; // Cash (less loan) money32 cashLessLoan = gCash - gBankLoan; DrawTextBasic( - dpi, { graphLeft, graphTop - 11 }, + dpi, graphTopLeft - ScreenCoordsXY{ 0, 11 }, cashLessLoan >= 0 ? STR_FINANCES_FINANCIAL_GRAPH_CASH_LESS_LOAN_POSITIVE : STR_FINANCES_FINANCIAL_GRAPH_CASH_LESS_LOAN_NEGATIVE, &cashLessLoan); // Graph - gfx_fill_rect_inset(dpi, graphLeft, graphTop, graphRight, graphBottom, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { graphTopLeft, graphBottomRight }, w->colours[1], INSET_RECT_F_30); // Calculate the Y axis scale (log2 of highest [+/-]balance) int32_t yAxisScale = 0; - for (i = 0; i < 64; i++) + for (int32_t i = 0; i < 64; i++) { money32 balance = gCashHistory[i]; if (balance == MONEY32_UNDEFINED) @@ -746,23 +742,25 @@ static void window_finances_financial_graph_paint(rct_window* w, rct_drawpixelin } // Y axis labels - x = graphLeft + 18; - y = graphTop + 14; + auto coords = graphTopLeft + ScreenCoordsXY{ 18, 14 }; money32 axisBase; for (axisBase = MONEY(12, 00); axisBase >= MONEY(-12, 00); axisBase -= MONEY(6, 00)) { money32 axisValue = axisBase << yAxisScale; auto ft = Formatter(); ft.Add(axisValue); - DrawTextBasic(dpi, { x + 70, y }, STR_FINANCES_FINANCIAL_GRAPH_CASH_VALUE, ft, { TextAlignment::RIGHT }); - gfx_fill_rect_inset(dpi, x + 70, y + 5, graphLeft + 482, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET); - y += 39; + DrawTextBasic( + dpi, coords + ScreenCoordsXY{ 70, 0 }, STR_FINANCES_FINANCIAL_GRAPH_CASH_VALUE, ft, + { FontSpriteBase::SMALL, TextAlignment::RIGHT }); + gfx_fill_rect_inset( + dpi, { coords + ScreenCoordsXY{ 70, 5 }, { graphTopLeft.x + 482, coords.y + 5 } }, w->colours[2], + INSET_RECT_FLAG_BORDER_INSET); + coords.y += 39; } // X axis labels and values - x = graphLeft + 98; - y = graphTop + 17; - Graph::Draw(dpi, gCashHistory, 64, x, y, yAxisScale, 128); + coords = graphTopLeft + ScreenCoordsXY{ 98, 17 }; + Graph::Draw(dpi, gCashHistory, 64, coords, yAxisScale, 128); } #pragma endregion @@ -815,27 +813,23 @@ static void window_finances_park_value_graph_invalidate(rct_window* w) */ static void window_finances_park_value_graph_paint(rct_window* w, rct_drawpixelinfo* dpi) { - int32_t i, x, y, graphLeft, graphTop, graphRight, graphBottom; - WindowDrawWidgets(w, dpi); window_finances_draw_tab_images(dpi, w); rct_widget* pageWidget = &_windowFinancesCashWidgets[WIDX_PAGE_BACKGROUND]; - graphLeft = w->windowPos.x + pageWidget->left + 4; - graphTop = w->windowPos.y + pageWidget->top + 15; - graphRight = w->windowPos.x + pageWidget->right - 4; - graphBottom = w->windowPos.y + pageWidget->bottom - 4; + auto graphTopLeft = w->windowPos + ScreenCoordsXY{ pageWidget->left + 4, pageWidget->top + 15 }; + auto graphBottomRight = w->windowPos + ScreenCoordsXY{ pageWidget->right - 4, pageWidget->bottom - 4 }; // Park value money32 parkValue = gParkValue; - DrawTextBasic(dpi, { graphLeft, graphTop - 11 }, STR_FINANCES_PARK_VALUE, &parkValue); + DrawTextBasic(dpi, graphTopLeft - ScreenCoordsXY{ 0, 11 }, STR_FINANCES_PARK_VALUE, &parkValue); // Graph - gfx_fill_rect_inset(dpi, graphLeft, graphTop, graphRight, graphBottom, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { graphTopLeft, graphBottomRight }, w->colours[1], INSET_RECT_F_30); // Calculate the Y axis scale (log2 of highest [+/-]balance) int32_t yAxisScale = 0; - for (i = 0; i < 64; i++) + for (int32_t i = 0; i < 64; i++) { money32 balance = gParkValueHistory[i]; if (balance == MONEY32_UNDEFINED) @@ -851,23 +845,25 @@ static void window_finances_park_value_graph_paint(rct_window* w, rct_drawpixeli } // Y axis labels - x = graphLeft + 18; - y = graphTop + 14; + auto coords = graphTopLeft + ScreenCoordsXY{ 18, 14 }; money32 axisBase; for (axisBase = MONEY(24, 00); axisBase >= MONEY(0, 00); axisBase -= MONEY(6, 00)) { money32 axisValue = axisBase << yAxisScale; auto ft = Formatter(); ft.Add(axisValue); - DrawTextBasic(dpi, { x + 70, y }, STR_FINANCES_FINANCIAL_GRAPH_CASH_VALUE, ft, { TextAlignment::RIGHT }); - gfx_fill_rect_inset(dpi, x + 70, y + 5, graphLeft + 482, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET); - y += 39; + DrawTextBasic( + dpi, coords + ScreenCoordsXY{ 70, 0 }, STR_FINANCES_FINANCIAL_GRAPH_CASH_VALUE, ft, + { FontSpriteBase::SMALL, TextAlignment::RIGHT }); + gfx_fill_rect_inset( + dpi, { coords + ScreenCoordsXY{ 70, 5 }, { graphTopLeft.x + 482, coords.y + 5 } }, w->colours[2], + INSET_RECT_FLAG_BORDER_INSET); + coords.y += 39; } // X axis labels and values - x = graphLeft + 98; - y = graphTop + 17; - Graph::Draw(dpi, gParkValueHistory, 64, x, y, yAxisScale, 0); + coords = graphTopLeft + ScreenCoordsXY{ 98, 17 }; + Graph::Draw(dpi, gParkValueHistory, 64, coords, yAxisScale, 0); } #pragma endregion @@ -919,29 +915,25 @@ static void window_finances_profit_graph_invalidate(rct_window* w) */ static void window_finances_profit_graph_paint(rct_window* w, rct_drawpixelinfo* dpi) { - int32_t i, graphLeft, graphTop, graphRight, graphBottom; - WindowDrawWidgets(w, dpi); window_finances_draw_tab_images(dpi, w); rct_widget* pageWidget = &_windowFinancesCashWidgets[WIDX_PAGE_BACKGROUND]; - graphLeft = w->windowPos.x + pageWidget->left + 4; - graphTop = w->windowPos.y + pageWidget->top + 15; - graphRight = w->windowPos.x + pageWidget->right - 4; - graphBottom = w->windowPos.y + pageWidget->bottom - 4; + auto graphTopLeft = w->windowPos + ScreenCoordsXY{ pageWidget->left + 4, pageWidget->top + 15 }; + auto graphBottomRight = w->windowPos + ScreenCoordsXY{ pageWidget->right - 4, pageWidget->bottom - 4 }; // Weekly profit money32 weeklyPofit = gCurrentProfit; DrawTextBasic( - dpi, { graphLeft, graphTop - 11 }, + dpi, graphTopLeft - ScreenCoordsXY{ 0, 11 }, weeklyPofit >= 0 ? STR_FINANCES_WEEKLY_PROFIT_POSITIVE : STR_FINANCES_WEEKLY_PROFIT_LOSS, &weeklyPofit); // Graph - gfx_fill_rect_inset(dpi, graphLeft, graphTop, graphRight, graphBottom, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { graphTopLeft, graphBottomRight }, w->colours[1], INSET_RECT_F_30); // Calculate the Y axis scale (log2 of highest [+/-]balance) int32_t yAxisScale = 0; - for (i = 0; i < 64; i++) + for (int32_t i = 0; i < 64; i++) { money32 balance = gWeeklyProfitHistory[i]; if (balance == MONEY32_UNDEFINED) @@ -957,7 +949,7 @@ static void window_finances_profit_graph_paint(rct_window* w, rct_drawpixelinfo* } // Y axis labels - auto screenPos = ScreenCoordsXY{ graphLeft + 18, graphTop + 14 }; + auto screenPos = graphTopLeft + ScreenCoordsXY{ 18, 14 }; money32 axisBase; for (axisBase = MONEY(12, 00); axisBase >= MONEY(-12, 00); axisBase -= MONEY(6, 00)) { @@ -965,16 +957,17 @@ static void window_finances_profit_graph_paint(rct_window* w, rct_drawpixelinfo* auto ft = Formatter(); ft.Add(axisValue); DrawTextBasic( - dpi, screenPos + ScreenCoordsXY{ 70, 0 }, STR_FINANCES_FINANCIAL_GRAPH_CASH_VALUE, ft, { TextAlignment::RIGHT }); + dpi, screenPos + ScreenCoordsXY{ 70, 0 }, STR_FINANCES_FINANCIAL_GRAPH_CASH_VALUE, ft, + { FontSpriteBase::SMALL, TextAlignment::RIGHT }); gfx_fill_rect_inset( - dpi, screenPos.x + 70, screenPos.y + 5, graphLeft + 482, screenPos.y + 5, w->colours[2], + dpi, { screenPos + ScreenCoordsXY{ 70, 5 }, { graphTopLeft.x + 482, screenPos.y + 5 } }, w->colours[2], INSET_RECT_FLAG_BORDER_INSET); screenPos.y += 39; } // X axis labels and values - screenPos = { graphLeft + 98, graphTop + 17 }; - Graph::Draw(dpi, gWeeklyProfitHistory, 64, screenPos.x, screenPos.y, yAxisScale, 128); + screenPos = graphTopLeft + ScreenCoordsXY{ 98, 17 }; + Graph::Draw(dpi, gWeeklyProfitHistory, 64, screenPos, yAxisScale, 128); } #pragma endregion @@ -1364,7 +1357,8 @@ static void window_finances_draw_tab_image(rct_drawpixelinfo* dpi, rct_window* w } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 1854c3e1e5..bd14160bb9 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -30,6 +30,11 @@ static constexpr const int32_t WH = 381; static constexpr const int32_t WW = 106; static constexpr const uint16_t ARROW_PULSE_DURATION = 200; +static uint8_t _footpathSelectedType; +static uint8_t _footpathConstructDirection; +static uint8_t _footpathConstructValidDirections; +static uint8_t _footpathConstructionMode; + // clang-format off enum { @@ -207,17 +212,17 @@ rct_window* window_footpath_open() window = WindowCreate(ScreenCoordsXY(0, 29), 106, 381, &window_footpath_events, WC_FOOTPATH, 0); window->widgets = window_footpath_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_FOOTPATH_TYPE) | (1 << WIDX_QUEUELINE_TYPE) - | (1 << WIDX_DIRECTION_NW) | (1 << WIDX_DIRECTION_NE) | (1 << WIDX_DIRECTION_SW) | (1 << WIDX_DIRECTION_SE) - | (1 << WIDX_SLOPEDOWN) | (1 << WIDX_LEVEL) | (1 << WIDX_SLOPEUP) | (1 << WIDX_CONSTRUCT) | (1 << WIDX_REMOVE) - | (1 << WIDX_CONSTRUCT_ON_LAND) | (1 << WIDX_CONSTRUCT_BRIDGE_OR_TUNNEL); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_FOOTPATH_TYPE) | (1ULL << WIDX_QUEUELINE_TYPE) + | (1ULL << WIDX_DIRECTION_NW) | (1ULL << WIDX_DIRECTION_NE) | (1ULL << WIDX_DIRECTION_SW) | (1ULL << WIDX_DIRECTION_SE) + | (1ULL << WIDX_SLOPEDOWN) | (1ULL << WIDX_LEVEL) | (1ULL << WIDX_SLOPEUP) | (1ULL << WIDX_CONSTRUCT) + | (1ULL << WIDX_REMOVE) | (1ULL << WIDX_CONSTRUCT_ON_LAND) | (1ULL << WIDX_CONSTRUCT_BRIDGE_OR_TUNNEL); WindowInitScrollWidgets(window); window_push_others_right(window); show_gridlines(); tool_cancel(); - gFootpathConstructionMode = PATH_CONSTRUCTION_MODE_LAND; + _footpathConstructionMode = PATH_CONSTRUCTION_MODE_LAND; tool_set(window, WIDX_CONSTRUCT_ON_LAND, Tool::PathDown); input_set_flag(INPUT_FLAG_6, true); _footpathErrorOccured = false; @@ -258,7 +263,7 @@ static void window_footpath_mouseup(rct_window* w, rct_widgetindex widgetIndex) window_footpath_remove(); break; case WIDX_CONSTRUCT_ON_LAND: - if (gFootpathConstructionMode == PATH_CONSTRUCTION_MODE_LAND) + if (_footpathConstructionMode == PATH_CONSTRUCTION_MODE_LAND) { break; } @@ -268,14 +273,14 @@ static void window_footpath_mouseup(rct_window* w, rct_widgetindex widgetIndex) footpath_provisional_update(); map_invalidate_map_selection_tiles(); gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_CONSTRUCT; - gFootpathConstructionMode = PATH_CONSTRUCTION_MODE_LAND; + _footpathConstructionMode = PATH_CONSTRUCTION_MODE_LAND; tool_set(w, WIDX_CONSTRUCT_ON_LAND, Tool::PathDown); input_set_flag(INPUT_FLAG_6, true); _footpathErrorOccured = false; window_footpath_set_enabled_and_pressed_widgets(); break; case WIDX_CONSTRUCT_BRIDGE_OR_TUNNEL: - if (gFootpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL_TOOL) + if (_footpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL_TOOL) { break; } @@ -285,7 +290,7 @@ static void window_footpath_mouseup(rct_window* w, rct_widgetindex widgetIndex) footpath_provisional_update(); map_invalidate_map_selection_tiles(); gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_CONSTRUCT; - gFootpathConstructionMode = PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL_TOOL; + _footpathConstructionMode = PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL_TOOL; tool_set(w, WIDX_CONSTRUCT_BRIDGE_OR_TUNNEL, Tool::Crosshair); input_set_flag(INPUT_FLAG_6, true); _footpathErrorOccured = false; @@ -340,11 +345,11 @@ static void window_footpath_dropdown(rct_window* w, rct_widgetindex widgetIndex, { if (widgetIndex == WIDX_FOOTPATH_TYPE) { - gFootpathSelectedType = SELECTED_PATH_TYPE_NORMAL; + _footpathSelectedType = SELECTED_PATH_TYPE_NORMAL; } else if (widgetIndex == WIDX_QUEUELINE_TYPE) { - gFootpathSelectedType = SELECTED_PATH_TYPE_QUEUE; + _footpathSelectedType = SELECTED_PATH_TYPE_QUEUE; } else { @@ -454,20 +459,20 @@ static void window_footpath_update_provisional_path_for_bridge_mode(rct_window* { int32_t type, slope; - if (gFootpathConstructionMode != PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL) + if (_footpathConstructionMode != PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL) { return; } // Recheck area for construction. Set by ride_construction window - if (gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_2) + if (gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_2) { footpath_provisional_remove(); - gFootpathProvisionalFlags &= ~PROVISIONAL_PATH_FLAG_2; + gProvisionalFootpath.Flags &= ~PROVISIONAL_PATH_FLAG_2; } // Update provisional bridge mode path - if (!(gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_1)) + if (!(gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_1)) { CoordsXYZ footpathLoc; footpath_get_next_path_info(&type, footpathLoc, &slope); @@ -482,12 +487,12 @@ static void window_footpath_update_provisional_path_for_bridge_mode(rct_window* { _footpathConstructionNextArrowPulse = curTime + ARROW_PULSE_DURATION; - gFootpathProvisionalFlags ^= PROVISIONAL_PATH_FLAG_SHOW_ARROW; + gProvisionalFootpath.Flags ^= PROVISIONAL_PATH_FLAG_SHOW_ARROW; CoordsXYZ footpathLoc; footpath_get_next_path_info(&type, footpathLoc, &slope); gMapSelectArrowPosition = footpathLoc; - gMapSelectArrowDirection = gFootpathConstructDirection; - if (gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_SHOW_ARROW) + gMapSelectArrowDirection = _footpathConstructDirection; + if (gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_SHOW_ARROW) { gMapSelectFlags |= MAP_SELECT_FLAG_ENABLE_ARROW; } @@ -517,7 +522,7 @@ static void window_footpath_update(rct_window* w) } // Check tool - if (gFootpathConstructionMode == PATH_CONSTRUCTION_MODE_LAND) + if (_footpathConstructionMode == PATH_CONSTRUCTION_MODE_LAND) { if (!(input_test_flag(INPUT_FLAG_TOOL_ACTIVE))) { @@ -532,7 +537,7 @@ static void window_footpath_update(rct_window* w) window_close(w); } } - else if (gFootpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL_TOOL) + else if (_footpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL_TOOL) { if (!(input_test_flag(INPUT_FLAG_TOOL_ACTIVE))) { @@ -556,13 +561,13 @@ static void window_footpath_update(rct_window* w) static void window_footpath_invalidate(rct_window* w) { // Press / unpress footpath and queue type buttons - w->pressed_widgets &= ~(1 << WIDX_FOOTPATH_TYPE); - w->pressed_widgets &= ~(1 << WIDX_QUEUELINE_TYPE); - w->pressed_widgets |= gFootpathSelectedType == SELECTED_PATH_TYPE_NORMAL ? (1 << WIDX_FOOTPATH_TYPE) - : (1 << WIDX_QUEUELINE_TYPE); + w->pressed_widgets &= ~(1ULL << WIDX_FOOTPATH_TYPE); + w->pressed_widgets &= ~(1ULL << WIDX_QUEUELINE_TYPE); + w->pressed_widgets |= _footpathSelectedType == SELECTED_PATH_TYPE_NORMAL ? (1ULL << WIDX_FOOTPATH_TYPE) + : (1ULL << WIDX_QUEUELINE_TYPE); // Enable / disable construct button - window_footpath_widgets[WIDX_CONSTRUCT].type = gFootpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL + window_footpath_widgets[WIDX_CONSTRUCT].type = _footpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL ? WindowWidgetType::ImgBtn : WindowWidgetType::Empty; @@ -589,10 +594,10 @@ static void window_footpath_paint(rct_window* w, rct_drawpixelinfo* dpi) ScreenCoordsXY screenCoords; WindowDrawWidgets(w, dpi); - if (!(w->disabled_widgets & (1 << WIDX_CONSTRUCT))) + if (!(w->disabled_widgets & (1ULL << WIDX_CONSTRUCT))) { // Get construction image - uint8_t direction = (gFootpathConstructDirection + get_current_rotation()) % 4; + uint8_t direction = (_footpathConstructDirection + get_current_rotation()) % 4; uint8_t slope = 0; if (gFootpathConstructSlope == 2) { @@ -604,7 +609,7 @@ static void window_footpath_paint(rct_window* w, rct_drawpixelinfo* dpi) } int32_t image = ConstructionPreviewImages[slope][direction]; - int32_t selectedPath = gFootpathSelectedId + (MAX_PATH_OBJECTS * gFootpathSelectedType); + int32_t selectedPath = gFootpathSelectedId + (MAX_PATH_OBJECTS * _footpathSelectedType); PathSurfaceEntry* pathType = get_path_surface_entry(selectedPath); image += pathType->image; @@ -612,7 +617,7 @@ static void window_footpath_paint(rct_window* w, rct_drawpixelinfo* dpi) screenCoords = w->windowPos + ScreenCoordsXY{ window_footpath_widgets[WIDX_CONSTRUCT].midX(), window_footpath_widgets[WIDX_CONSTRUCT].bottom - 60 }; - gfx_draw_sprite(dpi, image, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image), screenCoords); // Draw build this... label screenCoords = w->windowPos @@ -683,7 +688,7 @@ static void window_footpath_show_footpath_types_dialog(rct_window* w, rct_widget static void window_footpath_mousedown_direction(int32_t direction) { footpath_provisional_update(); - gFootpathConstructDirection = (direction - get_current_rotation()) & 3; + _footpathConstructDirection = (direction - get_current_rotation()) & 3; _window_footpath_cost = MONEY32_UNDEFINED; window_footpath_set_enabled_and_pressed_widgets(); } @@ -720,8 +725,8 @@ static void window_footpath_set_provisional_path_at_point(const ScreenCoordsXY& else { // Check for change - if ((gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_1) - && gFootpathProvisionalPosition == CoordsXYZ{ info.Loc, info.Element->GetBaseZ() }) + if ((gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_1) + && gProvisionalFootpath.Position == CoordsXYZ{ info.Loc, info.Element->GetBaseZ() }) { return; } @@ -769,7 +774,7 @@ static void window_footpath_set_provisional_path_at_point(const ScreenCoordsXY& slope &= ~RAISE_FOOTPATH_FLAG; z += PATH_HEIGHT_STEP; } - int32_t pathType = (gFootpathSelectedType << 7) + (gFootpathSelectedId & 0xFF); + int32_t pathType = (_footpathSelectedType << 7) + (gFootpathSelectedId & 0xFF); _window_footpath_cost = footpath_provisional_set(pathType, { info.Loc, z }, slope); window_invalidate_by_class(WC_FOOTPATH); @@ -864,7 +869,7 @@ static void window_footpath_place_path_at_point(const ScreenCoordsXY& screenCoor slope &= ~RAISE_FOOTPATH_FLAG; z += PATH_HEIGHT_STEP; } - auto selectedType = (gFootpathSelectedType << 7) + (gFootpathSelectedId & 0xFF); + auto selectedType = (_footpathSelectedType << 7) + (gFootpathSelectedId & 0xFF); // Try and place path gGameCommandErrorTitle = STR_CANT_BUILD_FOOTPATH_HERE; @@ -935,11 +940,11 @@ static void window_footpath_start_bridge_at_point(const ScreenCoordsXY& screenCo tool_cancel(); gFootpathConstructFromPosition = { mapCoords, z }; - gFootpathConstructDirection = direction; - gFootpathProvisionalFlags = 0; + _footpathConstructDirection = direction; + gProvisionalFootpath.Flags = 0; gFootpathConstructSlope = 0; - gFootpathConstructionMode = PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL; - gFootpathConstructValidDirections = INVALID_DIRECTION; + _footpathConstructionMode = PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL; + _footpathConstructValidDirections = INVALID_DIRECTION; window_footpath_set_enabled_and_pressed_widgets(); } @@ -957,7 +962,7 @@ static void window_footpath_construct() footpath_get_next_path_info(&type, footpathLoc, &slope); gGameCommandErrorTitle = STR_CANT_BUILD_FOOTPATH_HERE; - auto footpathPlaceAction = FootpathPlaceAction(footpathLoc, slope, type, gFootpathConstructDirection); + auto footpathPlaceAction = FootpathPlaceAction(footpathLoc, slope, type, _footpathConstructDirection); footpathPlaceAction.SetCallback([=](const GameAction* ga, const GameActions::Result* result) { if (result->Error == GameActions::Status::Ok) { @@ -965,11 +970,11 @@ static void window_footpath_construct() if (gFootpathConstructSlope == 0) { - gFootpathConstructValidDirections = INVALID_DIRECTION; + _footpathConstructValidDirections = INVALID_DIRECTION; } else { - gFootpathConstructValidDirections = gFootpathConstructDirection; + _footpathConstructValidDirections = _footpathConstructDirection; } if (gFootpathGroundFlags & ELEMENT_IS_UNDERGROUND) @@ -1002,14 +1007,14 @@ static void footpath_remove_tile_element(TileElement* tileElement) { uint8_t slopeDirection = tileElement->AsPath()->GetSlopeDirection(); slopeDirection = direction_reverse(slopeDirection); - if (slopeDirection == gFootpathConstructDirection) + if (slopeDirection == _footpathConstructDirection) { z += PATH_HEIGHT_STEP; } } // Find a connected edge - int32_t edge = direction_reverse(gFootpathConstructDirection); + int32_t edge = direction_reverse(_footpathConstructDirection); if (!(tileElement->AsPath()->GetEdges() & (1 << edge))) { edge = (edge + 1) & 3; @@ -1036,8 +1041,8 @@ static void footpath_remove_tile_element(TileElement* tileElement) gFootpathConstructFromPosition.x -= CoordsDirectionDelta[edge].x; gFootpathConstructFromPosition.y -= CoordsDirectionDelta[edge].y; gFootpathConstructFromPosition.z = z; - gFootpathConstructDirection = edge; - gFootpathConstructValidDirections = INVALID_DIRECTION; + _footpathConstructDirection = edge; + _footpathConstructValidDirections = INVALID_DIRECTION; } /** @@ -1068,7 +1073,7 @@ static TileElement* footpath_get_tile_element_to_remove() { if (tileElement->AsPath()->IsSloped()) { - if (direction_reverse(tileElement->AsPath()->GetSlopeDirection()) != gFootpathConstructDirection) + if (direction_reverse(tileElement->AsPath()->GetSlopeDirection()) != _footpathConstructDirection) { continue; } @@ -1080,7 +1085,7 @@ static TileElement* footpath_get_tile_element_to_remove() { if (!tileElement->AsPath()->IsSloped()) { - if ((tileElement->AsPath()->GetSlopeDirection()) == gFootpathConstructDirection) + if ((tileElement->AsPath()->GetSlopeDirection()) == _footpathConstructDirection) { continue; } @@ -1126,13 +1131,13 @@ static void window_footpath_set_enabled_and_pressed_widgets() return; } - if (gFootpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL) + if (_footpathConstructionMode == PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL) { map_invalidate_map_selection_tiles(); gMapSelectFlags |= MAP_SELECT_FLAG_ENABLE_CONSTRUCT; gMapSelectFlags |= MAP_SELECT_FLAG_GREEN; - int32_t direction = gFootpathConstructDirection; + int32_t direction = _footpathConstructDirection; gMapSelectionTiles.clear(); gMapSelectionTiles.push_back({ gFootpathConstructFromPosition.x + CoordsDirectionDelta[direction].x, gFootpathConstructFromPosition.y + CoordsDirectionDelta[direction].y }); @@ -1144,33 +1149,33 @@ static void window_footpath_set_enabled_and_pressed_widgets() | (1LL << WIDX_SLOPEDOWN) | (1LL << WIDX_LEVEL) | (1LL << WIDX_SLOPEUP)); uint64_t disabledWidgets = 0; int32_t currentRotation = get_current_rotation(); - if (gFootpathConstructionMode >= PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL) + if (_footpathConstructionMode >= PATH_CONSTRUCTION_MODE_BRIDGE_OR_TUNNEL) { // Set pressed directional widget - int32_t direction = (gFootpathConstructDirection + currentRotation) & 3; + int32_t direction = (_footpathConstructDirection + currentRotation) & 3; pressedWidgets |= (1LL << (WIDX_DIRECTION_NW + direction)); // Set pressed slope widget int32_t slope = gFootpathConstructSlope; if (slope == TILE_ELEMENT_SLOPE_SE_SIDE_UP) { - pressedWidgets |= (1 << WIDX_SLOPEDOWN); + pressedWidgets |= (1ULL << WIDX_SLOPEDOWN); } else if (slope == TILE_ELEMENT_SLOPE_FLAT) { - pressedWidgets |= (1 << WIDX_LEVEL); + pressedWidgets |= (1ULL << WIDX_LEVEL); } else { - pressedWidgets |= (1 << WIDX_SLOPEUP); + pressedWidgets |= (1ULL << WIDX_SLOPEUP); } // Enable / disable directional widgets - direction = gFootpathConstructValidDirections; + direction = _footpathConstructValidDirections; if (direction != INVALID_DIRECTION) { - disabledWidgets |= (1 << WIDX_DIRECTION_NW) | (1 << WIDX_DIRECTION_NE) | (1 << WIDX_DIRECTION_SW) - | (1 << WIDX_DIRECTION_SE); + disabledWidgets |= (1ULL << WIDX_DIRECTION_NW) | (1ULL << WIDX_DIRECTION_NE) | (1ULL << WIDX_DIRECTION_SW) + | (1ULL << WIDX_DIRECTION_SE); direction = (direction + currentRotation) & 3; disabledWidgets &= ~(1 << (WIDX_DIRECTION_NW + direction)); @@ -1179,9 +1184,9 @@ static void window_footpath_set_enabled_and_pressed_widgets() else { // Disable all bridge mode widgets - disabledWidgets |= (1 << WIDX_DIRECTION_GROUP) | (1 << WIDX_DIRECTION_NW) | (1 << WIDX_DIRECTION_NE) - | (1 << WIDX_DIRECTION_SW) | (1 << WIDX_DIRECTION_SE) | (1 << WIDX_SLOPE_GROUP) | (1 << WIDX_SLOPEDOWN) - | (1 << WIDX_LEVEL) | (1 << WIDX_SLOPEUP) | (1 << WIDX_CONSTRUCT) | (1 << WIDX_REMOVE); + disabledWidgets |= (1ULL << WIDX_DIRECTION_GROUP) | (1ULL << WIDX_DIRECTION_NW) | (1ULL << WIDX_DIRECTION_NE) + | (1ULL << WIDX_DIRECTION_SW) | (1ULL << WIDX_DIRECTION_SE) | (1ULL << WIDX_SLOPE_GROUP) | (1ULL << WIDX_SLOPEDOWN) + | (1ULL << WIDX_LEVEL) | (1ULL << WIDX_SLOPEUP) | (1ULL << WIDX_CONSTRUCT) | (1ULL << WIDX_REMOVE); } w->pressed_widgets = pressedWidgets; @@ -1197,15 +1202,15 @@ static void footpath_get_next_path_info(int32_t* type, CoordsXYZ& footpathLoc, i { int32_t direction; - direction = gFootpathConstructDirection; + direction = _footpathConstructDirection; footpathLoc.x = gFootpathConstructFromPosition.x + CoordsDirectionDelta[direction].x; footpathLoc.y = gFootpathConstructFromPosition.y + CoordsDirectionDelta[direction].y; footpathLoc.z = gFootpathConstructFromPosition.z; - *type = (gFootpathSelectedType << 7) + (gFootpathSelectedId & 0xFF); + *type = (_footpathSelectedType << 7) + (gFootpathSelectedId & 0xFF); *slope = TILE_ELEMENT_SLOPE_FLAT; if (gFootpathConstructSlope != 0) { - *slope = gFootpathConstructDirection | TILE_ELEMENT_SLOPE_S_CORNER_UP; + *slope = _footpathConstructDirection | TILE_ELEMENT_SLOPE_S_CORNER_UP; if (gFootpathConstructSlope != 2) { footpathLoc.z -= PATH_HEIGHT_STEP; @@ -1247,12 +1252,12 @@ void window_footpath_keyboard_shortcut_turn_left() { rct_window* w = window_find_by_class(WC_FOOTPATH); if (w == nullptr || WidgetIsDisabled(w, WIDX_DIRECTION_NW) || WidgetIsDisabled(w, WIDX_DIRECTION_NE) - || WidgetIsDisabled(w, WIDX_DIRECTION_SW) || WidgetIsDisabled(w, WIDX_DIRECTION_SE) || gFootpathConstructionMode != 2) + || WidgetIsDisabled(w, WIDX_DIRECTION_SW) || WidgetIsDisabled(w, WIDX_DIRECTION_SE) || _footpathConstructionMode != 2) { return; } int32_t currentRotation = get_current_rotation(); - int32_t turnedRotation = gFootpathConstructDirection - currentRotation + (currentRotation % 2 == 1 ? 1 : -1); + int32_t turnedRotation = _footpathConstructDirection - currentRotation + (currentRotation % 2 == 1 ? 1 : -1); window_footpath_mousedown_direction(turnedRotation); } @@ -1260,12 +1265,12 @@ void window_footpath_keyboard_shortcut_turn_right() { rct_window* w = window_find_by_class(WC_FOOTPATH); if (w == nullptr || WidgetIsDisabled(w, WIDX_DIRECTION_NW) || WidgetIsDisabled(w, WIDX_DIRECTION_NE) - || WidgetIsDisabled(w, WIDX_DIRECTION_SW) || WidgetIsDisabled(w, WIDX_DIRECTION_SE) || gFootpathConstructionMode != 2) + || WidgetIsDisabled(w, WIDX_DIRECTION_SW) || WidgetIsDisabled(w, WIDX_DIRECTION_SE) || _footpathConstructionMode != 2) { return; } int32_t currentRotation = get_current_rotation(); - int32_t turnedRotation = gFootpathConstructDirection - currentRotation + (currentRotation % 2 == 1 ? -1 : 1); + int32_t turnedRotation = _footpathConstructDirection - currentRotation + (currentRotation % 2 == 1 ? -1 : 1); window_footpath_mousedown_direction(turnedRotation); } @@ -1337,3 +1342,8 @@ void window_footpath_keyboard_shortcut_build_current() window_event_mouse_up_call(w, WIDX_CONSTRUCT); } + +void window_footpath_reset_selected_path() +{ + _footpathSelectedType = 0; +} diff --git a/src/openrct2-ui/windows/GameBottomToolbar.cpp b/src/openrct2-ui/windows/GameBottomToolbar.cpp index 3135435fe5..4f65f9a81b 100644 --- a/src/openrct2-ui/windows/GameBottomToolbar.cpp +++ b/src/openrct2-ui/windows/GameBottomToolbar.cpp @@ -24,8 +24,8 @@ #include #include #include +#include #include -#include // clang-format off enum WINDOW_GAME_BOTTOM_TOOLBAR_WIDGET_IDX @@ -76,7 +76,7 @@ static void window_game_bottom_toolbar_cursor(rct_window *w, rct_widgetindex wid static void window_game_bottom_toolbar_unknown05(rct_window *w); static void window_game_bottom_toolbar_draw_left_panel(rct_drawpixelinfo *dpi, rct_window *w); -static void window_game_bottom_toolbar_draw_park_rating(rct_drawpixelinfo *dpi, rct_window *w, int32_t colour, int32_t x, int32_t y, uint8_t factor); +static void window_game_bottom_toolbar_draw_park_rating(rct_drawpixelinfo *dpi, rct_window *w, int32_t colour, const ScreenCoordsXY& coords, uint8_t factor); static void window_game_bottom_toolbar_draw_right_panel(rct_drawpixelinfo *dpi, rct_window *w); static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo *dpi, rct_window *w); static void window_game_bottom_toolbar_draw_middle_panel(rct_drawpixelinfo *dpi, rct_window *w); @@ -116,9 +116,9 @@ rct_window* window_game_bottom_toolbar_open() ScreenCoordsXY(0, screenHeight - toolbar_height), screenWidth, toolbar_height, &window_game_bottom_toolbar_events, WC_BOTTOM_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND); window->widgets = window_game_bottom_toolbar_widgets; - window->enabled_widgets |= (1 << WIDX_LEFT_OUTSET) | (1 << WIDX_MONEY) | (1 << WIDX_GUESTS) | (1 << WIDX_PARK_RATING) - | (1 << WIDX_MIDDLE_OUTSET) | (1 << WIDX_MIDDLE_INSET) | (1 << WIDX_NEWS_SUBJECT) | (1 << WIDX_NEWS_LOCATE) - | (1 << WIDX_RIGHT_OUTSET) | (1 << WIDX_DATE); + window->enabled_widgets |= (1ULL << WIDX_LEFT_OUTSET) | (1ULL << WIDX_MONEY) | (1ULL << WIDX_GUESTS) + | (1ULL << WIDX_PARK_RATING) | (1ULL << WIDX_MIDDLE_OUTSET) | (1ULL << WIDX_MIDDLE_INSET) | (1ULL << WIDX_NEWS_SUBJECT) + | (1ULL << WIDX_NEWS_LOCATE) | (1ULL << WIDX_RIGHT_OUTSET) | (1ULL << WIDX_DATE); window->frame_no = 0; WindowInitScrollWidgets(window); @@ -309,25 +309,25 @@ static void window_game_bottom_toolbar_invalidate(rct_window* w) window_game_bottom_toolbar_widgets[WIDX_NEWS_LOCATE].type = WindowWidgetType::FlatBtn; window_game_bottom_toolbar_widgets[WIDX_MIDDLE_OUTSET].colour = 2; window_game_bottom_toolbar_widgets[WIDX_MIDDLE_INSET].colour = 2; - w->disabled_widgets &= ~(1 << WIDX_NEWS_SUBJECT); - w->disabled_widgets &= ~(1 << WIDX_NEWS_LOCATE); + w->disabled_widgets &= ~(1ULL << WIDX_NEWS_SUBJECT); + w->disabled_widgets &= ~(1ULL << WIDX_NEWS_LOCATE); // Find out if the news item is no longer valid auto subjectLoc = News::GetSubjectLocation(newsItem->Type, newsItem->Assoc); if (subjectLoc == std::nullopt) - w->disabled_widgets |= (1 << WIDX_NEWS_LOCATE); + w->disabled_widgets |= (1ULL << WIDX_NEWS_LOCATE); if (!(newsItem->TypeHasSubject())) { - w->disabled_widgets |= (1 << WIDX_NEWS_SUBJECT); + w->disabled_widgets |= (1ULL << WIDX_NEWS_SUBJECT); window_game_bottom_toolbar_widgets[WIDX_NEWS_SUBJECT].type = WindowWidgetType::Empty; } if (newsItem->HasButton()) { - w->disabled_widgets |= (1 << WIDX_NEWS_SUBJECT); - w->disabled_widgets |= (1 << WIDX_NEWS_LOCATE); + w->disabled_widgets |= (1ULL << WIDX_NEWS_SUBJECT); + w->disabled_widgets |= (1ULL << WIDX_NEWS_LOCATE); } } } @@ -389,12 +389,14 @@ static void window_game_bottom_toolbar_paint(rct_window* w, rct_drawpixelinfo* d static void window_game_bottom_toolbar_draw_left_panel(rct_drawpixelinfo* dpi, rct_window* w) { + const auto topLeft = w->windowPos + + ScreenCoordsXY{ window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].left + 1, + window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].top + 1 }; + const auto bottomRight = w->windowPos + + ScreenCoordsXY{ window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].right - 1, + window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].bottom - 1 }; // Draw green inset rectangle on panel - gfx_fill_rect_inset( - dpi, w->windowPos.x + window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].left + 1, - w->windowPos.y + window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].top + 1, - w->windowPos.x + window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].right - 1, - w->windowPos.y + window_game_bottom_toolbar_widgets[WIDX_LEFT_OUTSET].bottom - 1, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { topLeft, bottomRight }, w->colours[1], INSET_RECT_F_30); // Figure out how much line height we have to work with. uint32_t line_height = font_get_line_height(FontSpriteBase::MEDIUM); @@ -447,10 +449,10 @@ static void window_game_bottom_toolbar_draw_left_panel(rct_drawpixelinfo* dpi, r // Draw park rating { rct_widget widget = window_game_bottom_toolbar_widgets[WIDX_PARK_RATING]; - int32_t x = w->windowPos.x + widget.left + 11; - int32_t y = w->windowPos.y + widget.midY() - 5; + auto screenCoords = w->windowPos + ScreenCoordsXY{ widget.left + 11, widget.midY() - 5 }; - window_game_bottom_toolbar_draw_park_rating(dpi, w, w->colours[3], x, y, std::max(10, ((gParkRating / 4) * 263) / 256)); + window_game_bottom_toolbar_draw_park_rating( + dpi, w, w->colours[3], screenCoords, std::max(10, ((gParkRating / 4) * 263) / 256)); } } @@ -459,31 +461,37 @@ static void window_game_bottom_toolbar_draw_left_panel(rct_drawpixelinfo* dpi, r * rct2: 0x0066C76C */ static void window_game_bottom_toolbar_draw_park_rating( - rct_drawpixelinfo* dpi, rct_window* w, int32_t colour, int32_t x, int32_t y, uint8_t factor) + rct_drawpixelinfo* dpi, rct_window* w, int32_t colour, const ScreenCoordsXY& coords, uint8_t factor) { int16_t bar_width; bar_width = (factor * 114) / 255; - gfx_fill_rect_inset(dpi, x + 1, y + 1, x + 114, y + 9, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset( + dpi, { coords + ScreenCoordsXY{ 1, 1 }, coords + ScreenCoordsXY{ 114, 9 } }, w->colours[1], INSET_RECT_F_30); if (!(colour & IMAGE_TYPE_REMAP_2_PLUS) || game_is_paused() || (gCurrentRealTimeTicks & 8)) { if (bar_width > 2) - gfx_fill_rect_inset(dpi, x + 2, y + 2, x + bar_width - 1, y + 8, colour & 0x7FFFFFFF, 0); + { + gfx_fill_rect_inset( + dpi, { coords + ScreenCoordsXY{ 2, 2 }, coords + ScreenCoordsXY{ bar_width - 1, 8 } }, colour & 0x7FFFFFFF, 0); + } } // Draw thumbs on the sides - gfx_draw_sprite(dpi, SPR_RATING_LOW, { x - 14, y }, 0); - gfx_draw_sprite(dpi, SPR_RATING_HIGH, { x + 114, y }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_RATING_LOW), coords - ScreenCoordsXY{ 14, 0 }); + gfx_draw_sprite(dpi, ImageId(SPR_RATING_HIGH), coords + ScreenCoordsXY{ 114, 0 }); } static void window_game_bottom_toolbar_draw_right_panel(rct_drawpixelinfo* dpi, rct_window* w) { + const auto topLeft = w->windowPos + + ScreenCoordsXY{ window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].left + 1, + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].top + 1 }; + const auto bottomRight = w->windowPos + + ScreenCoordsXY{ window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].right - 1, + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].bottom - 1 }; // Draw green inset rectangle on panel - gfx_fill_rect_inset( - dpi, w->windowPos.x + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].left + 1, - w->windowPos.y + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].top + 1, - w->windowPos.x + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].right - 1, - w->windowPos.y + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].bottom - 1, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset(dpi, { topLeft, bottomRight }, w->colours[1], INSET_RECT_F_30); auto screenCoords = ScreenCoordsXY{ (window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].left + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].right) @@ -528,7 +536,7 @@ static void window_game_bottom_toolbar_draw_right_panel(rct_drawpixelinfo* dpi, // Current weather auto currentWeatherSpriteId = climate_get_weather_sprite_id(gClimateCurrent); - gfx_draw_sprite(dpi, currentWeatherSpriteId, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(currentWeatherSpriteId), screenCoords); // Next weather auto nextWeatherSpriteId = climate_get_weather_sprite_id(gClimateNext); @@ -536,8 +544,8 @@ static void window_game_bottom_toolbar_draw_right_panel(rct_drawpixelinfo* dpi, { if (gClimateUpdateTimer < 960) { - gfx_draw_sprite(dpi, SPR_NEXT_WEATHER, screenCoords + ScreenCoordsXY{ 27, 5 }, 0); - gfx_draw_sprite(dpi, nextWeatherSpriteId, screenCoords + ScreenCoordsXY{ 40, 0 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_NEXT_WEATHER), screenCoords + ScreenCoordsXY{ 27, 5 }); + gfx_draw_sprite(dpi, ImageId(nextWeatherSpriteId), screenCoords + ScreenCoordsXY{ 40, 0 }); } } } @@ -557,9 +565,10 @@ static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo* dpi, rc // Current news item gfx_fill_rect_inset( - dpi, w->windowPos.x + middleOutsetWidget->left + 1, w->windowPos.y + middleOutsetWidget->top + 1, - w->windowPos.x + middleOutsetWidget->right - 1, w->windowPos.y + middleOutsetWidget->bottom - 1, w->colours[2], - INSET_RECT_F_30); + dpi, + { w->windowPos + ScreenCoordsXY{ middleOutsetWidget->left + 1, middleOutsetWidget->top + 1 }, + w->windowPos + ScreenCoordsXY{ middleOutsetWidget->right - 1, middleOutsetWidget->bottom - 1 } }, + w->colours[2], INSET_RECT_F_30); // Text const auto* newsItemText = newsItem->Text.c_str(); @@ -573,7 +582,7 @@ static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo* dpi, rc switch (newsItem->Type) { case News::ItemType::Ride: - gfx_draw_sprite(dpi, SPR_RIDE, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_RIDE), screenCoords); break; case News::ItemType::PeepOnRide: case News::ItemType::Peep: @@ -592,8 +601,8 @@ static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo* dpi, rc return; auto clipCoords = ScreenCoordsXY{ 10, 19 }; - - if (peep->AssignedPeepType == PeepType::Staff && peep->AssignedStaffType == StaffType::Entertainer) + auto* staff = peep->As(); + if (staff != nullptr && staff->AssignedStaffType == StaffType::Entertainer) { clipCoords.y += 3; } @@ -602,48 +611,41 @@ static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo* dpi, rc image_id_base += w->frame_no & 0xFFFFFFFC; image_id_base++; - uint32_t image_id = image_id_base; - image_id |= SPRITE_ID_PALETTE_COLOUR_2(peep->TshirtColour, peep->TrousersColour); + auto image_id = ImageId(image_id_base, peep->TshirtColour, peep->TrousersColour); + gfx_draw_sprite(&cliped_dpi, image_id, clipCoords); - gfx_draw_sprite(&cliped_dpi, image_id, clipCoords, 0); - - if (image_id_base >= 0x2A1D && image_id_base < 0x2A3D) + auto* guest = peep->As(); + if (guest != nullptr) { - image_id_base += 32; - image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour); - - gfx_draw_sprite(&cliped_dpi, image_id_base, clipCoords, 0); - } - else if (image_id_base >= 0x2BBD && image_id_base < 0x2BDD) - { - image_id_base += 32; - image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour); - - gfx_draw_sprite(&cliped_dpi, image_id_base, clipCoords, 0); - } - else if (image_id_base >= 0x29DD && image_id_base < 0x29FD) - { - image_id_base += 32; - image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour); - - gfx_draw_sprite(&cliped_dpi, image_id_base, clipCoords, 0); + if (image_id_base >= 0x2A1D && image_id_base < 0x2A3D) + { + gfx_draw_sprite(&cliped_dpi, ImageId(image_id_base + 32, guest->BalloonColour), clipCoords); + } + else if (image_id_base >= 0x2BBD && image_id_base < 0x2BDD) + { + gfx_draw_sprite(&cliped_dpi, ImageId(image_id_base + 32, guest->UmbrellaColour), clipCoords); + } + else if (image_id_base >= 0x29DD && image_id_base < 0x29FD) + { + gfx_draw_sprite(&cliped_dpi, ImageId(image_id_base + 32, guest->HatColour), clipCoords); + } } break; } case News::ItemType::Money: - gfx_draw_sprite(dpi, SPR_FINANCE, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_FINANCE), screenCoords); break; case News::ItemType::Research: - gfx_draw_sprite(dpi, (newsItem->Assoc < 0x10000 ? SPR_NEW_SCENERY : SPR_NEW_RIDE), screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(newsItem->Assoc < 0x10000 ? SPR_NEW_SCENERY : SPR_NEW_RIDE), screenCoords); break; case News::ItemType::Peeps: - gfx_draw_sprite(dpi, SPR_GUESTS, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_GUESTS), screenCoords); break; case News::ItemType::Award: - gfx_draw_sprite(dpi, SPR_AWARD, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_AWARD), screenCoords); break; case News::ItemType::Graph: - gfx_draw_sprite(dpi, SPR_GRAPH, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_GRAPH), screenCoords); break; case News::ItemType::Null: case News::ItemType::Blank: @@ -657,9 +659,10 @@ static void window_game_bottom_toolbar_draw_middle_panel(rct_drawpixelinfo* dpi, rct_widget* middleOutsetWidget = &window_game_bottom_toolbar_widgets[WIDX_MIDDLE_OUTSET]; gfx_fill_rect_inset( - dpi, w->windowPos.x + middleOutsetWidget->left + 1, w->windowPos.y + middleOutsetWidget->top + 1, - w->windowPos.x + middleOutsetWidget->right - 1, w->windowPos.y + middleOutsetWidget->bottom - 1, w->colours[1], - INSET_RECT_F_30); + dpi, + { w->windowPos + ScreenCoordsXY{ middleOutsetWidget->left + 1, middleOutsetWidget->top + 1 }, + w->windowPos + ScreenCoordsXY{ middleOutsetWidget->right - 1, middleOutsetWidget->bottom - 1 } }, + w->colours[1], INSET_RECT_F_30); // Figure out how much line height we have to work with. uint32_t line_height = font_get_line_height(FontSpriteBase::MEDIUM); diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 2ea9124588..8f379285be 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -270,73 +270,73 @@ void window_guest_set_colours(); // 0x981D3C static constexpr const uint32_t window_guest_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) | - (1 << WIDX_RENAME)| - (1 << WIDX_PICKUP)| - (1 << WIDX_LOCATE)| - (1 << WIDX_TRACK), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) | + (1ULL << WIDX_RENAME)| + (1ULL << WIDX_PICKUP)| + (1ULL << WIDX_LOCATE)| + (1ULL << WIDX_TRACK), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) | - (1 << WIDX_RIDE_SCROLL), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) | + (1ULL << WIDX_RIDE_SCROLL), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) }; static constexpr const rct_size16 window_guest_page_sizes[][2] = { @@ -372,7 +372,7 @@ rct_window* window_guest_open(Peep* peep) { return nullptr; } - if (peep->AssignedPeepType == PeepType::Staff) + if (peep->Is()) { return window_staff_open(peep); } @@ -489,22 +489,22 @@ void window_guest_disable_widgets(rct_window* w) if (peep->CanBePickedUp()) { - if (w->disabled_widgets & (1 << WIDX_PICKUP)) + if (w->disabled_widgets & (1ULL << WIDX_PICKUP)) w->Invalidate(); } else { - disabled_widgets = (1 << WIDX_PICKUP); - if (!(w->disabled_widgets & (1 << WIDX_PICKUP))) + disabled_widgets = (1ULL << WIDX_PICKUP); + if (!(w->disabled_widgets & (1ULL << WIDX_PICKUP))) w->Invalidate(); } if (gParkFlags & PARK_FLAGS_NO_MONEY) { - disabled_widgets |= (1 << WIDX_TAB_4); // Disable finance tab if no money + disabled_widgets |= (1ULL << WIDX_TAB_4); // Disable finance tab if no money } if (!gConfigGeneral.debugging_tools) { - disabled_widgets |= (1 << WIDX_TAB_7); // Disable debug tab when debug tools not turned on + disabled_widgets |= (1ULL << WIDX_TAB_7); // Disable debug tab when debug tools not turned on } w->disabled_widgets = disabled_widgets; } @@ -733,7 +733,7 @@ void window_guest_viewport_init(rct_window* w) */ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_1)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_1)) return; rct_widget* widget = &w->widgets[WIDX_TAB_1]; @@ -758,7 +758,8 @@ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dp return; } - if (peep->AssignedPeepType == PeepType::Staff && peep->AssignedStaffType == StaffType::Entertainer) + auto* staff = peep->As(); + if (staff != nullptr && staff->AssignedStaffType == StaffType::Entertainer) screenCoords.y++; int32_t animationFrame = GetPeepAnimation(peep->SpriteType).base_image + 1; @@ -772,31 +773,29 @@ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dp } animationFrame += animationFrameOffset; - int32_t sprite_id = animationFrame | SPRITE_ID_PALETTE_COLOUR_2(peep->TshirtColour, peep->TrousersColour); - gfx_draw_sprite(&clip_dpi, sprite_id, screenCoords, 0); + auto sprite_id = ImageId(animationFrame, peep->TshirtColour, peep->TrousersColour); + gfx_draw_sprite(&clip_dpi, sprite_id, screenCoords); - // If holding a balloon - if (animationFrame >= 0x2A1D && animationFrame < 0x2A3D) + auto* guest = peep->As(); + if (guest != nullptr) { - animationFrame += 32; - animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour); - gfx_draw_sprite(&clip_dpi, animationFrame, screenCoords, 0); - } + // If holding a balloon + if (animationFrame >= 0x2A1D && animationFrame < 0x2A3D) + { + gfx_draw_sprite(&clip_dpi, ImageId(animationFrame + 32, guest->BalloonColour), screenCoords); + } - // If holding umbrella - if (animationFrame >= 0x2BBD && animationFrame < 0x2BDD) - { - animationFrame += 32; - animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour); - gfx_draw_sprite(&clip_dpi, animationFrame, screenCoords, 0); - } + // If holding umbrella + if (animationFrame >= 0x2BBD && animationFrame < 0x2BDD) + { + gfx_draw_sprite(&clip_dpi, ImageId(animationFrame + 32, guest->UmbrellaColour), screenCoords); + } - // If wearing hat - if (animationFrame >= 0x29DD && animationFrame < 0x29FD) - { - animationFrame += 32; - animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour); - gfx_draw_sprite(&clip_dpi, animationFrame, screenCoords, 0); + // If wearing hat + if (animationFrame >= 0x29DD && animationFrame < 0x29FD) + { + gfx_draw_sprite(&clip_dpi, ImageId(animationFrame + 32, guest->HatColour), screenCoords); + } } } @@ -806,7 +805,7 @@ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dp */ static void window_guest_stats_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_2)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_2)) return; rct_widget* widget = &w->widgets[WIDX_TAB_2]; @@ -835,7 +834,7 @@ static void window_guest_stats_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) break; } } - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -844,7 +843,7 @@ static void window_guest_stats_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) */ static void window_guest_rides_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_3)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_3)) return; rct_widget* widget = &w->widgets[WIDX_TAB_3]; @@ -857,7 +856,7 @@ static void window_guest_rides_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) image_id += (w->frame_no / 4) & 0xF; } - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -866,7 +865,7 @@ static void window_guest_rides_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) */ static void window_guest_finance_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_4)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_4)) return; rct_widget* widget = &w->widgets[WIDX_TAB_4]; @@ -879,7 +878,7 @@ static void window_guest_finance_tab_paint(rct_window* w, rct_drawpixelinfo* dpi image_id += (w->frame_no / 2) & 0x7; } - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -888,7 +887,7 @@ static void window_guest_finance_tab_paint(rct_window* w, rct_drawpixelinfo* dpi */ static void window_guest_thoughts_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_5)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_5)) return; rct_widget* widget = &w->widgets[WIDX_TAB_5]; @@ -901,7 +900,7 @@ static void window_guest_thoughts_tab_paint(rct_window* w, rct_drawpixelinfo* dp image_id += (w->frame_no / 2) & 0x7; } - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -910,20 +909,18 @@ static void window_guest_thoughts_tab_paint(rct_window* w, rct_drawpixelinfo* dp */ static void window_guest_inventory_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_6)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_6)) return; rct_widget* widget = &w->widgets[WIDX_TAB_6]; auto screenCoords = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - int32_t image_id = SPR_TAB_GUEST_INVENTORY; - - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_TAB_GUEST_INVENTORY), screenCoords); } static void window_guest_debug_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_7)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_7)) return; rct_widget* widget = &w->widgets[WIDX_TAB_7]; @@ -935,7 +932,7 @@ static void window_guest_debug_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) image_id += (w->frame_no / 2) & 0x3; } - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -960,7 +957,7 @@ void window_guest_overview_paint(rct_window* w, rct_drawpixelinfo* dpi) rct_viewport* viewport = w->viewport; if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) { - gfx_draw_sprite(dpi, SPR_HEARING_VIEWPORT, w->windowPos + ScreenCoordsXY{ 2, 2 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_HEARING_VIEWPORT), w->windowPos + ScreenCoordsXY{ 2, 2 }); } } @@ -1016,7 +1013,7 @@ void window_guest_overview_paint(rct_window* w, rct_drawpixelinfo* dpi) { auto ft = Formatter(); peep_thought_set_format_args(&peep->Thoughts[i], ft); - DrawTextBasic(&dpi_marquee, { screenPos.x, 0 }, STR_WINDOW_COLOUR_2_STRINGID, ft, {}); + DrawTextBasic(&dpi_marquee, { screenPos.x, 0 }, STR_WINDOW_COLOUR_2_STRINGID, ft, { FontSpriteBase::SMALL }); } } @@ -1033,10 +1030,10 @@ void window_guest_overview_invalidate(rct_window* w) { return; } - w->pressed_widgets &= ~(1 << WIDX_TRACK); + w->pressed_widgets &= ~(1ULL << WIDX_TRACK); if (peep->PeepFlags & PEEP_FLAGS_TRACKING) { - w->pressed_widgets |= (1 << WIDX_TRACK); + w->pressed_widgets |= (1ULL << WIDX_TRACK); } window_guest_overview_widgets[WIDX_VIEWPORT].right = w->width - 26; @@ -1258,14 +1255,16 @@ void window_guest_stats_update(rct_window* w) * */ static void window_guest_stats_bars_paint( - int32_t value, int32_t x, int32_t y, rct_window* w, rct_drawpixelinfo* dpi, int32_t colour, bool blinkFlag) + int32_t value, const ScreenCoordsXY& origCoords, rct_window* w, rct_drawpixelinfo* dpi, int32_t colour, bool blinkFlag) { + auto coords = origCoords; if (font_get_line_height(FontSpriteBase::MEDIUM) > 10) { - y += 1; + coords.y += 1; } - gfx_fill_rect_inset(dpi, x + 61, y + 1, x + 61 + 121, y + 9, w->colours[1], INSET_RECT_F_30); + gfx_fill_rect_inset( + dpi, { coords + ScreenCoordsXY{ 61, 1 }, coords + ScreenCoordsXY{ 61 + 121, 9 } }, w->colours[1], INSET_RECT_F_30); if (!blinkFlag || game_is_paused() || (gCurrentRealTimeTicks & 8) == 0) { @@ -1275,7 +1274,7 @@ static void window_guest_stats_bars_paint( if (value <= 2) return; - gfx_fill_rect_inset(dpi, x + 63, y + 2, x + 63 + value - 1, y + 8, colour, 0); + gfx_fill_rect_inset(dpi, { coords + ScreenCoordsXY{ 63, 2 }, coords + ScreenCoordsXY{ 63 + value - 1, 8 } }, colour, 0); } } @@ -1323,7 +1322,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) int32_t happiness = NormalizeGuestStatValue(peep->Happiness, PEEP_MAX_HAPPINESS, 10); int32_t barColour = COLOUR_BRIGHT_GREEN; bool barBlink = happiness < 50; - window_guest_stats_bars_paint(happiness, screenCoords.x, screenCoords.y, w, dpi, barColour, barBlink); + window_guest_stats_bars_paint(happiness, screenCoords, w, dpi, barColour, barBlink); // Energy screenCoords.y += LIST_ROW_HEIGHT; @@ -1332,7 +1331,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) int32_t energy = NormalizeGuestStatValue(peep->Energy - PEEP_MIN_ENERGY, PEEP_MAX_ENERGY - PEEP_MIN_ENERGY, 10); barColour = COLOUR_BRIGHT_GREEN; barBlink = energy < 50; - window_guest_stats_bars_paint(energy, screenCoords.x, screenCoords.y, w, dpi, barColour, barBlink); + window_guest_stats_bars_paint(energy, screenCoords, w, dpi, barColour, barBlink); // Hunger screenCoords.y += LIST_ROW_HEIGHT; @@ -1342,7 +1341,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) hunger = 255 - hunger; // the bar should be longer when peep->Hunger is low barColour = COLOUR_BRIGHT_RED; barBlink = hunger > 170; - window_guest_stats_bars_paint(hunger, screenCoords.x, screenCoords.y, w, dpi, barColour, barBlink); + window_guest_stats_bars_paint(hunger, screenCoords, w, dpi, barColour, barBlink); // Thirst screenCoords.y += LIST_ROW_HEIGHT; @@ -1352,7 +1351,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) thirst = 255 - thirst; // the bar should be longer when peep->Thirst is low barColour = COLOUR_BRIGHT_RED; barBlink = thirst > 170; - window_guest_stats_bars_paint(thirst, screenCoords.x, screenCoords.y, w, dpi, barColour, barBlink); + window_guest_stats_bars_paint(thirst, screenCoords, w, dpi, barColour, barBlink); // Nausea screenCoords.y += LIST_ROW_HEIGHT; @@ -1361,7 +1360,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) int32_t nausea = NormalizeGuestStatValue(peep->Nausea - 32, 223, 0); barColour = COLOUR_BRIGHT_RED; barBlink = nausea > 120; - window_guest_stats_bars_paint(nausea, screenCoords.x, screenCoords.y, w, dpi, barColour, barBlink); + window_guest_stats_bars_paint(nausea, screenCoords, w, dpi, barColour, barBlink); // Toilet screenCoords.y += LIST_ROW_HEIGHT; @@ -1370,7 +1369,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) int32_t toilet = NormalizeGuestStatValue(peep->Toilet - 64, 178, 0); barColour = COLOUR_BRIGHT_RED; barBlink = toilet > 160; - window_guest_stats_bars_paint(toilet, screenCoords.x, screenCoords.y, w, dpi, barColour, barBlink); + window_guest_stats_bars_paint(toilet, screenCoords, w, dpi, barColour, barBlink); // Time in park screenCoords.y += LIST_ROW_HEIGHT + 1; @@ -1385,7 +1384,7 @@ void window_guest_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) screenCoords.y += LIST_ROW_HEIGHT + 9; gfx_fill_rect_inset( - dpi, screenCoords.x, screenCoords.y - 6, screenCoords.x + 179, screenCoords.y - 5, w->colours[1], + dpi, { screenCoords - ScreenCoordsXY{ 0, 6 }, screenCoords + ScreenCoordsXY{ 179, -5 } }, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); // Preferred Ride @@ -1672,7 +1671,7 @@ void window_guest_finance_paint(rct_window* w, rct_drawpixelinfo* dpi) } gfx_fill_rect_inset( - dpi, screenCoords.x, screenCoords.y - 6, screenCoords.x + 179, screenCoords.y - 5, w->colours[1], + dpi, { screenCoords - ScreenCoordsXY{ 0, 6 }, screenCoords + ScreenCoordsXY{ 179, -5 } }, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); // Paid to enter @@ -1796,18 +1795,18 @@ void window_guest_thoughts_paint(rct_window* w, rct_drawpixelinfo* dpi) DrawTextBasic(dpi, screenCoords, STR_GUEST_RECENT_THOUGHTS_LABEL); screenCoords.y += 10; - for (rct_peep_thought* thought = peep->Thoughts; thought < &peep->Thoughts[PEEP_MAX_THOUGHTS]; ++thought) + for (const auto& thought : peep->Thoughts) { - if (thought->type == PeepThoughtType::None) + if (thought.type == PeepThoughtType::None) return; - if (thought->freshness == 0) + if (thought.freshness == 0) continue; int32_t width = window_guest_thoughts_widgets[WIDX_PAGE_BACKGROUND].right - window_guest_thoughts_widgets[WIDX_PAGE_BACKGROUND].left - 8; auto ft = Formatter(); - peep_thought_set_format_args(thought, ft); + peep_thought_set_format_args(&thought, ft); screenCoords.y += DrawTextWrapped(dpi, screenCoords, width, STR_BLACK_STRING, ft, { FontSpriteBase::SMALL }); // If this is the last visible line end drawing. @@ -1839,7 +1838,7 @@ void window_guest_inventory_update(rct_window* w) } } -static std::pair window_guest_inventory_format_item(Peep* peep, ShopItem item) +static std::pair window_guest_inventory_format_item(Guest* guest, ShopItem item) { auto& park = OpenRCT2::GetContext()->GetGameState()->GetPark(); auto parkName = park.Name.c_str(); @@ -1857,10 +1856,10 @@ static std::pair window_guest_inventory_format_item(Pe { case ShopItem::Balloon: ft.Rewind(); - ft.Add(SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour) | GetShopItemDescriptor(item).Image); + ft.Add(SPRITE_ID_PALETTE_COLOUR_1(guest->BalloonColour) | GetShopItemDescriptor(item).Image); break; case ShopItem::Photo: - ride = get_ride(peep->Photo1RideRef); + ride = get_ride(guest->Photo1RideRef); if (ride != nullptr) { ft.Rewind(); @@ -1871,10 +1870,10 @@ static std::pair window_guest_inventory_format_item(Pe break; case ShopItem::Umbrella: ft.Rewind(); - ft.Add(SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour) | GetShopItemDescriptor(item).Image); + ft.Add(SPRITE_ID_PALETTE_COLOUR_1(guest->UmbrellaColour) | GetShopItemDescriptor(item).Image); break; case ShopItem::Voucher: - switch (peep->VoucherType) + switch (guest->VoucherType) { case VOUCHER_TYPE_PARK_ENTRY_FREE: ft.Rewind(); @@ -1884,7 +1883,7 @@ static std::pair window_guest_inventory_format_item(Pe ft.Add(parkName); break; case VOUCHER_TYPE_RIDE_FREE: - ride = get_ride(peep->VoucherRideId); + ride = get_ride(guest->VoucherRideId); if (ride != nullptr) { ft.Rewind(); @@ -1904,20 +1903,20 @@ static std::pair window_guest_inventory_format_item(Pe ft.Rewind(); ft.Increment(6); ft.Add(STR_PEEP_INVENTORY_VOUCHER_FOOD_OR_DRINK_FREE); - ft.Add(GetShopItemDescriptor(peep->VoucherShopItem).Naming.Singular); + ft.Add(GetShopItemDescriptor(guest->VoucherShopItem).Naming.Singular); break; } break; case ShopItem::Hat: ft.Rewind(); - ft.Add(SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour) | GetShopItemDescriptor(item).Image); + ft.Add(SPRITE_ID_PALETTE_COLOUR_1(guest->HatColour) | GetShopItemDescriptor(item).Image); break; case ShopItem::TShirt: ft.Rewind(); - ft.Add(SPRITE_ID_PALETTE_COLOUR_1(peep->TshirtColour) | GetShopItemDescriptor(item).Image); + ft.Add(SPRITE_ID_PALETTE_COLOUR_1(guest->TshirtColour) | GetShopItemDescriptor(item).Image); break; case ShopItem::Photo2: - ride = get_ride(peep->Photo2RideRef); + ride = get_ride(guest->Photo2RideRef); if (ride != nullptr) { ft.Rewind(); @@ -1926,7 +1925,7 @@ static std::pair window_guest_inventory_format_item(Pe } break; case ShopItem::Photo3: - ride = get_ride(peep->Photo3RideRef); + ride = get_ride(guest->Photo3RideRef); if (ride != nullptr) { ft.Rewind(); @@ -1935,7 +1934,7 @@ static std::pair window_guest_inventory_format_item(Pe } break; case ShopItem::Photo4: - ride = get_ride(peep->Photo4RideRef); + ride = get_ride(guest->Photo4RideRef); if (ride != nullptr) { ft.Rewind(); diff --git a/src/openrct2-ui/windows/GuestList.cpp b/src/openrct2-ui/windows/GuestList.cpp index 831cc2e363..3923ec3a47 100644 --- a/src/openrct2-ui/windows/GuestList.cpp +++ b/src/openrct2-ui/windows/GuestList.cpp @@ -151,9 +151,9 @@ public: void OnOpen() override { widgets = window_guest_list_widgets; - enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_PAGE_DROPDOWN) | (1 << WIDX_PAGE_DROPDOWN_BUTTON) - | (1 << WIDX_INFO_TYPE_DROPDOWN) | (1 << WIDX_INFO_TYPE_DROPDOWN_BUTTON) | (1 << WIDX_MAP) | (1 << WIDX_TRACKING) - | (1 << WIDX_TAB_1) | (1 << WIDX_TAB_2) | (1 << WIDX_FILTER_BY_NAME); + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_PAGE_DROPDOWN) | (1ULL << WIDX_PAGE_DROPDOWN_BUTTON) + | (1ULL << WIDX_INFO_TYPE_DROPDOWN) | (1ULL << WIDX_INFO_TYPE_DROPDOWN_BUTTON) | (1ULL << WIDX_MAP) + | (1ULL << WIDX_TRACKING) | (1ULL << WIDX_TAB_1) | (1ULL << WIDX_TAB_2) | (1ULL << WIDX_FILTER_BY_NAME); WindowInitScrollWidgets(this); _selectedTab = TabId::Individual; @@ -610,7 +610,7 @@ public: { _guestList.clear(); - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { sprite_set_flashing(peep, false); if (peep->OutsideOfPark) @@ -643,12 +643,15 @@ private: auto i = (_selectedTab == TabId::Individual ? _tabAnimationIndex & ~3 : 0); i += GetPeepAnimation(PeepSpriteType::Normal).base_image + 1; i |= 0xA1600000; - gfx_draw_sprite(&dpi, i, windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_1].midX(), widgets[WIDX_TAB_1].bottom - 6 }, 0); + gfx_draw_sprite( + &dpi, ImageId::FromUInt32(i), + windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_1].midX(), widgets[WIDX_TAB_1].bottom - 6 }); // Tab 2 image i = (_selectedTab == TabId::Summarised ? _tabAnimationIndex / 4 : 0); gfx_draw_sprite( - &dpi, SPR_TAB_GUESTS_0 + i, windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_2].left, widgets[WIDX_TAB_2].top }, 0); + &dpi, ImageId(SPR_TAB_GUESTS_0 + i), + windowPos + ScreenCoordsXY{ widgets[WIDX_TAB_2].left, widgets[WIDX_TAB_2].top }); } void DrawScrollIndividual(rct_drawpixelinfo& dpi) @@ -683,11 +686,11 @@ private: { case GuestViewType::Actions: // Guest face - gfx_draw_sprite(&dpi, get_peep_face_sprite_small(peep), { 118, y + 1 }, 0); + gfx_draw_sprite(&dpi, ImageId(get_peep_face_sprite_small(peep)), { 118, y + 1 }); // Tracking icon if (peep->PeepFlags & PEEP_FLAGS_TRACKING) - gfx_draw_sprite(&dpi, STR_ENTER_SELECTION_SIZE, { 112, y + 1 }, 0); + gfx_draw_sprite(&dpi, ImageId(STR_ENTER_SELECTION_SIZE), { 112, y + 1 }); // Action ft = Formatter(); @@ -707,7 +710,7 @@ private: ft = Formatter(); peep_thought_set_format_args(&thought, ft); - DrawTextEllipsised(&dpi, { 118, y }, 329, format, ft); + DrawTextEllipsised(&dpi, { 118, y }, 329, format, ft, { FontSpriteBase::SMALL }); break; } break; @@ -743,13 +746,21 @@ private: for (uint32_t j = 0; j < std::size(group.Faces) && j < group.NumGuests; j++) { gfx_draw_sprite( - &dpi, group.Faces[j] + SPR_PEEP_SMALL_FACE_VERY_VERY_UNHAPPY, { static_cast(j) * 8, y + 12 }, - 0); + &dpi, ImageId(group.Faces[j] + SPR_PEEP_SMALL_FACE_VERY_VERY_UNHAPPY), + { static_cast(j) * 8, y + 12 }); } - // Draw action + // Draw action/thoughts Formatter ft(group.Arguments.args); - DrawTextEllipsised(&dpi, { 0, y }, 414, format, ft); + // Draw small font if displaying guests + if (_selectedView == GuestViewType::Thoughts) + { + DrawTextEllipsised(&dpi, { 0, y }, 414, format, ft, { FontSpriteBase::SMALL }); + } + else + { + DrawTextEllipsised(&dpi, { 0, y }, 414, format, ft); + } // Draw guest count ft = Formatter(); @@ -762,7 +773,7 @@ private: } } - bool GuestShouldBeVisible(const Peep& peep) + bool GuestShouldBeVisible(const Guest& peep) { if (_trackingOnly && !(peep.PeepFlags & PEEP_FLAGS_TRACKING)) return false; @@ -783,7 +794,7 @@ private: return true; } - bool IsPeepInFilter(const Peep& peep) + bool IsPeepInFilter(const Guest& peep) { auto guestViewType = _selectedFilter == GuestFilterType::Guests ? GuestViewType::Actions : GuestViewType::Thoughts; auto peepArgs = GetArgumentsFromPeep(peep, guestViewType); @@ -828,7 +839,7 @@ private: _lastFindGroupsWait = 320; _groups.clear(); - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -864,7 +875,7 @@ private: /** * Calculates a hash value (arguments) for comparing peep actions/thoughts */ - static FilterArguments GetArgumentsFromPeep(const Peep& peep, GuestViewType type) + static FilterArguments GetArgumentsFromPeep(const Guest& peep, GuestViewType type) { FilterArguments result; Formatter ft(result.args); @@ -919,9 +930,9 @@ private: if (peepA != nullptr && peepB != nullptr) { // Compare types - if (peepA->AssignedPeepType != peepB->AssignedPeepType) + if (peepA->Type != peepB->Type) { - return static_cast(peepA->AssignedPeepType) < static_cast(peepB->AssignedPeepType); + return static_cast(peepA->Type) < static_cast(peepB->Type); } // Compare name diff --git a/src/openrct2-ui/windows/InstallTrack.cpp b/src/openrct2-ui/windows/InstallTrack.cpp index c6f241b05b..924e129b88 100644 --- a/src/openrct2-ui/windows/InstallTrack.cpp +++ b/src/openrct2-ui/windows/InstallTrack.cpp @@ -113,8 +113,8 @@ rct_window* window_install_track_open(const utf8* path) rct_window* w = WindowCreate(ScreenCoordsXY(x, y), WW, WH, &window_install_track_events, WC_INSTALL_TRACK, 0); w->widgets = window_install_track_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_ROTATE) | (1 << WIDX_TOGGLE_SCENERY) | (1 << WIDX_INSTALL) - | (1 << WIDX_CANCEL); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_ROTATE) | (1ULL << WIDX_TOGGLE_SCENERY) | (1ULL << WIDX_INSTALL) + | (1ULL << WIDX_CANCEL); WindowInitScrollWidgets(w); w->track_list.track_list_being_updated = false; window_push_others_right(w); @@ -176,14 +176,14 @@ static void window_install_track_mouseup(rct_window* w, rct_widgetindex widgetIn */ static void window_install_track_invalidate(rct_window* w) { - w->pressed_widgets |= 1 << WIDX_TRACK_PREVIEW; + w->pressed_widgets |= 1ULL << WIDX_TRACK_PREVIEW; if (!gTrackDesignSceneryToggle) { - w->pressed_widgets |= (1 << WIDX_TOGGLE_SCENERY); + w->pressed_widgets |= (1ULL << WIDX_TOGGLE_SCENERY); } else { - w->pressed_widgets &= ~(1 << WIDX_TOGGLE_SCENERY); + w->pressed_widgets &= ~(1ULL << WIDX_TOGGLE_SCENERY); } } @@ -208,7 +208,7 @@ static void window_install_track_paint(rct_window* w, rct_drawpixelinfo* dpi) g1temp.flags = G1_FLAG_BMP; gfx_set_g1_element(SPR_TEMP, &g1temp); drawing_engine_invalidate_image(SPR_TEMP); - gfx_draw_sprite(dpi, SPR_TEMP, screenPos, 0); + gfx_draw_sprite(dpi, ImageId(SPR_TEMP), screenPos); screenPos = w->windowPos + ScreenCoordsXY{ widget->midX(), widget->bottom - 12 }; @@ -242,7 +242,7 @@ static void window_install_track_paint(rct_window* w, rct_drawpixelinfo* dpi) { auto ft = Formatter(); - void* objectEntry = object_manager_load_object(&td6->vehicle_object); + const auto* objectEntry = object_manager_load_object(&td6->vehicle_object); if (objectEntry != nullptr) { auto groupIndex = object_manager_get_loaded_object_entry_index(objectEntry); diff --git a/src/openrct2-ui/windows/Land.cpp b/src/openrct2-ui/windows/Land.cpp index 6aa745e6f4..609e3fdfb7 100644 --- a/src/openrct2-ui/windows/Land.cpp +++ b/src/openrct2-ui/windows/Land.cpp @@ -7,19 +7,16 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include #include #include #include #include #include #include -#include #include #include #include #include -#include using namespace OpenRCT2; @@ -52,330 +49,277 @@ static rct_widget window_land_widgets[] = { MakeWidget ({49, 106}, {47, 36}, WindowWidgetType::FlatBtn, WindowColour::Secondary, 0xFFFFFFFF, STR_CHANGE_VERTICAL_LAND_TIP), // wall texture { WIDGETS_END }, }; - -static void window_land_close(rct_window *w); -static void window_land_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_land_mousedown(rct_window *w, rct_widgetindex widgetIndex, rct_widget* widget); -static void window_land_dropdown(rct_window *w, rct_widgetindex widgetIndex, int32_t dropdownIndex); -static void window_land_update(rct_window *w); -static void window_land_invalidate(rct_window *w); -static void window_land_paint(rct_window *w, rct_drawpixelinfo *dpi); -static void window_land_textinput(rct_window *w, rct_widgetindex widgetIndex, char *text); -static void window_land_inputsize(rct_window *w); - -static rct_window_event_list window_land_events([](auto& events) -{ - events.close = &window_land_close; - events.mouse_up = &window_land_mouseup; - events.mouse_down = &window_land_mousedown; - events.dropdown = &window_land_dropdown; - events.update = &window_land_update; - events.text_input = &window_land_textinput; - events.invalidate = &window_land_invalidate; - events.paint = &window_land_paint; -}); // clang-format on -static int32_t _selectedFloorTexture; -static int32_t _selectedWallTexture; +class LandWindow final : public Window +{ +private: + ObjectEntryIndex _selectedFloorTexture = 0; + ObjectEntryIndex _selectedWallTexture = 0; + + void InputSize() + { + TextInputDescriptionArgs[0] = MINIMUM_TOOL_SIZE; + TextInputDescriptionArgs[1] = MAXIMUM_TOOL_SIZE; + window_text_input_open(this, WIDX_PREVIEW, STR_SELECTION_SIZE, STR_ENTER_SELECTION_SIZE, STR_NONE, STR_NONE, 3); + } + +public: + void OnOpen() override + { + widgets = window_land_widgets; + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_DECREMENT) | (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_FLOOR) + | (1ULL << WIDX_WALL) | (1ULL << WIDX_MOUNTAINMODE) | (1ULL << WIDX_PAINTMODE) | (1ULL << WIDX_PREVIEW); + hold_down_widgets = (1ULL << WIDX_DECREMENT) | (1ULL << WIDX_INCREMENT); + WindowInitScrollWidgets(this); + window_push_others_below(this); + + gLandToolSize = 1; + gLandToolTerrainSurface = OBJECT_ENTRY_INDEX_NULL; + gLandToolTerrainEdge = OBJECT_ENTRY_INDEX_NULL; + gLandMountainMode = false; + gLandPaintMode = false; + _selectedFloorTexture = 0; + _selectedWallTexture = 0; + gLandToolRaiseCost = MONEY32_UNDEFINED; + gLandToolLowerCost = MONEY32_UNDEFINED; + } + + void OnClose() override + { + // If the tool wasn't changed, turn tool off + if (land_tool_is_active()) + tool_cancel(); + } + + void OnMouseUp(rct_widgetindex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + break; + case WIDX_MOUNTAINMODE: + gLandMountainMode ^= 1; + gLandPaintMode = 0; + Invalidate(); + break; + case WIDX_PAINTMODE: + gLandMountainMode = 0; + gLandPaintMode ^= 1; + Invalidate(); + break; + case WIDX_PREVIEW: + InputSize(); + break; + } + } + + void OnMouseDown(rct_widgetindex widgetIndex) override + { + rct_widget* widget = &widgets[widgetIndex]; + switch (widgetIndex) + { + case WIDX_FLOOR: + LandTool::ShowSurfaceStyleDropdown(this, widget, _selectedFloorTexture); + break; + case WIDX_WALL: + LandTool::ShowEdgeStyleDropdown(this, widget, _selectedWallTexture); + break; + case WIDX_PREVIEW: + InputSize(); + break; + case WIDX_DECREMENT: + // Decrement land tool size + gLandToolSize = std::max(MINIMUM_TOOL_SIZE, gLandToolSize - 1); + + // Invalidate the window + Invalidate(); + break; + case WIDX_INCREMENT: + // Increment land tool size + gLandToolSize = std::min(MAXIMUM_TOOL_SIZE, gLandToolSize + 1); + + // Invalidate the window + Invalidate(); + break; + } + } + + void OnDropdown(rct_widgetindex widgetIndex, int32_t dropdownIndex) override + { + int32_t type; + + switch (widgetIndex) + { + case WIDX_FLOOR: + if (dropdownIndex == -1) + dropdownIndex = gDropdownHighlightedIndex; + + type = (dropdownIndex == -1) ? _selectedFloorTexture : dropdownIndex; + + if (gLandToolTerrainSurface == type) + { + gLandToolTerrainSurface = OBJECT_ENTRY_INDEX_NULL; + } + else + { + gLandToolTerrainSurface = type; + _selectedFloorTexture = type; + } + Invalidate(); + break; + case WIDX_WALL: + if (dropdownIndex == -1) + dropdownIndex = gDropdownHighlightedIndex; + + type = (dropdownIndex == -1) ? _selectedWallTexture : dropdownIndex; + + if (gLandToolTerrainEdge == type) + { + gLandToolTerrainEdge = OBJECT_ENTRY_INDEX_NULL; + } + else + { + gLandToolTerrainEdge = type; + _selectedWallTexture = type; + } + Invalidate(); + break; + } + } + + void OnTextInput(rct_widgetindex widgetIndex, std::string_view text) override + { + if (widgetIndex != WIDX_PREVIEW) + return; + + char* end; + int32_t size = strtol(std::string(text).c_str(), &end, 10); + if (*end == '\0') + { + size = std::max(MINIMUM_TOOL_SIZE, size); + size = std::min(MAXIMUM_TOOL_SIZE, size); + gLandToolSize = size; + + Invalidate(); + } + } + + void OnUpdate() override + { + if (!land_tool_is_active()) + Close(); + } + + void OnPrepareDraw() override + { + auto surfaceImage = static_cast(SPR_NONE); + auto edgeImage = static_cast(SPR_NONE); + + auto& objManager = GetContext()->GetObjectManager(); + const auto surfaceObj = static_cast( + objManager.GetLoadedObject(ObjectType::TerrainSurface, _selectedFloorTexture)); + if (surfaceObj != nullptr) + { + surfaceImage = surfaceObj->IconImageId; + if (surfaceObj->Colour != 255) + { + surfaceImage |= SPRITE_ID_PALETTE_COLOUR_1(surfaceObj->Colour); + } + } + const auto edgeObj = static_cast( + objManager.GetLoadedObject(ObjectType::TerrainEdge, _selectedWallTexture)); + if (edgeObj != nullptr) + { + edgeImage = edgeObj->IconImageId; + } + + pressed_widgets = 0; + SetWidgetPressed(WIDX_PREVIEW, true); + if (gLandToolTerrainSurface != OBJECT_ENTRY_INDEX_NULL) + SetWidgetPressed(WIDX_FLOOR, true); + if (gLandToolTerrainEdge != OBJECT_ENTRY_INDEX_NULL) + SetWidgetPressed(WIDX_WALL, true); + if (gLandMountainMode) + SetWidgetPressed(WIDX_MOUNTAINMODE, true); + if (gLandPaintMode) + SetWidgetPressed(WIDX_PAINTMODE, true); + + widgets[WIDX_FLOOR].image = surfaceImage; + widgets[WIDX_WALL].image = edgeImage; + // Update the preview image (for tool sizes up to 7) + widgets[WIDX_PREVIEW].image = LandTool::SizeToSpriteIndex(gLandToolSize); + } + + void OnDraw(rct_drawpixelinfo& dpi) override + { + ScreenCoordsXY screenCoords; + int32_t numTiles; + money32 price; + rct_widget* previewWidget = &widgets[WIDX_PREVIEW]; + + DrawWidgets(dpi); + + // Draw number for tool sizes bigger than 7 + if (gLandToolSize > MAX_TOOL_SIZE_WITH_SPRITE) + { + screenCoords = { windowPos.x + previewWidget->midX(), windowPos.y + previewWidget->midY() }; + DrawTextBasic( + &dpi, screenCoords - ScreenCoordsXY{ 0, 2 }, STR_LAND_TOOL_SIZE_VALUE, &gLandToolSize, + { TextAlignment::CENTRE }); + } + else if (gLandMountainMode) + { + screenCoords = { windowPos.x + previewWidget->left, windowPos.y + previewWidget->top }; + auto sprite = ImageId(gLandToolSize % 2 == 0 ? SPR_G2_MOUNTAIN_TOOL_EVEN : SPR_G2_MOUNTAIN_TOOL_ODD); + gfx_draw_sprite(&dpi, sprite, screenCoords); + WidgetDraw(&dpi, this, WIDX_DECREMENT); + WidgetDraw(&dpi, this, WIDX_INCREMENT); + } + + screenCoords = { windowPos.x + previewWidget->midX(), windowPos.y + previewWidget->bottom + 5 }; + + if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) + { + // Draw raise cost amount + if (gLandToolRaiseCost != MONEY32_UNDEFINED && gLandToolRaiseCost != 0) + DrawTextBasic(&dpi, screenCoords, STR_RAISE_COST_AMOUNT, &gLandToolRaiseCost, { TextAlignment::CENTRE }); + screenCoords.y += 10; + + // Draw lower cost amount + if (gLandToolLowerCost != MONEY32_UNDEFINED && gLandToolLowerCost != 0) + DrawTextBasic(&dpi, screenCoords, STR_LOWER_COST_AMOUNT, &gLandToolLowerCost, { TextAlignment::CENTRE }); + screenCoords.y += 50; + + // Draw paint price + numTiles = gLandToolSize * gLandToolSize; + price = 0; + if (gLandToolTerrainSurface != OBJECT_ENTRY_INDEX_NULL) + { + auto& objManager = GetContext()->GetObjectManager(); + const auto surfaceObj = static_cast( + objManager.GetLoadedObject(ObjectType::TerrainSurface, gLandToolTerrainSurface)); + if (surfaceObj != nullptr) + { + price += numTiles * surfaceObj->Price; + } + } + + if (gLandToolTerrainEdge != OBJECT_ENTRY_INDEX_NULL) + price += numTiles * 100; + + if (price != 0) + { + auto ft = Formatter(); + ft.Add(price); + DrawTextBasic(&dpi, screenCoords, STR_COST_AMOUNT, ft.Data(), { TextAlignment::CENTRE }); + } + } + } +}; -/** - * - * rct2: 0x00663E7D - */ rct_window* window_land_open() { - rct_window* window; - - // Check if window is already open - window = window_find_by_class(WC_LAND); - if (window != nullptr) - return window; - - window = WindowCreate(ScreenCoordsXY(context_get_width() - 98, 29), 98, 160, &window_land_events, WC_LAND, 0); - window->widgets = window_land_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_DECREMENT) | (1 << WIDX_INCREMENT) | (1 << WIDX_FLOOR) - | (1 << WIDX_WALL) | (1 << WIDX_MOUNTAINMODE) | (1 << WIDX_PAINTMODE) | (1 << WIDX_PREVIEW); - window->hold_down_widgets = (1 << WIDX_DECREMENT) | (1 << WIDX_INCREMENT); - WindowInitScrollWidgets(window); - window_push_others_below(window); - - gLandToolSize = 1; - gLandToolTerrainSurface = OBJECT_ENTRY_INDEX_NULL; - gLandToolTerrainEdge = OBJECT_ENTRY_INDEX_NULL; - gLandMountainMode = false; - gLandPaintMode = false; - _selectedFloorTexture = TERRAIN_GRASS; - _selectedWallTexture = TERRAIN_EDGE_ROCK; - gLandToolRaiseCost = MONEY32_UNDEFINED; - gLandToolLowerCost = MONEY32_UNDEFINED; - - return window; -} - -/** - * - * rct2: 0x006640A5 - */ -static void window_land_close(rct_window* w) -{ - // If the tool wasn't changed, turn tool off - if (land_tool_is_active()) - tool_cancel(); -} - -/** - * - * rct2: 0x00664064 - */ -static void window_land_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_MOUNTAINMODE: - gLandMountainMode ^= 1; - gLandPaintMode = 0; - w->Invalidate(); - break; - case WIDX_PAINTMODE: - gLandMountainMode = 0; - gLandPaintMode ^= 1; - w->Invalidate(); - break; - case WIDX_PREVIEW: - window_land_inputsize(w); - break; - } -} - -/** - * - * rct2: 0x0066407B - */ -static void window_land_mousedown(rct_window* w, rct_widgetindex widgetIndex, rct_widget* widget) -{ - switch (widgetIndex) - { - case WIDX_FLOOR: - LandTool::ShowSurfaceStyleDropdown(w, widget, _selectedFloorTexture); - break; - case WIDX_WALL: - LandTool::ShowEdgeStyleDropdown(w, widget, _selectedWallTexture); - break; - case WIDX_PREVIEW: - window_land_inputsize(w); - break; - case WIDX_DECREMENT: - // Decrement land tool size - gLandToolSize = std::max(MINIMUM_TOOL_SIZE, gLandToolSize - 1); - - // Invalidate the window - w->Invalidate(); - break; - case WIDX_INCREMENT: - // Increment land tool size - gLandToolSize = std::min(MAXIMUM_TOOL_SIZE, gLandToolSize + 1); - - // Invalidate the window - w->Invalidate(); - break; - } -} - -/** - * - * rct2: 0x00664090 - */ -static void window_land_dropdown(rct_window* w, rct_widgetindex widgetIndex, int32_t dropdownIndex) -{ - int32_t type; - - switch (widgetIndex) - { - case WIDX_FLOOR: - if (dropdownIndex == -1) - dropdownIndex = gDropdownHighlightedIndex; - - type = (dropdownIndex == -1) ? _selectedFloorTexture : dropdownIndex; - - if (gLandToolTerrainSurface == type) - { - gLandToolTerrainSurface = OBJECT_ENTRY_INDEX_NULL; - } - else - { - gLandToolTerrainSurface = type; - _selectedFloorTexture = type; - } - w->Invalidate(); - break; - case WIDX_WALL: - if (dropdownIndex == -1) - dropdownIndex = gDropdownHighlightedIndex; - - type = (dropdownIndex == -1) ? _selectedWallTexture : dropdownIndex; - - if (gLandToolTerrainEdge == type) - { - gLandToolTerrainEdge = OBJECT_ENTRY_INDEX_NULL; - } - else - { - gLandToolTerrainEdge = type; - _selectedWallTexture = type; - } - w->Invalidate(); - break; - } -} - -static void window_land_textinput(rct_window* w, rct_widgetindex widgetIndex, char* text) -{ - int32_t size; - char* end; - - if (widgetIndex != WIDX_PREVIEW || text == nullptr) - return; - - size = strtol(text, &end, 10); - if (*end == '\0') - { - size = std::max(MINIMUM_TOOL_SIZE, size); - size = std::min(MAXIMUM_TOOL_SIZE, size); - gLandToolSize = size; - - w->Invalidate(); - } -} - -static void window_land_inputsize(rct_window* w) -{ - TextInputDescriptionArgs[0] = MINIMUM_TOOL_SIZE; - TextInputDescriptionArgs[1] = MAXIMUM_TOOL_SIZE; - window_text_input_open(w, WIDX_PREVIEW, STR_SELECTION_SIZE, STR_ENTER_SELECTION_SIZE, STR_NONE, STR_NONE, 3); -} - -/** - * - * rct2: 0x00664272 - */ -static void window_land_update(rct_window* w) -{ - if (!land_tool_is_active()) - window_close(w); -} - -/** - * - * rct2: 0x00663F20 - */ -static void window_land_invalidate(rct_window* w) -{ - auto surfaceImage = static_cast(SPR_NONE); - auto edgeImage = static_cast(SPR_NONE); - - auto& objManager = GetContext()->GetObjectManager(); - const auto surfaceObj = static_cast( - objManager.GetLoadedObject(ObjectType::TerrainSurface, _selectedFloorTexture)); - if (surfaceObj != nullptr) - { - surfaceImage = surfaceObj->IconImageId; - if (surfaceObj->Colour != 255) - { - surfaceImage |= SPRITE_ID_PALETTE_COLOUR_1(surfaceObj->Colour); - } - } - const auto edgeObj = static_cast( - objManager.GetLoadedObject(ObjectType::TerrainEdge, _selectedWallTexture)); - if (edgeObj != nullptr) - { - edgeImage = edgeObj->IconImageId; - } - - w->pressed_widgets = (1 << WIDX_PREVIEW); - if (gLandToolTerrainSurface != OBJECT_ENTRY_INDEX_NULL) - w->pressed_widgets |= (1 << WIDX_FLOOR); - if (gLandToolTerrainEdge != OBJECT_ENTRY_INDEX_NULL) - w->pressed_widgets |= (1 << WIDX_WALL); - if (gLandMountainMode) - w->pressed_widgets |= (1 << WIDX_MOUNTAINMODE); - if (gLandPaintMode) - w->pressed_widgets |= (1 << WIDX_PAINTMODE); - - window_land_widgets[WIDX_FLOOR].image = surfaceImage; - window_land_widgets[WIDX_WALL].image = edgeImage; - // Update the preview image (for tool sizes up to 7) - window_land_widgets[WIDX_PREVIEW].image = LandTool::SizeToSpriteIndex(gLandToolSize); -} - -/** - * - * rct2: 0x00663F7C - */ -static void window_land_paint(rct_window* w, rct_drawpixelinfo* dpi) -{ - ScreenCoordsXY screenCoords; - int32_t numTiles; - money32 price; - rct_widget* previewWidget = &window_land_widgets[WIDX_PREVIEW]; - - WindowDrawWidgets(w, dpi); - - // Draw number for tool sizes bigger than 7 - if (gLandToolSize > MAX_TOOL_SIZE_WITH_SPRITE) - { - screenCoords = { w->windowPos.x + previewWidget->midX(), w->windowPos.y + previewWidget->midY() }; - DrawTextBasic( - dpi, screenCoords - ScreenCoordsXY{ 0, 2 }, STR_LAND_TOOL_SIZE_VALUE, &gLandToolSize, { TextAlignment::CENTRE }); - } - else if (gLandMountainMode) - { - screenCoords = { w->windowPos.x + previewWidget->left, w->windowPos.y + previewWidget->top }; - int32_t sprite = gLandToolSize % 2 == 0 ? SPR_G2_MOUNTAIN_TOOL_EVEN : SPR_G2_MOUNTAIN_TOOL_ODD; - gfx_draw_sprite(dpi, sprite, screenCoords, 0); - WidgetDraw(dpi, w, WIDX_DECREMENT); - WidgetDraw(dpi, w, WIDX_INCREMENT); - } - - screenCoords = { w->windowPos.x + previewWidget->midX(), w->windowPos.y + previewWidget->bottom + 5 }; - - if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) - { - // Draw raise cost amount - if (gLandToolRaiseCost != MONEY32_UNDEFINED && gLandToolRaiseCost != 0) - DrawTextBasic(dpi, screenCoords, STR_RAISE_COST_AMOUNT, &gLandToolRaiseCost, { TextAlignment::CENTRE }); - screenCoords.y += 10; - - // Draw lower cost amount - if (gLandToolLowerCost != MONEY32_UNDEFINED && gLandToolLowerCost != 0) - DrawTextBasic(dpi, screenCoords, STR_LOWER_COST_AMOUNT, &gLandToolLowerCost, { TextAlignment::CENTRE }); - screenCoords.y += 50; - - // Draw paint price - numTiles = gLandToolSize * gLandToolSize; - price = 0; - if (gLandToolTerrainSurface != OBJECT_ENTRY_INDEX_NULL) - { - auto& objManager = GetContext()->GetObjectManager(); - const auto surfaceObj = static_cast( - objManager.GetLoadedObject(ObjectType::TerrainSurface, gLandToolTerrainSurface)); - if (surfaceObj != nullptr) - { - price += numTiles * surfaceObj->Price; - } - } - - if (gLandToolTerrainEdge != OBJECT_ENTRY_INDEX_NULL) - price += numTiles * 100; - - if (price != 0) - { - auto ft = Formatter(); - ft.Add(price); - DrawTextBasic(dpi, screenCoords, STR_COST_AMOUNT, ft.Data(), { TextAlignment::CENTRE }); - } - } + return WindowFocusOrCreate(WC_LAND, ScreenCoordsXY(context_get_width() - WW, 29), WW, WH, 0); } diff --git a/src/openrct2-ui/windows/LandRights.cpp b/src/openrct2-ui/windows/LandRights.cpp index 371c66983d..93f37e93ea 100644 --- a/src/openrct2-ui/windows/LandRights.cpp +++ b/src/openrct2-ui/windows/LandRights.cpp @@ -94,14 +94,14 @@ rct_window* window_land_rights_open() window = WindowCreate(ScreenCoordsXY(context_get_width() - 98, 29), 98, 94, &window_land_rights_events, WC_LAND_RIGHTS, 0); window->widgets = window_land_rights_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_DECREMENT) | (1 << WIDX_INCREMENT) | (1 << WIDX_PREVIEW) - | (1 << WIDX_BUY_LAND_RIGHTS) | (1 << WIDX_BUY_CONSTRUCTION_RIGHTS); - window->hold_down_widgets = (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_DECREMENT) | (1ULL << WIDX_INCREMENT) + | (1ULL << WIDX_PREVIEW) | (1ULL << WIDX_BUY_LAND_RIGHTS) | (1ULL << WIDX_BUY_CONSTRUCTION_RIGHTS); + window->hold_down_widgets = (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_DECREMENT); WindowInitScrollWidgets(window); window_push_others_below(window); _landRightsMode = LAND_RIGHTS_MODE_BUY_LAND; - window->pressed_widgets = (1 << WIDX_BUY_LAND_RIGHTS); + window->pressed_widgets = (1ULL << WIDX_BUY_LAND_RIGHTS); gLandToolSize = 1; @@ -219,10 +219,10 @@ static void window_land_rights_update(rct_window* w) static void window_land_rights_invalidate(rct_window* w) { // Set the preview image button to be pressed down - w->pressed_widgets |= (1 << WIDX_PREVIEW) - | (1 << ((_landRightsMode == LAND_RIGHTS_MODE_BUY_LAND) ? WIDX_BUY_LAND_RIGHTS : WIDX_BUY_CONSTRUCTION_RIGHTS)); + w->pressed_widgets |= (1ULL << WIDX_PREVIEW) + | (1ULL << ((_landRightsMode == LAND_RIGHTS_MODE_BUY_LAND) ? WIDX_BUY_LAND_RIGHTS : WIDX_BUY_CONSTRUCTION_RIGHTS)); w->pressed_widgets &= ~( - 1 + 1ULL << ((_landRightsMode == LAND_RIGHTS_MODE_BUY_CONSTRUCTION_RIGHTS) ? WIDX_BUY_LAND_RIGHTS : WIDX_BUY_CONSTRUCTION_RIGHTS)); @@ -232,23 +232,23 @@ static void window_land_rights_invalidate(rct_window* w) // Disable ownership and/or construction buying functions if there are no tiles left for sale if (gLandRemainingOwnershipSales == 0) { - w->disabled_widgets |= (1 << WIDX_BUY_LAND_RIGHTS); + w->disabled_widgets |= (1ULL << WIDX_BUY_LAND_RIGHTS); window_land_rights_widgets[WIDX_BUY_LAND_RIGHTS].tooltip = STR_NO_LAND_RIGHTS_FOR_SALE_TIP; } else { - w->disabled_widgets &= ~(1 << WIDX_BUY_LAND_RIGHTS); + w->disabled_widgets &= ~(1ULL << WIDX_BUY_LAND_RIGHTS); window_land_rights_widgets[WIDX_BUY_LAND_RIGHTS].tooltip = STR_BUY_LAND_RIGHTS_TIP; } if (gLandRemainingConstructionSales == 0) { - w->disabled_widgets |= (1 << WIDX_BUY_CONSTRUCTION_RIGHTS); + w->disabled_widgets |= (1ULL << WIDX_BUY_CONSTRUCTION_RIGHTS); window_land_rights_widgets[WIDX_BUY_CONSTRUCTION_RIGHTS].tooltip = STR_NO_CONSTRUCTION_RIGHTS_FOR_SALE_TIP; } else { - w->disabled_widgets &= ~(1 << WIDX_BUY_CONSTRUCTION_RIGHTS); + w->disabled_widgets &= ~(1ULL << WIDX_BUY_CONSTRUCTION_RIGHTS); window_land_rights_widgets[WIDX_BUY_CONSTRUCTION_RIGHTS].tooltip = STR_BUY_CONSTRUCTION_RIGHTS_TIP; } } diff --git a/src/openrct2-ui/windows/LoadSave.cpp b/src/openrct2-ui/windows/LoadSave.cpp index 1bb29ebe08..ba4c410571 100644 --- a/src/openrct2-ui/windows/LoadSave.cpp +++ b/src/openrct2-ui/windows/LoadSave.cpp @@ -265,8 +265,8 @@ rct_window* window_loadsave_open( { w = WindowCreateCentred(WW, WH, &window_loadsave_events, WC_LOADSAVE, WF_STICK_TO_FRONT | WF_RESIZABLE); w->widgets = window_loadsave_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_UP) | (1 << WIDX_NEW_FOLDER) | (1 << WIDX_NEW_FILE) - | (1 << WIDX_SORT_NAME) | (1 << WIDX_SORT_DATE) | (1 << WIDX_BROWSE) | (1 << WIDX_DEFAULT); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_UP) | (1ULL << WIDX_NEW_FOLDER) | (1ULL << WIDX_NEW_FILE) + | (1ULL << WIDX_SORT_NAME) | (1ULL << WIDX_SORT_DATE) | (1ULL << WIDX_BROWSE) | (1ULL << WIDX_DEFAULT); w->min_width = WW; w->min_height = WH / 2; @@ -275,8 +275,8 @@ rct_window* window_loadsave_open( if (!hasFilePicker) { - w->enabled_widgets &= ~(1 << WIDX_BROWSE); - w->disabled_widgets |= (1 << WIDX_BROWSE); + w->enabled_widgets &= ~(1ULL << WIDX_BROWSE); + w->disabled_widgets |= (1ULL << WIDX_BROWSE); window_loadsave_widgets[WIDX_BROWSE].type = WindowWidgetType::Empty; } } @@ -697,7 +697,7 @@ static void window_loadsave_paint(rct_window* w, rct_drawpixelinfo* dpi) // Format text thread_local std::string buffer; - buffer.assign("{MEDIUMFONT}{BLACK}"); + buffer.assign("{BLACK}"); buffer += _shortenedDirectory; // Draw path text @@ -834,7 +834,7 @@ static void window_loadsave_populate_list(rct_window* w, int32_t includeNewItem, if (str_is_null_or_empty(directory) && drives) { // List Windows drives - w->disabled_widgets |= (1 << WIDX_NEW_FILE) | (1 << WIDX_NEW_FOLDER) | (1 << WIDX_UP); + w->disabled_widgets |= (1ULL << WIDX_NEW_FILE) | (1ULL << WIDX_NEW_FOLDER) | (1ULL << WIDX_UP); for (int32_t x = 0; x < 26; x++) { if (drives & (1 << x)) @@ -878,13 +878,13 @@ static void window_loadsave_populate_list(rct_window* w, int32_t includeNewItem, // Disable the Up button if the current directory is the root directory if (str_is_null_or_empty(_parentDirectory) && !drives) - w->disabled_widgets |= (1 << WIDX_UP); + w->disabled_widgets |= (1ULL << WIDX_UP); else - w->disabled_widgets &= ~(1 << WIDX_UP); + w->disabled_widgets &= ~(1ULL << WIDX_UP); // Re-enable the "new" buttons if these were disabled - w->disabled_widgets &= ~(1 << WIDX_NEW_FILE); - w->disabled_widgets &= ~(1 << WIDX_NEW_FOLDER); + w->disabled_widgets &= ~(1ULL << WIDX_NEW_FILE); + w->disabled_widgets &= ~(1ULL << WIDX_NEW_FOLDER); // List all directories auto subDirectories = Path::GetDirectories(absoluteDirectory); @@ -913,7 +913,7 @@ static void window_loadsave_populate_list(rct_window* w, int32_t includeNewItem, safe_strcat_path(filter, "*", std::size(filter)); path_append_extension(filter, extToken, std::size(filter)); - auto scanner = std::unique_ptr(Path::ScanDirectory(filter, false)); + auto scanner = Path::ScanDirectory(filter, false); while (scanner->Next()) { LoadSaveListItem newListItem; @@ -1161,7 +1161,7 @@ static rct_window* window_overwrite_prompt_open(const char* name, const char* pa w = WindowCreateCentred( OVERWRITE_WW, OVERWRITE_WH, &window_overwrite_prompt_events, WC_LOADSAVE_OVERWRITE_PROMPT, WF_STICK_TO_FRONT); w->widgets = window_overwrite_prompt_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_OVERWRITE_CANCEL) | (1 << WIDX_OVERWRITE_OVERWRITE); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_OVERWRITE_CANCEL) | (1ULL << WIDX_OVERWRITE_OVERWRITE); WindowInitScrollWidgets(w); diff --git a/src/openrct2-ui/windows/Main.cpp b/src/openrct2-ui/windows/Main.cpp index c4f976765e..a31f96226b 100644 --- a/src/openrct2-ui/windows/Main.cpp +++ b/src/openrct2-ui/windows/Main.cpp @@ -13,7 +13,6 @@ #include #include #include -#include // clang-format off static rct_widget window_main_widgets[] = { @@ -48,7 +47,7 @@ rct_window* window_main_open() gShowGridLinesRefCount = 0; gShowLandRightsRefCount = 0; gShowConstuctionRightsRefCount = 0; - gFootpathSelectedType = 0; + window_footpath_reset_selected_path(); return window; } diff --git a/src/openrct2-ui/windows/Map.cpp b/src/openrct2-ui/windows/Map.cpp index 50431cf9ff..b081489442 100644 --- a/src/openrct2-ui/windows/Map.cpp +++ b/src/openrct2-ui/windows/Map.cpp @@ -26,6 +26,8 @@ #include #include #include +#include +#include #include #include #include @@ -236,15 +238,16 @@ rct_window* window_map_open() w = WindowCreateAutoPos(245, 259, &window_map_events, WC_MAP, WF_10); w->widgets = window_map_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_PEOPLE_TAB) | (1 << WIDX_RIDES_TAB) | (1 << WIDX_MAP_SIZE_SPINNER) - | (1 << WIDX_MAP_SIZE_SPINNER_UP) | (1 << WIDX_MAP_SIZE_SPINNER_DOWN) | (1 << WIDX_LAND_TOOL) - | (1 << WIDX_LAND_TOOL_SMALLER) | (1 << WIDX_LAND_TOOL_LARGER) | (1 << WIDX_SET_LAND_RIGHTS) - | (1 << WIDX_LAND_OWNED_CHECKBOX) | (1 << WIDX_CONSTRUCTION_RIGHTS_OWNED_CHECKBOX) | (1 << WIDX_LAND_SALE_CHECKBOX) - | (1 << WIDX_CONSTRUCTION_RIGHTS_SALE_CHECKBOX) | (1 << WIDX_BUILD_PARK_ENTRANCE) | (1 << WIDX_ROTATE_90) - | (1 << WIDX_PEOPLE_STARTING_POSITION) | (1 << WIDX_MAP_GENERATOR); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_PEOPLE_TAB) | (1ULL << WIDX_RIDES_TAB) + | (1ULL << WIDX_MAP_SIZE_SPINNER) | (1ULL << WIDX_MAP_SIZE_SPINNER_UP) | (1ULL << WIDX_MAP_SIZE_SPINNER_DOWN) + | (1ULL << WIDX_LAND_TOOL) | (1ULL << WIDX_LAND_TOOL_SMALLER) | (1ULL << WIDX_LAND_TOOL_LARGER) + | (1ULL << WIDX_SET_LAND_RIGHTS) | (1ULL << WIDX_LAND_OWNED_CHECKBOX) + | (1ULL << WIDX_CONSTRUCTION_RIGHTS_OWNED_CHECKBOX) | (1ULL << WIDX_LAND_SALE_CHECKBOX) + | (1ULL << WIDX_CONSTRUCTION_RIGHTS_SALE_CHECKBOX) | (1ULL << WIDX_BUILD_PARK_ENTRANCE) | (1ULL << WIDX_ROTATE_90) + | (1ULL << WIDX_PEOPLE_STARTING_POSITION) | (1ULL << WIDX_MAP_GENERATOR); - w->hold_down_widgets = (1 << WIDX_MAP_SIZE_SPINNER_UP) | (1 << WIDX_MAP_SIZE_SPINNER_DOWN) | (1 << WIDX_LAND_TOOL_LARGER) - | (1 << WIDX_LAND_TOOL_SMALLER); + w->hold_down_widgets = (1ULL << WIDX_MAP_SIZE_SPINNER_UP) | (1ULL << WIDX_MAP_SIZE_SPINNER_DOWN) + | (1ULL << WIDX_LAND_TOOL_LARGER) | (1ULL << WIDX_LAND_TOOL_SMALLER); WindowInitScrollWidgets(w); @@ -692,16 +695,16 @@ static void window_map_invalidate(rct_window* w) pressedWidgets |= (1ULL << WIDX_LAND_TOOL); if (_activeTool & (1 << 3)) - pressedWidgets |= (1 << WIDX_LAND_SALE_CHECKBOX); + pressedWidgets |= (1ULL << WIDX_LAND_SALE_CHECKBOX); if (_activeTool & (1 << 2)) - pressedWidgets |= (1 << WIDX_CONSTRUCTION_RIGHTS_SALE_CHECKBOX); + pressedWidgets |= (1ULL << WIDX_CONSTRUCTION_RIGHTS_SALE_CHECKBOX); if (_activeTool & (1 << 1)) - pressedWidgets |= (1 << WIDX_LAND_OWNED_CHECKBOX); + pressedWidgets |= (1ULL << WIDX_LAND_OWNED_CHECKBOX); if (_activeTool & (1 << 0)) - pressedWidgets |= (1 << WIDX_CONSTRUCTION_RIGHTS_OWNED_CHECKBOX); + pressedWidgets |= (1ULL << WIDX_CONSTRUCTION_RIGHTS_OWNED_CHECKBOX); w->pressed_widgets = pressedWidgets; @@ -831,9 +834,7 @@ static void window_map_paint(rct_window* w, rct_drawpixelinfo* dpi) screenCoords = w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_PEOPLE_STARTING_POSITION].left + 12, w->widgets[WIDX_PEOPLE_STARTING_POSITION].top + 18 }; - gfx_draw_sprite( - dpi, IMAGE_TYPE_REMAP | IMAGE_TYPE_REMAP_2_PLUS | (COLOUR_LIGHT_BROWN << 24) | (COLOUR_BRIGHT_RED << 19) | SPR_6410, - screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_6410, COLOUR_BRIGHT_RED, COLOUR_LIGHT_BROWN), screenCoords); } if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !gCheatsSandboxMode) @@ -885,7 +886,7 @@ static void window_map_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_ g1temp.y_offset = -8; gfx_set_g1_element(SPR_TEMP, &g1temp); drawing_engine_invalidate_image(SPR_TEMP); - gfx_draw_sprite(dpi, SPR_TEMP, { 0, 0 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_TEMP), { 0, 0 }); if (w->selected_tab == PAGE_PEEPS) { @@ -1006,7 +1007,8 @@ static void window_map_draw_tab_images(rct_window* w, rct_drawpixelinfo* dpi) image += w->list_information_type / 4; gfx_draw_sprite( - dpi, image, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_PEOPLE_TAB].left, w->widgets[WIDX_PEOPLE_TAB].top }, 0); + dpi, ImageId(image), + w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_PEOPLE_TAB].left, w->widgets[WIDX_PEOPLE_TAB].top }); // Ride/stall tab image (animated) image = SPR_TAB_RIDE_0; @@ -1014,7 +1016,7 @@ static void window_map_draw_tab_images(rct_window* w, rct_drawpixelinfo* dpi) image += w->list_information_type / 4; gfx_draw_sprite( - dpi, image, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_RIDES_TAB].left, w->widgets[WIDX_RIDES_TAB].top }, 0); + dpi, ImageId(image), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_RIDES_TAB].left, w->widgets[WIDX_RIDES_TAB].top }); } /** @@ -1101,12 +1103,12 @@ static uint8_t MapGetStaffFlashColour() static void window_map_paint_peep_overlay(rct_drawpixelinfo* dpi) { auto flashColour = MapGetGuestFlashColour(); - for (auto guest : EntityList(EntityListId::Peep)) + for (auto guest : EntityList()) { DrawMapPeepPixel(guest, flashColour, dpi); } flashColour = MapGetStaffFlashColour(); - for (auto staff : EntityList(EntityListId::Peep)) + for (auto staff : EntityList()) { DrawMapPeepPixel(staff, flashColour, dpi); } @@ -1118,7 +1120,7 @@ static void window_map_paint_peep_overlay(rct_drawpixelinfo* dpi) */ static void window_map_paint_train_overlay(rct_drawpixelinfo* dpi) { - for (auto train : EntityList(EntityListId::TrainHead)) + for (auto train : TrainManager::View()) { for (Vehicle* vehicle = train; vehicle != nullptr; vehicle = GetEntity(vehicle->next_vehicle_on_train)) { @@ -1327,7 +1329,7 @@ static void window_map_place_park_entrance_tool_down(const ScreenCoordsXY& scree CoordsXYZD parkEntrancePosition = place_park_entrance_get_map_position(screenCoords); if (!parkEntrancePosition.isNull()) { - auto gameAction = PlaceParkEntranceAction(parkEntrancePosition); + auto gameAction = PlaceParkEntranceAction(parkEntrancePosition, gFootpathSelectedId); auto result = GameActions::Execute(&gameAction); if (result->Error == GameActions::Status::Ok) { @@ -1577,7 +1579,7 @@ static void map_window_set_pixels(rct_window* w) for (int32_t i = 0; i < MAXIMUM_MAP_SIZE_TECHNICAL; i++) { - if (x > 0 && y > 0 && x < gMapSizeUnits && y < gMapSizeUnits) + if (!map_is_edge({ x, y })) { switch (w->selected_tab) { diff --git a/src/openrct2-ui/windows/MapGen.cpp b/src/openrct2-ui/windows/MapGen.cpp index b89d06a1a8..9a63298231 100644 --- a/src/openrct2-ui/windows/MapGen.cpp +++ b/src/openrct2-ui/windows/MapGen.cpp @@ -421,8 +421,8 @@ static void window_mapgen_draw_tab_images(rct_drawpixelinfo* dpi, rct_window* w) static int32_t _mapSize = 150; static int32_t _baseHeight = 12; static int32_t _waterLevel = 6; -static int32_t _floorTexture = TERRAIN_GRASS; -static int32_t _wallTexture = TERRAIN_EDGE_ROCK; +static int32_t _floorTexture = 0; +static int32_t _wallTexture = 0; static bool _randomTerrain = true; static int32_t _placeTrees = 1; @@ -780,9 +780,9 @@ static void window_mapgen_random_invalidate(rct_window* w) w->pressed_widgets = 0; if (_randomTerrain) - w->pressed_widgets |= 1 << WIDX_RANDOM_TERRAIN; + w->pressed_widgets |= 1ULL << WIDX_RANDOM_TERRAIN; if (_placeTrees) - w->pressed_widgets |= 1 << WIDX_RANDOM_PLACE_TREES; + w->pressed_widgets |= 1ULL << WIDX_RANDOM_PLACE_TREES; window_mapgen_set_pressed_tab(w); } @@ -1319,7 +1319,8 @@ static void window_mapgen_draw_tab_image(rct_drawpixelinfo* dpi, rct_window* w, } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } diff --git a/src/openrct2-ui/windows/MazeConstruction.cpp b/src/openrct2-ui/windows/MazeConstruction.cpp index 496fb65980..9b5a9f1de2 100644 --- a/src/openrct2-ui/windows/MazeConstruction.cpp +++ b/src/openrct2-ui/windows/MazeConstruction.cpp @@ -292,7 +292,7 @@ static void window_maze_construction_mousedown(rct_window* w, rct_widgetindex wi static void window_maze_construction_update(rct_window* w) { auto ride = get_ride(_currentRideIndex); - if (ride == nullptr || ride->status != RIDE_STATUS_CLOSED) + if (ride == nullptr || ride->status != RideStatus::Closed) { window_close(w); return; diff --git a/src/openrct2-ui/windows/Multiplayer.cpp b/src/openrct2-ui/windows/Multiplayer.cpp index a17bdf19cb..95bf461411 100644 --- a/src/openrct2-ui/windows/Multiplayer.cpp +++ b/src/openrct2-ui/windows/Multiplayer.cpp @@ -111,10 +111,10 @@ static rct_widget *window_multiplayer_page_widgets[] = { }; static constexpr const uint64_t window_multiplayer_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4), - (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4), - (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4) | (1 << WIDX_DEFAULT_GROUP) | (1 << WIDX_DEFAULT_GROUP_DROPDOWN) | (1 << WIDX_ADD_GROUP) | (1 << WIDX_REMOVE_GROUP) | (1 << WIDX_RENAME_GROUP) | (1 << WIDX_SELECTED_GROUP) | (1 << WIDX_SELECTED_GROUP_DROPDOWN), - (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4) | (1 << WIDX_LOG_CHAT_CHECKBOX) | (1 << WIDX_LOG_SERVER_ACTIONS_CHECKBOX) | (1 << WIDX_KNOWN_KEYS_ONLY_CHECKBOX), + (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) | (1ULL << WIDX_TAB4), + (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) | (1ULL << WIDX_TAB4), + (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) | (1ULL << WIDX_TAB4) | (1ULL << WIDX_DEFAULT_GROUP) | (1ULL << WIDX_DEFAULT_GROUP_DROPDOWN) | (1ULL << WIDX_ADD_GROUP) | (1ULL << WIDX_REMOVE_GROUP) | (1ULL << WIDX_RENAME_GROUP) | (1ULL << WIDX_SELECTED_GROUP) | (1ULL << WIDX_SELECTED_GROUP_DROPDOWN), + (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) | (1ULL << WIDX_TAB4) | (1ULL << WIDX_LOG_CHAT_CHECKBOX) | (1ULL << WIDX_LOG_SERVER_ACTIONS_CHECKBOX) | (1ULL << WIDX_KNOWN_KEYS_ONLY_CHECKBOX), }; static constexpr rct_string_id WindowMultiplayerPageTitles[] = { @@ -855,7 +855,8 @@ static void window_multiplayer_groups_paint(rct_window* w, rct_drawpixelinfo* dp screenPos.y += 20; gfx_fill_rect_inset( - dpi, screenPos.x, screenPos.y - 6, screenPos.x + 310, screenPos.y - 5, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); + dpi, { screenPos - ScreenCoordsXY{ 0, 6 }, screenPos + ScreenCoordsXY{ 310, -5 } }, w->colours[1], + INSET_RECT_FLAG_BORDER_INSET); widget = &window_multiplayer_groups_widgets[WIDX_SELECTED_GROUP]; group = network_get_group_index(_selectedGroup); @@ -999,7 +1000,8 @@ static void window_multiplayer_draw_tab_image(rct_window* w, rct_drawpixelinfo* } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } diff --git a/src/openrct2-ui/windows/MusicCredits.cpp b/src/openrct2-ui/windows/MusicCredits.cpp index 642d90ff70..6dfe501b5b 100644 --- a/src/openrct2-ui/windows/MusicCredits.cpp +++ b/src/openrct2-ui/windows/MusicCredits.cpp @@ -109,7 +109,7 @@ rct_window* window_music_credits_open() window = WindowCreateCentred(510, 314, &window_music_credits_events, WC_MUSIC_CREDITS, 0); window->widgets = window_music_credits_widgets; - window->enabled_widgets = 1 << WIDX_CLOSE; + window->enabled_widgets = 1ULL << WIDX_CLOSE; WindowInitScrollWidgets(window); window->colours[0] = COLOUR_LIGHT_BLUE; @@ -175,7 +175,7 @@ static void window_music_credits_scrollpaint(rct_window* w, rct_drawpixelinfo* d // Draw the separator screenCoords.y += 5; - gfx_fill_rect_inset(dpi, 4, screenCoords.y, 484, screenCoords.y + 1, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); + gfx_fill_rect_inset(dpi, { 4, screenCoords.y, 484, screenCoords.y + 1 }, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); screenCoords.y += lineHeight + 1; for (size_t i = 0; i < std::size(music_credits_rct2); i++) diff --git a/src/openrct2-ui/windows/NetworkStatus.cpp b/src/openrct2-ui/windows/NetworkStatus.cpp index af556fb4c0..5866110b8a 100644 --- a/src/openrct2-ui/windows/NetworkStatus.cpp +++ b/src/openrct2-ui/windows/NetworkStatus.cpp @@ -66,7 +66,7 @@ rct_window* window_network_status_open(const char* text, close_callback onClose) window = WindowCreateCentred(420, 90, &window_network_status_events, WC_NETWORK_STATUS, WF_10 | WF_TRANSPARENT); window->widgets = window_network_status_widgets; - window->enabled_widgets = 1 << WIDX_CLOSE; + window->enabled_widgets = 1ULL << WIDX_CLOSE; WindowInitScrollWidgets(window); window->no_list_items = 0; window->selected_list_item = -1; diff --git a/src/openrct2-ui/windows/NewCampaign.cpp b/src/openrct2-ui/windows/NewCampaign.cpp index 29d7ae494b..00940518e9 100644 --- a/src/openrct2-ui/windows/NewCampaign.cpp +++ b/src/openrct2-ui/windows/NewCampaign.cpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -50,64 +49,323 @@ static rct_widget window_new_campaign_widgets[] = { MakeWidget ({ 14, 89}, {322, 14}, WindowWidgetType::Button, WindowColour::Primary, STR_MARKETING_START_THIS_MARKETING_CAMPAIGN), // start button { WIDGETS_END } }; - - -static void window_new_campaign_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_new_campaign_mousedown(rct_window *w, rct_widgetindex widgetIndex, rct_widget* widget); -static void window_new_campaign_dropdown(rct_window *w, rct_widgetindex widgetIndex, int32_t dropdownIndex); -static void window_new_campaign_invalidate(rct_window *w); -static void window_new_campaign_paint(rct_window *w, rct_drawpixelinfo *dpi); - -static rct_window_event_list window_new_campaign_events([](auto& events) -{ - events.mouse_up = &window_new_campaign_mouseup; - events.mouse_down = &window_new_campaign_mousedown; - events.dropdown = &window_new_campaign_dropdown; - events.invalidate = &window_new_campaign_invalidate; - events.paint = &window_new_campaign_paint; -}); // clang-format on -static std::vector window_new_campaign_rides; -static uint8_t window_new_campaign_shop_items[64]; - -static int32_t ride_value_compare(const void* a, const void* b) +class NewCampaignWindow final : public Window { - auto valueA = 0; - auto rideA = get_ride(*(static_cast(a))); - if (rideA != nullptr) - valueA = rideA->value; +private: + std::vector RideList; + std::vector ShopItems; - auto valueB = 0; - auto rideB = get_ride(*(static_cast(b))); - if (rideB != nullptr) - valueB = rideB->value; + static bool RideValueCompare(const ride_id_t& a, const ride_id_t& b) + { + auto valueA = 0; + auto rideA = get_ride(a); + if (rideA != nullptr) + valueA = rideA->value; - return valueB - valueA; -} + auto valueB = 0; + auto rideB = get_ride(b); + if (rideB != nullptr) + valueB = rideB->value; -static int32_t ride_name_compare(const void* a, const void* b) -{ - std::string rideAName; - auto rideA = get_ride(*(static_cast(a))); - if (rideA != nullptr) - rideAName = rideA->GetName(); + return (valueB - valueA) < 0; + } - std::string rideBName; - auto rideB = get_ride(*(static_cast(b))); - if (rideB != nullptr) - rideBName = rideB->GetName(); + static int32_t RideNameCompare(const ride_id_t& a, const ride_id_t& b) + { + std::string rideAName = ""; + auto rideA = get_ride(a); + if (rideA != nullptr) + rideAName = rideA->GetName(); - return _strcmpi(rideAName.c_str(), rideBName.c_str()); -} + std::string rideBName = ""; + auto rideB = get_ride(b); + if (rideB != nullptr) + rideBName = rideB->GetName(); + + return strlogicalcmp(rideAName.c_str(), rideBName.c_str()) < 0; + } + + /** + * + * rct2: 0x0069E320 + */ + void GetShopItems() + { + std::bitset items = {}; + for (auto& curRide : GetRideManager()) + { + auto rideEntry = curRide.GetRideEntry(); + if (rideEntry != nullptr) + { + for (const auto itemType : rideEntry->shop_item) + { + if (itemType != ShopItem::None && GetShopItemDescriptor(itemType).IsFoodOrDrink()) + { + items[EnumValue(itemType)] = true; + } + } + } + } + + ShopItems.clear(); + for (auto i = 0; i < EnumValue(ShopItem::Count); i++) + { + if (items[i]) + { + ShopItems.push_back(ShopItem(i)); + } + } + } + +public: + void RefreshRides() + { + // Get all applicable rides + RideList.clear(); + for (const auto& curRide : GetRideManager()) + { + if (curRide.status == RideStatus::Open) + { + if (!curRide.GetRideTypeDescriptor().HasFlag( + RIDE_TYPE_FLAG_IS_SHOP | RIDE_TYPE_FLAG_SELLS_FOOD | RIDE_TYPE_FLAG_SELLS_DRINKS + | RIDE_TYPE_FLAG_IS_TOILET)) + { + RideList.push_back(curRide.id); + } + } + } + + if (RideList.size() > Dropdown::ItemsMaxSize) + { + std::sort(RideList.begin(), RideList.end(), RideValueCompare); + RideList.resize(Dropdown::ItemsMaxSize); + } + + // Sort rides by name + std::sort(RideList.begin(), RideList.end(), RideNameCompare); + } + + void OnOpen() override + { + widgets = window_new_campaign_widgets; + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_RIDE_DROPDOWN) | (1ULL << WIDX_RIDE_DROPDOWN_BUTTON) + | (1ULL << WIDX_WEEKS_INCREASE_BUTTON) | (1ULL << WIDX_WEEKS_DECREASE_BUTTON) | (1ULL << WIDX_START_BUTTON); + hold_down_widgets = (1ULL << WIDX_WEEKS_INCREASE_BUTTON) | (1ULL << WIDX_WEEKS_DECREASE_BUTTON); + WindowInitScrollWidgets(this); + } + + void SetCampaign(int16_t campaignType) + { + widgets[WIDX_TITLE].text = MarketingCampaignNames[campaignType][0]; + + // Campaign type + campaign.campaign_type = campaignType; + + // Number of weeks + campaign.no_weeks = 2; + + // Currently selected ride + campaign.RideId = SELECTED_RIDE_UNDEFINED; + + RefreshRides(); + } + + void OnMouseDown(rct_widgetindex widgetIndex) override + { + rct_widget* widget = &widgets[widgetIndex]; + rct_widget* dropdownWidget; + + switch (widgetIndex) + { + case WIDX_RIDE_DROPDOWN_BUTTON: + dropdownWidget = widget - 1; + + if (campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) + { + GetShopItems(); + if (!ShopItems.empty()) + { + int32_t numItems = 0; + int32_t maxSize = std::min(Dropdown::ItemsMaxSize, static_cast(ShopItems.size())); + for (int32_t i = 0; i < maxSize; i++) + { + gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL; + gDropdownItemsArgs[i] = GetShopItemDescriptor(ShopItems[i]).Naming.Plural; + numItems++; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, + dropdownWidget->height() + 1, colours[1], 0, Dropdown::Flag::StayOpen, numItems, + dropdownWidget->width() - 3); + } + } + else + { + int32_t numItems = 0; + for (auto rideId : RideList) + { + auto curRide = get_ride(rideId); + if (curRide != nullptr) + { + // HACK until dropdown items have longer argument buffers + gDropdownItemsFormat[numItems] = STR_DROPDOWN_MENU_LABEL; + Formatter ft(reinterpret_cast(&gDropdownItemsArgs[numItems])); + if (curRide->custom_name.empty()) + { + curRide->FormatNameTo(ft); + } + else + { + gDropdownItemsFormat[numItems] = STR_OPTIONS_DROPDOWN_ITEM; + ft.Add(curRide->custom_name.c_str()); + } + numItems++; + } + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, numItems, dropdownWidget->width() - 3); + } + break; + // In RCT2, the maximum was 6 weeks + case WIDX_WEEKS_INCREASE_BUTTON: + campaign.no_weeks = std::min(campaign.no_weeks + 1, 12); + Invalidate(); + break; + case WIDX_WEEKS_DECREASE_BUTTON: + campaign.no_weeks = std::max(campaign.no_weeks - 1, 2); + Invalidate(); + break; + } + } + + void OnMouseUp(rct_widgetindex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + break; + case WIDX_START_BUTTON: + { + auto gameAction = ParkMarketingAction(campaign.campaign_type, campaign.RideId, campaign.no_weeks); + gameAction.SetCallback([](const GameAction* ga, const GameActions::Result* result) { + if (result->Error == GameActions::Status::Ok) + { + window_close_by_class(WC_NEW_CAMPAIGN); + } + }); + GameActions::Execute(&gameAction); + break; + } + } + } + + void OnDropdown(rct_widgetindex widgetIndex, int32_t dropdownIndex) override + { + if (widgetIndex != WIDX_RIDE_DROPDOWN_BUTTON) + return; + + if (dropdownIndex < 0) + return; + + if (campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) + { + if (static_cast(dropdownIndex) >= ShopItems.size()) + return; + + campaign.ShopItemId = EnumValue(ShopItems[dropdownIndex]); + } + else + { + if (static_cast(dropdownIndex) >= RideList.size()) + return; + + campaign.RideId = RideList[dropdownIndex]; + } + + Invalidate(); + } + + void OnPrepareDraw() override + { + widgets[WIDX_RIDE_LABEL].type = WindowWidgetType::Empty; + widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::Empty; + widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_RIDE_DROPDOWN].text = STR_MARKETING_NOT_SELECTED; + switch (campaign.campaign_type) + { + case ADVERTISING_CAMPAIGN_RIDE_FREE: + case ADVERTISING_CAMPAIGN_RIDE: + widgets[WIDX_RIDE_LABEL].type = WindowWidgetType::Label; + widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Button; + widgets[WIDX_RIDE_LABEL].text = STR_MARKETING_RIDE; + if (campaign.RideId != SELECTED_RIDE_UNDEFINED) + { + auto curRide = get_ride(campaign.RideId); + if (curRide != nullptr) + { + widgets[WIDX_RIDE_DROPDOWN].text = STR_STRINGID; + + auto ft = Formatter::Common(); + curRide->FormatNameTo(ft); + } + } + break; + case ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE: + widgets[WIDX_RIDE_LABEL].type = WindowWidgetType::Label; + widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Button; + widgets[WIDX_RIDE_LABEL].text = STR_MARKETING_ITEM; + if (campaign.ShopItemId != SELECTED_RIDE_UNDEFINED) + { + widgets[WIDX_RIDE_DROPDOWN].text = GetShopItemDescriptor(ShopItem(campaign.ShopItemId)).Naming.Plural; + } + break; + } + + // Set current number of weeks spinner (moved to paint due to required parameter) + widgets[WIDX_WEEKS_SPINNER].text = STR_NONE; + + // Enable / disable start button based on ride dropdown + WidgetSetDisabled(this, WIDX_START_BUTTON, false); + if (widgets[WIDX_RIDE_DROPDOWN].type == WindowWidgetType::DropdownMenu && campaign.RideId == SELECTED_RIDE_UNDEFINED) + WidgetSetDisabled(this, WIDX_START_BUTTON, true); + } + + void OnDraw(rct_drawpixelinfo& dpi) override + { + ScreenCoordsXY screenCoords{}; + + DrawWidgets(dpi); + + // Number of weeks + rct_widget* spinnerWidget = &widgets[WIDX_WEEKS_SPINNER]; + DrawTextBasic( + &dpi, windowPos + ScreenCoordsXY{ spinnerWidget->left + 1, spinnerWidget->top }, + campaign.no_weeks == 1 ? STR_MARKETING_1_WEEK : STR_X_WEEKS, &campaign.no_weeks, { colours[0] }); + + screenCoords = windowPos + ScreenCoordsXY{ 14, 60 }; + + // Price per week + money32 pricePerWeek = AdvertisingCampaignPricePerWeek[campaign.campaign_type]; + DrawTextBasic(&dpi, screenCoords, STR_MARKETING_COST_PER_WEEK, &pricePerWeek); + screenCoords.y += 13; + + // Total price + money32 totalPrice = AdvertisingCampaignPricePerWeek[campaign.campaign_type] * campaign.no_weeks; + DrawTextBasic(&dpi, screenCoords, STR_MARKETING_TOTAL_COST, &totalPrice); + } +}; -/** - * - * rct2: 0x0069E16F - */ rct_window* window_new_campaign_open(int16_t campaignType) { - auto w = window_bring_to_front_by_class(WC_NEW_CAMPAIGN); + auto w = static_cast(window_bring_to_front_by_class(WC_NEW_CAMPAIGN)); if (w != nullptr) { if (w->campaign.campaign_type == campaignType) @@ -116,310 +374,19 @@ rct_window* window_new_campaign_open(int16_t campaignType) window_close(w); } - w = WindowCreateAutoPos(WW, WH, &window_new_campaign_events, WC_NEW_CAMPAIGN, 0); - w->widgets = window_new_campaign_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_RIDE_DROPDOWN) | (1 << WIDX_RIDE_DROPDOWN_BUTTON) - | (1 << WIDX_WEEKS_INCREASE_BUTTON) | (1 << WIDX_WEEKS_DECREASE_BUTTON) | (1 << WIDX_START_BUTTON); - w->hold_down_widgets = (1 << WIDX_WEEKS_INCREASE_BUTTON) | (1 << WIDX_WEEKS_DECREASE_BUTTON); - WindowInitScrollWidgets(w); - - window_new_campaign_widgets[WIDX_TITLE].text = MarketingCampaignNames[campaignType][0]; - - // Campaign type - w->campaign.campaign_type = campaignType; - - // Number of weeks - w->campaign.no_weeks = 2; - - // Currently selected ride - w->campaign.RideId = SELECTED_RIDE_UNDEFINED; - - WindowCampaignRefreshRides(); + w = WindowCreate(WC_NEW_CAMPAIGN, WW, WH, 0); + if (w != nullptr) + { + w->SetCampaign(campaignType); + } return w; } -/** - * - * rct2: 0x0069E320 - */ -static void window_new_campaign_get_shop_items() -{ - uint64_t items = 0; - for (auto& ride : GetRideManager()) - { - auto rideEntry = ride.GetRideEntry(); - if (rideEntry != nullptr) - { - for (const auto itemType : rideEntry->shop_item) - { - if (itemType != ShopItem::None && GetShopItemDescriptor(itemType).IsFoodOrDrink()) - { - items |= EnumToFlag(itemType); - } - } - } - } - - // - auto numItems = 0; - for (auto i = 0; i < 64; i++) - { - if (items & (1ULL << i)) - { - window_new_campaign_shop_items[numItems++] = i; - } - } - window_new_campaign_shop_items[numItems] = 255; -} - -/** - * - * rct2: 0x0069E50B - */ -static void window_new_campaign_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_START_BUTTON: - { - auto gameAction = ParkMarketingAction(w->campaign.campaign_type, w->campaign.RideId, w->campaign.no_weeks); - gameAction.SetCallback([](const GameAction* ga, const GameActions::Result* result) { - if (result->Error == GameActions::Status::Ok) - { - window_close_by_class(WC_NEW_CAMPAIGN); - } - }); - GameActions::Execute(&gameAction); - break; - } - } -} - -/** - * - * rct2: 0x0069E51C - */ -static void window_new_campaign_mousedown(rct_window* w, rct_widgetindex widgetIndex, rct_widget* widget) -{ - rct_widget* dropdownWidget; - - switch (widgetIndex) - { - case WIDX_RIDE_DROPDOWN_BUTTON: - dropdownWidget = widget - 1; - - if (w->campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) - { - window_new_campaign_get_shop_items(); - if (window_new_campaign_shop_items[0] != 255) - { - int32_t numItems = 0; - for (int32_t i = 0; i < Dropdown::ItemsMaxSize; i++) - { - if (window_new_campaign_shop_items[i] == 255) - break; - - gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL; - gDropdownItemsArgs[i] = GetShopItemDescriptor(ShopItem(window_new_campaign_shop_items[i])) - .Naming.Plural; - numItems++; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, - dropdownWidget->height() + 1, w->colours[1], 0, Dropdown::Flag::StayOpen, numItems, - dropdownWidget->width() - 3); - } - } - else - { - int32_t numItems = 0; - for (auto rideId : window_new_campaign_rides) - { - auto ride = get_ride(rideId); - if (ride != nullptr) - { - // HACK until dropdown items have longer argument buffers - gDropdownItemsFormat[numItems] = STR_DROPDOWN_MENU_LABEL; - Formatter ft(reinterpret_cast(&gDropdownItemsArgs[numItems])); - if (ride->custom_name.empty()) - { - ride->FormatNameTo(ft); - } - else - { - gDropdownItemsFormat[numItems] = STR_OPTIONS_DROPDOWN_ITEM; - ft.Add(ride->custom_name.c_str()); - } - numItems++; - } - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, - dropdownWidget->height() + 1, w->colours[1], 0, Dropdown::Flag::StayOpen, numItems, - dropdownWidget->width() - 3); - } - break; - // In RCT2, the maximum was 6 weeks - case WIDX_WEEKS_INCREASE_BUTTON: - w->campaign.no_weeks = std::min(w->campaign.no_weeks + 1, 12); - w->Invalidate(); - break; - case WIDX_WEEKS_DECREASE_BUTTON: - w->campaign.no_weeks = std::max(w->campaign.no_weeks - 1, 2); - w->Invalidate(); - break; - } -} - -/** - * - * rct2: 0x0069E537 - */ -static void window_new_campaign_dropdown(rct_window* w, rct_widgetindex widgetIndex, int32_t dropdownIndex) -{ - if (widgetIndex != WIDX_RIDE_DROPDOWN_BUTTON) - return; - - if (dropdownIndex < 0) - return; - - if (w->campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) - { - if (static_cast(dropdownIndex) >= std::size(window_new_campaign_shop_items)) - return; - - if (window_new_campaign_shop_items[dropdownIndex] == 255) - return; - - w->campaign.ShopItemId = window_new_campaign_shop_items[dropdownIndex]; - } - else - { - if (static_cast(dropdownIndex) >= window_new_campaign_rides.size()) - return; - - w->campaign.RideId = window_new_campaign_rides[dropdownIndex]; - } - - w->Invalidate(); -} - -/** - * - * rct2: 0x0069E397 - */ -static void window_new_campaign_invalidate(rct_window* w) -{ - window_new_campaign_widgets[WIDX_RIDE_LABEL].type = WindowWidgetType::Empty; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::Empty; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Empty; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].text = STR_MARKETING_NOT_SELECTED; - switch (w->campaign.campaign_type) - { - case ADVERTISING_CAMPAIGN_RIDE_FREE: - case ADVERTISING_CAMPAIGN_RIDE: - window_new_campaign_widgets[WIDX_RIDE_LABEL].type = WindowWidgetType::Label; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::DropdownMenu; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Button; - window_new_campaign_widgets[WIDX_RIDE_LABEL].text = STR_MARKETING_RIDE; - if (w->campaign.RideId != SELECTED_RIDE_UNDEFINED) - { - auto ride = get_ride(w->campaign.RideId); - if (ride != nullptr) - { - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].text = STR_STRINGID; - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - } - } - break; - case ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE: - window_new_campaign_widgets[WIDX_RIDE_LABEL].type = WindowWidgetType::Label; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::DropdownMenu; - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Button; - window_new_campaign_widgets[WIDX_RIDE_LABEL].text = STR_MARKETING_ITEM; - if (w->campaign.ShopItemId != SELECTED_RIDE_UNDEFINED) - { - window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].text = GetShopItemDescriptor(ShopItem(w->campaign.ShopItemId)) - .Naming.Plural; - } - break; - } - - // Set current number of weeks spinner (moved to paint due to required parameter) - window_new_campaign_widgets[WIDX_WEEKS_SPINNER].text = STR_NONE; - - // Enable / disable start button based on ride dropdown - w->disabled_widgets &= ~(1 << WIDX_START_BUTTON); - if (window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].type == WindowWidgetType::DropdownMenu - && w->campaign.RideId == SELECTED_RIDE_UNDEFINED) - w->disabled_widgets |= 1 << WIDX_START_BUTTON; -} - -/** - * - * rct2: 0x0069E493 - */ -static void window_new_campaign_paint(rct_window* w, rct_drawpixelinfo* dpi) -{ - ScreenCoordsXY screenCoords{}; - - WindowDrawWidgets(w, dpi); - - // Number of weeks - rct_widget* spinnerWidget = &window_new_campaign_widgets[WIDX_WEEKS_SPINNER]; - DrawTextBasic( - dpi, w->windowPos + ScreenCoordsXY{ spinnerWidget->left + 1, spinnerWidget->top }, - w->campaign.no_weeks == 1 ? STR_MARKETING_1_WEEK : STR_X_WEEKS, &w->campaign.no_weeks, { w->colours[0] }); - - screenCoords = w->windowPos + ScreenCoordsXY{ 14, 60 }; - - // Price per week - money32 pricePerWeek = AdvertisingCampaignPricePerWeek[w->campaign.campaign_type]; - DrawTextBasic(dpi, screenCoords, STR_MARKETING_COST_PER_WEEK, &pricePerWeek); - screenCoords.y += 13; - - // Total price - money32 totalPrice = AdvertisingCampaignPricePerWeek[w->campaign.campaign_type] * w->campaign.no_weeks; - DrawTextBasic(dpi, screenCoords, STR_MARKETING_TOTAL_COST, &totalPrice); -} - void WindowCampaignRefreshRides() { - auto window = window_find_by_class(WC_NEW_CAMPAIGN); - if (window == nullptr) + auto w = static_cast(window_find_by_class(WC_NEW_CAMPAIGN)); + if (w != nullptr) { - return; + w->RefreshRides(); } - - // Get all applicable rides - window_new_campaign_rides.clear(); - for (const auto& ride : GetRideManager()) - { - if (ride.status == RIDE_STATUS_OPEN) - { - if (!ride.GetRideTypeDescriptor().HasFlag( - RIDE_TYPE_FLAG_IS_SHOP | RIDE_TYPE_FLAG_SELLS_FOOD | RIDE_TYPE_FLAG_SELLS_DRINKS - | RIDE_TYPE_FLAG_IS_TOILET)) - { - window_new_campaign_rides.push_back(ride.id); - } - } - } - - // Take top 128 most valuable rides - if (window_new_campaign_rides.size() > Dropdown::ItemsMaxSize) - { - qsort(window_new_campaign_rides.data(), window_new_campaign_rides.size(), sizeof(ride_id_t), ride_value_compare); - window_new_campaign_rides.resize(Dropdown::ItemsMaxSize); - } - - // Sort rides by name - qsort(window_new_campaign_rides.data(), window_new_campaign_rides.size(), sizeof(ride_id_t), ride_name_compare); } diff --git a/src/openrct2-ui/windows/NewRide.cpp b/src/openrct2-ui/windows/NewRide.cpp index 11739f1077..3dbde5e4c3 100644 --- a/src/openrct2-ui/windows/NewRide.cpp +++ b/src/openrct2-ui/windows/NewRide.cpp @@ -312,7 +312,7 @@ static void window_new_ride_populate_list() } nextListItem->Type = RIDE_TYPE_NULL; - nextListItem->EntryIndex = RIDE_ENTRY_INDEX_NULL; + nextListItem->EntryIndex = OBJECT_ENTRY_INDEX_NULL; } static RideSelection* window_new_ride_iterate_over_ride_type(uint8_t rideType, RideSelection* nextListItem) @@ -392,7 +392,7 @@ static void window_new_ride_scroll_to_focused_ride(rct_window* w) auto focusRideType = _windowNewRideHighlightedItem[_windowNewRideCurrentTab]; int32_t count = 0, row = 0; RideSelection* listItem = _windowNewRideListItems; - while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != RIDE_ENTRY_INDEX_NULL) + while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != OBJECT_ENTRY_INDEX_NULL) { if (listItem->Type == focusRideType.Type) { @@ -429,16 +429,16 @@ rct_window* window_new_ride_open() w = WindowCreateAutoPos(WW, WH, &window_new_ride_events, WC_CONSTRUCT_RIDE, WF_10); w->widgets = window_new_ride_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_TAB_1) | (1 << WIDX_TAB_2) | (1 << WIDX_TAB_3) | (1 << WIDX_TAB_4) - | (1 << WIDX_TAB_5) | (1 << WIDX_TAB_6) | (1 << WIDX_TAB_7) | (1 << WIDX_LAST_DEVELOPMENT_BUTTON) - | (1 << WIDX_RESEARCH_FUNDING_BUTTON); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB_1) | (1ULL << WIDX_TAB_2) | (1ULL << WIDX_TAB_3) + | (1ULL << WIDX_TAB_4) | (1ULL << WIDX_TAB_5) | (1ULL << WIDX_TAB_6) | (1ULL << WIDX_TAB_7) + | (1ULL << WIDX_LAST_DEVELOPMENT_BUTTON) | (1ULL << WIDX_RESEARCH_FUNDING_BUTTON); window_new_ride_populate_list(); WindowInitScrollWidgets(w); w->frame_no = 0; - w->new_ride.SelectedRide = { RIDE_TYPE_NULL, RIDE_ENTRY_INDEX_NULL }; + w->new_ride.SelectedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; _lastTrackDesignCountRideType.Type = RIDE_TYPE_NULL; - _lastTrackDesignCountRideType.EntryIndex = RIDE_ENTRY_INDEX_NULL; + _lastTrackDesignCountRideType.EntryIndex = OBJECT_ENTRY_INDEX_NULL; w->new_ride.HighlightedRide = _windowNewRideHighlightedItem[_windowNewRideCurrentTab]; if (w->new_ride.HighlightedRide.Type == RIDE_TYPE_NULL) w->new_ride.HighlightedRide = _windowNewRideListItems[0]; @@ -516,7 +516,7 @@ static void window_new_ride_set_page(rct_window* w, int32_t page) { _windowNewRideCurrentTab = page; w->frame_no = 0; - w->new_ride.HighlightedRide = { RIDE_TYPE_NULL, RIDE_ENTRY_INDEX_NULL }; + w->new_ride.HighlightedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; w->new_ride.selected_ride_countdown = std::numeric_limits::max(); window_new_ride_populate_list(); if (page < WINDOW_NEW_RIDE_PAGE_RESEARCH) @@ -613,10 +613,9 @@ static void window_new_ride_draw_tab_image(rct_drawpixelinfo* dpi, rct_window* w spriteIndex += page == WINDOW_NEW_RIDE_PAGE_THRILL ? ThrillRidesTabAnimationSequence[frame] : frame; - spriteIndex |= w->colours[1] << 19; - gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex, w->colours[1]), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } @@ -690,7 +689,7 @@ static void window_new_ride_scrollgetsize(rct_window* w, int32_t scrollIndex, in RideSelection* listItem = _windowNewRideListItems; int32_t count = 0; - while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != RIDE_ENTRY_INDEX_NULL) + while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != OBJECT_ENTRY_INDEX_NULL) { count++; listItem++; @@ -707,7 +706,7 @@ static void window_new_ride_scrollmousedown(rct_window* w, int32_t scrollIndex, RideSelection item; item = window_new_ride_scroll_get_ride_list_item_at(w, screenCoords); - if (item.Type == RIDE_TYPE_NULL && item.EntryIndex == RIDE_ENTRY_INDEX_NULL) + if (item.Type == RIDE_TYPE_NULL && item.EntryIndex == OBJECT_ENTRY_INDEX_NULL) return; _windowNewRideHighlightedItem[_windowNewRideCurrentTab] = item; @@ -778,7 +777,7 @@ static void window_new_ride_paint(rct_window* w, rct_drawpixelinfo* dpi) { RideSelection item; item = w->new_ride.HighlightedRide; - if (item.Type != RIDE_TYPE_NULL || item.EntryIndex != RIDE_ENTRY_INDEX_NULL) + if (item.Type != RIDE_TYPE_NULL || item.EntryIndex != OBJECT_ENTRY_INDEX_NULL) window_new_ride_paint_ride_information( w, dpi, item, w->windowPos + ScreenCoordsXY{ 3, w->height - 64 }, w->width - 6); } @@ -801,7 +800,7 @@ static void window_new_ride_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, i ScreenCoordsXY coords{ 1, 1 }; RideSelection* listItem = _windowNewRideListItems; - while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != RIDE_ENTRY_INDEX_NULL) + while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != OBJECT_ENTRY_INDEX_NULL) { rct_ride_entry* rideEntry; // Draw flat button rectangle @@ -847,7 +846,7 @@ static RideSelection window_new_ride_scroll_get_ride_list_item_at(rct_window* w, { RideSelection result; result.Type = RIDE_TYPE_NULL; - result.EntryIndex = RIDE_ENTRY_INDEX_NULL; + result.EntryIndex = OBJECT_ENTRY_INDEX_NULL; if (screenCoords.x <= 0 || screenCoords.y <= 0) return result; @@ -860,7 +859,7 @@ static RideSelection window_new_ride_scroll_get_ride_list_item_at(rct_window* w, int32_t index = column + (row * 5); RideSelection* listItem = _windowNewRideListItems; - while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != RIDE_ENTRY_INDEX_NULL) + while (listItem->Type != RIDE_TYPE_NULL || listItem->EntryIndex != OBJECT_ENTRY_INDEX_NULL) { if (index-- == 0) return *listItem; diff --git a/src/openrct2-ui/windows/News.cpp b/src/openrct2-ui/windows/News.cpp index abd2dbbd91..2fa7db71f9 100644 --- a/src/openrct2-ui/windows/News.cpp +++ b/src/openrct2-ui/windows/News.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include static constexpr const rct_string_id WINDOW_TITLE = STR_RECENT_MESSAGES; static constexpr const int32_t WH = 300; @@ -33,6 +33,7 @@ enum WINDOW_NEWS_WIDGET_IDX { WIDX_SCROLL }; + static rct_widget window_news_widgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({372, 18}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Primary, SPR_TAB_GEARS_0), // settings @@ -40,309 +41,273 @@ static rct_widget window_news_widgets[] = { { WIDGETS_END }, }; -static void window_news_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_news_update(rct_window *w); -static void window_news_scrollgetsize(rct_window *w, int32_t scrollIndex, int32_t *width, int32_t *height); -static void window_news_scrollmousedown(rct_window *w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords); -static void window_news_paint(rct_window *w, rct_drawpixelinfo *dpi); -static void window_news_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, int32_t scrollIndex); - -static rct_window_event_list window_news_events([](auto& events) +class NewsWindow final : public Window { - events.mouse_up = &window_news_mouseup; - events.update = &window_news_update; - events.get_scroll_size = &window_news_scrollgetsize; - events.scroll_mousedown = &window_news_scrollmousedown; - events.paint = &window_news_paint; - events.scroll_paint = &window_news_scrollpaint; -}); -// clang-format on - -/** - * - * rct2: 0x0066E464 - */ -rct_window* window_news_open() -{ - rct_window* window; - - // Check if window is already open - window = window_bring_to_front_by_class(WC_RECENT_NEWS); - if (window == nullptr) +private: + int32_t _pressedNewsItemIndex{}, _pressedButtonIndex{}, _suspendUpdateTicks{}; + static int32_t CalculateItemHeight() { - window = WindowCreateAutoPos(400, 300, &window_news_events, WC_RECENT_NEWS, 0); - window->widgets = window_news_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_SETTINGS); - WindowInitScrollWidgets(window); - window->news.var_480 = -1; + return 4 * font_get_line_height(FontSpriteBase::SMALL) + 2; } - // sub_66E4BA: - rct_widget* widget; - - int32_t width = 0; - int32_t height = 0; - window_get_scroll_size(window, 0, &width, &height); - widget = &window_news_widgets[WIDX_SCROLL]; - window->scrolls[0].v_top = std::max(0, height - (widget->height() - 1)); - WidgetScrollUpdateThumbs(window, WIDX_SCROLL); - - return window; -} - -static int32_t window_news_get_item_height() -{ - return 4 * font_get_line_height(FontSpriteBase::SMALL) + 2; -} - -/** - * - * rct2: 0x0066D4D5 - */ -static void window_news_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - switch (widgetIndex) +public: + void OnOpen() override { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_SETTINGS: - context_open_window(WC_NOTIFICATION_OPTIONS); - break; - } -} + widgets = window_news_widgets; + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_SETTINGS); + WindowInitScrollWidgets(this); + _pressedNewsItemIndex = -1; -/** - * - * rct2: 0x0066EAB8 - */ -static void window_news_update(rct_window* w) -{ - if (w->news.var_480 == -1 || --w->news.var_484 != 0) - { - return; + int32_t w = 0, h = 0; + rct_widget* widget = &widgets[WIDX_SCROLL]; + window_get_scroll_size(this, 0, &w, &h); + scrolls[0].v_top = std::max(0, h - (widget->height() - 1)); + WidgetScrollUpdateThumbs(this, WIDX_SCROLL); } - w->Invalidate(); - OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click2, 0, w->windowPos.x + (w->width / 2)); - - size_t j = w->news.var_480; - w->news.var_480 = -1; - if (j >= gNewsItems.GetArchived().size()) - return; - - const auto& newsItem = gNewsItems.GetArchived()[j]; - if (newsItem.HasButton()) - return; - if (w->news.var_482 == 1) + void OnMouseUp(rct_widgetindex widgetIndex) override { - News::OpenSubject(newsItem.Type, newsItem.Assoc); - } - else if (w->news.var_482 > 1) - { - auto subjectLoc = News::GetSubjectLocation(newsItem.Type, newsItem.Assoc); - if (subjectLoc != std::nullopt && (w = window_get_main()) != nullptr) + switch (widgetIndex) { - window_scroll_to_location(w, *subjectLoc); - } - } -} - -/** - * - * rct2: 0x0066EA3C - */ -static void window_news_scrollgetsize(rct_window* w, int32_t scrollIndex, int32_t* width, int32_t* height) -{ - *height = static_cast(gNewsItems.GetArchived().size()) * window_news_get_item_height(); -} - -/** - * - * rct2: 0x0066EA5C - */ -static void window_news_scrollmousedown(rct_window* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords) -{ - int32_t itemHeight = window_news_get_item_height(); - - int32_t i = 0; - int32_t buttonIndex = 0; - auto mutableScreenCoords = screenCoords; - for (const auto& newsItem : gNewsItems.GetArchived()) - { - if (mutableScreenCoords.y < itemHeight) - { - if (newsItem.HasButton() || mutableScreenCoords.y < 14 || mutableScreenCoords.y >= 38 - || mutableScreenCoords.x < 328) - { - buttonIndex = 0; + case WIDX_CLOSE: + Close(); break; - } - else if (mutableScreenCoords.x < 351 && newsItem.TypeHasSubject()) - { - buttonIndex = 1; + case WIDX_SETTINGS: + context_open_window(WC_NOTIFICATION_OPTIONS); break; - } - else if (mutableScreenCoords.x < 376 && newsItem.TypeHasLocation()) - { - buttonIndex = 2; - break; - } } - mutableScreenCoords.y -= itemHeight; - i++; } - if (buttonIndex != 0) + void OnUpdate() override { - w->news.var_480 = i; - w->news.var_482 = buttonIndex; - w->news.var_484 = 4; - w->Invalidate(); - OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click1, 0, w->windowPos.x + (w->width / 2)); - } -} - -/** - * - * rct2: 0x0066E4E8 - */ -static void window_news_paint(rct_window* w, rct_drawpixelinfo* dpi) -{ - WindowDrawWidgets(w, dpi); -} - -/** - * - * rct2: 0x0066E4EE - */ -static void window_news_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t scrollIndex) -{ - int32_t lineHeight = font_get_line_height(FontSpriteBase::SMALL); - int32_t itemHeight = window_news_get_item_height(); - - int32_t y = 0; - int32_t i = 0; - for (const auto& newsItem : gNewsItems.GetArchived()) - { - if (y >= dpi->y + dpi->height) - break; - if (y + itemHeight < dpi->y) + if (_pressedNewsItemIndex == -1 || --_suspendUpdateTicks != 0) { - y += itemHeight; - i++; - continue; + return; } - // Background - gfx_fill_rect_inset( - dpi, { -1, y, 383, y + itemHeight - 1 }, w->colours[1], (INSET_RECT_FLAG_BORDER_INSET | INSET_RECT_FLAG_FILL_GREY)); + Invalidate(); + OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click2, 0, windowPos.x + (width / 2)); - // Date text - { - auto ft = Formatter(); - ft.Add(DateDayNames[newsItem.Day - 1]); - ft.Add(DateGameMonthNames[date_get_month(newsItem.MonthYear)]); - DrawTextBasic(dpi, { 2, y }, STR_NEWS_DATE_FORMAT, ft, { COLOUR_WHITE, FontSpriteBase::SMALL }); - } - // Item text - { - auto ft = Formatter(); - ft.Add(newsItem.Text.c_str()); - DrawTextWrapped(dpi, { 2, y + lineHeight }, 325, STR_BOTTOM_TOOLBAR_NEWS_TEXT, ft, { FontSpriteBase::SMALL }); - } - // Subject button - if ((newsItem.TypeHasSubject()) && !(newsItem.HasButton())) - { - auto screenCoords = ScreenCoordsXY{ 328, y + lineHeight + 4 }; + size_t j = _pressedNewsItemIndex; + _pressedNewsItemIndex = -1; - int32_t press = 0; - if (w->news.var_480 != -1) + if (j >= gNewsItems.GetArchived().size()) + { + return; + } + + const auto& newsItem = gNewsItems.GetArchived()[j]; + if (newsItem.HasButton()) + { + return; + } + + if (_pressedButtonIndex == 1) + { + News::OpenSubject(newsItem.Type, newsItem.Assoc); + } + else if (_pressedButtonIndex > 1) + { + static rct_window* _mainWindow; + auto subjectLoc = News::GetSubjectLocation(newsItem.Type, newsItem.Assoc); + if (subjectLoc != std::nullopt && (_mainWindow = window_get_main()) != nullptr) { - News::IsValidIndex(w->news.var_480 + News::ItemHistoryStart); - if (i == w->news.var_480 && w->news.var_482 == 1) - press = INSET_RECT_FLAG_BORDER_INSET; + window_scroll_to_location(_mainWindow, *subjectLoc); } - gfx_fill_rect_inset(dpi, { screenCoords, screenCoords + ScreenCoordsXY{ 23, 23 } }, w->colours[2], press); + } + } - switch (newsItem.Type) + ScreenSize OnScrollGetSize(int32_t scrollIndex) override + { + static int32_t _scrollHeight = static_cast(gNewsItems.GetArchived().size()) * CalculateItemHeight(); + return {WW, _scrollHeight}; + } + + void OnScrollMouseDown(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override + { + int32_t itemHeight = CalculateItemHeight(); + int32_t i = 0; + int32_t buttonIndex = 0; + auto mutableScreenCoords = screenCoords; + for (const auto& newsItem : gNewsItems.GetArchived()) + { + if (mutableScreenCoords.y < itemHeight) { - case News::ItemType::Ride: - gfx_draw_sprite(dpi, SPR_RIDE, screenCoords, 0); - break; - case News::ItemType::Peep: - case News::ItemType::PeepOnRide: + if (newsItem.HasButton() || mutableScreenCoords.y < 14 || mutableScreenCoords.y >= 38 + || mutableScreenCoords.x < 328) { - rct_drawpixelinfo cliped_dpi; - if (!clip_drawpixelinfo(&cliped_dpi, dpi, screenCoords + ScreenCoordsXY{ 1, 1 }, 22, 22)) - { - break; - } - - auto peep = TryGetEntity(newsItem.Assoc); - if (peep == nullptr) - break; - - auto clipCoords = ScreenCoordsXY{ 10, 19 }; - - // If normal peep set sprite to normal (no food) - // If staff set sprite to staff sprite - auto spriteType = PeepSpriteType::Normal; - if (peep->AssignedPeepType == PeepType::Staff) - { - spriteType = peep->SpriteType; - if (peep->AssignedStaffType == StaffType::Entertainer) - { - clipCoords.y += 3; - } - } - - uint32_t image_id = GetPeepAnimation(spriteType).base_image; - image_id += 0xA0000001; - image_id |= (peep->TshirtColour << 19) | (peep->TrousersColour << 24); - - gfx_draw_sprite(&cliped_dpi, image_id, clipCoords, 0); + buttonIndex = 0; break; } - case News::ItemType::Money: - gfx_draw_sprite(dpi, SPR_FINANCE, screenCoords, 0); + else if (mutableScreenCoords.x < 351 && newsItem.TypeHasSubject()) + { + buttonIndex = 1; break; - case News::ItemType::Research: - gfx_draw_sprite(dpi, newsItem.Assoc < 0x10000 ? SPR_NEW_SCENERY : SPR_NEW_RIDE, screenCoords, 0); - break; - case News::ItemType::Peeps: - gfx_draw_sprite(dpi, SPR_GUESTS, screenCoords, 0); - break; - case News::ItemType::Award: - gfx_draw_sprite(dpi, SPR_AWARD, screenCoords, 0); - break; - case News::ItemType::Graph: - gfx_draw_sprite(dpi, SPR_GRAPH, screenCoords, 0); - break; - case News::ItemType::Null: - case News::ItemType::Blank: - case News::ItemType::Count: + } + else if (mutableScreenCoords.x < 376 && newsItem.TypeHasLocation()) + { + buttonIndex = 2; break; + } } + mutableScreenCoords.y -= itemHeight; + i++; } - // Location button - if ((newsItem.TypeHasLocation()) && !(newsItem.HasButton())) + if (buttonIndex != 0) { - auto screenCoords = ScreenCoordsXY{ 352, y + lineHeight + 4 }; - - int32_t press = 0; - if (w->news.var_480 != -1) - { - News::IsValidIndex(w->news.var_480 + News::ItemHistoryStart); - if (i == w->news.var_480 && w->news.var_482 == 2) - press = 0x20; - } - gfx_fill_rect_inset(dpi, { screenCoords, screenCoords + ScreenCoordsXY{ 23, 23 } }, w->colours[2], press); - gfx_draw_sprite(dpi, SPR_LOCATE, screenCoords, 0); + _pressedNewsItemIndex = i; + _pressedButtonIndex = buttonIndex; + _suspendUpdateTicks = 4; + Invalidate(); + OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click1, 0, windowPos.x + (width / 2)); } - - y += itemHeight; - i++; } + + void OnDraw(rct_drawpixelinfo& dpi) override + { + DrawWidgets(dpi); + } + + void OnScrollDraw(int32_t scrollIndex, rct_drawpixelinfo& dpi) override + { + int32_t lineHeight = font_get_line_height(FontSpriteBase::SMALL); + int32_t itemHeight = CalculateItemHeight(); + int32_t y = 0; + int32_t i = 0; + + for (const auto& newsItem : gNewsItems.GetArchived()) + { + if (y >= dpi.y + dpi.height) + break; + if (y + itemHeight < dpi.y) + { + y += itemHeight; + i++; + continue; + } + + // Background + gfx_fill_rect_inset( + &dpi, { -1, y, 383, y + itemHeight - 1 }, colours[1], (INSET_RECT_FLAG_BORDER_INSET | INSET_RECT_FLAG_FILL_GREY)); + + // Date text + { + auto ft = Formatter(); + ft.Add(DateDayNames[newsItem.Day - 1]); + ft.Add(DateGameMonthNames[date_get_month(newsItem.MonthYear)]); + DrawTextBasic(&dpi, { 2, y }, STR_NEWS_DATE_FORMAT, ft, { COLOUR_WHITE, FontSpriteBase::SMALL }); + } + // Item text + { + auto ft = Formatter(); + ft.Add(newsItem.Text.c_str()); + DrawTextWrapped(&dpi, { 2, y + lineHeight }, 325, STR_BOTTOM_TOOLBAR_NEWS_TEXT, ft, { FontSpriteBase::SMALL }); + } + // Subject button + if ((newsItem.TypeHasSubject()) && !(newsItem.HasButton())) + { + auto screenCoords = ScreenCoordsXY{ 328, y + lineHeight + 4 }; + + int32_t press = 0; + if (_pressedNewsItemIndex != -1) + { + News::IsValidIndex(_pressedNewsItemIndex + News::ItemHistoryStart); + if (i == _pressedNewsItemIndex && _pressedButtonIndex == 1) + { + press = INSET_RECT_FLAG_BORDER_INSET; + } + + } + gfx_fill_rect_inset(&dpi, { screenCoords, screenCoords + ScreenCoordsXY{ 23, 23 } }, colours[2], press); + + switch (newsItem.Type) + { + case News::ItemType::Ride: + gfx_draw_sprite(&dpi, ImageId(SPR_RIDE), screenCoords); + break; + case News::ItemType::Peep: + case News::ItemType::PeepOnRide: + { + rct_drawpixelinfo cliped_dpi; + if (!clip_drawpixelinfo(&cliped_dpi, &dpi, screenCoords + ScreenCoordsXY{ 1, 1 }, 22, 22)) + { + break; + } + + auto peep = TryGetEntity(newsItem.Assoc); + if (peep == nullptr) + { + break; + } + + auto clipCoords = ScreenCoordsXY{ 10, 19 }; + + // If normal peep set sprite to normal (no food) + // If staff set sprite to staff sprite + auto spriteType = PeepSpriteType::Normal; + auto* staff = peep->As(); + if (staff != nullptr) + { + spriteType = staff->SpriteType; + if (staff->AssignedStaffType == StaffType::Entertainer) + { + clipCoords.y += 3; + } + } + + uint32_t image_id = GetPeepAnimation(spriteType).base_image; + image_id += 0xA0000001; + image_id |= (peep->TshirtColour << 19) | (peep->TrousersColour << 24); + + gfx_draw_sprite(&cliped_dpi, ImageId::FromUInt32(image_id), clipCoords); + break; + } + case News::ItemType::Money: + gfx_draw_sprite(&dpi, ImageId(SPR_FINANCE), screenCoords); + break; + case News::ItemType::Research: + gfx_draw_sprite(&dpi, ImageId(newsItem.Assoc < 0x10000 ? SPR_NEW_SCENERY : SPR_NEW_RIDE), screenCoords); + break; + case News::ItemType::Peeps: + gfx_draw_sprite(&dpi, ImageId(SPR_GUESTS), screenCoords); + break; + case News::ItemType::Award: + gfx_draw_sprite(&dpi, ImageId(SPR_AWARD), screenCoords); + break; + case News::ItemType::Graph: + gfx_draw_sprite(&dpi, ImageId(SPR_GRAPH), screenCoords); + break; + case News::ItemType::Null: + case News::ItemType::Blank: + case News::ItemType::Count: + break; + } + } + + // Location button + if ((newsItem.TypeHasLocation()) && !(newsItem.HasButton())) + { + auto screenCoords = ScreenCoordsXY{ 352, y + lineHeight + 4 }; + + int32_t press = 0; + if (_pressedNewsItemIndex != -1) + { + News::IsValidIndex(_pressedNewsItemIndex + News::ItemHistoryStart); + if (i == _pressedNewsItemIndex && _pressedButtonIndex == 2) + press = 0x20; + } + gfx_fill_rect_inset(&dpi, { screenCoords, screenCoords + ScreenCoordsXY{ 23, 23 } }, colours[2], press); + gfx_draw_sprite(&dpi, ImageId(SPR_LOCATE), screenCoords); + } + + y += itemHeight; + i++; + } + } +}; + +rct_window* window_news_open() +{ + return WindowFocusOrCreate(WC_RECENT_NEWS, WW, WH, 0); } diff --git a/src/openrct2-ui/windows/NewsOptions.cpp b/src/openrct2-ui/windows/NewsOptions.cpp index d0e1c54842..5c0cc4c564 100644 --- a/src/openrct2-ui/windows/NewsOptions.cpp +++ b/src/openrct2-ui/windows/NewsOptions.cpp @@ -111,7 +111,8 @@ rct_window* window_news_options_open() { window = WindowCreateCentred(400, 300, &window_news_options_events, WC_NOTIFICATION_OPTIONS, 0); window->widgets = window_news_options_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_TAB_PARK) | (1 << WIDX_TAB_RIDE) | (1 << WIDX_TAB_GUEST); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB_PARK) | (1ULL << WIDX_TAB_RIDE) + | (1ULL << WIDX_TAB_GUEST); WindowInitScrollWidgets(window); window->colours[0] = COLOUR_GREY; window->colours[1] = COLOUR_LIGHT_BLUE; @@ -266,7 +267,8 @@ static void window_news_options_draw_tab_image(rct_window* w, rct_drawpixelinfo* } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } diff --git a/src/openrct2-ui/windows/ObjectLoadError.cpp b/src/openrct2-ui/windows/ObjectLoadError.cpp index eb75214192..a608cf8aeb 100644 --- a/src/openrct2-ui/windows/ObjectLoadError.cpp +++ b/src/openrct2-ui/windows/ObjectLoadError.cpp @@ -412,8 +412,8 @@ rct_window* window_object_load_error_open(utf8* path, size_t numMissingObjects, window = WindowCreateCentred(WW, WH, &window_object_load_error_events, WC_OBJECT_LOAD_ERROR, 0); window->widgets = window_object_load_error_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_COPY_CURRENT) | (1 << WIDX_COPY_ALL) - | (1 << WIDX_DOWNLOAD_ALL); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_COPY_CURRENT) | (1ULL << WIDX_COPY_ALL) + | (1ULL << WIDX_DOWNLOAD_ALL); WindowInitScrollWidgets(window); window->colours[0] = COLOUR_LIGHT_BLUE; diff --git a/src/openrct2-ui/windows/Options.cpp b/src/openrct2-ui/windows/Options.cpp index c8b8b6269a..55f9347c39 100644 --- a/src/openrct2-ui/windows/Options.cpp +++ b/src/openrct2-ui/windows/Options.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -431,120 +432,120 @@ static void window_options_update_height_markers(); #pragma region Enabled Widgets #define MAIN_OPTIONS_ENABLED_WIDGETS \ - (1 << WIDX_CLOSE) | \ - (1 << WIDX_TAB_1) | \ - (1 << WIDX_TAB_2) | \ - (1 << WIDX_TAB_3) | \ - (1 << WIDX_TAB_4) | \ - (1 << WIDX_TAB_5) | \ - (1 << WIDX_TAB_6) | \ - (1 << WIDX_TAB_7) + (1ULL << WIDX_CLOSE) | \ + (1ULL << WIDX_TAB_1) | \ + (1ULL << WIDX_TAB_2) | \ + (1ULL << WIDX_TAB_3) | \ + (1ULL << WIDX_TAB_4) | \ + (1ULL << WIDX_TAB_5) | \ + (1ULL << WIDX_TAB_6) | \ + (1ULL << WIDX_TAB_7) static uint64_t window_options_page_enabled_widgets[] = { MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_RESOLUTION) | - (1 << WIDX_RESOLUTION_DROPDOWN) | - (1 << WIDX_FULLSCREEN) | - (1 << WIDX_FULLSCREEN_DROPDOWN) | - (1 << WIDX_DRAWING_ENGINE) | - (1 << WIDX_DRAWING_ENGINE_DROPDOWN) | - (1 << WIDX_UNCAP_FPS_CHECKBOX) | - (1 << WIDX_USE_VSYNC_CHECKBOX) | - (1 << WIDX_SHOW_FPS_CHECKBOX) | - (1 << WIDX_MULTITHREADING_CHECKBOX) | - (1 << WIDX_MINIMIZE_FOCUS_LOSS) | - (1 << WIDX_STEAM_OVERLAY_PAUSE) | - (1 << WIDX_DISABLE_SCREENSAVER_LOCK) | - (1 << WIDX_SCALE) | - (1 << WIDX_SCALE_UP) | - (1 << WIDX_SCALE_DOWN) | - (1 << WIDX_SCALE_QUALITY) | - (1 << WIDX_SCALE_QUALITY_DROPDOWN), + (1ULL << WIDX_RESOLUTION) | + (1ULL << WIDX_RESOLUTION_DROPDOWN) | + (1ULL << WIDX_FULLSCREEN) | + (1ULL << WIDX_FULLSCREEN_DROPDOWN) | + (1ULL << WIDX_DRAWING_ENGINE) | + (1ULL << WIDX_DRAWING_ENGINE_DROPDOWN) | + (1ULL << WIDX_UNCAP_FPS_CHECKBOX) | + (1ULL << WIDX_USE_VSYNC_CHECKBOX) | + (1ULL << WIDX_SHOW_FPS_CHECKBOX) | + (1ULL << WIDX_MULTITHREADING_CHECKBOX) | + (1ULL << WIDX_MINIMIZE_FOCUS_LOSS) | + (1ULL << WIDX_STEAM_OVERLAY_PAUSE) | + (1ULL << WIDX_DISABLE_SCREENSAVER_LOCK) | + (1ULL << WIDX_SCALE) | + (1ULL << WIDX_SCALE_UP) | + (1ULL << WIDX_SCALE_DOWN) | + (1ULL << WIDX_SCALE_QUALITY) | + (1ULL << WIDX_SCALE_QUALITY_DROPDOWN), MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_TILE_SMOOTHING_CHECKBOX) | - (1 << WIDX_GRIDLINES_CHECKBOX) | - (1 << WIDX_UPPER_CASE_BANNERS_CHECKBOX) | - (1 << WIDX_SHOW_GUEST_PURCHASES_CHECKBOX) | - (1 << WIDX_TRANSPARENT_SCREENSHOTS_CHECKBOX) | - (1 << WIDX_VIRTUAL_FLOOR) | - (1 << WIDX_VIRTUAL_FLOOR_DROPDOWN) | - (1 << WIDX_DAY_NIGHT_CHECKBOX) | - (1 << WIDX_ENABLE_LIGHT_FX_CHECKBOX) | - (1 << WIDX_ENABLE_LIGHT_FX_FOR_VEHICLES_CHECKBOX) | - (1 << WIDX_RENDER_WEATHER_EFFECTS_CHECKBOX) | - (1 << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX), + (1ULL << WIDX_TILE_SMOOTHING_CHECKBOX) | + (1ULL << WIDX_GRIDLINES_CHECKBOX) | + (1ULL << WIDX_UPPER_CASE_BANNERS_CHECKBOX) | + (1ULL << WIDX_SHOW_GUEST_PURCHASES_CHECKBOX) | + (1ULL << WIDX_TRANSPARENT_SCREENSHOTS_CHECKBOX) | + (1ULL << WIDX_VIRTUAL_FLOOR) | + (1ULL << WIDX_VIRTUAL_FLOOR_DROPDOWN) | + (1ULL << WIDX_DAY_NIGHT_CHECKBOX) | + (1ULL << WIDX_ENABLE_LIGHT_FX_CHECKBOX) | + (1ULL << WIDX_ENABLE_LIGHT_FX_FOR_VEHICLES_CHECKBOX) | + (1ULL << WIDX_RENDER_WEATHER_EFFECTS_CHECKBOX) | + (1ULL << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX), MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_LANGUAGE) | - (1 << WIDX_LANGUAGE_DROPDOWN) | - (1 << WIDX_CURRENCY) | - (1 << WIDX_CURRENCY_DROPDOWN) | - (1 << WIDX_DISTANCE) | - (1 << WIDX_DISTANCE_DROPDOWN) | - (1 << WIDX_TEMPERATURE) | - (1 << WIDX_TEMPERATURE_DROPDOWN) | - (1 << WIDX_HEIGHT_LABELS) | - (1 << WIDX_HEIGHT_LABELS_DROPDOWN) | - (1 << WIDX_DATE_FORMAT) | - (1 << WIDX_DATE_FORMAT_DROPDOWN), + (1ULL << WIDX_LANGUAGE) | + (1ULL << WIDX_LANGUAGE_DROPDOWN) | + (1ULL << WIDX_CURRENCY) | + (1ULL << WIDX_CURRENCY_DROPDOWN) | + (1ULL << WIDX_DISTANCE) | + (1ULL << WIDX_DISTANCE_DROPDOWN) | + (1ULL << WIDX_TEMPERATURE) | + (1ULL << WIDX_TEMPERATURE_DROPDOWN) | + (1ULL << WIDX_HEIGHT_LABELS) | + (1ULL << WIDX_HEIGHT_LABELS_DROPDOWN) | + (1ULL << WIDX_DATE_FORMAT) | + (1ULL << WIDX_DATE_FORMAT_DROPDOWN), MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_SOUND) | - (1 << WIDX_SOUND_DROPDOWN) | - (1 << WIDX_MASTER_SOUND_CHECKBOX) | - (1 << WIDX_SOUND_CHECKBOX) | - (1 << WIDX_MUSIC_CHECKBOX) | - (1 << WIDX_AUDIO_FOCUS_CHECKBOX) | - (1 << WIDX_TITLE_MUSIC) | - (1 << WIDX_TITLE_MUSIC_DROPDOWN), + (1ULL << WIDX_SOUND) | + (1ULL << WIDX_SOUND_DROPDOWN) | + (1ULL << WIDX_MASTER_SOUND_CHECKBOX) | + (1ULL << WIDX_SOUND_CHECKBOX) | + (1ULL << WIDX_MUSIC_CHECKBOX) | + (1ULL << WIDX_AUDIO_FOCUS_CHECKBOX) | + (1ULL << WIDX_TITLE_MUSIC) | + (1ULL << WIDX_TITLE_MUSIC_DROPDOWN), MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_SCREEN_EDGE_SCROLLING) | - (1 << WIDX_TRAP_CURSOR) | - (1 << WIDX_INVERT_DRAG) | - (1 << WIDX_ZOOM_TO_CURSOR) | - (1 << WIDX_HOTKEY_DROPDOWN) | - (1 << WIDX_TOOLBAR_SHOW_FINANCES) | - (1 << WIDX_TOOLBAR_SHOW_RESEARCH) | - (1 << WIDX_TOOLBAR_SHOW_CHEATS) | - (1 << WIDX_TOOLBAR_SHOW_NEWS) | - (1 << WIDX_THEMES) | - (1 << WIDX_THEMES_DROPDOWN) | - (1 << WIDX_THEMES_BUTTON) | - (1 << WIDX_TOOLBAR_SHOW_MUTE) | - (1 << WIDX_TOOLBAR_SHOW_CHAT) | - (1 << WIDX_TOOLBAR_SHOW_ZOOM), + (1ULL << WIDX_SCREEN_EDGE_SCROLLING) | + (1ULL << WIDX_TRAP_CURSOR) | + (1ULL << WIDX_INVERT_DRAG) | + (1ULL << WIDX_ZOOM_TO_CURSOR) | + (1ULL << WIDX_HOTKEY_DROPDOWN) | + (1ULL << WIDX_TOOLBAR_SHOW_FINANCES) | + (1ULL << WIDX_TOOLBAR_SHOW_RESEARCH) | + (1ULL << WIDX_TOOLBAR_SHOW_CHEATS) | + (1ULL << WIDX_TOOLBAR_SHOW_NEWS) | + (1ULL << WIDX_THEMES) | + (1ULL << WIDX_THEMES_DROPDOWN) | + (1ULL << WIDX_THEMES_BUTTON) | + (1ULL << WIDX_TOOLBAR_SHOW_MUTE) | + (1ULL << WIDX_TOOLBAR_SHOW_CHAT) | + (1ULL << WIDX_TOOLBAR_SHOW_ZOOM), MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_REAL_NAME_CHECKBOX) | - (1 << WIDX_AUTO_STAFF_PLACEMENT) | - (1 << WIDX_TITLE_SEQUENCE) | - (1 << WIDX_TITLE_SEQUENCE_DROPDOWN) | - (1 << WIDX_TITLE_SEQUENCE_BUTTON) | - (1 << WIDX_TITLE_SEQUENCE_RANDOM) | - (1 << WIDX_SCENARIO_GROUPING) | - (1 << WIDX_SCENARIO_GROUPING_DROPDOWN) | - (1 << WIDX_SCENARIO_UNLOCKING) | - (1 << WIDX_ALLOW_EARLY_COMPLETION) | - (1 << WIDX_AUTO_OPEN_SHOPS) | - (1 << WIDX_DEFAULT_INSPECTION_INTERVAL) | - (1 << WIDX_DEFAULT_INSPECTION_INTERVAL_DROPDOWN), + (1ULL << WIDX_REAL_NAME_CHECKBOX) | + (1ULL << WIDX_AUTO_STAFF_PLACEMENT) | + (1ULL << WIDX_TITLE_SEQUENCE) | + (1ULL << WIDX_TITLE_SEQUENCE_DROPDOWN) | + (1ULL << WIDX_TITLE_SEQUENCE_BUTTON) | + (1ULL << WIDX_TITLE_SEQUENCE_RANDOM) | + (1ULL << WIDX_SCENARIO_GROUPING) | + (1ULL << WIDX_SCENARIO_GROUPING_DROPDOWN) | + (1ULL << WIDX_SCENARIO_UNLOCKING) | + (1ULL << WIDX_ALLOW_EARLY_COMPLETION) | + (1ULL << WIDX_AUTO_OPEN_SHOPS) | + (1ULL << WIDX_DEFAULT_INSPECTION_INTERVAL) | + (1ULL << WIDX_DEFAULT_INSPECTION_INTERVAL_DROPDOWN), MAIN_OPTIONS_ENABLED_WIDGETS | - (1 << WIDX_DEBUGGING_TOOLS) | - (1 << WIDX_ALLOW_LOADING_WITH_INCORRECT_CHECKSUM) | - (1 << WIDX_SAVE_PLUGIN_DATA_CHECKBOX) | - (1 << WIDX_STAY_CONNECTED_AFTER_DESYNC) | - (1 << WIDX_ALWAYS_NATIVE_LOADSAVE) | - (1 << WIDX_AUTOSAVE) | - (1 << WIDX_AUTOSAVE_DROPDOWN) | - (1 << WIDX_AUTOSAVE_AMOUNT) | - (1 << WIDX_AUTOSAVE_AMOUNT_UP) | - (1 << WIDX_AUTOSAVE_AMOUNT_DOWN) | - (1 << WIDX_PATH_TO_RCT1_TEXT) | - (1 << WIDX_PATH_TO_RCT1_BUTTON) | - (1 << WIDX_PATH_TO_RCT1_CLEAR), + (1ULL << WIDX_DEBUGGING_TOOLS) | + (1ULL << WIDX_ALLOW_LOADING_WITH_INCORRECT_CHECKSUM) | + (1ULL << WIDX_SAVE_PLUGIN_DATA_CHECKBOX) | + (1ULL << WIDX_STAY_CONNECTED_AFTER_DESYNC) | + (1ULL << WIDX_ALWAYS_NATIVE_LOADSAVE) | + (1ULL << WIDX_AUTOSAVE) | + (1ULL << WIDX_AUTOSAVE_DROPDOWN) | + (1ULL << WIDX_AUTOSAVE_AMOUNT) | + (1ULL << WIDX_AUTOSAVE_AMOUNT_UP) | + (1ULL << WIDX_AUTOSAVE_AMOUNT_DOWN) | + (1ULL << WIDX_PATH_TO_RCT1_TEXT) | + (1ULL << WIDX_PATH_TO_RCT1_BUTTON) | + (1ULL << WIDX_PATH_TO_RCT1_CLEAR), }; // clang-format on @@ -582,8 +583,8 @@ static void window_options_common_invalidate_before(rct_window* w) auto hasFilePicker = OpenRCT2::GetContext()->GetUiContext()->HasFilePicker(); if (!hasFilePicker) { - w->enabled_widgets &= ~WIDX_ALWAYS_NATIVE_LOADSAVE; - w->disabled_widgets |= WIDX_ALWAYS_NATIVE_LOADSAVE; + w->enabled_widgets &= ~(1ULL << WIDX_ALWAYS_NATIVE_LOADSAVE); + w->disabled_widgets |= (1ULL << WIDX_ALWAYS_NATIVE_LOADSAVE); w->widgets[WIDX_ALWAYS_NATIVE_LOADSAVE].type = WindowWidgetType::Empty; } } @@ -828,23 +829,23 @@ static void window_options_display_invalidate(rct_window* w) // Disable resolution dropdown on "Windowed" and "Fullscreen (desktop)" if (gConfigGeneral.fullscreen_mode != static_cast(OpenRCT2::Ui::FULLSCREEN_MODE::FULLSCREEN)) { - w->disabled_widgets |= (1 << WIDX_RESOLUTION_DROPDOWN); - w->disabled_widgets |= (1 << WIDX_RESOLUTION); + w->disabled_widgets |= (1ULL << WIDX_RESOLUTION_DROPDOWN); + w->disabled_widgets |= (1ULL << WIDX_RESOLUTION); } else { - w->disabled_widgets &= ~(1 << WIDX_RESOLUTION_DROPDOWN); - w->disabled_widgets &= ~(1 << WIDX_RESOLUTION); + w->disabled_widgets &= ~(1ULL << WIDX_RESOLUTION_DROPDOWN); + w->disabled_widgets &= ~(1ULL << WIDX_RESOLUTION); } // Disable Steam Overlay checkbox when using software rendering. if (gConfigGeneral.drawing_engine == DrawingEngine::Software) { - w->disabled_widgets |= (1 << WIDX_STEAM_OVERLAY_PAUSE); + w->disabled_widgets |= (1ULL << WIDX_STEAM_OVERLAY_PAUSE); } else { - w->disabled_widgets &= ~(1 << WIDX_STEAM_OVERLAY_PAUSE); + w->disabled_widgets &= ~(1ULL << WIDX_STEAM_OVERLAY_PAUSE); } // Disable scaling quality dropdown when using software rendering or when using an integer scalar. @@ -852,23 +853,23 @@ static void window_options_display_invalidate(rct_window* w) if (gConfigGeneral.drawing_engine == DrawingEngine::Software || gConfigGeneral.window_scale == std::floor(gConfigGeneral.window_scale)) { - w->disabled_widgets |= (1 << WIDX_SCALE_QUALITY); - w->disabled_widgets |= (1 << WIDX_SCALE_QUALITY_DROPDOWN); + w->disabled_widgets |= (1ULL << WIDX_SCALE_QUALITY); + w->disabled_widgets |= (1ULL << WIDX_SCALE_QUALITY_DROPDOWN); } else { - w->disabled_widgets &= ~(1 << WIDX_SCALE_QUALITY); - w->disabled_widgets &= ~(1 << WIDX_SCALE_QUALITY_DROPDOWN); + w->disabled_widgets &= ~(1ULL << WIDX_SCALE_QUALITY); + w->disabled_widgets &= ~(1ULL << WIDX_SCALE_QUALITY_DROPDOWN); } // Disable changing VSync for Software engine, as we can't control its use of VSync if (gConfigGeneral.drawing_engine == DrawingEngine::Software) { - w->disabled_widgets |= (1 << WIDX_USE_VSYNC_CHECKBOX); + w->disabled_widgets |= (1ULL << WIDX_USE_VSYNC_CHECKBOX); } else { - w->disabled_widgets &= ~(1 << WIDX_USE_VSYNC_CHECKBOX); + w->disabled_widgets &= ~(1ULL << WIDX_USE_VSYNC_CHECKBOX); } WidgetSetCheckboxValue(w, WIDX_UNCAP_FPS_CHECKBOX, gConfigGeneral.uncap_fps); @@ -1057,11 +1058,11 @@ static void window_options_rendering_invalidate(rct_window* w) WidgetSetCheckboxValue(w, WIDX_ENABLE_LIGHT_FX_CHECKBOX, gConfigGeneral.enable_light_fx); if (gConfigGeneral.day_night_cycle && gConfigGeneral.drawing_engine == DrawingEngine::SoftwareWithHardwareDisplay) { - w->disabled_widgets &= ~(1 << WIDX_ENABLE_LIGHT_FX_CHECKBOX); + w->disabled_widgets &= ~(1ULL << WIDX_ENABLE_LIGHT_FX_CHECKBOX); } else { - w->disabled_widgets |= (1 << WIDX_ENABLE_LIGHT_FX_CHECKBOX); + w->disabled_widgets |= (1ULL << WIDX_ENABLE_LIGHT_FX_CHECKBOX); gConfigGeneral.enable_light_fx = false; } @@ -1069,11 +1070,11 @@ static void window_options_rendering_invalidate(rct_window* w) if (gConfigGeneral.day_night_cycle && gConfigGeneral.drawing_engine == DrawingEngine::SoftwareWithHardwareDisplay && gConfigGeneral.enable_light_fx) { - w->disabled_widgets &= ~(1 << WIDX_ENABLE_LIGHT_FX_FOR_VEHICLES_CHECKBOX); + w->disabled_widgets &= ~(1ULL << WIDX_ENABLE_LIGHT_FX_FOR_VEHICLES_CHECKBOX); } else { - w->disabled_widgets |= (1 << WIDX_ENABLE_LIGHT_FX_FOR_VEHICLES_CHECKBOX); + w->disabled_widgets |= (1ULL << WIDX_ENABLE_LIGHT_FX_FOR_VEHICLES_CHECKBOX); gConfigGeneral.enable_light_fx_for_vehicles = false; } @@ -1083,13 +1084,13 @@ static void window_options_rendering_invalidate(rct_window* w) if (!gConfigGeneral.render_weather_effects && !gConfigGeneral.render_weather_gloom) { WidgetSetCheckboxValue(w, WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX, true); - w->enabled_widgets &= ~(1 << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); - w->disabled_widgets |= (1 << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); + w->enabled_widgets &= ~(1ULL << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); + w->disabled_widgets |= (1ULL << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); } else { - w->enabled_widgets |= (1 << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); - w->disabled_widgets &= ~(1 << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); + w->enabled_widgets |= (1ULL << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); + w->disabled_widgets &= ~(1ULL << WIDX_DISABLE_LIGHTNING_EFFECT_CHECKBOX); } window_options_common_invalidate_after(w); @@ -1127,7 +1128,7 @@ static void window_options_culture_mousedown(rct_window* w, rct_widgetindex widg break; case WIDX_CURRENCY_DROPDOWN: { - uint32_t num_items = EnumValue(CurrencyType::Count) + 1; // All the currencies plus the separator + constexpr auto num_items = EnumValue(CurrencyType::Count) + 1; // All the currencies plus the separator size_t num_ordinary_currencies = EnumValue(CurrencyType::Count) - 1; // All the currencies except custom currency for (size_t i = 0; i < num_ordinary_currencies; i++) @@ -1793,6 +1794,14 @@ static void window_options_misc_mouseup(rct_window* w, rct_widgetindex widgetInd break; case WIDX_ALLOW_EARLY_COMPLETION: gConfigGeneral.allow_early_completion ^= 1; + // Only the server can control this setting and needs to send the + // current value of allow_early_completion to all clients + if (network_get_mode() == NETWORK_MODE_SERVER) + { + auto setAllowEarlyCompletionAction = ScenarioSetSettingAction( + ScenarioSetSetting::AllowEarlyCompletion, gConfigGeneral.allow_early_completion); + GameActions::Execute(&setAllowEarlyCompletionAction); + } config_save_default(); w->Invalidate(); break; @@ -1898,6 +1907,14 @@ static void window_options_misc_invalidate(rct_window* w) { w->disabled_widgets |= (1ULL << WIDX_REAL_NAME_CHECKBOX); window_options_misc_widgets[WIDX_REAL_NAME_CHECKBOX].tooltip = STR_OPTION_DISABLED_DURING_NETWORK_PLAY; + // Disable the use of the allow_early_completion option during network play on clients. + // This is to prevent confusion on clients because changing this setting during network play wouldn't change + // the way scenarios are completed during this network-session + if (network_get_mode() == NETWORK_MODE_CLIENT) + { + w->disabled_widgets |= (1ULL << WIDX_ALLOW_EARLY_COMPLETION); + window_options_misc_widgets[WIDX_ALLOW_EARLY_COMPLETION].tooltip = STR_OPTION_DISABLED_DURING_NETWORK_PLAY; + } } WidgetSetCheckboxValue(w, WIDX_REAL_NAME_CHECKBOX, gConfigGeneral.show_real_names_of_guests); @@ -1909,13 +1926,13 @@ static void window_options_misc_invalidate(rct_window* w) // Disable title sequence dropdown if set to random if (gConfigInterface.random_title_sequence) { - w->disabled_widgets |= (1 << WIDX_TITLE_SEQUENCE_DROPDOWN); - w->disabled_widgets |= (1 << WIDX_TITLE_SEQUENCE); + w->disabled_widgets |= (1ULL << WIDX_TITLE_SEQUENCE_DROPDOWN); + w->disabled_widgets |= (1ULL << WIDX_TITLE_SEQUENCE); } else { - w->disabled_widgets &= ~(1 << WIDX_TITLE_SEQUENCE_DROPDOWN); - w->disabled_widgets &= ~(1 << WIDX_TITLE_SEQUENCE); + w->disabled_widgets &= ~(1ULL << WIDX_TITLE_SEQUENCE_DROPDOWN); + w->disabled_widgets &= ~(1ULL << WIDX_TITLE_SEQUENCE); } if (gConfigGeneral.scenario_select_mode == SCENARIO_SELECT_MODE_DIFFICULTY) @@ -2307,7 +2324,7 @@ static void window_options_draw_tab_image(rct_drawpixelinfo* dpi, rct_window* w, } // Draw normal, enabled sprite. - gfx_draw_sprite(dpi, spriteIndex, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex), screenCoords); } else { diff --git a/src/openrct2-ui/windows/Park.cpp b/src/openrct2-ui/windows/Park.cpp index 42b175c1b9..d8af2509a8 100644 --- a/src/openrct2-ui/windows/Park.cpp +++ b/src/openrct2-ui/windows/Park.cpp @@ -281,77 +281,77 @@ static rct_window_event_list *window_park_page_events[] = { #pragma region Enabled widgets static uint32_t window_park_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) | - (1 << WIDX_OPEN_OR_CLOSE) | - (1 << WIDX_BUY_LAND_RIGHTS) | - (1 << WIDX_LOCATE) | - (1 << WIDX_RENAME) | - (1 << WIDX_CLOSE_LIGHT) | - (1 << WIDX_OPEN_LIGHT), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) | + (1ULL << WIDX_OPEN_OR_CLOSE) | + (1ULL << WIDX_BUY_LAND_RIGHTS) | + (1ULL << WIDX_LOCATE) | + (1ULL << WIDX_RENAME) | + (1ULL << WIDX_CLOSE_LIGHT) | + (1ULL << WIDX_OPEN_LIGHT), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) | - (1 << WIDX_INCREASE_PRICE) | - (1 << WIDX_DECREASE_PRICE), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) | + (1ULL << WIDX_INCREASE_PRICE) | + (1ULL << WIDX_DECREASE_PRICE), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) | - (1 << WIDX_ENTER_NAME), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) | + (1ULL << WIDX_ENTER_NAME), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_TAB_4) | - (1 << WIDX_TAB_5) | - (1 << WIDX_TAB_6) | - (1 << WIDX_TAB_7) + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_TAB_4) | + (1ULL << WIDX_TAB_5) | + (1ULL << WIDX_TAB_6) | + (1ULL << WIDX_TAB_7) }; static uint32_t window_park_page_hold_down_widgets[] = { @@ -359,8 +359,8 @@ static uint32_t window_park_page_hold_down_widgets[] = { 0, 0, - (1 << WIDX_INCREASE_PRICE) | - (1 << WIDX_DECREASE_PRICE), + (1ULL << WIDX_INCREASE_PRICE) | + (1ULL << WIDX_DECREASE_PRICE), 0, 0, @@ -432,7 +432,7 @@ static rct_window* window_park_open() static void window_park_set_disabled_tabs(rct_window* w) { // Disable price tab if money is disabled - w->disabled_widgets = (gParkFlags & PARK_FLAGS_NO_MONEY) ? (1 << WIDX_TAB_4) : 0; + w->disabled_widgets = (gParkFlags & PARK_FLAGS_NO_MONEY) ? (1ULL << WIDX_TAB_4) : 0; } static void window_park_prepare_window_title_text() @@ -642,9 +642,9 @@ static void window_park_entrance_invalidate(rct_window* w) // Only allow closing of park for guest / rating objective if (gScenarioObjective.Type == OBJECTIVE_GUESTS_AND_RATING) - w->disabled_widgets |= (1 << WIDX_OPEN_OR_CLOSE) | (1 << WIDX_CLOSE_LIGHT) | (1 << WIDX_OPEN_LIGHT); + w->disabled_widgets |= (1ULL << WIDX_OPEN_OR_CLOSE) | (1ULL << WIDX_CLOSE_LIGHT) | (1ULL << WIDX_OPEN_LIGHT); else - w->disabled_widgets &= ~((1 << WIDX_OPEN_OR_CLOSE) | (1 << WIDX_CLOSE_LIGHT) | (1 << WIDX_OPEN_LIGHT)); + w->disabled_widgets &= ~((1ULL << WIDX_OPEN_OR_CLOSE) | (1ULL << WIDX_CLOSE_LIGHT) | (1ULL << WIDX_OPEN_LIGHT)); // Only allow purchase of land when there is money if (gParkFlags & PARK_FLAGS_NO_MONEY) @@ -719,7 +719,7 @@ static void window_park_entrance_paint(rct_window* w, rct_drawpixelinfo* dpi) { window_draw_viewport(dpi, w); if (w->viewport->flags & VIEWPORT_FLAG_SOUND_ON) - gfx_draw_sprite(dpi, SPR_HEARING_VIEWPORT, w->windowPos + ScreenCoordsXY{ 2, 2 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_HEARING_VIEWPORT), w->windowPos + ScreenCoordsXY{ 2, 2 }); } // Draw park closed / open label @@ -914,7 +914,9 @@ static void window_park_rating_paint(rct_window* w, rct_drawpixelinfo* dpi) uint32_t axisValue = i * 200; auto ft = Formatter(); ft.Add(axisValue); - DrawTextBasic(dpi, screenPos + ScreenCoordsXY{ 10, 0 }, STR_GRAPH_AXIS_LABEL, ft, { TextAlignment::RIGHT }); + DrawTextBasic( + dpi, screenPos + ScreenCoordsXY{ 10, 0 }, STR_GRAPH_AXIS_LABEL, ft, + { FontSpriteBase::SMALL, TextAlignment::RIGHT }); gfx_fill_rect_inset( dpi, { screenPos + ScreenCoordsXY{ 15, 5 }, screenPos + ScreenCoordsXY{ w->width - 32, 5 } }, w->colours[2], INSET_RECT_FLAG_BORDER_INSET); @@ -924,7 +926,7 @@ static void window_park_rating_paint(rct_window* w, rct_drawpixelinfo* dpi) // Graph screenPos = w->windowPos + ScreenCoordsXY{ widget->left + 47, widget->top + 26 }; - Graph::Draw(dpi, gParkRatingHistory, 32, screenPos.x, screenPos.y); + Graph::Draw(dpi, gParkRatingHistory, 32, screenPos); } #pragma endregion @@ -1048,7 +1050,9 @@ static void window_park_guests_paint(rct_window* w, rct_drawpixelinfo* dpi) uint32_t axisValue = i * 1000; auto ft = Formatter(); ft.Add(axisValue); - DrawTextBasic(dpi, screenPos + ScreenCoordsXY{ 10, 0 }, STR_GRAPH_AXIS_LABEL, ft, { TextAlignment::RIGHT }); + DrawTextBasic( + dpi, screenPos + ScreenCoordsXY{ 10, 0 }, STR_GRAPH_AXIS_LABEL, ft, + { FontSpriteBase::SMALL, TextAlignment::RIGHT }); gfx_fill_rect_inset( dpi, { screenPos + ScreenCoordsXY{ 15, 5 }, screenPos + ScreenCoordsXY{ w->width - 32, 5 } }, w->colours[2], INSET_RECT_FLAG_BORDER_INSET); @@ -1058,7 +1062,7 @@ static void window_park_guests_paint(rct_window* w, rct_drawpixelinfo* dpi) // Graph screenPos = w->windowPos + ScreenCoordsXY{ widget->left + 47, widget->top + 26 }; - Graph::Draw(dpi, gGuestsInParkHistory, 32, screenPos.x, screenPos.y); + Graph::Draw(dpi, gGuestsInParkHistory, 32, screenPos); } #pragma endregion @@ -1618,7 +1622,7 @@ static void window_park_awards_paint(rct_window* w, rct_drawpixelinfo* dpi) if (award->Time == 0) continue; - gfx_draw_sprite(dpi, ParkAwards[award->Type].sprite, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(ParkAwards[award->Type].sprite), screenCoords); DrawTextWrapped(dpi, screenCoords + ScreenCoordsXY{ 34, 6 }, 180, ParkAwards[award->Type].text); screenCoords.y += 32; @@ -1694,35 +1698,35 @@ static void window_park_draw_tab_images(rct_drawpixelinfo* dpi, rct_window* w) int32_t sprite_idx; // Entrance tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_1))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_1))) gfx_draw_sprite( - dpi, SPR_TAB_PARK_ENTRANCE, - w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_1].left, w->widgets[WIDX_TAB_1].top }, 0); + dpi, ImageId(SPR_TAB_PARK_ENTRANCE), + w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_1].left, w->widgets[WIDX_TAB_1].top }); // Rating tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_2))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_2))) { sprite_idx = SPR_TAB_GRAPH_0; if (w->page == WINDOW_PARK_PAGE_RATING) sprite_idx += (w->frame_no / 8) % 8; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left, w->widgets[WIDX_TAB_2].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left, w->widgets[WIDX_TAB_2].top }); gfx_draw_sprite( - dpi, SPR_RATING_HIGH, - w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left + 7, w->widgets[WIDX_TAB_2].top + 1 }, 0); + dpi, ImageId(SPR_RATING_HIGH), + w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left + 7, w->widgets[WIDX_TAB_2].top + 1 }); gfx_draw_sprite( - dpi, SPR_RATING_LOW, - w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left + 16, w->widgets[WIDX_TAB_2].top + 12 }, 0); + dpi, ImageId(SPR_RATING_LOW), + w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left + 16, w->widgets[WIDX_TAB_2].top + 12 }); } // Guests tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_3))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_3))) { sprite_idx = SPR_TAB_GRAPH_0; if (w->page == WINDOW_PARK_PAGE_GUESTS) sprite_idx += (w->frame_no / 8) % 8; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_3].left, w->widgets[WIDX_TAB_3].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_3].left, w->widgets[WIDX_TAB_3].top }); sprite_idx = GetPeepAnimation(PeepSpriteType::Normal).base_image + 1; if (w->page == WINDOW_PARK_PAGE_GUESTS) @@ -1730,44 +1734,45 @@ static void window_park_draw_tab_images(rct_drawpixelinfo* dpi, rct_window* w) sprite_idx |= 0xA9E00000; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_3].midX(), w->widgets[WIDX_TAB_3].bottom - 9 }, - 0); + dpi, ImageId::FromUInt32(sprite_idx), + w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_3].midX(), w->widgets[WIDX_TAB_3].bottom - 9 }); } // Price tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_4))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_4))) { sprite_idx = SPR_TAB_ADMISSION_0; if (w->page == WINDOW_PARK_PAGE_PRICE) sprite_idx += (w->frame_no / 2) % 8; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_4].left, w->widgets[WIDX_TAB_4].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_4].left, w->widgets[WIDX_TAB_4].top }); } // Statistics tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_5))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_5))) { sprite_idx = SPR_TAB_STATS_0; if (w->page == WINDOW_PARK_PAGE_STATS) sprite_idx += (w->frame_no / 4) % 7; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_5].left, w->widgets[WIDX_TAB_5].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_5].left, w->widgets[WIDX_TAB_5].top }); } // Objective tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_6))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_6))) { sprite_idx = SPR_TAB_OBJECTIVE_0; if (w->page == WINDOW_PARK_PAGE_OBJECTIVE) sprite_idx += (w->frame_no / 4) % 16; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_6].left, w->widgets[WIDX_TAB_6].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_6].left, w->widgets[WIDX_TAB_6].top }); } // Awards tab - if (!(w->disabled_widgets & (1 << WIDX_TAB_7))) + if (!(w->disabled_widgets & (1ULL << WIDX_TAB_7))) gfx_draw_sprite( - dpi, SPR_TAB_AWARDS, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_7].left, w->widgets[WIDX_TAB_7].top }, 0); + dpi, ImageId(SPR_TAB_AWARDS), + w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_7].left, w->widgets[WIDX_TAB_7].top }); } #pragma endregion diff --git a/src/openrct2-ui/windows/Player.cpp b/src/openrct2-ui/windows/Player.cpp index c7c659ffbf..640d1a73f4 100644 --- a/src/openrct2-ui/windows/Player.cpp +++ b/src/openrct2-ui/windows/Player.cpp @@ -130,17 +130,17 @@ static void window_player_update_viewport(rct_window *w, bool scroll); static void window_player_update_title(rct_window* w); static uint32_t window_player_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_GROUP) | - (1 << WIDX_GROUP_DROPDOWN) | - (1 << WIDX_LOCATE) | - (1 << WIDX_KICK), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_GROUP) | + (1ULL << WIDX_GROUP_DROPDOWN) | + (1ULL << WIDX_LOCATE) | + (1ULL << WIDX_KICK), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) }; // clang-format on @@ -567,15 +567,13 @@ static void window_player_set_page(rct_window* w, int32_t page) static void window_player_draw_tab_images(rct_drawpixelinfo* dpi, rct_window* w) { rct_widget* widget; - int32_t imageId; // Tab 1 if (!WidgetIsDisabled(w, WIDX_TAB_1)) { widget = &w->widgets[WIDX_TAB_1]; auto screenCoords = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - imageId = SPR_PEEP_LARGE_FACE_NORMAL; - gfx_draw_sprite(dpi, imageId, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(SPR_PEEP_LARGE_FACE_NORMAL), screenCoords); } // Tab 2 @@ -583,14 +581,14 @@ static void window_player_draw_tab_images(rct_drawpixelinfo* dpi, rct_window* w) { widget = &w->widgets[WIDX_TAB_2]; auto screenCoords = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - imageId = SPR_TAB_FINANCES_SUMMARY_0; + int32_t imageId = SPR_TAB_FINANCES_SUMMARY_0; if (w->page == WINDOW_PLAYER_PAGE_STATISTICS) { imageId += (w->frame_no / 2) & 7; } - gfx_draw_sprite(dpi, imageId, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(imageId), screenCoords); } } diff --git a/src/openrct2-ui/windows/Research.cpp b/src/openrct2-ui/windows/Research.cpp index d24094bbd6..b3fea5afaf 100644 --- a/src/openrct2-ui/windows/Research.cpp +++ b/src/openrct2-ui/windows/Research.cpp @@ -141,23 +141,23 @@ static rct_window_event_list *window_research_page_events[] = { #pragma region Enabled widgets static uint32_t window_research_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_LAST_DEVELOPMENT_BUTTON), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_LAST_DEVELOPMENT_BUTTON), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_RESEARCH_FUNDING) | - (1 << WIDX_RESEARCH_FUNDING_DROPDOWN_BUTTON) | - (1 << WIDX_TRANSPORT_RIDES) | - (1 << WIDX_GENTLE_RIDES) | - (1 << WIDX_ROLLER_COASTERS) | - (1 << WIDX_THRILL_RIDES) | - (1 << WIDX_WATER_RIDES) | - (1 << WIDX_SHOPS_AND_STALLS) | - (1 << WIDX_SCENERY_AND_THEMING) + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_RESEARCH_FUNDING) | + (1ULL << WIDX_RESEARCH_FUNDING_DROPDOWN_BUTTON) | + (1ULL << WIDX_TRANSPORT_RIDES) | + (1ULL << WIDX_GENTLE_RIDES) | + (1ULL << WIDX_ROLLER_COASTERS) | + (1ULL << WIDX_THRILL_RIDES) | + (1ULL << WIDX_WATER_RIDES) | + (1ULL << WIDX_SHOPS_AND_STALLS) | + (1ULL << WIDX_SCENERY_AND_THEMING) }; #pragma endregion @@ -627,7 +627,8 @@ static void window_research_draw_tab_image(rct_drawpixelinfo* dpi, rct_window* w } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index dad2fb7e94..3403f0b486 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -50,11 +50,11 @@ #include #include #include +#include #include #include #include #include -#include #include using namespace OpenRCT2; @@ -942,7 +942,8 @@ static void window_ride_draw_tab_image(rct_drawpixelinfo* dpi, rct_window* w, in } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } @@ -978,8 +979,8 @@ static void window_ride_draw_tab_main(rct_drawpixelinfo* dpi, rct_window* w) break; } gfx_draw_sprite( - dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }, - 0); + dpi, ImageId(spriteIndex), + w->windowPos + ScreenCoordsXY{ w->widgets[widgetIndex].left, w->widgets[widgetIndex].top }); } } } @@ -1045,14 +1046,14 @@ static void window_ride_draw_tab_vehicle(rct_drawpixelinfo* dpi, rct_window* w) int32_t spriteIndex = 32; if (w->page == WINDOW_RIDE_PAGE_VEHICLE) spriteIndex += w->frame_no; - spriteIndex /= (rideVehicleEntry->flags & VEHICLE_ENTRY_FLAG_11) ? 4 : 2; + spriteIndex /= (rideVehicleEntry->flags & VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES) ? 4 : 2; spriteIndex &= rideVehicleEntry->rotation_frame_mask; spriteIndex *= rideVehicleEntry->base_num_frames; spriteIndex += rideVehicleEntry->base_image_id; spriteIndex |= (vehicleColour.additional_1 << 24) | (vehicleColour.main << 19); spriteIndex |= IMAGE_TYPE_REMAP_2_PLUS; - gfx_draw_sprite(&clipDPI, spriteIndex, screenCoords, vehicleColour.additional_2); + gfx_draw_sprite(&clipDPI, ImageId::FromUInt32(spriteIndex, vehicleColour.additional_2), screenCoords); } } @@ -1075,7 +1076,8 @@ static void window_ride_draw_tab_customer(rct_drawpixelinfo* dpi, rct_window* w) spriteIndex += 1; spriteIndex |= 0xA9E00000; - gfx_draw_sprite(dpi, spriteIndex, w->windowPos + ScreenCoordsXY{ widget->midX(), widget->bottom - 6 }, 0); + gfx_draw_sprite( + dpi, ImageId::FromUInt32(spriteIndex), w->windowPos + ScreenCoordsXY{ widget->midX(), widget->bottom - 6 }); } } @@ -1111,45 +1113,45 @@ static void window_ride_disable_tabs(rct_window* w) const auto& rtd = ride->GetRideTypeDescriptor(); if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_DATA_LOGGING)) - disabled_tabs |= (1 << WIDX_TAB_8); // 0x800 + disabled_tabs |= (1ULL << WIDX_TAB_8); // 0x800 if (ride->type == RIDE_TYPE_MINI_GOLF) - disabled_tabs |= (1 << WIDX_TAB_2 | 1 << WIDX_TAB_3 | 1 << WIDX_TAB_4); // 0xE0 + disabled_tabs |= (1ULL << WIDX_TAB_2 | 1ULL << WIDX_TAB_3 | 1ULL << WIDX_TAB_4); // 0xE0 if (rtd.HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) - disabled_tabs |= (1 << WIDX_TAB_2); // 0x20 + disabled_tabs |= (1ULL << WIDX_TAB_2); // 0x20 if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT)) { - disabled_tabs |= (1 << WIDX_TAB_5); // 0x100 + disabled_tabs |= (1ULL << WIDX_TAB_5); // 0x100 } if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_SHOP)) - disabled_tabs |= (1 << WIDX_TAB_3 | 1 << WIDX_TAB_4 | 1 << WIDX_TAB_7); // 0x4C0 + disabled_tabs |= (1ULL << WIDX_TAB_3 | 1ULL << WIDX_TAB_4 | 1ULL << WIDX_TAB_7); // 0x4C0 if (!rtd.HasFlag(RIDE_TYPE_FLAG_ALLOW_MUSIC)) { - disabled_tabs |= (1 << WIDX_TAB_6); // 0x200 + disabled_tabs |= (1ULL << WIDX_TAB_6); // 0x200 } if (ride->type == RIDE_TYPE_CASH_MACHINE || ride->type == RIDE_TYPE_FIRST_AID || (gParkFlags & PARK_FLAGS_NO_MONEY) != 0) - disabled_tabs |= (1 << WIDX_TAB_9); // 0x1000 + disabled_tabs |= (1ULL << WIDX_TAB_9); // 0x1000 if ((gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER) != 0) - disabled_tabs |= (1 << WIDX_TAB_4 | 1 << WIDX_TAB_6 | 1 << WIDX_TAB_9 | 1 << WIDX_TAB_10); // 0x3280 + disabled_tabs |= (1ULL << WIDX_TAB_4 | 1ULL << WIDX_TAB_6 | 1ULL << WIDX_TAB_9 | 1ULL << WIDX_TAB_10); // 0x3280 rct_ride_entry* rideEntry = get_ride_entry(ride->subtype); if (rideEntry == nullptr) { - disabled_tabs |= 1 << WIDX_TAB_2 | 1 << WIDX_TAB_3 | 1 << WIDX_TAB_4 | 1 << WIDX_TAB_5 | 1 << WIDX_TAB_6 - | 1 << WIDX_TAB_7 | 1 << WIDX_TAB_8 | 1 << WIDX_TAB_9 | 1 << WIDX_TAB_10; + disabled_tabs |= 1ULL << WIDX_TAB_2 | 1ULL << WIDX_TAB_3 | 1ULL << WIDX_TAB_4 | 1ULL << WIDX_TAB_5 | 1ULL << WIDX_TAB_6 + | 1ULL << WIDX_TAB_7 | 1ULL << WIDX_TAB_8 | 1ULL << WIDX_TAB_9 | 1ULL << WIDX_TAB_10; } else if ((rideEntry->flags & RIDE_ENTRY_FLAG_DISABLE_COLOUR_TAB) != 0) { - disabled_tabs |= (1 << WIDX_TAB_5); + disabled_tabs |= (1ULL << WIDX_TAB_5); } w->disabled_widgets = disabled_tabs; @@ -1419,7 +1421,7 @@ rct_window* window_ride_open_vehicle(Vehicle* vehicle) int32_t numPeepsLeft = vehicle->num_peeps; for (int32_t i = 0; i < 32 && numPeepsLeft > 0; i++) { - Peep* peep = GetEntity(vehicle->peep[i]); + Peep* peep = GetEntity(vehicle->peep[i]); if (peep == nullptr) continue; @@ -1756,21 +1758,21 @@ static void window_ride_main_mouseup(rct_window* w, rct_widgetindex widgetIndex) auto ride = get_ride(w->number); if (ride != nullptr) { - int32_t status; + RideStatus status; switch (widgetIndex) { default: case WIDX_CLOSE_LIGHT: - status = RIDE_STATUS_CLOSED; + status = RideStatus::Closed; break; case WIDX_SIMULATE_LIGHT: - status = RIDE_STATUS_SIMULATING; + status = RideStatus::Simulating; break; case WIDX_TEST_LIGHT: - status = RIDE_STATUS_TESTING; + status = RideStatus::Testing; break; case WIDX_OPEN_LIGHT: - status = RIDE_STATUS_OPEN; + status = RideStatus::Open; break; } ride_set_status(ride, status); @@ -1795,12 +1797,12 @@ static void window_ride_main_resize(rct_window* w) if (ride != nullptr) { #ifdef __SIMULATE_IN_RIDE_WINDOW__ - if (ride->SupportsStatus(RIDE_STATUS_SIMULATING)) + if (ride->SupportsStatus(RideStatus::Simulating)) { minHeight += 14; } #endif - if (ride->SupportsStatus(RIDE_STATUS_TESTING)) + if (ride->SupportsStatus(RideStatus::Testing)) { minHeight += 14; } @@ -1878,46 +1880,46 @@ static void window_ride_show_view_dropdown(rct_window* w, rct_widget* widget) Dropdown::SetChecked(w->ride.view, true); } -static uint8_t window_ride_get_next_default_status(const Ride* ride) +static RideStatus window_ride_get_next_default_status(const Ride* ride) { switch (ride->status) { default: - case RIDE_STATUS_CLOSED: + case RideStatus::Closed: if ((ride->lifecycle_flags & RIDE_LIFECYCLE_CRASHED) || (ride->lifecycle_flags & RIDE_LIFECYCLE_HAS_STALLED_VEHICLE)) { - return RIDE_STATUS_CLOSED; + return RideStatus::Closed; } - else if (ride->SupportsStatus(RIDE_STATUS_TESTING) && !(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) + else if (ride->SupportsStatus(RideStatus::Testing) && !(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) { - return RIDE_STATUS_TESTING; + return RideStatus::Testing; } else { - return RIDE_STATUS_OPEN; + return RideStatus::Open; } - case RIDE_STATUS_SIMULATING: - return RIDE_STATUS_TESTING; - case RIDE_STATUS_TESTING: - return (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) ? RIDE_STATUS_OPEN : RIDE_STATUS_CLOSED; - case RIDE_STATUS_OPEN: - return RIDE_STATUS_CLOSED; + case RideStatus::Simulating: + return RideStatus::Testing; + case RideStatus::Testing: + return (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) ? RideStatus::Open : RideStatus::Closed; + case RideStatus::Open: + return RideStatus::Closed; } } struct RideStatusDropdownInfo { struct Ride* Ride{}; - uint8_t CurrentStatus{}; - uint8_t DefaultStatus{}; + RideStatus CurrentStatus{}; + RideStatus DefaultStatus{}; int32_t NumItems{}; int32_t CheckedIndex = -1; int32_t DefaultIndex = -1; }; -static void window_ride_set_dropdown(RideStatusDropdownInfo& info, uint8_t status, rct_string_id text) +static void window_ride_set_dropdown(RideStatusDropdownInfo& info, RideStatus status, rct_string_id text) { if (info.Ride->SupportsStatus(status)) { @@ -1945,12 +1947,12 @@ static void window_ride_show_open_dropdown(rct_window* w, rct_widget* widget) info.CurrentStatus = info.Ride->status; info.DefaultStatus = window_ride_get_next_default_status(info.Ride); - window_ride_set_dropdown(info, RIDE_STATUS_CLOSED, STR_CLOSE_RIDE); + window_ride_set_dropdown(info, RideStatus::Closed, STR_CLOSE_RIDE); #ifdef __SIMULATE_IN_RIDE_WINDOW__ - window_ride_set_dropdown(info, RIDE_STATUS_SIMULATING, STR_SIMULATE_RIDE); + window_ride_set_dropdown(info, RideStatus::Simulating, STR_SIMULATE_RIDE); #endif - window_ride_set_dropdown(info, RIDE_STATUS_TESTING, STR_TEST_RIDE); - window_ride_set_dropdown(info, RIDE_STATUS_OPEN, STR_OPEN_RIDE); + window_ride_set_dropdown(info, RideStatus::Testing, STR_TEST_RIDE); + window_ride_set_dropdown(info, RideStatus::Open, STR_OPEN_RIDE); WindowDropdownShowText( { w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0, info.NumItems); Dropdown::SetChecked(info.CheckedIndex, true); @@ -2194,7 +2196,7 @@ static void window_ride_main_dropdown(rct_window* w, rct_widgetindex widgetIndex auto ride = get_ride(w->number); if (ride != nullptr) { - auto status = RIDE_STATUS_CLOSED; + auto status = RideStatus::Closed; if (dropdownIndex < 0) { dropdownIndex = gDropdownHighlightedIndex; @@ -2204,16 +2206,16 @@ static void window_ride_main_dropdown(rct_window* w, rct_widgetindex widgetIndex switch (gDropdownItemsArgs[dropdownIndex]) { case STR_CLOSE_RIDE: - status = RIDE_STATUS_CLOSED; + status = RideStatus::Closed; break; case STR_SIMULATE_RIDE: - status = RIDE_STATUS_SIMULATING; + status = RideStatus::Simulating; break; case STR_TEST_RIDE: - status = RIDE_STATUS_TESTING; + status = RideStatus::Testing; break; case STR_OPEN_RIDE: - status = RIDE_STATUS_OPEN; + status = RideStatus::Open; break; } } @@ -2327,9 +2329,9 @@ static void window_ride_main_invalidate(rct_window* w) if (ride == nullptr) return; - w->disabled_widgets &= ~((1 << WIDX_DEMOLISH) | (1 << WIDX_CONSTRUCTION)); + w->disabled_widgets &= ~((1ULL << WIDX_DEMOLISH) | (1ULL << WIDX_CONSTRUCTION)); if (ride->lifecycle_flags & (RIDE_LIFECYCLE_INDESTRUCTIBLE | RIDE_LIFECYCLE_INDESTRUCTIBLE_TRACK)) - w->disabled_widgets |= (1 << WIDX_DEMOLISH); + w->disabled_widgets |= (1ULL << WIDX_DEMOLISH); auto ft = Formatter::Common(); ride->FormatNameTo(ft); @@ -2340,25 +2342,25 @@ static void window_ride_main_invalidate(rct_window* w) SPR_TESTING, SPR_G2_SIMULATE, }; - window_ride_main_widgets[WIDX_OPEN].image = spriteIds[ride->status]; + window_ride_main_widgets[WIDX_OPEN].image = spriteIds[EnumValue(ride->status)]; #ifdef __SIMULATE_IN_RIDE_WINDOW__ - window_ride_main_widgets[WIDX_CLOSE_LIGHT].image = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RIDE_STATUS_CLOSED) * 2 + window_ride_main_widgets[WIDX_CLOSE_LIGHT].image = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RideStatus::Closed) * 2 + WidgetIsPressed(w, WIDX_CLOSE_LIGHT); window_ride_main_widgets[WIDX_SIMULATE_LIGHT].image = SPR_G2_RCT1_SIMULATE_BUTTON_0 - + (ride->status == RIDE_STATUS_SIMULATING) * 2 + WidgetIsPressed(w, WIDX_SIMULATE_LIGHT); - window_ride_main_widgets[WIDX_TEST_LIGHT].image = SPR_G2_RCT1_TEST_BUTTON_0 + (ride->status == RIDE_STATUS_TESTING) * 2 + + (ride->status == RideStatus::Simulating) * 2 + WidgetIsPressed(w, WIDX_SIMULATE_LIGHT); + window_ride_main_widgets[WIDX_TEST_LIGHT].image = SPR_G2_RCT1_TEST_BUTTON_0 + (ride->status == RideStatus::Testing) * 2 + WidgetIsPressed(w, WIDX_TEST_LIGHT); #else - window_ride_main_widgets[WIDX_CLOSE_LIGHT].image = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RIDE_STATUS_CLOSED) * 2 + window_ride_main_widgets[WIDX_CLOSE_LIGHT].image = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RideStatus::Closed) * 2 + WidgetIsPressed(w, WIDX_CLOSE_LIGHT); - auto baseSprite = ride->status == RIDE_STATUS_SIMULATING ? SPR_G2_RCT1_SIMULATE_BUTTON_0 : SPR_G2_RCT1_TEST_BUTTON_0; + auto baseSprite = ride->status == RideStatus::Simulating ? SPR_G2_RCT1_SIMULATE_BUTTON_0 : SPR_G2_RCT1_TEST_BUTTON_0; window_ride_main_widgets[WIDX_TEST_LIGHT].image = baseSprite - + (ride->status == RIDE_STATUS_TESTING || ride->status == RIDE_STATUS_SIMULATING) * 2 + + (ride->status == RideStatus::Testing || ride->status == RideStatus::Simulating) * 2 + WidgetIsPressed(w, WIDX_TEST_LIGHT); #endif - window_ride_main_widgets[WIDX_OPEN_LIGHT].image = SPR_G2_RCT1_OPEN_BUTTON_0 + (ride->status == RIDE_STATUS_OPEN) * 2 + window_ride_main_widgets[WIDX_OPEN_LIGHT].image = SPR_G2_RCT1_OPEN_BUTTON_0 + (ride->status == RideStatus::Open) * 2 + WidgetIsPressed(w, WIDX_OPEN_LIGHT); window_ride_anchor_border_widgets(w); @@ -2401,10 +2403,10 @@ static void window_ride_main_invalidate(rct_window* w) window_ride_main_widgets[WIDX_CLOSE_LIGHT].type = WindowWidgetType::ImgBtn; window_ride_main_widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::Empty; #ifdef __SIMULATE_IN_RIDE_WINDOW__ - if (ride->SupportsStatus(RIDE_STATUS_SIMULATING)) + if (ride->SupportsStatus(RideStatus::Simulating)) window_ride_main_widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::ImgBtn; #endif - window_ride_main_widgets[WIDX_TEST_LIGHT].type = ride->SupportsStatus(RIDE_STATUS_TESTING) ? WindowWidgetType::ImgBtn + window_ride_main_widgets[WIDX_TEST_LIGHT].type = ride->SupportsStatus(RideStatus::Testing) ? WindowWidgetType::ImgBtn : WindowWidgetType::Empty; window_ride_main_widgets[WIDX_OPEN_LIGHT].type = WindowWidgetType::ImgBtn; @@ -2538,7 +2540,7 @@ static rct_string_id window_ride_get_status_station(rct_window* w, Formatter& ft } while (count >= 0); // Entrance / exit - if (ride->status == RIDE_STATUS_CLOSED) + if (ride->status == RideStatus::Closed) { if (ride_get_entrance_location(ride, static_cast(stationIndex)).isNull()) stringId = STR_NO_ENTRANCE; @@ -2604,7 +2606,7 @@ static void window_ride_main_paint(rct_window* w, rct_drawpixelinfo* dpi) { window_draw_viewport(dpi, w); if (w->viewport->flags & VIEWPORT_FLAG_SOUND_ON) - gfx_draw_sprite(dpi, SPR_HEARING_VIEWPORT, w->windowPos + ScreenCoordsXY{ 2, 2 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_HEARING_VIEWPORT), w->windowPos + ScreenCoordsXY{ 2, 2 }); } // View dropdown @@ -2700,7 +2702,7 @@ static void window_ride_vehicle_mousedown(rct_window* w, rct_widgetindex widgetI window_ride_show_vehicle_type_dropdown(w, &w->widgets[widgetIndex]); break; case WIDX_VEHICLE_TRAINS_INCREASE: - if (ride->num_vehicles < 32) + if (ride->num_vehicles < MAX_VEHICLES_PER_RIDE) ride->SetNumVehicles(ride->num_vehicles + 1); break; case WIDX_VEHICLE_TRAINS_DECREASE: @@ -2708,7 +2710,7 @@ static void window_ride_vehicle_mousedown(rct_window* w, rct_widgetindex widgetI ride->SetNumVehicles(ride->num_vehicles - 1); break; case WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE: - if (ride->num_cars_per_train < 255) + if (ride->num_cars_per_train < MAX_CARS_PER_TRAIN) ride->SetNumCarsPerVehicle(ride->num_cars_per_train + 1); break; case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE: @@ -3021,7 +3023,7 @@ static void window_ride_vehicle_scrollpaint(rct_window* w, rct_drawpixelinfo* dp vehicle_colour vehicleColour = ride_get_vehicle_colour(ride, vehicleColourIndex); int32_t spriteIndex = 16; - if (rideVehicleEntry->flags & VEHICLE_ENTRY_FLAG_11) + if (rideVehicleEntry->flags & VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES) spriteIndex /= 2; spriteIndex &= rideVehicleEntry->rotation_frame_mask; @@ -3071,9 +3073,9 @@ static void window_ride_mode_tweak_increase(rct_window* w) const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; uint8_t maxValue = operatingSettings.MaxValue; - uint8_t minValue = gCheatsFastLiftHill ? 0 : operatingSettings.MinValue; + uint8_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; - if (gCheatsFastLiftHill) + if (gCheatsUnlockOperatingLimits) { maxValue = 255; } @@ -3096,8 +3098,8 @@ static void window_ride_mode_tweak_decrease(rct_window* w) const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; uint8_t maxValue = operatingSettings.MaxValue; - uint8_t minValue = gCheatsFastLiftHill ? 0 : operatingSettings.MinValue; - if (gCheatsFastLiftHill) + uint8_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; + if (gCheatsUnlockOperatingLimits) { maxValue = 255; } @@ -3251,15 +3253,15 @@ static void window_ride_operating_mousedown(rct_window* w, rct_widgetindex widge window_ride_mode_tweak_decrease(w); break; case WIDX_LIFT_HILL_SPEED_INCREASE: - upper_bound = gCheatsFastLiftHill ? 255 : ride->GetRideTypeDescriptor().LiftData.maximum_speed; - lower_bound = gCheatsFastLiftHill ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; + upper_bound = gCheatsUnlockOperatingLimits ? 255 : ride->GetRideTypeDescriptor().LiftData.maximum_speed; + lower_bound = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; set_operating_setting( w->number, RideSetSetting::LiftHillSpeed, std::clamp(ride->lift_hill_speed + 1, lower_bound, upper_bound)); break; case WIDX_LIFT_HILL_SPEED_DECREASE: - upper_bound = gCheatsFastLiftHill ? 255 : ride->GetRideTypeDescriptor().LiftData.maximum_speed; - lower_bound = gCheatsFastLiftHill ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; + upper_bound = gCheatsUnlockOperatingLimits ? 255 : ride->GetRideTypeDescriptor().LiftData.maximum_speed; + lower_bound = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; set_operating_setting( w->number, RideSetSetting::LiftHillSpeed, std::clamp(ride->lift_hill_speed - 1, lower_bound, upper_bound)); @@ -3299,13 +3301,13 @@ static void window_ride_operating_mousedown(rct_window* w, rct_widgetindex widge window_ride_load_dropdown(w, widget); break; case WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE: - upper_bound = gCheatsFastLiftHill ? 255 : 20; + upper_bound = gCheatsUnlockOperatingLimits ? 255 : MAX_CIRCUITS_PER_RIDE; lower_bound = 1; set_operating_setting( w->number, RideSetSetting::NumCircuits, std::clamp(ride->num_circuits + 1, lower_bound, upper_bound)); break; case WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE: - upper_bound = gCheatsFastLiftHill ? 255 : 20; + upper_bound = gCheatsUnlockOperatingLimits ? 255 : MAX_CIRCUITS_PER_RIDE; lower_bound = 1; set_operating_setting( w->number, RideSetSetting::NumCircuits, std::clamp(ride->num_circuits - 1, lower_bound, upper_bound)); @@ -3507,7 +3509,7 @@ static void window_ride_operating_invalidate(rct_window* w) ft.Add(ride->max_waiting_time); if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD) - w->pressed_widgets |= (1 << WIDX_LOAD_CHECKBOX); + w->pressed_widgets |= (1ULL << WIDX_LOAD_CHECKBOX); } else { @@ -3527,13 +3529,13 @@ static void window_ride_operating_invalidate(rct_window* w) } if (ride->depart_flags & RIDE_DEPART_LEAVE_WHEN_ANOTHER_ARRIVES) - w->pressed_widgets |= (1 << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); + w->pressed_widgets |= (1ULL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); if (ride->depart_flags & RIDE_DEPART_SYNCHRONISE_WITH_ADJACENT_STATIONS) - w->pressed_widgets |= (1 << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX); + w->pressed_widgets |= (1ULL << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX); if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH) - w->pressed_widgets |= (1 << WIDX_MINIMUM_LENGTH_CHECKBOX); + w->pressed_widgets |= (1ULL << WIDX_MINIMUM_LENGTH_CHECKBOX); if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_MAXIMUM_LENGTH) - w->pressed_widgets |= (1 << WIDX_MAXIMUM_LENGTH_CHECKBOX); + w->pressed_widgets |= (1ULL << WIDX_MAXIMUM_LENGTH_CHECKBOX); // Mode specific functionality ft.Rewind(); @@ -3610,7 +3612,7 @@ static void window_ride_operating_invalidate(rct_window* w) window_ride_operating_widgets[WIDX_MODE_TWEAK].text = format; window_ride_operating_widgets[WIDX_MODE_TWEAK_INCREASE].type = WindowWidgetType::Button; window_ride_operating_widgets[WIDX_MODE_TWEAK_DECREASE].type = WindowWidgetType::Button; - w->pressed_widgets &= ~(1 << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); + w->pressed_widgets &= ~(1ULL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); } else { @@ -3690,9 +3692,8 @@ static void window_ride_locate_mechanic(rct_window* w) * rct2: 0x006B7D08 */ static void window_ride_maintenance_draw_bar( - rct_window* w, rct_drawpixelinfo* dpi, int32_t x, int32_t y, int32_t value, int32_t colour) + rct_window* w, rct_drawpixelinfo* dpi, const ScreenCoordsXY& coords, int32_t value, int32_t colour) { - ScreenCoordsXY coords{ x, y }; gfx_fill_rect_inset(dpi, { coords, coords + ScreenCoordsXY{ 149, 8 } }, w->colours[1], INSET_RECT_F_30); if (colour & BAR_BLINK) { @@ -3920,7 +3921,7 @@ static void window_ride_maintenance_dropdown(rct_window* w, rct_widgetindex widg { context_show_error(STR_DEBUG_CANT_FORCE_BREAKDOWN, STR_DEBUG_RIDE_ALREADY_BROKEN, {}); } - else if (ride->status == RIDE_STATUS_CLOSED) + else if (ride->status == RideStatus::Closed) { context_show_error(STR_DEBUG_CANT_FORCE_BREAKDOWN, STR_DEBUG_RIDE_IS_CLOSED, {}); } @@ -4011,12 +4012,12 @@ static void window_ride_maintenance_invalidate(rct_window* w) if (ride->GetRideTypeDescriptor().AvailableBreakdowns == 0 || !(ride->lifecycle_flags & RIDE_LIFECYCLE_EVER_BEEN_OPENED)) { - w->disabled_widgets |= (1 << WIDX_REFURBISH_RIDE); + w->disabled_widgets |= (1ULL << WIDX_REFURBISH_RIDE); window_ride_maintenance_widgets[WIDX_REFURBISH_RIDE].tooltip = STR_CANT_REFURBISH_NOT_NEEDED; } else { - w->disabled_widgets &= ~(1 << WIDX_REFURBISH_RIDE); + w->disabled_widgets &= ~(1ULL << WIDX_REFURBISH_RIDE); window_ride_maintenance_widgets[WIDX_REFURBISH_RIDE].tooltip = STR_REFURBISH_RIDE_TIP; } } @@ -4052,12 +4053,12 @@ static void window_ride_maintenance_paint(rct_window* w, rct_drawpixelinfo* dpi) uint16_t reliability = ride->reliability_percentage; DrawTextBasic(dpi, screenCoords, STR_RELIABILITY_LABEL_1757, &reliability); window_ride_maintenance_draw_bar( - w, dpi, screenCoords.x + 103, screenCoords.y, std::max(10, reliability), COLOUR_BRIGHT_GREEN); + w, dpi, screenCoords + ScreenCoordsXY{ 103, 0 }, std::max(10, reliability), COLOUR_BRIGHT_GREEN); screenCoords.y += 11; uint16_t downTime = ride->downtime; DrawTextBasic(dpi, screenCoords, STR_DOWN_TIME_LABEL_1889, &downTime); - window_ride_maintenance_draw_bar(w, dpi, screenCoords.x + 103, screenCoords.y, downTime, COLOUR_BRIGHT_RED); + window_ride_maintenance_draw_bar(w, dpi, screenCoords + ScreenCoordsXY{ 103, 0 }, downTime, COLOUR_BRIGHT_RED); screenCoords.y += 26; // Last inspection @@ -4093,7 +4094,7 @@ static void window_ride_maintenance_paint(rct_window* w, rct_drawpixelinfo* dpi) { stringId = STR_NO_MECHANICS_ARE_HIRED_MESSAGE; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->IsMechanic()) { @@ -4786,8 +4787,7 @@ static void window_ride_colour_paint(rct_window* w, rct_drawpixelinfo* dpi) // Track if (ride->type == RIDE_TYPE_MAZE) { - int32_t spriteIndex = MazeOptions[trackColour.supports].sprite; - gfx_draw_sprite(dpi, spriteIndex, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(MazeOptions[trackColour.supports].sprite), screenCoords); } else { @@ -4795,16 +4795,14 @@ static void window_ride_colour_paint(rct_window* w, rct_drawpixelinfo* dpi) int32_t spriteIndex = typeDescriptor.ColourPreview.Track; if (spriteIndex != 0) { - spriteIndex |= SPRITE_ID_PALETTE_COLOUR_2(trackColour.main, trackColour.additional); - gfx_draw_sprite(dpi, spriteIndex, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex, trackColour.main, trackColour.additional), screenCoords); } // Supports spriteIndex = typeDescriptor.ColourPreview.Supports; if (spriteIndex != 0) { - spriteIndex |= SPRITE_ID_PALETTE_COLOUR_1(trackColour.supports); - gfx_draw_sprite(dpi, spriteIndex, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(spriteIndex, trackColour.supports), screenCoords); } } } @@ -4814,10 +4812,7 @@ static void window_ride_colour_paint(rct_window* w, rct_drawpixelinfo* dpi) + ScreenCoordsXY{ (widget->left + widget->right) / 2 - 8, (widget->bottom + widget->top) / 2 - 6 }; ShopItem shopItem = rideEntry->shop_item[1] == ShopItem::None ? rideEntry->shop_item[0] : rideEntry->shop_item[1]; - int32_t spriteIndex = GetShopItemDescriptor(shopItem).Image; - spriteIndex |= SPRITE_ID_PALETTE_COLOUR_1(ride->track_colour[0].main); - - gfx_draw_sprite(dpi, spriteIndex, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(GetShopItemDescriptor(shopItem).Image, ride->track_colour[0].main), screenCoords); } // Entrance preview @@ -4892,13 +4887,14 @@ static void window_ride_colour_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi screenCoords.y += rideVehicleEntry->tab_height; // Draw the coloured spinning vehicle - uint32_t spriteIndex = (rideVehicleEntry->flags & VEHICLE_ENTRY_FLAG_11) ? w->frame_no / 4 : w->frame_no / 2; + uint32_t spriteIndex = (rideVehicleEntry->flags & VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES) ? w->frame_no / 4 + : w->frame_no / 2; spriteIndex &= rideVehicleEntry->rotation_frame_mask; spriteIndex *= rideVehicleEntry->base_num_frames; spriteIndex += rideVehicleEntry->base_image_id; spriteIndex |= (vehicleColour.additional_1 << 24) | (vehicleColour.main << 19); spriteIndex |= IMAGE_TYPE_REMAP_2_PLUS; - gfx_draw_sprite(dpi, spriteIndex, screenCoords, vehicleColour.additional_2); + gfx_draw_sprite(dpi, ImageId::FromUInt32(spriteIndex, vehicleColour.additional_2), screenCoords); } #pragma endregion @@ -5035,7 +5031,7 @@ static void window_ride_music_mousedown(rct_window* w, rct_widgetindex widgetInd } } - if (musicObj->SupportsRideType(ride->type)) + if (gCheatsUnlockOperatingLimits || musicObj->SupportsRideType(ride->type)) { musicOrder.push_back(i); } @@ -5133,15 +5129,15 @@ static void window_ride_music_invalidate(rct_window* w) auto isMusicActivated = (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC) != 0; if (isMusicActivated) { - w->pressed_widgets |= (1 << WIDX_PLAY_MUSIC); - w->disabled_widgets &= ~(1 << WIDX_MUSIC); - w->disabled_widgets &= ~(1 << WIDX_MUSIC_DROPDOWN); + w->pressed_widgets |= (1ULL << WIDX_PLAY_MUSIC); + w->disabled_widgets &= ~(1ULL << WIDX_MUSIC); + w->disabled_widgets &= ~(1ULL << WIDX_MUSIC_DROPDOWN); } else { - w->pressed_widgets &= ~(1 << WIDX_PLAY_MUSIC); - w->disabled_widgets |= (1 << WIDX_MUSIC); - w->disabled_widgets |= (1 << WIDX_MUSIC_DROPDOWN); + w->pressed_widgets &= ~(1ULL << WIDX_PLAY_MUSIC); + w->disabled_widgets |= (1ULL << WIDX_MUSIC); + w->disabled_widgets |= (1ULL << WIDX_MUSIC_DROPDOWN); } window_ride_anchor_border_widgets(w); @@ -5418,7 +5414,7 @@ static void window_ride_measurements_tooldown(rct_window* w, rct_widgetindex wid _lastSceneryY = screenCoords.y; _collectTrackDesignScenery = true; // Default to true in case user does not select anything valid - auto flags = EnumsToFlags( + constexpr auto flags = EnumsToFlags( ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::Wall, ViewportInteractionItem::LargeScenery); auto info = get_map_coordinates_from_pos(screenCoords, flags); @@ -5508,12 +5504,12 @@ static void window_ride_measurements_invalidate(rct_window* w) window_ride_measurements_widgets[WIDX_CANCEL_DESIGN].type = WindowWidgetType::Empty; window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].type = WindowWidgetType::FlatBtn; - w->disabled_widgets |= (1 << WIDX_SAVE_TRACK_DESIGN); + w->disabled_widgets |= (1ULL << WIDX_SAVE_TRACK_DESIGN); if (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) { if (ride->excitement != RIDE_RATING_UNDEFINED) { - w->disabled_widgets &= ~(1 << WIDX_SAVE_TRACK_DESIGN); + w->disabled_widgets &= ~(1ULL << WIDX_SAVE_TRACK_DESIGN); window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].tooltip = STR_SAVE_TRACK_DESIGN; } } @@ -5963,10 +5959,10 @@ static void window_ride_graphs_invalidate(rct_window* w) ride->FormatNameTo(ft); // Set pressed graph button type - w->pressed_widgets &= ~(1 << WIDX_GRAPH_VELOCITY); - w->pressed_widgets &= ~(1 << WIDX_GRAPH_ALTITUDE); - w->pressed_widgets &= ~(1 << WIDX_GRAPH_VERTICAL); - w->pressed_widgets &= ~(1 << WIDX_GRAPH_LATERAL); + w->pressed_widgets &= ~(1ULL << WIDX_GRAPH_VELOCITY); + w->pressed_widgets &= ~(1ULL << WIDX_GRAPH_ALTITUDE); + w->pressed_widgets &= ~(1ULL << WIDX_GRAPH_VERTICAL); + w->pressed_widgets &= ~(1ULL << WIDX_GRAPH_LATERAL); w->pressed_widgets |= (1LL << (WIDX_GRAPH_VELOCITY + (w->list_information_type & 0xFF))); // Hide graph buttons that are not applicable @@ -6082,7 +6078,7 @@ static void window_ride_graphs_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi if (listType == GRAPH_ALTITUDE) scaled_yUnit /= 2; - DrawTextBasic(dpi, { w->scrolls[0].h_left + 1, y - 4 }, stringID, &scaled_yUnit); + DrawTextBasic(dpi, { w->scrolls[0].h_left + 1, y - 4 }, stringID, &scaled_yUnit, { FontSpriteBase::SMALL }); } // Time marks @@ -6090,7 +6086,7 @@ static void window_ride_graphs_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi for (int32_t x = 0; x < dpi->x + dpi->width; x += 80) { if (x + 80 >= dpi->x) - DrawTextBasic(dpi, { x + 2, 1 }, STR_RIDE_STATS_TIME, &time); + DrawTextBasic(dpi, { x + 2, 1 }, STR_RIDE_STATS_TIME, &time, { FontSpriteBase::SMALL }); time += 5; } @@ -6523,8 +6519,8 @@ static void window_ride_income_invalidate(rct_window* w) return; // Primary item - w->pressed_widgets &= ~(1 << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); - w->disabled_widgets &= ~(1 << WIDX_PRIMARY_PRICE); + w->pressed_widgets &= ~(1ULL << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); + w->disabled_widgets &= ~(1ULL << WIDX_PRIMARY_PRICE); window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].tooltip = STR_NONE; window_ride_income_widgets[WIDX_PRIMARY_PRICE].tooltip = STR_NONE; @@ -6532,7 +6528,7 @@ static void window_ride_income_invalidate(rct_window* w) // If ride prices are locked, do not allow setting the price, unless we're dealing with a shop or toilet. if (!park_ride_prices_unlocked() && rideEntry->shop_item[0] == ShopItem::None && ride->type != RIDE_TYPE_TOILETS) { - w->disabled_widgets |= (1 << WIDX_PRIMARY_PRICE); + w->disabled_widgets |= (1ULL << WIDX_PRIMARY_PRICE); window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].tooltip = STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP; window_ride_income_widgets[WIDX_PRIMARY_PRICE].tooltip = STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP; } @@ -6555,7 +6551,7 @@ static void window_ride_income_invalidate(rct_window* w) window_ride_income_widgets[WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Checkbox; if (shop_item_has_common_price(primaryItem)) - w->pressed_widgets |= (1 << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); + w->pressed_widgets |= (1ULL << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].text = GetShopItemDescriptor(primaryItem).Naming.PriceLabel; } @@ -6583,9 +6579,9 @@ static void window_ride_income_invalidate(rct_window* w) else { // Set same price throughout park checkbox - w->pressed_widgets &= ~(1 << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); + w->pressed_widgets &= ~(1ULL << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); if (shop_item_has_common_price(secondaryItem)) - w->pressed_widgets |= (1 << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); + w->pressed_widgets |= (1ULL << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); // Show widgets window_ride_income_widgets[WIDX_SECONDARY_PRICE_LABEL].type = WindowWidgetType::Label; diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 5f8fe6ab55..6b045d31ab 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -610,7 +611,7 @@ static void window_ride_construction_close(rct_window* w) if (!_autoOpeningShop) { _autoOpeningShop = true; - ride_set_status(ride, RIDE_STATUS_OPEN); + ride_set_status(ride, RideStatus::Open); _autoOpeningShop = false; } } @@ -650,7 +651,7 @@ static void window_ride_construction_mouseup(rct_window* w, rct_widgetindex widg case WIDX_CONSTRUCT: window_ride_construction_construct(w); // Force any footpath construction to recheck the area. - gFootpathProvisionalFlags |= PROVISIONAL_PATH_FLAG_2; + gProvisionalFootpath.Flags |= PROVISIONAL_PATH_FLAG_2; break; case WIDX_DEMOLISH: window_ride_construction_mouseup_demolish(w); @@ -669,7 +670,7 @@ static void window_ride_construction_mouseup(rct_window* w, rct_widgetindex widg auto ride = get_ride(_currentRideIndex); if (ride != nullptr) { - auto status = ride->status == RIDE_STATUS_SIMULATING ? RIDE_STATUS_CLOSED : RIDE_STATUS_SIMULATING; + auto status = ride->status == RideStatus::Simulating ? RideStatus::Closed : RideStatus::Simulating; ride_set_status(ride, status); } break; @@ -684,10 +685,10 @@ static void window_ride_construction_mouseup(rct_window* w, rct_widgetindex widg static void window_ride_construction_resize(rct_window* w) { window_ride_construction_update_enabled_track_pieces(); - w->enabled_widgets &= ~(1 << WIDX_CONSTRUCT); + w->enabled_widgets &= ~(1ULL << WIDX_CONSTRUCT); if (_rideConstructionState != RIDE_CONSTRUCTION_STATE_PLACE) { - w->enabled_widgets |= (1 << WIDX_CONSTRUCT); + w->enabled_widgets |= (1ULL << WIDX_CONSTRUCT); } auto ride = get_ride(_currentRideIndex); @@ -1981,7 +1982,7 @@ static void window_ride_construction_entrance_click(rct_window* w) else { gRideEntranceExitPlaceType = ENTRANCE_TYPE_RIDE_ENTRANCE; - gRideEntranceExitPlaceRideIndex = w->number & 0xFF; + gRideEntranceExitPlaceRideIndex = static_cast(w->number); gRideEntranceExitPlaceStationIndex = 0; input_set_flag(INPUT_FLAG_6, true); ride_construction_invalidate_current_track(); @@ -2036,7 +2037,7 @@ static void window_ride_construction_update(rct_window* w) // Close construction window if ride is not closed, // editing ride while open will cause many issues until properly handled - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { window_close(w); return; @@ -2269,10 +2270,10 @@ static void window_ride_construction_invalidate(rct_window* w) // Simulate button auto& simulateWidget = w->widgets[WIDX_SIMULATE]; simulateWidget.type = WindowWidgetType::Empty; - if (ride->SupportsStatus(RIDE_STATUS_SIMULATING)) + if (ride->SupportsStatus(RideStatus::Simulating)) { simulateWidget.type = WindowWidgetType::FlatBtn; - if (ride->status == RIDE_STATUS_SIMULATING) + if (ride->status == RideStatus::Simulating) { w->pressed_widgets |= (1ULL << WIDX_SIMULATE); } @@ -2446,7 +2447,7 @@ static void sub_6CBCE2( _tempTrackTileElement.AsTrack()->SetRideIndex(rideIndex); // Draw this map tile - sub_68B2B7(session, coords); + tile_element_paint_setup(session, coords, true); // Restore map elements map_set_tile_element(centreTileCoords, _backupTileElementArrays[0]); @@ -3114,7 +3115,7 @@ static void window_ride_construction_update_widgets(rct_window* w) window_ride_construction_widgets[WIDX_BANK_RIGHT].right = 83; window_ride_construction_widgets[WIDX_BANK_RIGHT].top = 139; window_ride_construction_widgets[WIDX_BANK_RIGHT].bottom = 148; - w->hold_down_widgets |= (1 << WIDX_BANK_STRAIGHT) | (1 << WIDX_BANK_RIGHT); + w->hold_down_widgets |= (1ULL << WIDX_BANK_STRAIGHT) | (1ULL << WIDX_BANK_RIGHT); } window_ride_construction_widgets[WIDX_BANKING_GROUPBOX].right = 162; @@ -3142,10 +3143,10 @@ static void window_ride_construction_update_widgets(rct_window* w) } uint64_t pressedWidgets = w->pressed_widgets - & ((1 << WIDX_BACKGROUND) | (1 << WIDX_TITLE) | (1 << WIDX_CLOSE) | (1 << WIDX_DIRECTION_GROUPBOX) - | (1 << WIDX_SLOPE_GROUPBOX) | (1 << WIDX_BANKING_GROUPBOX) | (1 << WIDX_CONSTRUCT) | (1 << WIDX_DEMOLISH) - | (1 << WIDX_PREVIOUS_SECTION) | (1 << WIDX_NEXT_SECTION) | (1 << WIDX_ENTRANCE_EXIT_GROUPBOX) | (1 << WIDX_ENTRANCE) - | (1 << WIDX_EXIT)); + & ((1ULL << WIDX_BACKGROUND) | (1ULL << WIDX_TITLE) | (1ULL << WIDX_CLOSE) | (1ULL << WIDX_DIRECTION_GROUPBOX) + | (1ULL << WIDX_SLOPE_GROUPBOX) | (1ULL << WIDX_BANKING_GROUPBOX) | (1ULL << WIDX_CONSTRUCT) + | (1ULL << WIDX_DEMOLISH) | (1ULL << WIDX_PREVIOUS_SECTION) | (1ULL << WIDX_NEXT_SECTION) + | (1ULL << WIDX_ENTRANCE_EXIT_GROUPBOX) | (1ULL << WIDX_ENTRANCE) | (1ULL << WIDX_EXIT)); window_ride_construction_widgets[WIDX_CONSTRUCT].type = WindowWidgetType::Empty; window_ride_construction_widgets[WIDX_DEMOLISH].type = WindowWidgetType::FlatBtn; @@ -3276,7 +3277,7 @@ static void window_ride_construction_update_widgets(rct_window* w) } if (_currentTrackLiftHill & CONSTRUCTION_LIFT_HILL_SELECTED) - pressedWidgets |= (1 << WIDX_CHAIN_LIFT); + pressedWidgets |= (1ULL << WIDX_CHAIN_LIFT); w->pressed_widgets = pressedWidgets; w->Invalidate(); @@ -4419,6 +4420,14 @@ void window_ride_construction_keyboard_shortcut_slope_down() switch (_currentTrackSlopeEnd) { + case TRACK_SLOPE_DOWN_60: + if (is_track_enabled(TRACK_SLOPE_VERTICAL) && !WidgetIsDisabled(w, WIDX_SLOPE_UP_STEEP) + && window_ride_construction_widgets[WIDX_SLOPE_UP_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_DROP + && w->widgets[WIDX_SLOPE_UP_STEEP].type != WindowWidgetType::Empty) + { + window_event_mouse_down_call(w, WIDX_SLOPE_UP_STEEP); + } + break; case TRACK_SLOPE_DOWN_25: if (!WidgetIsDisabled(w, WIDX_SLOPE_DOWN_STEEP) && w->widgets[WIDX_SLOPE_DOWN_STEEP].type != WindowWidgetType::Empty) @@ -4431,6 +4440,12 @@ void window_ride_construction_keyboard_shortcut_slope_down() { window_event_mouse_down_call(w, WIDX_SLOPE_DOWN); } + else if ( + is_track_enabled(TRACK_SLOPE_VERTICAL) + && window_ride_construction_widgets[WIDX_SLOPE_DOWN_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_RISE) + { + return; + } else if ( !WidgetIsDisabled(w, WIDX_SLOPE_DOWN_STEEP) && w->widgets[WIDX_SLOPE_DOWN_STEEP].type != WindowWidgetType::Empty) @@ -4475,6 +4490,12 @@ void window_ride_construction_keyboard_shortcut_slope_down() { window_event_mouse_down_call(w, WIDX_SLOPE_DOWN); } + else if ( + is_track_enabled(TRACK_SLOPE_VERTICAL) + && window_ride_construction_widgets[WIDX_SLOPE_DOWN_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_RISE) + { + return; + } else if ( !WidgetIsDisabled(w, WIDX_SLOPE_DOWN_STEEP) && w->widgets[WIDX_SLOPE_DOWN_STEEP].type != WindowWidgetType::Empty) @@ -4486,6 +4507,14 @@ void window_ride_construction_keyboard_shortcut_slope_down() return; } break; + case TRACK_SLOPE_UP_90: + if (is_track_enabled(TRACK_SLOPE_VERTICAL) && !WidgetIsDisabled(w, WIDX_SLOPE_UP_STEEP) + && window_ride_construction_widgets[WIDX_SLOPE_DOWN_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_RISE + && w->widgets[WIDX_SLOPE_DOWN_STEEP].type != WindowWidgetType::Empty) + { + window_event_mouse_down_call(w, WIDX_SLOPE_UP_STEEP); + } + break; default: return; } @@ -4501,6 +4530,14 @@ void window_ride_construction_keyboard_shortcut_slope_up() switch (_currentTrackSlopeEnd) { + case TRACK_SLOPE_UP_60: + if (is_track_enabled(TRACK_SLOPE_VERTICAL) && !WidgetIsDisabled(w, WIDX_SLOPE_DOWN_STEEP) + && window_ride_construction_widgets[WIDX_SLOPE_DOWN_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_RISE + && w->widgets[WIDX_SLOPE_DOWN_STEEP].type != WindowWidgetType::Empty) + { + window_event_mouse_down_call(w, WIDX_SLOPE_DOWN_STEEP); + } + break; case TRACK_SLOPE_UP_25: if (!WidgetIsDisabled(w, WIDX_SLOPE_UP_STEEP) && w->widgets[WIDX_SLOPE_UP_STEEP].type != WindowWidgetType::Empty) { @@ -4512,6 +4549,12 @@ void window_ride_construction_keyboard_shortcut_slope_up() { window_event_mouse_down_call(w, WIDX_SLOPE_UP); } + else if ( + is_track_enabled(TRACK_SLOPE_VERTICAL) + && window_ride_construction_widgets[WIDX_SLOPE_UP_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_DROP) + { + return; + } else if ( !WidgetIsDisabled(w, WIDX_SLOPE_UP_STEEP) && w->widgets[WIDX_SLOPE_UP_STEEP].type != WindowWidgetType::Empty) { @@ -4554,6 +4597,12 @@ void window_ride_construction_keyboard_shortcut_slope_up() { window_event_mouse_down_call(w, WIDX_SLOPE_UP); } + else if ( + is_track_enabled(TRACK_SLOPE_VERTICAL) + && window_ride_construction_widgets[WIDX_SLOPE_UP_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_DROP) + { + return; + } else if ( !WidgetIsDisabled(w, WIDX_SLOPE_UP_STEEP) && w->widgets[WIDX_SLOPE_UP_STEEP].type != WindowWidgetType::Empty) { @@ -4564,6 +4613,14 @@ void window_ride_construction_keyboard_shortcut_slope_up() return; } break; + case TRACK_SLOPE_DOWN_90: + if (is_track_enabled(TRACK_SLOPE_VERTICAL) && !WidgetIsDisabled(w, WIDX_SLOPE_DOWN_STEEP) + && window_ride_construction_widgets[WIDX_SLOPE_UP_STEEP].image == SPR_RIDE_CONSTRUCTION_VERTICAL_DROP + && w->widgets[WIDX_SLOPE_DOWN_STEEP].type != WindowWidgetType::Empty) + { + window_event_mouse_down_call(w, WIDX_SLOPE_DOWN_STEEP); + } + break; default: return; } diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index 0e21adc62b..e61ef1db77 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -189,12 +189,12 @@ rct_window* window_ride_list_open() { window = WindowCreateAutoPos(340, 240, &window_ride_list_events, WC_RIDE_LIST, WF_10 | WF_RESIZABLE); window->widgets = window_ride_list_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_OPEN_CLOSE_ALL) | (1 << WIDX_CURRENT_INFORMATION_TYPE) - | (1 << WIDX_INFORMATION_TYPE_DROPDOWN) | (1 << WIDX_SORT) | (1 << WIDX_TAB_1) | (1 << WIDX_TAB_2) - | (1 << WIDX_TAB_3) | (1 << WIDX_CLOSE_LIGHT) | (1 << WIDX_OPEN_LIGHT); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_OPEN_CLOSE_ALL) | (1ULL << WIDX_CURRENT_INFORMATION_TYPE) + | (1ULL << WIDX_INFORMATION_TYPE_DROPDOWN) | (1ULL << WIDX_SORT) | (1ULL << WIDX_TAB_1) | (1ULL << WIDX_TAB_2) + | (1ULL << WIDX_TAB_3) | (1ULL << WIDX_CLOSE_LIGHT) | (1ULL << WIDX_OPEN_LIGHT); if (network_get_mode() != NETWORK_MODE_CLIENT) { - window->enabled_widgets |= (1 << WIDX_QUICK_DEMOLISH); + window->enabled_widgets |= (1ULL << WIDX_QUICK_DEMOLISH); } WindowInitScrollWidgets(window); window->page = PAGE_RIDES; @@ -525,10 +525,10 @@ static void window_ride_list_invalidate(rct_window* w) { auto c = static_cast(w->page); allClosed = std::none_of(rideManager.begin(), rideManager.end(), [c](const Ride& ride) { - return ride.GetClassification() == c && ride.status == RIDE_STATUS_OPEN; + return ride.GetClassification() == c && ride.status == RideStatus::Open; }); allOpen = std::none_of(rideManager.begin(), rideManager.end(), [c](const Ride& ride) { - return ride.GetClassification() == c && ride.status != RIDE_STATUS_OPEN; + return ride.GetClassification() == c && ride.status != RideStatus::Open; }); } @@ -764,21 +764,21 @@ static void window_ride_list_draw_tab_images(rct_drawpixelinfo* dpi, rct_window* if (w->page == PAGE_RIDES) sprite_idx += w->frame_no / 4; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_1].left, w->widgets[WIDX_TAB_1].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_1].left, w->widgets[WIDX_TAB_1].top }); // Shops and stalls tab sprite_idx = SPR_TAB_SHOPS_AND_STALLS_0; if (w->page == PAGE_SHOPS_AND_STALLS) sprite_idx += w->frame_no / 4; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left, w->widgets[WIDX_TAB_2].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_2].left, w->widgets[WIDX_TAB_2].top }); // Information kiosks and facilities tab sprite_idx = SPR_TAB_KIOSKS_AND_FACILITIES_0; if (w->page == PAGE_KIOSKS_AND_FACILITIES) sprite_idx += (w->frame_no / 4) % 8; gfx_draw_sprite( - dpi, sprite_idx, w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_3].left, w->widgets[WIDX_TAB_3].top }, 0); + dpi, ImageId(sprite_idx), w->windowPos + ScreenCoordsXY{ w->widgets[WIDX_TAB_3].left, w->widgets[WIDX_TAB_3].top }); } /** @@ -792,7 +792,7 @@ void window_ride_list_refresh_list(rct_window* w) { auto ride = &ridec; if (ride->GetClassification() != static_cast(w->page) - || (ride->status == RIDE_STATUS_CLOSED && !ride_has_any_track_elements(ride))) + || (ride->status == RideStatus::Closed && !ride_has_any_track_elements(ride))) continue; if (ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_LIST) @@ -1017,9 +1017,9 @@ static void window_ride_list_close_all(rct_window* w) { for (auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_CLOSED && ride.GetClassification() == static_cast(w->page)) + if (ride.status != RideStatus::Closed && ride.GetClassification() == static_cast(w->page)) { - ride_set_status(&ride, RIDE_STATUS_CLOSED); + ride_set_status(&ride, RideStatus::Closed); } } } @@ -1028,9 +1028,9 @@ static void window_ride_list_open_all(rct_window* w) { for (auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_OPEN && ride.GetClassification() == static_cast(w->page)) + if (ride.status != RideStatus::Open && ride.GetClassification() == static_cast(w->page)) { - ride_set_status(&ride, RIDE_STATUS_OPEN); + ride_set_status(&ride, RideStatus::Open); } } } diff --git a/src/openrct2-ui/windows/SavePrompt.cpp b/src/openrct2-ui/windows/SavePrompt.cpp index b013d40d4b..cb320b9d40 100644 --- a/src/openrct2-ui/windows/SavePrompt.cpp +++ b/src/openrct2-ui/windows/SavePrompt.cpp @@ -136,7 +136,7 @@ rct_window* window_save_prompt_open() else { widgets = window_save_prompt_widgets; - enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_SAVE) | (1 << WIDX_DONT_SAVE) | (1 << WIDX_CANCEL); + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_SAVE) | (1ULL << WIDX_DONT_SAVE) | (1ULL << WIDX_CANCEL); width = WW_SAVE; height = WH_SAVE; } diff --git a/src/openrct2-ui/windows/ScenarioSelect.cpp b/src/openrct2-ui/windows/ScenarioSelect.cpp index b9850eb422..2de6ea6186 100644 --- a/src/openrct2-ui/windows/ScenarioSelect.cpp +++ b/src/openrct2-ui/windows/ScenarioSelect.cpp @@ -182,8 +182,8 @@ rct_window* window_scenarioselect_open(std::function cal windowWidth, windowHeight, &window_scenarioselect_events, WC_SCENARIO_SELECT, WF_10 | (titleEditor ? WF_STICK_TO_FRONT : 0)); window->widgets = window_scenarioselect_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4) - | (1 << WIDX_TAB5) | (1 << WIDX_TAB6) | (1 << WIDX_TAB7) | (1 << WIDX_TAB8); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) + | (1ULL << WIDX_TAB4) | (1ULL << WIDX_TAB5) | (1ULL << WIDX_TAB6) | (1ULL << WIDX_TAB7) | (1ULL << WIDX_TAB8); window_scenarioselect_init_tabs(window); initialise_list_items(window); @@ -409,8 +409,8 @@ static void window_scenarioselect_scrollmouseover(rct_window* w, int32_t scrollI static void window_scenarioselect_invalidate(rct_window* w) { w->pressed_widgets &= ~( - (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4) | (1 << WIDX_TAB5) - | (1 << WIDX_TAB6) | (1 << WIDX_TAB7) | (1 << WIDX_TAB8)); + (1ULL << WIDX_CLOSE) | (1ULL << WIDX_TAB1) | (1ULL << WIDX_TAB2) | (1ULL << WIDX_TAB3) | (1ULL << WIDX_TAB4) + | (1ULL << WIDX_TAB5) | (1ULL << WIDX_TAB6) | (1ULL << WIDX_TAB7) | (1ULL << WIDX_TAB8)); w->pressed_widgets |= 1LL << (w->selected_tab + WIDX_TAB1); @@ -614,7 +614,7 @@ static void window_scenarioselect_scrollpaint(rct_window* w, rct_drawpixelinfo* if (isCompleted) { // Draw completion tick - gfx_draw_sprite(dpi, SPR_MENU_CHECKMARK, { wide ? 500 : 395, y + 1 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_MENU_CHECKMARK), { wide ? 500 : 395, y + 1 }); // Draw completion score const utf8* completedByName = "???"; @@ -628,7 +628,8 @@ static void window_scenarioselect_scrollpaint(rct_window* w, rct_drawpixelinfo* ft.Add(STR_STRING); ft.Add(buffer); DrawTextBasic( - dpi, { wide ? 270 : 210, y + scenarioTitleHeight + 1 }, format, ft, { TextAlignment::CENTRE }); + dpi, { wide ? 270 : 210, y + scenarioTitleHeight + 1 }, format, ft, + { FontSpriteBase::SMALL, TextAlignment::CENTRE }); } y += scenarioItemHeight; diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index e7cdd31ead..1112dd9286 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -184,8 +184,7 @@ static ScenerySelection window_scenery_tab_entries[SCENERY_WINDOW_TABS][SCENERY_ * Was part of 0x006DFA00 * The same code repeated five times for every scenery entry type */ -static void init_scenery_entry( - rct_scenery_entry* sceneryEntry, const ScenerySelection& selection, ObjectEntryIndex sceneryTabId) +static void init_scenery_entry(const ScenerySelection& selection, ObjectEntryIndex sceneryTabId) { Guard::ArgumentInRange(selection.EntryIndex, 0, WINDOW_SCENERY_TAB_SELECTION_UNDEFINED); if (scenery_is_invented(selection) || gCheatsIgnoreResearchStatus) @@ -267,51 +266,51 @@ void window_scenery_init() // small scenery for (ObjectEntryIndex sceneryId = 0; sceneryId < MAX_SMALL_SCENERY_OBJECTS; sceneryId++) { - rct_scenery_entry* sceneryEntry = get_small_scenery_entry(sceneryId); + auto* sceneryEntry = get_small_scenery_entry(sceneryId); if (sceneryEntry == nullptr) continue; - init_scenery_entry(sceneryEntry, { SCENERY_TYPE_SMALL, sceneryId }, sceneryEntry->small_scenery.scenery_tab_id); + init_scenery_entry({ SCENERY_TYPE_SMALL, sceneryId }, sceneryEntry->scenery_tab_id); } // large scenery for (ObjectEntryIndex sceneryId = 0; sceneryId < MAX_LARGE_SCENERY_OBJECTS; sceneryId++) { - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(sceneryId); + auto* sceneryEntry = get_large_scenery_entry(sceneryId); if (sceneryEntry == nullptr) continue; - init_scenery_entry(sceneryEntry, { SCENERY_TYPE_LARGE, sceneryId }, sceneryEntry->large_scenery.scenery_tab_id); + init_scenery_entry({ SCENERY_TYPE_LARGE, sceneryId }, sceneryEntry->scenery_tab_id); } // walls for (ObjectEntryIndex sceneryId = 0; sceneryId < MAX_WALL_SCENERY_OBJECTS; sceneryId++) { - rct_scenery_entry* sceneryEntry = get_wall_entry(sceneryId); + auto* sceneryEntry = get_wall_entry(sceneryId); if (sceneryEntry == nullptr) continue; - init_scenery_entry(sceneryEntry, { SCENERY_TYPE_WALL, sceneryId }, sceneryEntry->wall.scenery_tab_id); + init_scenery_entry({ SCENERY_TYPE_WALL, sceneryId }, sceneryEntry->scenery_tab_id); } // banners for (ObjectEntryIndex sceneryId = 0; sceneryId < MAX_BANNER_OBJECTS; sceneryId++) { - rct_scenery_entry* sceneryEntry = get_banner_entry(sceneryId); - if (sceneryEntry == nullptr) + auto* bannerEntry = get_banner_entry(sceneryId); + if (bannerEntry == nullptr) continue; - init_scenery_entry(sceneryEntry, { SCENERY_TYPE_BANNER, sceneryId }, sceneryEntry->banner.scenery_tab_id); + init_scenery_entry({ SCENERY_TYPE_BANNER, sceneryId }, bannerEntry->scenery_tab_id); } // path bits for (ObjectEntryIndex sceneryId = 0; sceneryId < MAX_PATH_ADDITION_OBJECTS; sceneryId++) { - rct_scenery_entry* sceneryEntry = get_footpath_item_entry(sceneryId); - if (sceneryEntry == nullptr) + auto* pathBitEntry = get_footpath_item_entry(sceneryId); + if (pathBitEntry == nullptr) continue; - init_scenery_entry(sceneryEntry, { SCENERY_TYPE_PATH_ITEM, sceneryId }, sceneryEntry->path_bit.scenery_tab_id); + init_scenery_entry({ SCENERY_TYPE_PATH_ITEM, sceneryId }, pathBitEntry->scenery_tab_id); } for (rct_widgetindex widgetIndex = WIDX_SCENERY_TAB_1; widgetIndex < WIDX_SCENERY_LIST; widgetIndex++) @@ -441,15 +440,17 @@ rct_window* window_scenery_open() &window_scenery_events, WC_SCENERY, WF_NO_SCROLLING); window->widgets = window_scenery_widgets; - window->enabled_widgets = (1 << WIDX_SCENERY_CLOSE) | (1 << WIDX_SCENERY_ROTATE_OBJECTS_BUTTON) | (1 << WIDX_SCENERY_TAB_1) - | (1 << WIDX_SCENERY_TAB_2) | (1 << WIDX_SCENERY_TAB_3) | (1 << WIDX_SCENERY_TAB_4) | (1 << WIDX_SCENERY_TAB_5) - | (1 << WIDX_SCENERY_TAB_6) | (1 << WIDX_SCENERY_TAB_7) | (1 << WIDX_SCENERY_TAB_8) | (1 << WIDX_SCENERY_TAB_9) - | (1 << WIDX_SCENERY_TAB_10) | (1 << WIDX_SCENERY_TAB_11) | (1 << WIDX_SCENERY_TAB_12) | (1 << WIDX_SCENERY_TAB_13) - | (1 << WIDX_SCENERY_TAB_14) | (1 << WIDX_SCENERY_TAB_15) | (1 << WIDX_SCENERY_TAB_16) | (1 << WIDX_SCENERY_TAB_17) - | (1 << WIDX_SCENERY_TAB_18) | (1 << WIDX_SCENERY_TAB_19) | (1 << WIDX_SCENERY_TAB_20) - | (1 << WIDX_SCENERY_PRIMARY_COLOUR_BUTTON) | (1 << WIDX_SCENERY_SECONDARY_COLOUR_BUTTON) - | (1 << WIDX_SCENERY_REPAINT_SCENERY_BUTTON) | (1 << WIDX_SCENERY_TERTIARY_COLOUR_BUTTON) - | (1 << WIDX_SCENERY_EYEDROPPER_BUTTON) | (1ULL << WIDX_SCENERY_BUILD_CLUSTER_BUTTON); + window->enabled_widgets = (1ULL << WIDX_SCENERY_CLOSE) | (1ULL << WIDX_SCENERY_ROTATE_OBJECTS_BUTTON) + | (1ULL << WIDX_SCENERY_TAB_1) | (1ULL << WIDX_SCENERY_TAB_2) | (1ULL << WIDX_SCENERY_TAB_3) + | (1ULL << WIDX_SCENERY_TAB_4) | (1ULL << WIDX_SCENERY_TAB_5) | (1ULL << WIDX_SCENERY_TAB_6) + | (1ULL << WIDX_SCENERY_TAB_7) | (1ULL << WIDX_SCENERY_TAB_8) | (1ULL << WIDX_SCENERY_TAB_9) + | (1ULL << WIDX_SCENERY_TAB_10) | (1ULL << WIDX_SCENERY_TAB_11) | (1ULL << WIDX_SCENERY_TAB_12) + | (1ULL << WIDX_SCENERY_TAB_13) | (1ULL << WIDX_SCENERY_TAB_14) | (1ULL << WIDX_SCENERY_TAB_15) + | (1ULL << WIDX_SCENERY_TAB_16) | (1ULL << WIDX_SCENERY_TAB_17) | (1ULL << WIDX_SCENERY_TAB_18) + | (1ULL << WIDX_SCENERY_TAB_19) | (1ULL << WIDX_SCENERY_TAB_20) | (1ULL << WIDX_SCENERY_PRIMARY_COLOUR_BUTTON) + | (1ULL << WIDX_SCENERY_SECONDARY_COLOUR_BUTTON) | (1ULL << WIDX_SCENERY_REPAINT_SCENERY_BUTTON) + | (1ULL << WIDX_SCENERY_TERTIARY_COLOUR_BUTTON) | (1ULL << WIDX_SCENERY_EYEDROPPER_BUTTON) + | (1ULL << WIDX_SCENERY_BUILD_CLUSTER_BUTTON); WindowInitScrollWidgets(window); window_scenery_update_scroll(window); @@ -820,21 +821,19 @@ static void window_scenery_update(rct_window* w) } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_LARGE) { - gCurrentToolId = static_cast( - get_large_scenery_entry(tabSelectedScenery.EntryIndex)->large_scenery.tool_id); + gCurrentToolId = static_cast(get_large_scenery_entry(tabSelectedScenery.EntryIndex)->tool_id); } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_WALL) { - gCurrentToolId = static_cast(get_wall_entry(tabSelectedScenery.EntryIndex)->wall.tool_id); + gCurrentToolId = static_cast(get_wall_entry(tabSelectedScenery.EntryIndex)->tool_id); } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_PATH_ITEM) { // path bit - gCurrentToolId = static_cast(get_footpath_item_entry(tabSelectedScenery.EntryIndex)->path_bit.tool_id); + gCurrentToolId = static_cast(get_footpath_item_entry(tabSelectedScenery.EntryIndex)->tool_id); } else { // small scenery - gCurrentToolId = static_cast( - get_small_scenery_entry(tabSelectedScenery.EntryIndex)->small_scenery.tool_id); + gCurrentToolId = static_cast(get_small_scenery_entry(tabSelectedScenery.EntryIndex)->tool_id); } } } @@ -964,9 +963,9 @@ void window_scenery_invalidate(rct_window* w) w->pressed_widgets = 0; w->pressed_widgets |= 1ULL << (tabIndex + WIDX_SCENERY_TAB_1); if (gWindowSceneryPaintEnabled == 1) - w->pressed_widgets |= (1 << WIDX_SCENERY_REPAINT_SCENERY_BUTTON); + w->pressed_widgets |= (1ULL << WIDX_SCENERY_REPAINT_SCENERY_BUTTON); if (gWindowSceneryEyedropperEnabled) - w->pressed_widgets |= (1 << WIDX_SCENERY_EYEDROPPER_BUTTON); + w->pressed_widgets |= (1ULL << WIDX_SCENERY_EYEDROPPER_BUTTON); if (gWindowSceneryScatterEnabled) w->pressed_widgets |= (1ULL << WIDX_SCENERY_BUILD_CLUSTER_BUTTON); @@ -989,7 +988,7 @@ void window_scenery_invalidate(rct_window* w) window_scenery_widgets[WIDX_SCENERY_BUILD_CLUSTER_BUTTON].type = WindowWidgetType::FlatBtn; } - rct_scenery_entry* sceneryEntry = get_small_scenery_entry(tabSelectedScenery.EntryIndex); + auto* sceneryEntry = get_small_scenery_entry(tabSelectedScenery.EntryIndex); if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_ROTATABLE)) { window_scenery_widgets[WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type = WindowWidgetType::FlatBtn; @@ -1022,46 +1021,44 @@ void window_scenery_invalidate(rct_window* w) } else if (!tabSelectedScenery.IsUndefined()) { - rct_scenery_entry* sceneryEntry = nullptr; - if (tabSelectedScenery.SceneryType == SCENERY_TYPE_BANNER) { - sceneryEntry = get_banner_entry(tabSelectedScenery.EntryIndex); - if (sceneryEntry->banner.flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR) + auto* bannerEntry = get_banner_entry(tabSelectedScenery.EntryIndex); + if (bannerEntry->flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR) { window_scenery_widgets[WIDX_SCENERY_PRIMARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn; } } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_LARGE) { - sceneryEntry = get_large_scenery_entry(tabSelectedScenery.EntryIndex); + auto* sceneryEntry = get_large_scenery_entry(tabSelectedScenery.EntryIndex); - if (sceneryEntry->large_scenery.flags & LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR) + if (sceneryEntry->flags & LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR) window_scenery_widgets[WIDX_SCENERY_PRIMARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn; - if (sceneryEntry->large_scenery.flags & LARGE_SCENERY_FLAG_HAS_SECONDARY_COLOUR) + if (sceneryEntry->flags & LARGE_SCENERY_FLAG_HAS_SECONDARY_COLOUR) window_scenery_widgets[WIDX_SCENERY_SECONDARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn; } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_WALL) { - sceneryEntry = get_wall_entry(tabSelectedScenery.EntryIndex); - if (sceneryEntry->wall.flags & (WALL_SCENERY_HAS_PRIMARY_COLOUR | WALL_SCENERY_HAS_GLASS)) + auto* wallEntry = get_wall_entry(tabSelectedScenery.EntryIndex); + if (wallEntry->flags & (WALL_SCENERY_HAS_PRIMARY_COLOUR | WALL_SCENERY_HAS_GLASS)) { window_scenery_widgets[WIDX_SCENERY_PRIMARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) { window_scenery_widgets[WIDX_SCENERY_SECONDARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn; - if (sceneryEntry->wall.flags2 & WALL_SCENERY_2_NO_SELECT_PRIMARY_COLOUR) + if (wallEntry->flags2 & WALL_SCENERY_2_NO_SELECT_PRIMARY_COLOUR) window_scenery_widgets[WIDX_SCENERY_PRIMARY_COLOUR_BUTTON].type = WindowWidgetType::Empty; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_TERNARY_COLOUR) window_scenery_widgets[WIDX_SCENERY_TERTIARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn; } } } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_SMALL) { - sceneryEntry = get_small_scenery_entry(tabSelectedScenery.EntryIndex); + auto* sceneryEntry = get_small_scenery_entry(tabSelectedScenery.EntryIndex); if (scenery_small_entry_has_flag( sceneryEntry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR | SMALL_SCENERY_FLAG_HAS_GLASS)) @@ -1134,30 +1131,44 @@ void window_scenery_paint(rct_window* w, rct_drawpixelinfo* dpi) } uint32_t price = 0; - - rct_scenery_entry* sceneryEntry = nullptr; + rct_string_id name = STR_UNKNOWN_OBJECT_TYPE; switch (selectedSceneryEntry.SceneryType) { case SCENERY_TYPE_SMALL: - sceneryEntry = get_small_scenery_entry(selectedSceneryEntry.EntryIndex); - price = sceneryEntry->small_scenery.price * 10; + { + auto* sceneryEntry = get_small_scenery_entry(selectedSceneryEntry.EntryIndex); + price = sceneryEntry->price * 10; + name = sceneryEntry->name; break; + } case SCENERY_TYPE_PATH_ITEM: - sceneryEntry = get_footpath_item_entry(selectedSceneryEntry.EntryIndex); - price = sceneryEntry->path_bit.price; + { + auto* pathBitEntry = get_footpath_item_entry(selectedSceneryEntry.EntryIndex); + price = pathBitEntry->price; + name = pathBitEntry->name; break; + } case SCENERY_TYPE_WALL: - sceneryEntry = get_wall_entry(selectedSceneryEntry.EntryIndex); - price = sceneryEntry->wall.price; + { + auto* wallEntry = get_wall_entry(selectedSceneryEntry.EntryIndex); + price = wallEntry->price; + name = wallEntry->name; break; + } case SCENERY_TYPE_LARGE: - sceneryEntry = get_large_scenery_entry(selectedSceneryEntry.EntryIndex); - price = sceneryEntry->large_scenery.price * 10; + { + auto* sceneryEntry = get_large_scenery_entry(selectedSceneryEntry.EntryIndex); + price = sceneryEntry->price * 10; + name = sceneryEntry->name; break; + } case SCENERY_TYPE_BANNER: - sceneryEntry = get_banner_entry(selectedSceneryEntry.EntryIndex); - price = sceneryEntry->banner.price; + { + auto* bannerEntry = get_banner_entry(selectedSceneryEntry.EntryIndex); + price = bannerEntry->price; + name = bannerEntry->name; break; + } } if (w->scenery.SelectedScenery.IsUndefined() && gSceneryPlaceCost != MONEY32_UNDEFINED) @@ -1177,7 +1188,7 @@ void window_scenery_paint(rct_window* w, rct_drawpixelinfo* dpi) } auto ft = Formatter(); - ft.Add(sceneryEntry != nullptr ? sceneryEntry->name : static_cast(STR_UNKNOWN_OBJECT_TYPE)); + ft.Add(name); DrawTextEllipsised(dpi, { w->windowPos.x + 3, w->windowPos.y + w->height - 13 }, w->width - 19, STR_BLACK_STRING, ft); } @@ -1226,15 +1237,14 @@ void window_scenery_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t s } } - rct_scenery_entry* sceneryEntry; rct_drawpixelinfo clipdpi; if (clip_drawpixelinfo( &clipdpi, dpi, topLeft + ScreenCoordsXY{ 1, 1 }, SCENERY_BUTTON_WIDTH - 2, SCENERY_BUTTON_HEIGHT - 2)) { if (currentSceneryGlobal.SceneryType == SCENERY_TYPE_BANNER) { - sceneryEntry = get_banner_entry(currentSceneryGlobal.EntryIndex); - uint32_t imageId = sceneryEntry->image + gWindowSceneryRotation * 2; + auto* bannerEntry = get_banner_entry(currentSceneryGlobal.EntryIndex); + uint32_t imageId = bannerEntry->image + gWindowSceneryRotation * 2; imageId |= (gWindowSceneryPrimaryColour << 19) | IMAGE_TYPE_REMAP; gfx_draw_sprite(&clipdpi, imageId, { 0x21, 0x28 }, w->colours[1]); @@ -1242,7 +1252,7 @@ void window_scenery_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t s } else if (currentSceneryGlobal.SceneryType == SCENERY_TYPE_LARGE) { - sceneryEntry = get_large_scenery_entry(currentSceneryGlobal.EntryIndex); + auto* sceneryEntry = get_large_scenery_entry(currentSceneryGlobal.EntryIndex); uint32_t imageId = sceneryEntry->image + gWindowSceneryRotation; imageId |= (gWindowSceneryPrimaryColour << 19) | IMAGE_TYPE_REMAP; imageId |= (gWindowScenerySecondaryColour << 24) | IMAGE_TYPE_REMAP_2_PLUS; @@ -1251,34 +1261,33 @@ void window_scenery_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t s } else if (currentSceneryGlobal.SceneryType == SCENERY_TYPE_WALL) { - sceneryEntry = get_wall_entry(currentSceneryGlobal.EntryIndex); - uint32_t imageId = sceneryEntry->image; + auto* wallEntry = get_wall_entry(currentSceneryGlobal.EntryIndex); + uint32_t imageId = wallEntry->image; uint8_t tertiaryColour = w->colours[1]; - uint16_t spriteTop = (sceneryEntry->wall.height * 2) + 0x32; + uint16_t spriteTop = (wallEntry->height * 2) + 0x32; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_GLASS) + if (wallEntry->flags & WALL_SCENERY_HAS_GLASS) { imageId |= (gWindowSceneryPrimaryColour << 19) | IMAGE_TYPE_REMAP; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) { imageId |= (gWindowScenerySecondaryColour << 24) | IMAGE_TYPE_REMAP_2_PLUS; } gfx_draw_sprite(&clipdpi, imageId, { 0x2F, spriteTop }, tertiaryColour); - imageId = (sceneryEntry->image + 0x40000006) - | (EnumValue(GlassPaletteIds[gWindowSceneryPrimaryColour]) << 19); + imageId = (wallEntry->image + 0x40000006) | (EnumValue(GlassPaletteIds[gWindowSceneryPrimaryColour]) << 19); gfx_draw_sprite(&clipdpi, imageId, { 0x2F, spriteTop }, tertiaryColour); } else { imageId |= (gWindowSceneryPrimaryColour << 19) | IMAGE_TYPE_REMAP; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) { imageId |= (gWindowScenerySecondaryColour << 24) | IMAGE_TYPE_REMAP_2_PLUS; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_TERNARY_COLOUR) { imageId &= 0xDFFFFFFF; tertiaryColour = gWindowSceneryTertiaryColour; @@ -1286,7 +1295,7 @@ void window_scenery_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t s } gfx_draw_sprite(&clipdpi, imageId, { 0x2F, spriteTop }, tertiaryColour); - if (sceneryEntry->wall.flags & WALL_SCENERY_IS_DOOR) + if (wallEntry->flags & WALL_SCENERY_IS_DOOR) { gfx_draw_sprite(&clipdpi, imageId + 1, { 0x2F, spriteTop }, tertiaryColour); } @@ -1294,14 +1303,14 @@ void window_scenery_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t s } else if (currentSceneryGlobal.SceneryType == SCENERY_TYPE_PATH_ITEM) { - sceneryEntry = get_footpath_item_entry(currentSceneryGlobal.EntryIndex); - uint32_t imageId = sceneryEntry->image; + auto* pathBitEntry = get_footpath_item_entry(currentSceneryGlobal.EntryIndex); + uint32_t imageId = pathBitEntry->image; gfx_draw_sprite(&clipdpi, imageId, { 0x0B, 0x10 }, w->colours[1]); } else { - sceneryEntry = get_small_scenery_entry(currentSceneryGlobal.EntryIndex); + auto* sceneryEntry = get_small_scenery_entry(currentSceneryGlobal.EntryIndex); uint32_t imageId = sceneryEntry->image + gWindowSceneryRotation; if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) @@ -1314,7 +1323,7 @@ void window_scenery_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t s } } - uint16_t spriteTop = (sceneryEntry->small_scenery.height / 4) + 0x2B; + uint16_t spriteTop = (sceneryEntry->height / 4) + 0x2B; if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE) && scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) diff --git a/src/openrct2-ui/windows/SceneryScatter.cpp b/src/openrct2-ui/windows/SceneryScatter.cpp index c7b0c2855d..fa1c438dc7 100644 --- a/src/openrct2-ui/windows/SceneryScatter.cpp +++ b/src/openrct2-ui/windows/SceneryScatter.cpp @@ -83,9 +83,9 @@ rct_window* window_scenery_scatter_open() window = WindowCreateAutoPos(86, 100, &window_clear_scenery_events, WC_SCENERY_SCATTER, 0); window->widgets = window_scenery_scatter_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT) | (1 << WIDX_PREVIEW) - | (1 << WIDX_DENSITY_LOW) | (1 << WIDX_DENSITY_MEDIUM) | (1 << WIDX_DENSITY_HIGH); - window->hold_down_widgets = (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_DECREMENT) + | (1ULL << WIDX_PREVIEW) | (1ULL << WIDX_DENSITY_LOW) | (1ULL << WIDX_DENSITY_MEDIUM) | (1ULL << WIDX_DENSITY_HIGH); + window->hold_down_widgets = (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_DECREMENT); WindowInitScrollWidgets(window); window_push_others_below(window); @@ -185,21 +185,21 @@ static void window_scenery_scatter_inputsize(rct_window* w, rct_widgetindex widg static void window_scenery_scatter_invalidate(rct_window* w) { // Set the preview image button to be pressed down - w->pressed_widgets = (1 << WIDX_PREVIEW); + w->pressed_widgets = (1ULL << WIDX_PREVIEW); // Set density buttons' pressed state. switch (gWindowSceneryScatterDensity) { case ScatterToolDensity::LowDensity: - w->pressed_widgets |= (1 << WIDX_DENSITY_LOW); + w->pressed_widgets |= (1ULL << WIDX_DENSITY_LOW); break; case ScatterToolDensity::MediumDensity: - w->pressed_widgets |= (1 << WIDX_DENSITY_MEDIUM); + w->pressed_widgets |= (1ULL << WIDX_DENSITY_MEDIUM); break; case ScatterToolDensity::HighDensity: - w->pressed_widgets |= (1 << WIDX_DENSITY_HIGH); + w->pressed_widgets |= (1ULL << WIDX_DENSITY_HIGH); break; } diff --git a/src/openrct2-ui/windows/ServerList.cpp b/src/openrct2-ui/windows/ServerList.cpp index 6c616acefc..bd23fdc524 100644 --- a/src/openrct2-ui/windows/ServerList.cpp +++ b/src/openrct2-ui/windows/ServerList.cpp @@ -129,8 +129,8 @@ rct_window* window_server_list_open() window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = _playerName; window->widgets = window_server_list_widgets; window->enabled_widgets - = ((1 << WIDX_CLOSE) | (1 << WIDX_PLAYER_NAME_INPUT) | (1 << WIDX_FETCH_SERVERS) | (1 << WIDX_ADD_SERVER) - | (1 << WIDX_START_SERVER)); + = ((1ULL << WIDX_CLOSE) | (1ULL << WIDX_PLAYER_NAME_INPUT) | (1ULL << WIDX_FETCH_SERVERS) | (1ULL << WIDX_ADD_SERVER) + | (1ULL << WIDX_START_SERVER)); WindowInitScrollWidgets(window); window->no_list_items = 0; window->selected_list_item = -1; @@ -493,14 +493,14 @@ static void window_server_list_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi bool correctVersion = serverDetails.Version == network_get_version(); compatibilitySpriteId = correctVersion ? SPR_G2_RCT1_OPEN_BUTTON_2 : SPR_G2_RCT1_CLOSE_BUTTON_2; } - gfx_draw_sprite(dpi, compatibilitySpriteId, { right, screenCoords.y + 1 }, 0); + gfx_draw_sprite(dpi, ImageId(compatibilitySpriteId), { right, screenCoords.y + 1 }); right -= 4; // Draw lock icon right -= 8; if (serverDetails.RequiresPassword) { - gfx_draw_sprite(dpi, SPR_G2_LOCKED, { right, screenCoords.y + 4 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_G2_LOCKED), { right, screenCoords.y + 4 }); } right -= 6; @@ -520,7 +520,7 @@ static void server_list_get_item_button(int32_t buttonIndex, int32_t x, int32_t static void join_server(std::string address) { - int32_t port = gConfigNetwork.default_port; + int32_t port = NETWORK_DEFAULT_PORT; auto beginBracketIndex = address.find('['); auto endBracketIndex = address.find(']'); auto dotIndex = address.find('.'); diff --git a/src/openrct2-ui/windows/ServerStart.cpp b/src/openrct2-ui/windows/ServerStart.cpp index 8090392db4..8bb70c9b73 100644 --- a/src/openrct2-ui/windows/ServerStart.cpp +++ b/src/openrct2-ui/windows/ServerStart.cpp @@ -101,10 +101,10 @@ rct_window* window_server_start_open() window_server_start_widgets[WIDX_PASSWORD_INPUT].string = _password; window->widgets = window_server_start_widgets; window->enabled_widgets - = ((1 << WIDX_CLOSE) | (1 << WIDX_PORT_INPUT) | (1 << WIDX_NAME_INPUT) | (1 << WIDX_DESCRIPTION_INPUT) - | (1 << WIDX_GREETING_INPUT) | (1 << WIDX_PASSWORD_INPUT) | (1 << WIDX_MAXPLAYERS) | (1 << WIDX_MAXPLAYERS_INCREASE) - | (1 << WIDX_MAXPLAYERS_DECREASE) | (1 << WIDX_ADVERTISE_CHECKBOX) | (1 << WIDX_START_SERVER) - | (1 << WIDX_LOAD_SERVER)); + = ((1ULL << WIDX_CLOSE) | (1ULL << WIDX_PORT_INPUT) | (1ULL << WIDX_NAME_INPUT) | (1ULL << WIDX_DESCRIPTION_INPUT) + | (1ULL << WIDX_GREETING_INPUT) | (1ULL << WIDX_PASSWORD_INPUT) | (1ULL << WIDX_MAXPLAYERS) + | (1ULL << WIDX_MAXPLAYERS_INCREASE) | (1ULL << WIDX_MAXPLAYERS_DECREASE) | (1ULL << WIDX_ADVERTISE_CHECKBOX) + | (1ULL << WIDX_START_SERVER) | (1ULL << WIDX_LOAD_SERVER)); WindowInitScrollWidgets(window); window->no_list_items = 0; window->selected_list_item = -1; diff --git a/src/openrct2-ui/windows/ShortcutKeys.cpp b/src/openrct2-ui/windows/ShortcutKeys.cpp index 43891f30c1..0f01475ba5 100644 --- a/src/openrct2-ui/windows/ShortcutKeys.cpp +++ b/src/openrct2-ui/windows/ShortcutKeys.cpp @@ -422,7 +422,7 @@ private: void InitialiseWidgets() { - enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_RESET); + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_RESET); _widgets.clear(); _widgets.insert(_widgets.begin(), std::begin(window_shortcut_widgets), std::end(window_shortcut_widgets) - 1); @@ -492,7 +492,7 @@ private: } const auto& widget = widgets[widgetIndex]; - gfx_draw_sprite(&dpi, imageId, windowPos + ScreenCoordsXY{ widget.left, widget.top }, 0); + gfx_draw_sprite(&dpi, ImageId(imageId), windowPos + ScreenCoordsXY{ widget.left, widget.top }); } } } diff --git a/src/openrct2-ui/windows/Sign.cpp b/src/openrct2-ui/windows/Sign.cpp index b6f876b8c1..ddb09408ee 100644 --- a/src/openrct2-ui/windows/Sign.cpp +++ b/src/openrct2-ui/windows/Sign.cpp @@ -52,45 +52,239 @@ static rct_widget window_sign_widgets[] = { { WIDGETS_END }, }; -static void window_sign_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_sign_mousedown(rct_window *w, rct_widgetindex widgetIndex, rct_widget* widget); -static void window_sign_dropdown(rct_window *w, rct_widgetindex widgetIndex, int32_t dropdownIndex); -static void window_sign_textinput(rct_window *w, rct_widgetindex widgetIndex, char *text); -static void window_sign_viewport_rotate(rct_window *w); -static void window_sign_invalidate(rct_window *w); -static void window_sign_paint(rct_window *w, rct_drawpixelinfo *dpi); - - -// 0x98E44C -static rct_window_event_list window_sign_events([](auto& events) -{ - events.mouse_up = &window_sign_mouseup; - events.mouse_down = &window_sign_mousedown; - events.dropdown = &window_sign_dropdown; - events.text_input = &window_sign_textinput; - events.viewport_rotate = &window_sign_viewport_rotate; - events.invalidate = &window_sign_invalidate; - events.paint = &window_sign_paint; -}); - -static void window_sign_small_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_sign_small_dropdown(rct_window *w, rct_widgetindex widgetIndex, int32_t dropdownIndex); -static void window_sign_small_invalidate(rct_window *w); - -// 0x9A410C -static rct_window_event_list window_sign_small_events([](auto& events) -{ - events.mouse_up = &window_sign_small_mouseup; - events.mouse_down = &window_sign_mousedown; - events.dropdown = &window_sign_small_dropdown; - events.text_input = &window_sign_textinput; - events.viewport_rotate = &window_sign_viewport_rotate; - events.invalidate = &window_sign_small_invalidate; - events.paint = &window_sign_paint; -}); // clang-format on -static void window_sign_show_text_input(rct_window* w); +class SignWindow final : public Window +{ +private: + bool _isSmall = false; + Banner* _banner = nullptr; + + void ShowTextInput() + { + if (_banner != nullptr) + { + auto bannerText = _banner->GetText(); + window_text_input_raw_open(this, WIDX_SIGN_TEXT, STR_SIGN_TEXT_TITLE, STR_SIGN_TEXT_PROMPT, bannerText.c_str(), 32); + } + } + +public: + void OnOpen() override + { + widgets = window_sign_widgets; + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_SIGN_TEXT) | (1ULL << WIDX_SIGN_DEMOLISH) + | (1ULL << WIDX_MAIN_COLOUR) | (1ULL << WIDX_TEXT_COLOUR); + + WindowInitScrollWidgets(this); + } + + /* + * Initializes the window and sets it's number and if it's small + * @return true if successfull + */ + bool Initialize(rct_windownumber windowNumber, const bool isSmall) + { + number = windowNumber; + _isSmall = isSmall; + + _banner = GetBanner(number); + if (_banner == nullptr) + return false; + + auto signViewPosition = _banner->position.ToCoordsXY().ToTileCentre(); + auto* tileElement = banner_get_tile_element(number); + if (tileElement == nullptr) + return false; + + int32_t viewZ = tileElement->GetBaseZ(); + frame_no = viewZ; + + if (_isSmall) + { + list_information_type = tileElement->AsWall()->GetPrimaryColour(); + var_492 = tileElement->AsWall()->GetSecondaryColour(); + SceneryEntry = tileElement->AsWall()->GetEntryIndex(); + } + else + { + list_information_type = tileElement->AsLargeScenery()->GetPrimaryColour(); + var_492 = tileElement->AsLargeScenery()->GetSecondaryColour(); + SceneryEntry = tileElement->AsLargeScenery()->GetEntryIndex(); + } + + // Create viewport + rct_widget& viewportWidget = window_sign_widgets[WIDX_VIEWPORT]; + + viewport_create( + this, windowPos + ScreenCoordsXY{ viewportWidget.left + 1, viewportWidget.top + 1 }, viewportWidget.width() - 1, + viewportWidget.height() - 1, 0, { signViewPosition, viewZ }, 0, SPRITE_INDEX_NULL); + + viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; + Invalidate(); + + return true; + } + + void OnMouseUp(rct_widgetindex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + break; + case WIDX_SIGN_DEMOLISH: + { + auto* tileElement = banner_get_tile_element(number); + if (tileElement == nullptr) + { + Close(); + } + auto bannerCoords = _banner->position.ToCoordsXY(); + + if (_isSmall) + { + CoordsXYZD wallLocation = { bannerCoords, tileElement->GetBaseZ(), tileElement->GetDirection() }; + auto wallRemoveAction = WallRemoveAction(wallLocation); + GameActions::Execute(&wallRemoveAction); + } + else + { + auto sceneryRemoveAction = LargeSceneryRemoveAction( + { bannerCoords, tileElement->GetBaseZ(), tileElement->GetDirection() }, + tileElement->AsLargeScenery()->GetSequenceIndex()); + GameActions::Execute(&sceneryRemoveAction); + } + break; + } + case WIDX_SIGN_TEXT: + ShowTextInput(); + break; + } + } + + void OnMouseDown(rct_widgetindex widgetIndex) override + { + rct_widget* widget = &widgets[widgetIndex]; + switch (widgetIndex) + { + case WIDX_MAIN_COLOUR: + WindowDropdownShowColour(this, widget, TRANSLUCENT(colours[1]), static_cast(list_information_type)); + break; + case WIDX_TEXT_COLOUR: + WindowDropdownShowColour(this, widget, TRANSLUCENT(colours[1]), static_cast(var_492)); + break; + } + } + + void OnDropdown(rct_widgetindex widgetIndex, int32_t dropdownIndex) override + { + switch (widgetIndex) + { + case WIDX_MAIN_COLOUR: + { + if (dropdownIndex == -1) + return; + list_information_type = dropdownIndex; + auto signSetStyleAction = SignSetStyleAction(number, dropdownIndex, var_492, !_isSmall); + GameActions::Execute(&signSetStyleAction); + break; + } + case WIDX_TEXT_COLOUR: + { + if (dropdownIndex == -1) + return; + var_492 = dropdownIndex; + auto signSetStyleAction = SignSetStyleAction(number, list_information_type, dropdownIndex, !_isSmall); + GameActions::Execute(&signSetStyleAction); + break; + } + default: + return; + } + + Invalidate(); + } + + void OnTextInput(rct_widgetindex widgetIndex, std::string_view text) override + { + if (widgetIndex == WIDX_SIGN_TEXT && !text.empty()) + { + auto signSetNameAction = SignSetNameAction(number, std::string(text)); + GameActions::Execute(&signSetNameAction); + } + } + + void OnPrepareDraw() override + { + rct_widget* main_colour_btn = &window_sign_widgets[WIDX_MAIN_COLOUR]; + rct_widget* text_colour_btn = &window_sign_widgets[WIDX_TEXT_COLOUR]; + + if (_isSmall) + { + auto* wallEntry = get_wall_entry(SceneryEntry); + + main_colour_btn->type = WindowWidgetType::Empty; + text_colour_btn->type = WindowWidgetType::Empty; + + if (wallEntry->flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) + { + main_colour_btn->type = WindowWidgetType::ColourBtn; + } + if (wallEntry->flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) + { + text_colour_btn->type = WindowWidgetType::ColourBtn; + } + } + else + { + auto* sceneryEntry = get_large_scenery_entry(SceneryEntry); + + main_colour_btn->type = WindowWidgetType::Empty; + text_colour_btn->type = WindowWidgetType::Empty; + + if (sceneryEntry->flags & LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR) + { + main_colour_btn->type = WindowWidgetType::ColourBtn; + } + if (sceneryEntry->flags & LARGE_SCENERY_FLAG_HAS_SECONDARY_COLOUR) + { + text_colour_btn->type = WindowWidgetType::ColourBtn; + } + } + + main_colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(list_information_type) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; + text_colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(var_492) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; + } + + void OnDraw(rct_drawpixelinfo& dpi) override + { + DrawWidgets(dpi); + + if (viewport != nullptr) + { + window_draw_viewport(&dpi, this); + } + } + + void OnViewportRotate() override + { + RemoveViewport(); + + auto banner = GetBanner(number); + + auto signViewPos = CoordsXYZ{ banner->position.ToCoordsXY().ToTileCentre(), frame_no }; + + // Create viewport + rct_widget* viewportWidget = &window_sign_widgets[WIDX_VIEWPORT]; + viewport_create( + this, windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 1, + viewportWidget->height() - 1, 0, signViewPos, 0, SPRITE_INDEX_NULL); + if (viewport != nullptr) + viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; + Invalidate(); + } +}; /** * @@ -98,420 +292,42 @@ static void window_sign_show_text_input(rct_window* w); */ rct_window* window_sign_open(rct_windownumber number) { - rct_window* w; - rct_widget* viewportWidget; + auto* w = static_cast(window_bring_to_front_by_number(WC_BANNER, number)); - // Check if window is already open - w = window_bring_to_front_by_number(WC_BANNER, number); if (w != nullptr) return w; - w = WindowCreateAutoPos(WW, WH, &window_sign_events, WC_BANNER, WF_NO_SCROLLING); - w->widgets = window_sign_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_SIGN_TEXT) | (1 << WIDX_SIGN_DEMOLISH) | (1 << WIDX_MAIN_COLOUR) - | (1 << WIDX_TEXT_COLOUR); + w = WindowCreate(WC_BANNER, WW, WH, 0); - w->number = number; - WindowInitScrollWidgets(w); - - auto banner = GetBanner(w->number); - if (banner == nullptr) + if (w == nullptr) return nullptr; - auto signViewPos = banner->position.ToCoordsXY().ToTileCentre(); - TileElement* tile_element = map_get_first_element_at(signViewPos); - if (tile_element == nullptr) + bool result = w->Initialize(number, false); + if (result != true) return nullptr; - while (1) - { - if (tile_element->GetType() == TILE_ELEMENT_TYPE_LARGE_SCENERY) - { - rct_scenery_entry* scenery_entry = tile_element->AsLargeScenery()->GetEntry(); - if (scenery_entry != nullptr && scenery_entry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) - { - auto bannerIndex = tile_element->AsLargeScenery()->GetBannerIndex(); - - if (bannerIndex == w->number) - break; - } - } - tile_element++; - if (tile_element >= &gTileElements[std::size(gTileElements)]) - { - return nullptr; - } - } - - int32_t view_z = tile_element->GetBaseZ(); - w->frame_no = view_z; - - w->list_information_type = tile_element->AsLargeScenery()->GetPrimaryColour(); - w->var_492 = tile_element->AsLargeScenery()->GetSecondaryColour(); - w->SceneryEntry = tile_element->AsLargeScenery()->GetEntryIndex(); - - // Create viewport - viewportWidget = &window_sign_widgets[WIDX_VIEWPORT]; - viewport_create( - w, w->windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 1, - viewportWidget->height() - 1, 0, { signViewPos, view_z }, 0, SPRITE_INDEX_NULL); - - w->viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; - w->Invalidate(); - return w; } -/** - * - * rct2: 0x6B9765 - */ -static void window_sign_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_SIGN_DEMOLISH: - { - auto banner = GetBanner(w->number); - auto bannerCoords = banner->position.ToCoordsXY(); - auto tile_element = map_get_first_element_at(bannerCoords); - if (tile_element == nullptr) - return; - while (1) - { - if (tile_element->GetType() == TILE_ELEMENT_TYPE_LARGE_SCENERY) - { - rct_scenery_entry* scenery_entry = tile_element->AsLargeScenery()->GetEntry(); - if (scenery_entry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) - { - auto bannerIndex = tile_element->AsLargeScenery()->GetBannerIndex(); - if (bannerIndex == w->number) - break; - } - } - tile_element++; - if (tile_element >= &gTileElements[std::size(gTileElements)]) - { - return; - } - } - - auto sceneryRemoveAction = LargeSceneryRemoveAction( - { bannerCoords, tile_element->GetBaseZ(), tile_element->GetDirection() }, - tile_element->AsLargeScenery()->GetSequenceIndex()); - GameActions::Execute(&sceneryRemoveAction); - break; - } - case WIDX_SIGN_TEXT: - window_sign_show_text_input(w); - break; - } -} - -/** - * - * rct2: 0x6B9784 - & 0x6E6164 */ -static void window_sign_mousedown(rct_window* w, rct_widgetindex widgetIndex, rct_widget* widget) -{ - switch (widgetIndex) - { - case WIDX_MAIN_COLOUR: - WindowDropdownShowColour(w, widget, TRANSLUCENT(w->colours[1]), static_cast(w->list_information_type)); - break; - case WIDX_TEXT_COLOUR: - WindowDropdownShowColour(w, widget, TRANSLUCENT(w->colours[1]), static_cast(w->var_492)); - break; - } -} - -/** - * - * rct2: 0x6B979C - */ -static void window_sign_dropdown(rct_window* w, rct_widgetindex widgetIndex, int32_t dropdownIndex) -{ - switch (widgetIndex) - { - case WIDX_MAIN_COLOUR: - { - if (dropdownIndex == -1) - return; - w->list_information_type = dropdownIndex; - auto signSetStyleAction = SignSetStyleAction(w->number, dropdownIndex, w->var_492, true); - GameActions::Execute(&signSetStyleAction); - break; - } - case WIDX_TEXT_COLOUR: - { - if (dropdownIndex == -1) - return; - w->var_492 = dropdownIndex; - auto signSetStyleAction = SignSetStyleAction(w->number, w->list_information_type, dropdownIndex, true); - GameActions::Execute(&signSetStyleAction); - break; - } - default: - return; - } - - w->Invalidate(); -} - -/** - * - * rct2: 0x6B9791, 0x6E6171 - */ -static void window_sign_textinput(rct_window* w, rct_widgetindex widgetIndex, char* text) -{ - if (widgetIndex == WIDX_SIGN_TEXT && text != nullptr) - { - auto signSetNameAction = SignSetNameAction(w->number, text); - GameActions::Execute(&signSetNameAction); - } -} - -/** - * - * rct2: 0x006B96F5 - */ -static void window_sign_invalidate(rct_window* w) -{ - rct_widget* main_colour_btn = &window_sign_widgets[WIDX_MAIN_COLOUR]; - rct_widget* text_colour_btn = &window_sign_widgets[WIDX_TEXT_COLOUR]; - - rct_scenery_entry* scenery_entry = get_large_scenery_entry(w->SceneryEntry); - - main_colour_btn->type = WindowWidgetType::Empty; - text_colour_btn->type = WindowWidgetType::Empty; - - if (scenery_entry->large_scenery.flags & LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR) - { - main_colour_btn->type = WindowWidgetType::ColourBtn; - } - if (scenery_entry->large_scenery.flags & LARGE_SCENERY_FLAG_HAS_SECONDARY_COLOUR) - { - text_colour_btn->type = WindowWidgetType::ColourBtn; - } - - main_colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(w->list_information_type) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; - text_colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(w->var_492) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; -} - -/** - * - * rct2: 0x006B9754, 0x006E6134 - */ -static void window_sign_paint(rct_window* w, rct_drawpixelinfo* dpi) -{ - WindowDrawWidgets(w, dpi); - - // Draw viewport - if (w->viewport != nullptr) - { - window_draw_viewport(dpi, w); - } -} - -/** - * - * rct2: 0x6B9A6C, 0x6E6424 - */ -static void window_sign_viewport_rotate(rct_window* w) -{ - w->RemoveViewport(); - - auto banner = GetBanner(w->number); - - auto signViewPos = CoordsXYZ{ banner->position.ToCoordsXY().ToTileCentre(), w->frame_no }; - - // Create viewport - rct_widget* viewportWidget = &window_sign_widgets[WIDX_VIEWPORT]; - viewport_create( - w, w->windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 1, - viewportWidget->height() - 1, 0, signViewPos, 0, SPRITE_INDEX_NULL); - if (w->viewport != nullptr) - w->viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; - w->Invalidate(); -} - /** * * rct2: 0x6E5F52 */ rct_window* window_sign_small_open(rct_windownumber number) { - rct_window* w; - rct_widget* viewportWidget; + auto* w = static_cast(window_bring_to_front_by_number(WC_BANNER, number)); - // Check if window is already open - w = window_bring_to_front_by_number(WC_BANNER, number); if (w != nullptr) return w; - w = WindowCreateAutoPos(WW, WH, &window_sign_small_events, WC_BANNER, 0); - w->widgets = window_sign_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_SIGN_TEXT) | (1 << WIDX_SIGN_DEMOLISH) | (1 << WIDX_MAIN_COLOUR) - | (1 << WIDX_TEXT_COLOUR); + w = WindowCreate(WC_BANNER, WW, WH, 0); - w->number = number; - WindowInitScrollWidgets(w); - w->colours[0] = COLOUR_DARK_BROWN; - w->colours[1] = COLOUR_DARK_BROWN; - w->colours[2] = COLOUR_DARK_BROWN; - - auto banner = GetBanner(w->number); - auto signViewPos = banner->position.ToCoordsXY().ToTileCentre(); - - TileElement* tile_element = map_get_first_element_at(signViewPos); - if (tile_element == nullptr) + if (w == nullptr) return nullptr; - while (1) - { - if (tile_element->GetType() == TILE_ELEMENT_TYPE_WALL) - { - rct_scenery_entry* scenery_entry = tile_element->AsWall()->GetEntry(); - if (scenery_entry->wall.scrolling_mode != SCROLLING_MODE_NONE) - { - if (tile_element->AsWall()->GetBannerIndex() == w->number) - break; - } - } - tile_element++; - } - - int32_t view_z = tile_element->GetBaseZ(); - w->frame_no = view_z; - - w->list_information_type = tile_element->AsWall()->GetPrimaryColour(); - w->var_492 = tile_element->AsWall()->GetSecondaryColour(); - w->SceneryEntry = tile_element->AsWall()->GetEntryIndex(); - - // Create viewport - viewportWidget = &window_sign_widgets[WIDX_VIEWPORT]; - viewport_create( - w, w->windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 1, - viewportWidget->height() - 1, 0, { signViewPos, view_z }, 0, SPRITE_INDEX_NULL); - - w->viewport->flags = gConfigGeneral.always_show_gridlines ? VIEWPORT_FLAG_GRIDLINES : 0; - w->flags |= WF_NO_SCROLLING; - w->Invalidate(); + bool result = w->Initialize(number, true); + if (result != true) + return nullptr; return w; } - -/** - * - * rct2: 0x6E6145 - */ -static void window_sign_small_mouseup(rct_window* w, rct_widgetindex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - window_close(w); - break; - case WIDX_SIGN_DEMOLISH: - { - auto banner = GetBanner(w->number); - auto bannerCoords = banner->position.ToCoordsXY(); - auto tile_element = map_get_first_element_at(bannerCoords); - if (tile_element == nullptr) - return; - while (true) - { - if (tile_element->GetType() == TILE_ELEMENT_TYPE_WALL) - { - rct_scenery_entry* scenery_entry = tile_element->AsWall()->GetEntry(); - if (scenery_entry->wall.scrolling_mode != SCROLLING_MODE_NONE) - { - if (tile_element->AsWall()->GetBannerIndex() == w->number) - break; - } - } - tile_element++; - } - CoordsXYZD wallLocation = { bannerCoords, tile_element->GetBaseZ(), tile_element->GetDirection() }; - auto wallRemoveAction = WallRemoveAction(wallLocation); - GameActions::Execute(&wallRemoveAction); - break; - } - case WIDX_SIGN_TEXT: - window_sign_show_text_input(w); - break; - } -} - -/** - * - * rct2: 0x6E617C - */ -static void window_sign_small_dropdown(rct_window* w, rct_widgetindex widgetIndex, int32_t dropdownIndex) -{ - switch (widgetIndex) - { - case WIDX_MAIN_COLOUR: - { - if (dropdownIndex == -1) - return; - w->list_information_type = dropdownIndex; - auto signSetStyleAction = SignSetStyleAction(w->number, dropdownIndex, w->var_492, false); - GameActions::Execute(&signSetStyleAction); - break; - } - case WIDX_TEXT_COLOUR: - { - if (dropdownIndex == -1) - return; - w->var_492 = dropdownIndex; - auto signSetStyleAction = SignSetStyleAction(w->number, w->list_information_type, dropdownIndex, false); - GameActions::Execute(&signSetStyleAction); - break; - } - default: - return; - } - - w->Invalidate(); -} - -/** - * - * rct2: 0x006E60D5 - */ -static void window_sign_small_invalidate(rct_window* w) -{ - rct_widget* main_colour_btn = &window_sign_widgets[WIDX_MAIN_COLOUR]; - rct_widget* text_colour_btn = &window_sign_widgets[WIDX_TEXT_COLOUR]; - - rct_scenery_entry* scenery_entry = get_wall_entry(w->SceneryEntry); - - main_colour_btn->type = WindowWidgetType::Empty; - text_colour_btn->type = WindowWidgetType::Empty; - - if (scenery_entry->wall.flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) - { - main_colour_btn->type = WindowWidgetType::ColourBtn; - } - if (scenery_entry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) - { - text_colour_btn->type = WindowWidgetType::ColourBtn; - } - - main_colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(w->list_information_type) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; - text_colour_btn->image = SPRITE_ID_PALETTE_COLOUR_1(w->var_492) | IMAGE_TYPE_TRANSPARENT | SPR_PALETTE_BTN; -} - -static void window_sign_show_text_input(rct_window* w) -{ - auto banner = GetBanner(w->number); - if (banner != nullptr) - { - auto bannerText = banner->GetText(); - window_text_input_raw_open(w, WIDX_SIGN_TEXT, STR_SIGN_TEXT_TITLE, STR_SIGN_TEXT_PROMPT, bannerText.c_str(), 32); - } -} diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index 74aca4b496..4ffd184587 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -27,9 +27,9 @@ #include #include #include +#include #include #include -#include static constexpr const rct_string_id WINDOW_TITLE = STR_STRINGID; static constexpr const int32_t WW = 190; @@ -203,30 +203,30 @@ static rct_window_event_list *window_staff_page_events[] = { }; static constexpr const uint32_t window_staff_page_enabled_widgets[] = { - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_PICKUP) | - (1 << WIDX_PATROL) | - (1 << WIDX_RENAME) | - (1 << WIDX_LOCATE) | - (1 << WIDX_FIRE), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_PICKUP) | + (1ULL << WIDX_PATROL) | + (1ULL << WIDX_RENAME) | + (1ULL << WIDX_LOCATE) | + (1ULL << WIDX_FIRE), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) | - (1 << WIDX_CHECKBOX_1) | - (1 << WIDX_CHECKBOX_2) | - (1 << WIDX_CHECKBOX_3) | - (1 << WIDX_CHECKBOX_4) | - (1 << WIDX_COSTUME_BTN), + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) | + (1ULL << WIDX_CHECKBOX_1) | + (1ULL << WIDX_CHECKBOX_2) | + (1ULL << WIDX_CHECKBOX_3) | + (1ULL << WIDX_CHECKBOX_4) | + (1ULL << WIDX_COSTUME_BTN), - (1 << WIDX_CLOSE) | - (1 << WIDX_TAB_1) | - (1 << WIDX_TAB_2) | - (1 << WIDX_TAB_3) + (1ULL << WIDX_CLOSE) | + (1ULL << WIDX_TAB_1) | + (1ULL << WIDX_TAB_2) | + (1ULL << WIDX_TAB_3) }; // clang-format on @@ -309,20 +309,20 @@ void window_staff_disable_widgets(rct_window* w) if (peep != nullptr && peep->AssignedStaffType == StaffType::Security) { - disabled_widgets |= (1 << WIDX_TAB_2); + disabled_widgets |= (1ULL << WIDX_TAB_2); } if (w->page == WINDOW_STAFF_OVERVIEW) { if (peep->CanBePickedUp()) { - if (w->disabled_widgets & (1 << WIDX_PICKUP)) + if (w->disabled_widgets & (1ULL << WIDX_PICKUP)) w->Invalidate(); } else { - disabled_widgets |= (1 << WIDX_PICKUP); - if (!(w->disabled_widgets & (1 << WIDX_PICKUP))) + disabled_widgets |= (1ULL << WIDX_PICKUP); + if (!(w->disabled_widgets & (1ULL << WIDX_PICKUP))) w->Invalidate(); } } @@ -815,7 +815,7 @@ void window_staff_options_invalidate(rct_window* w) window_staff_options_widgets[WIDX_COSTUME_BOX].type = WindowWidgetType::Empty; window_staff_options_widgets[WIDX_COSTUME_BTN].type = WindowWidgetType::Empty; w->pressed_widgets &= ~( - (1 << WIDX_CHECKBOX_1) | (1 << WIDX_CHECKBOX_2) | (1 << WIDX_CHECKBOX_3) | (1 << WIDX_CHECKBOX_4)); + (1ULL << WIDX_CHECKBOX_1) | (1ULL << WIDX_CHECKBOX_2) | (1ULL << WIDX_CHECKBOX_3) | (1ULL << WIDX_CHECKBOX_4)); w->pressed_widgets |= peep->StaffOrders << WIDX_CHECKBOX_1; break; case StaffType::Mechanic: @@ -827,7 +827,7 @@ void window_staff_options_invalidate(rct_window* w) window_staff_options_widgets[WIDX_CHECKBOX_4].type = WindowWidgetType::Empty; window_staff_options_widgets[WIDX_COSTUME_BOX].type = WindowWidgetType::Empty; window_staff_options_widgets[WIDX_COSTUME_BTN].type = WindowWidgetType::Empty; - w->pressed_widgets &= ~((1 << WIDX_CHECKBOX_1) | (1 << WIDX_CHECKBOX_2)); + w->pressed_widgets &= ~((1ULL << WIDX_CHECKBOX_1) | (1ULL << WIDX_CHECKBOX_2)); w->pressed_widgets |= peep->StaffOrders << WIDX_CHECKBOX_1; break; case StaffType::Security: @@ -928,7 +928,7 @@ void window_staff_overview_paint(rct_window* w, rct_drawpixelinfo* dpi) rct_viewport* viewport = w->viewport; if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) { - gfx_draw_sprite(dpi, SPR_HEARING_VIEWPORT, w->windowPos + ScreenCoordsXY{ 2, 2 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_HEARING_VIEWPORT), w->windowPos + ScreenCoordsXY{ 2, 2 }); } } @@ -952,7 +952,7 @@ void window_staff_overview_paint(rct_window* w, rct_drawpixelinfo* dpi) */ void window_staff_options_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_2)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_2)) return; rct_widget* widget = &w->widgets[WIDX_TAB_2]; @@ -965,7 +965,7 @@ void window_staff_options_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) } auto screenCoords = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -974,7 +974,7 @@ void window_staff_options_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) */ void window_staff_stats_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_3)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_3)) return; rct_widget* widget = &w->widgets[WIDX_TAB_3]; @@ -987,7 +987,7 @@ void window_staff_stats_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) } auto screenCoords = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - gfx_draw_sprite(dpi, image_id, screenCoords, 0); + gfx_draw_sprite(dpi, ImageId(image_id), screenCoords); } /** @@ -995,7 +995,7 @@ void window_staff_stats_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) */ void window_staff_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) { - if (w->disabled_widgets & (1 << WIDX_TAB_1)) + if (w->disabled_widgets & (1ULL << WIDX_TAB_1)) return; rct_widget* widget = &w->widgets[WIDX_TAB_1]; @@ -1019,7 +1019,7 @@ void window_staff_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) return; } - if (peep->AssignedPeepType == PeepType::Staff && peep->AssignedStaffType == StaffType::Entertainer) + if (peep->Is() && peep->AssignedStaffType == StaffType::Entertainer) screenCoords.y++; int32_t ebx = GetPeepAnimation(peep->SpriteType).base_image + 1; @@ -1033,32 +1033,7 @@ void window_staff_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) } ebx += eax; - int32_t sprite_id = ebx | SPRITE_ID_PALETTE_COLOUR_2(peep->TshirtColour, peep->TrousersColour); - gfx_draw_sprite(&clip_dpi, sprite_id, screenCoords, 0); - - // If holding a balloon - if (ebx >= 0x2A1D && ebx < 0x2A3D) - { - ebx += 32; - ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour); - gfx_draw_sprite(&clip_dpi, ebx, screenCoords, 0); - } - - // If holding umbrella - if (ebx >= 0x2BBD && ebx < 0x2BDD) - { - ebx += 32; - ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour); - gfx_draw_sprite(&clip_dpi, ebx, screenCoords, 0); - } - - // If wearing hat - if (ebx >= 0x29DD && ebx < 0x29FD) - { - ebx += 32; - ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour); - gfx_draw_sprite(&clip_dpi, ebx, screenCoords, 0); - } + gfx_draw_sprite(&clip_dpi, ImageId(ebx, peep->TshirtColour, peep->TrousersColour), screenCoords); } /** @@ -1139,6 +1114,10 @@ void window_staff_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) DrawTextBasic(dpi, screenCoords, STR_STAFF_STAT_RIDES_FIXED, ft); break; case StaffType::Security: + ft = Formatter(); + ft.Add(peep->StaffVandalsStopped); + DrawTextBasic(dpi, screenCoords, STR_STAFF_STAT_VANDALS_STOPPED, ft); + break; case StaffType::Entertainer: case StaffType::Count: break; diff --git a/src/openrct2-ui/windows/StaffFirePrompt.cpp b/src/openrct2-ui/windows/StaffFirePrompt.cpp index 2158b46ec4..91f86d50e9 100644 --- a/src/openrct2-ui/windows/StaffFirePrompt.cpp +++ b/src/openrct2-ui/windows/StaffFirePrompt.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include static constexpr const rct_string_id WINDOW_TITLE = STR_SACK_STAFF; static constexpr const int32_t WW = 200; @@ -62,7 +62,7 @@ rct_window* window_staff_fire_prompt_open(Peep* peep) w = WindowCreateCentred(WW, WH, &window_staff_fire_events, WC_FIRE_PROMPT, WF_TRANSPARENT); w->widgets = window_staff_fire_widgets; - w->enabled_widgets |= (1 << WIDX_CLOSE) | (1 << WIDX_YES) | (1 << WIDX_CANCEL); + w->enabled_widgets |= (1ULL << WIDX_CLOSE) | (1ULL << WIDX_YES) | (1ULL << WIDX_CANCEL); WindowInitScrollWidgets(w); @@ -99,7 +99,7 @@ static void window_staff_fire_paint(rct_window* w, rct_drawpixelinfo* dpi) { WindowDrawWidgets(w, dpi); - Peep* peep = GetEntity(w->number); + Peep* peep = GetEntity(w->number); auto ft = Formatter(); peep->FormatNameTo(ft); diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index 788f5e0c4f..52053bf080 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -101,11 +101,11 @@ public: void OnOpen() override { widgets = window_staff_list_widgets; - enabled_widgets = (1 << WIDX_STAFF_LIST_CLOSE) | (1 << WIDX_STAFF_LIST_HANDYMEN_TAB) - | (1 << WIDX_STAFF_LIST_MECHANICS_TAB) | (1 << WIDX_STAFF_LIST_SECURITY_TAB) - | (1 << WIDX_STAFF_LIST_ENTERTAINERS_TAB) | (1 << WIDX_STAFF_LIST_HIRE_BUTTON) - | (1 << WIDX_STAFF_LIST_UNIFORM_COLOUR_PICKER) | (1 << WIDX_STAFF_LIST_SHOW_PATROL_AREA_BUTTON) - | (1 << WIDX_STAFF_LIST_MAP) | (1 << WIDX_STAFF_LIST_QUICK_FIRE); + enabled_widgets = (1ULL << WIDX_STAFF_LIST_CLOSE) | (1ULL << WIDX_STAFF_LIST_HANDYMEN_TAB) + | (1ULL << WIDX_STAFF_LIST_MECHANICS_TAB) | (1ULL << WIDX_STAFF_LIST_SECURITY_TAB) + | (1ULL << WIDX_STAFF_LIST_ENTERTAINERS_TAB) | (1ULL << WIDX_STAFF_LIST_HIRE_BUTTON) + | (1ULL << WIDX_STAFF_LIST_UNIFORM_COLOUR_PICKER) | (1ULL << WIDX_STAFF_LIST_SHOW_PATROL_AREA_BUTTON) + | (1ULL << WIDX_STAFF_LIST_MAP) | (1ULL << WIDX_STAFF_LIST_QUICK_FIRE); WindowInitScrollWidgets(this); widgets[WIDX_STAFF_LIST_UNIFORM_COLOUR_PICKER].type = WindowWidgetType::Empty; @@ -189,7 +189,7 @@ public: if (window_find_by_class(WC_MAP) != nullptr) { gWindowMapFlashingFlags |= MapFlashingFlags::StaffListOpen; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { sprite_set_flashing(peep, false); if (peep->AssignedStaffType == GetSelectedStaffType()) @@ -416,7 +416,7 @@ public: // True if a patrol path is set for the worker if (gStaffModes[peep->StaffId] == StaffMode::Patrol) { - gfx_draw_sprite(&dpi, SPR_STAFF_PATROL_PATH, { nameColumnSize + 5, y }, 0); + gfx_draw_sprite(&dpi, ImageId(SPR_STAFF_PATROL_PATH), { nameColumnSize + 5, y }); } auto staffOrderIcon_x = nameColumnSize + 20; @@ -429,7 +429,7 @@ public: { if (staffOrders & 1) { - gfx_draw_sprite(&dpi, staffOrderSprite, { staffOrderIcon_x, y }, 0); + gfx_draw_sprite(&dpi, ImageId(staffOrderSprite), { staffOrderIcon_x, y }); } staffOrders = staffOrders >> 1; staffOrderIcon_x += 9; @@ -439,7 +439,7 @@ public: } else { - gfx_draw_sprite(&dpi, GetEntertainerCostumeSprite(peep->SpriteType), { staffOrderIcon_x, y }, 0); + gfx_draw_sprite(&dpi, ImageId(GetEntertainerCostumeSprite(peep->SpriteType)), { staffOrderIcon_x, y }); } } @@ -483,7 +483,7 @@ public: { _staffList.clear(); - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { sprite_set_flashing(peep, false); if (peep->AssignedStaffType == GetSelectedStaffType()) @@ -517,8 +517,8 @@ private: const auto& widget = widgets[widgetIndex]; auto imageId = (_selectedTab == tabIndex ? (_tabAnimationIndex & ~3) : 0); imageId += GetPeepAnimation(type).base_image + 1; - imageId |= SPRITE_ID_PALETTE_COLOUR_1(colour); - gfx_draw_sprite(&dpi, imageId, windowPos + ScreenCoordsXY{ (widget.left + widget.right) / 2, widget.bottom - 6 }, 0); + gfx_draw_sprite( + &dpi, ImageId(imageId, colour), windowPos + ScreenCoordsXY{ (widget.left + widget.right) / 2, widget.bottom - 6 }); } void DrawTabImage(rct_drawpixelinfo& dpi, int32_t tabIndex, PeepSpriteType type) const @@ -532,7 +532,7 @@ private: { auto imageId = (_selectedTab == 3 ? (_tabAnimationIndex & ~3) : 0); imageId += GetPeepAnimation(type).base_image + 1; - gfx_draw_sprite(&clippedDpi, imageId, { 15, 23 }, 0); + gfx_draw_sprite(&clippedDpi, ImageId(imageId), { 15, 23 }); } } @@ -559,7 +559,7 @@ private: Peep* closestPeep = nullptr; auto closestPeepDistance = std::numeric_limits::max(); - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->AssignedStaffType != GetSelectedStaffType()) continue; diff --git a/src/openrct2-ui/windows/TextInput.cpp b/src/openrct2-ui/windows/TextInput.cpp index 42da994c76..011a457914 100644 --- a/src/openrct2-ui/windows/TextInput.cpp +++ b/src/openrct2-ui/windows/TextInput.cpp @@ -53,7 +53,7 @@ private: int32_t _cursorBlink{}; size_t _maxInputLength{}; - std::string _buffer; + std::vector _buffer; public: void OnOpen() override @@ -105,8 +105,8 @@ public: void SetText(std::string_view text, size_t maxLength) { - _buffer = text; _buffer.resize(maxLength); + safe_strcpy(_buffer.data(), std::string(text).c_str(), maxLength); _maxInputLength = maxLength; gTextInput = context_start_text_input(_buffer.data(), maxLength); } @@ -216,7 +216,7 @@ public: screenCoords.y += 25; char wrapped_string[TEXT_INPUT_SIZE]; - safe_strcpy(wrapped_string, _buffer.data(), TEXT_INPUT_SIZE); + safe_strcpy(wrapped_string, _buffer.data(), _buffer.size()); // String length needs to add 12 either side of box // +13 for cursor when max length. @@ -282,7 +282,7 @@ public: if (!cur_drawn) { - cursorX = gLastDrawStringX; + cursorX = dpi.lastStringPos.x; cursorY = screenCoords.y - 10; } @@ -408,6 +408,9 @@ void window_text_input_open( void window_text_input_key(rct_window* w, char keychar) { + const auto wndNumber = w->number; + const auto wndClass = w->classification; + // If the return button is pressed stop text input if (keychar == '\r') { @@ -417,5 +420,9 @@ void window_text_input_key(rct_window* w, char keychar) textInputWindow->OnReturnPressed(); } } - w->Invalidate(); + + // The window can be potentially closed within a callback, we need to check if its still alive. + w = window_find_by_number(wndClass, wndNumber); + if (w != nullptr) + w->Invalidate(); } diff --git a/src/openrct2-ui/windows/Themes.cpp b/src/openrct2-ui/windows/Themes.cpp index b37bfff16b..6805425552 100644 --- a/src/openrct2-ui/windows/Themes.cpp +++ b/src/openrct2-ui/windows/Themes.cpp @@ -225,6 +225,7 @@ static rct_windowclass window_themes_tab_6_classes[] = { WC_KEYBOARD_SHORTCUT_LIST, WC_CHANGE_KEYBOARD_SHORTCUT, WC_LOADSAVE, + WC_ABOUT, WC_CHANGELOG, WC_SERVER_LIST, WC_MULTIPLAYER, @@ -321,13 +322,14 @@ rct_window* window_themes_open() window = WindowCreateAutoPos(320, 107, &window_themes_events, WC_THEMES, WF_10 | WF_RESIZABLE); window->widgets = window_themes_widgets; - window->enabled_widgets = (1 << WIDX_THEMES_CLOSE) | (1 << WIDX_THEMES_SETTINGS_TAB) | (1 << WIDX_THEMES_MAIN_UI_TAB) - | (1 << WIDX_THEMES_PARK_TAB) | (1 << WIDX_THEMES_TOOLS_TAB) | (1 << WIDX_THEMES_RIDE_PEEPS_TAB) - | (1 << WIDX_THEMES_EDITORS_TAB) | (1 << WIDX_THEMES_MISC_TAB) | (1 << WIDX_THEMES_PROMPTS_TAB) - | (1 << WIDX_THEMES_FEATURES_TAB) | (1 << WIDX_THEMES_COLOURBTN_MASK) | (1 << WIDX_THEMES_PRESETS) - | (1 << WIDX_THEMES_PRESETS_DROPDOWN) | (1 << WIDX_THEMES_DUPLICATE_BUTTON) | (1 << WIDX_THEMES_DELETE_BUTTON) - | (1 << WIDX_THEMES_RENAME_BUTTON) | (1 << WIDX_THEMES_RCT1_RIDE_LIGHTS) | (1 << WIDX_THEMES_RCT1_PARK_LIGHTS) - | (1 << WIDX_THEMES_RCT1_SCENARIO_FONT) | (1 << WIDX_THEMES_RCT1_BOTTOM_TOOLBAR); + window->enabled_widgets = (1ULL << WIDX_THEMES_CLOSE) | (1ULL << WIDX_THEMES_SETTINGS_TAB) + | (1ULL << WIDX_THEMES_MAIN_UI_TAB) | (1ULL << WIDX_THEMES_PARK_TAB) | (1ULL << WIDX_THEMES_TOOLS_TAB) + | (1ULL << WIDX_THEMES_RIDE_PEEPS_TAB) | (1ULL << WIDX_THEMES_EDITORS_TAB) | (1ULL << WIDX_THEMES_MISC_TAB) + | (1ULL << WIDX_THEMES_PROMPTS_TAB) | (1ULL << WIDX_THEMES_FEATURES_TAB) | (1ULL << WIDX_THEMES_COLOURBTN_MASK) + | (1ULL << WIDX_THEMES_PRESETS) | (1ULL << WIDX_THEMES_PRESETS_DROPDOWN) | (1ULL << WIDX_THEMES_DUPLICATE_BUTTON) + | (1ULL << WIDX_THEMES_DELETE_BUTTON) | (1ULL << WIDX_THEMES_RENAME_BUTTON) | (1ULL << WIDX_THEMES_RCT1_RIDE_LIGHTS) + | (1ULL << WIDX_THEMES_RCT1_PARK_LIGHTS) | (1ULL << WIDX_THEMES_RCT1_SCENARIO_FONT) + | (1ULL << WIDX_THEMES_RCT1_BOTTOM_TOOLBAR); window_themes_init_vars(); diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index 701be0b74c..e0ad6f530e 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -1635,12 +1635,11 @@ static void window_tile_inspector_invalidate(rct_window* w) { bool canBeSloped = false; bool hasAnimation = false; - const auto sceneryEntry = tileElement->AsWall()->GetEntry(); - if (sceneryEntry != nullptr) + const auto wallEntry = tileElement->AsWall()->GetEntry(); + if (wallEntry != nullptr) { - const rct_wall_scenery_entry wallEntry = sceneryEntry->wall; - canBeSloped = !(wallEntry.flags & WALL_SCENERY_CANT_BUILD_ON_SLOPE); - hasAnimation = wallEntry.flags & WALL_SCENERY_IS_DOOR; + canBeSloped = !(wallEntry->flags & WALL_SCENERY_CANT_BUILD_ON_SLOPE); + hasAnimation = wallEntry->flags & WALL_SCENERY_IS_DOOR; } w->widgets[WIDX_WALL_SPINNER_HEIGHT].top = GBBT(propertiesAnchor, 0) + 3; @@ -1870,9 +1869,9 @@ static void window_tile_inspector_paint(rct_window* w, rct_drawpixelinfo* dpi) if (tileElement->AsPath()->HasAddition()) { const auto pathAdditionType = tileElement->AsPath()->GetAdditionEntryIndex(); - const auto* sceneryElement = get_footpath_item_entry(pathAdditionType); - rct_string_id additionNameId = sceneryElement != nullptr - ? sceneryElement->name + const auto* pathBitEntry = get_footpath_item_entry(pathAdditionType); + rct_string_id additionNameId = pathBitEntry != nullptr + ? pathBitEntry->name : static_cast(STR_UNKNOWN_OBJECT_TYPE); DrawTextBasic( dpi, screenCoords + ScreenCoordsXY{ 0, 11 }, STR_TILE_INSPECTOR_PATH_ADDITIONS, &additionNameId, @@ -1975,7 +1974,7 @@ static void window_tile_inspector_paint(rct_window* w, rct_drawpixelinfo* dpi) DrawTextBasic(dpi, screenCoords, STR_TILE_INSPECTOR_SCENERY_AGE, &age, { COLOUR_WHITE }); // Quadrant value - const rct_scenery_entry* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + const auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); if (sceneryEntry != nullptr && !(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE))) { int16_t quadrant = tileElement->AsSmallScenery()->GetSceneryQuadrant(); @@ -2095,18 +2094,14 @@ static void window_tile_inspector_paint(rct_window* w, rct_drawpixelinfo* dpi) DrawTextBasic(dpi, screenCoords, STR_TILE_INSPECTOR_WALL_TYPE, &wallType, { COLOUR_WHITE }); // Banner info - const auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry != nullptr && wallEntry->wall.flags & WALL_SCENERY_IS_BANNER) + auto banner = tileElement->AsWall()->GetBanner(); + if (banner != nullptr && !banner->IsNull()) { - auto banner = tileElement->AsWall()->GetBanner(); - if (banner != nullptr && !banner->IsNull()) - { - Formatter ft; - banner->FormatTextTo(ft); - DrawTextBasic( - dpi, screenCoords + ScreenCoordsXY{ 0, 11 }, STR_TILE_INSPECTOR_ENTRY_BANNER_TEXT, ft, - { COLOUR_WHITE }); - } + Formatter ft; + banner->FormatTextTo(ft); + DrawTextBasic( + dpi, screenCoords + ScreenCoordsXY{ 0, 11 }, STR_TILE_INSPECTOR_ENTRY_BANNER_TEXT, ft, + { COLOUR_WHITE }); } else { @@ -2161,8 +2156,8 @@ static void window_tile_inspector_paint(rct_window* w, rct_drawpixelinfo* dpi) { COLOUR_WHITE }); // Banner info - rct_scenery_entry* largeSceneryEntry = get_large_scenery_entry(largeSceneryType); - if (largeSceneryEntry != nullptr && largeSceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + auto* largeSceneryEntry = get_large_scenery_entry(largeSceneryType); + if (largeSceneryEntry != nullptr && largeSceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { auto banner = sceneryElement->GetBanner(); if (banner != nullptr && !banner->IsNull()) @@ -2299,10 +2294,10 @@ static void window_tile_inspector_scrollpaint(rct_window* w, rct_drawpixelinfo* break; case TILE_ELEMENT_TYPE_SMALL_SCENERY: { - const auto* entry = tileElement->AsSmallScenery()->GetEntry(); + const auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); snprintf( buffer, sizeof(buffer), "%s (%s)", language_get_string(STR_OBJECT_SELECTION_SMALL_SCENERY), - entry != nullptr ? language_get_string(entry->name) : ""); + sceneryEntry != nullptr ? language_get_string(sceneryEntry->name) : ""); typeName = buffer; break; } diff --git a/src/openrct2-ui/windows/TitleCommandEditor.cpp b/src/openrct2-ui/windows/TitleCommandEditor.cpp index bcbe613cc4..718964cefd 100644 --- a/src/openrct2-ui/windows/TitleCommandEditor.cpp +++ b/src/openrct2-ui/windows/TitleCommandEditor.cpp @@ -20,12 +20,15 @@ #include #include #include +#include #include #include #include #include #include -#include +#include +#include +#include // clang-format off struct TITLE_COMMAND_ORDER { @@ -217,9 +220,10 @@ void window_title_command_editor_open(TitleSequence* sequence, int32_t index, bo window_title_command_editor_widgets[WIDX_TEXTBOX_X].string = textbox1Buffer; window_title_command_editor_widgets[WIDX_TEXTBOX_Y].string = textbox2Buffer; window->widgets = window_title_command_editor_widgets; - window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_COMMAND) | (1 << WIDX_COMMAND_DROPDOWN) | (1 << WIDX_TEXTBOX_FULL) - | (1 << WIDX_TEXTBOX_X) | (1 << WIDX_TEXTBOX_Y) | (1 << WIDX_INPUT) | (1 << WIDX_INPUT_DROPDOWN) | (1 << WIDX_GET) - | (1 << WIDX_SELECT_SCENARIO) | (1 << WIDX_SELECT_SPRITE) | (1 << WIDX_OKAY) | (1 << WIDX_CANCEL); + window->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_COMMAND) | (1ULL << WIDX_COMMAND_DROPDOWN) + | (1ULL << WIDX_TEXTBOX_FULL) | (1ULL << WIDX_TEXTBOX_X) | (1ULL << WIDX_TEXTBOX_Y) | (1ULL << WIDX_INPUT) + | (1ULL << WIDX_INPUT_DROPDOWN) | (1ULL << WIDX_GET) | (1ULL << WIDX_SELECT_SCENARIO) | (1ULL << WIDX_SELECT_SPRITE) + | (1ULL << WIDX_OKAY) | (1ULL << WIDX_CANCEL); WindowInitScrollWidgets(window); rct_widget* const viewportWidget = &window_title_command_editor_widgets[WIDX_VIEWPORT]; @@ -657,10 +661,11 @@ static void window_title_command_editor_tool_down( } else if (litter != nullptr) { - if (litter->SubType < std::size(litterNames)) + auto name = litter->GetName(); + if (name != STR_NONE) { validSprite = true; - format_string(_command.SpriteName, USER_STRING_MAX_LENGTH, litterNames[litter->SubType], nullptr); + format_string(_command.SpriteName, USER_STRING_MAX_LENGTH, name, nullptr); } } else if (balloon != nullptr) @@ -737,21 +742,21 @@ static void window_title_command_editor_invalidate(rct_window* w) // Draw button pressed while the tool is active if (sprite_selector_tool_is_active()) - w->pressed_widgets |= (1 << WIDX_SELECT_SPRITE); + w->pressed_widgets |= (1ULL << WIDX_SELECT_SPRITE); else - w->pressed_widgets &= ~(1 << WIDX_SELECT_SPRITE); + w->pressed_widgets &= ~(1ULL << WIDX_SELECT_SPRITE); break; } if ((gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) == SCREEN_FLAGS_TITLE_DEMO) { - w->disabled_widgets |= (1 << WIDX_GET) | (1 << WIDX_SELECT_SPRITE); + w->disabled_widgets |= (1ULL << WIDX_GET) | (1ULL << WIDX_SELECT_SPRITE); window_title_command_editor_widgets[WIDX_SELECT_SPRITE].tooltip = STR_TITLE_COMMAND_EDITOR_SELECT_SPRITE_TOOLTIP; } else { - w->disabled_widgets &= ~((1 << WIDX_GET) | (1 << WIDX_SELECT_SPRITE)); + w->disabled_widgets &= ~((1ULL << WIDX_GET) | (1ULL << WIDX_SELECT_SPRITE)); window_title_command_editor_widgets[WIDX_SELECT_SPRITE].tooltip = STR_NONE; } } diff --git a/src/openrct2-ui/windows/TitleEditor.cpp b/src/openrct2-ui/windows/TitleEditor.cpp index 703eac7486..78b48d5211 100644 --- a/src/openrct2-ui/windows/TitleEditor.cpp +++ b/src/openrct2-ui/windows/TitleEditor.cpp @@ -214,22 +214,22 @@ void window_title_editor_open(int32_t tab) window = WindowCreateAutoPos(WW, WH2, &window_title_editor_events, WC_TITLE_EDITOR, WF_10 | WF_RESIZABLE); window->widgets = window_title_editor_widgets; - window->enabled_widgets = (1 << WIDX_TITLE_EDITOR_CLOSE) | (1 << WIDX_TITLE_EDITOR_PRESETS_TAB) - | (1 << WIDX_TITLE_EDITOR_SAVES_TAB) | (1 << WIDX_TITLE_EDITOR_SCRIPT_TAB) | + window->enabled_widgets = (1ULL << WIDX_TITLE_EDITOR_CLOSE) | (1ULL << WIDX_TITLE_EDITOR_PRESETS_TAB) + | (1ULL << WIDX_TITLE_EDITOR_SAVES_TAB) | (1ULL << WIDX_TITLE_EDITOR_SCRIPT_TAB) | - (1 << WIDX_TITLE_EDITOR_PRESETS) | (1 << WIDX_TITLE_EDITOR_PRESETS_DROPDOWN) | (1 << WIDX_TITLE_EDITOR_NEW_BUTTON) - | (1 << WIDX_TITLE_EDITOR_DUPLICATE_BUTTON) | (1 << WIDX_TITLE_EDITOR_DELETE_BUTTON) - | (1 << WIDX_TITLE_EDITOR_RENAME_BUTTON) | + (1ULL << WIDX_TITLE_EDITOR_PRESETS) | (1ULL << WIDX_TITLE_EDITOR_PRESETS_DROPDOWN) + | (1ULL << WIDX_TITLE_EDITOR_NEW_BUTTON) | (1ULL << WIDX_TITLE_EDITOR_DUPLICATE_BUTTON) + | (1ULL << WIDX_TITLE_EDITOR_DELETE_BUTTON) | (1ULL << WIDX_TITLE_EDITOR_RENAME_BUTTON) | - (1 << WIDX_TITLE_EDITOR_ADD_SAVE) | (1 << WIDX_TITLE_EDITOR_REMOVE_SAVE) | (1 << WIDX_TITLE_EDITOR_RENAME_SAVE) - | (1 << WIDX_TITLE_EDITOR_LOAD_SAVE) | + (1ULL << WIDX_TITLE_EDITOR_ADD_SAVE) | (1ULL << WIDX_TITLE_EDITOR_REMOVE_SAVE) | (1ULL << WIDX_TITLE_EDITOR_RENAME_SAVE) + | (1ULL << WIDX_TITLE_EDITOR_LOAD_SAVE) | - (1 << WIDX_TITLE_EDITOR_INSERT) | (1 << WIDX_TITLE_EDITOR_EDIT) | (1 << WIDX_TITLE_EDITOR_DELETE) | - //(1 << WIDX_TITLE_EDITOR_RELOAD) | - (1 << WIDX_TITLE_EDITOR_SKIP_TO) | (1 << WIDX_TITLE_EDITOR_MOVE_DOWN) | (1 << WIDX_TITLE_EDITOR_MOVE_UP) | + (1ULL << WIDX_TITLE_EDITOR_INSERT) | (1ULL << WIDX_TITLE_EDITOR_EDIT) | (1ULL << WIDX_TITLE_EDITOR_DELETE) | + //(1ULL << WIDX_TITLE_EDITOR_RELOAD) | + (1ULL << WIDX_TITLE_EDITOR_SKIP_TO) | (1ULL << WIDX_TITLE_EDITOR_MOVE_DOWN) | (1ULL << WIDX_TITLE_EDITOR_MOVE_UP) | - (1 << WIDX_TITLE_EDITOR_PLAY) | (1 << WIDX_TITLE_EDITOR_STOP) | (1 << WIDX_TITLE_EDITOR_REPLAY) - | (1 << WIDX_TITLE_EDITOR_SKIP); + (1ULL << WIDX_TITLE_EDITOR_PLAY) | (1ULL << WIDX_TITLE_EDITOR_STOP) | (1ULL << WIDX_TITLE_EDITOR_REPLAY) + | (1ULL << WIDX_TITLE_EDITOR_SKIP); WindowInitScrollWidgets(window); window->list_information_type = 0; @@ -784,16 +784,16 @@ static void window_title_editor_invalidate(rct_window* w) window_title_editor_widgets[WIDX_TITLE_EDITOR_SKIP].bottom = w->height - 16; if (!(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) && gScreenFlags != SCREEN_FLAGS_PLAYING) - w->disabled_widgets |= (1 << WIDX_TITLE_EDITOR_PLAY); + w->disabled_widgets |= (1ULL << WIDX_TITLE_EDITOR_PLAY); else - w->disabled_widgets &= ~(1 << WIDX_TITLE_EDITOR_PLAY); + w->disabled_widgets &= ~(1ULL << WIDX_TITLE_EDITOR_PLAY); if (!title_is_previewing_sequence()) - w->disabled_widgets |= (1 << WIDX_TITLE_EDITOR_REPLAY) | (1 << WIDX_TITLE_EDITOR_STOP) | (1 << WIDX_TITLE_EDITOR_SKIP) - | (1 << WIDX_TITLE_EDITOR_SKIP_TO); + w->disabled_widgets |= (1ULL << WIDX_TITLE_EDITOR_REPLAY) | (1ULL << WIDX_TITLE_EDITOR_STOP) + | (1ULL << WIDX_TITLE_EDITOR_SKIP) | (1ULL << WIDX_TITLE_EDITOR_SKIP_TO); else w->disabled_widgets &= ~( - (1 << WIDX_TITLE_EDITOR_REPLAY) | (1 << WIDX_TITLE_EDITOR_STOP) | (1 << WIDX_TITLE_EDITOR_SKIP) - | (1 << WIDX_TITLE_EDITOR_SKIP_TO)); + (1ULL << WIDX_TITLE_EDITOR_REPLAY) | (1ULL << WIDX_TITLE_EDITOR_STOP) | (1ULL << WIDX_TITLE_EDITOR_SKIP) + | (1ULL << WIDX_TITLE_EDITOR_SKIP_TO)); } static void window_title_editor_paint(rct_window* w, rct_drawpixelinfo* dpi) @@ -1064,11 +1064,10 @@ static void window_title_editor_draw_tab_images(rct_drawpixelinfo* dpi, rct_wind screenCoords = ScreenCoordsXY{ 4, 1 }; } gfx_draw_sprite( - dpi, spriteId, + dpi, ImageId(spriteId), w->windowPos + screenCoords + ScreenCoordsXY{ w->widgets[WIDX_TITLE_EDITOR_PRESETS_TAB + i].left, - w->widgets[WIDX_TITLE_EDITOR_PRESETS_TAB + i].top }, - 0); + w->widgets[WIDX_TITLE_EDITOR_PRESETS_TAB + i].top }); } } diff --git a/src/openrct2-ui/windows/TitleLogo.cpp b/src/openrct2-ui/windows/TitleLogo.cpp index d5725bf91e..1986efed15 100644 --- a/src/openrct2-ui/windows/TitleLogo.cpp +++ b/src/openrct2-ui/windows/TitleLogo.cpp @@ -51,7 +51,7 @@ rct_window* window_title_logo_open() window->colours[0] = TRANSLUCENT(COLOUR_GREY); window->colours[1] = TRANSLUCENT(COLOUR_GREY); window->colours[2] = TRANSLUCENT(COLOUR_GREY); - window->enabled_widgets = (1 << WIDX_LOGO); + window->enabled_widgets = (1ULL << WIDX_LOGO); return window; } @@ -73,6 +73,6 @@ static void window_title_menu_mouseup(rct_window* w, rct_widgetindex widgetIndex static void window_title_logo_paint(rct_window* w, rct_drawpixelinfo* dpi) { auto screenCoords = w->windowPos + ScreenCoordsXY{ 2, 2 }; - gfx_draw_sprite(dpi, SPR_G2_LOGO, screenCoords, 0); - gfx_draw_sprite(dpi, SPR_G2_TITLE, screenCoords + ScreenCoordsXY{ 104, 18 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_G2_LOGO), screenCoords); + gfx_draw_sprite(dpi, ImageId(SPR_G2_TITLE), screenCoords + ScreenCoordsXY{ 104, 18 }); } diff --git a/src/openrct2-ui/windows/TitleMenu.cpp b/src/openrct2-ui/windows/TitleMenu.cpp index 16470bee38..11bfcd8cfd 100644 --- a/src/openrct2-ui/windows/TitleMenu.cpp +++ b/src/openrct2-ui/windows/TitleMenu.cpp @@ -77,11 +77,11 @@ rct_window* window_title_menu_open() window->widgets = window_title_menu_widgets; window->enabled_widgets - = ((1 << WIDX_START_NEW_GAME) | (1 << WIDX_CONTINUE_SAVED_GAME) | + = ((1ULL << WIDX_START_NEW_GAME) | (1ULL << WIDX_CONTINUE_SAVED_GAME) | #ifndef DISABLE_NETWORK - (1 << WIDX_MULTIPLAYER) | + (1ULL << WIDX_MULTIPLAYER) | #endif - (1 << WIDX_GAME_TOOLS)); + (1ULL << WIDX_GAME_TOOLS)); rct_widgetindex i = 0; int32_t x = 0; diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index 1431fff7f7..05c56dd72c 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -127,19 +127,22 @@ enum FILE_MENU_DDIDX { enum TOP_TOOLBAR_VIEW_MENU_DDIDX { DDIDX_UNDERGROUND_INSIDE = 0, - DDIDX_HIDE_BASE = 1, - DDIDX_HIDE_VERTICAL = 2, - DDIDX_SEETHROUGH_RIDES = 4, - DDIDX_SEETHROUGH_SCENARY = 5, - DDIDX_SEETHROUGH_PATHS = 6, - DDIDX_INVISIBLE_SUPPORTS = 7, - DDIDX_INVISIBLE_PEEPS = 8, - DDIDX_LAND_HEIGHTS = 10, - DDIDX_TRACK_HEIGHTS = 11, - DDIDX_PATH_HEIGHTS = 12, - // 13 is a separator - DDIDX_VIEW_CLIPPING = 14, - DDIDX_HIGHLIGHT_PATH_ISSUES = 15, + DDIDX_TRANSPARENT_WATER = 1, + DDIDX_HIDE_BASE = 2, + DDIDX_HIDE_VERTICAL = 3, + // separator + DDIDX_SEETHROUGH_RIDES = 5, + DDIDX_SEETHROUGH_SCENERY = 6, + DDIDX_SEETHROUGH_PATHS = 7, + DDIDX_INVISIBLE_SUPPORTS = 8, + DDIDX_INVISIBLE_PEEPS = 9, + // separator + DDIDX_LAND_HEIGHTS = 11, + DDIDX_TRACK_HEIGHTS = 12, + DDIDX_PATH_HEIGHTS = 13, + // separator + DDIDX_VIEW_CLIPPING = 15, + DDIDX_HIGHLIGHT_PATH_ISSUES = 16, TOP_TOOLBAR_VIEW_MENU_COUNT }; @@ -794,14 +797,14 @@ static void window_top_toolbar_invalidate(rct_window* w) // Footpath button pressed down if (window_find_by_class(WC_FOOTPATH) == nullptr) - w->pressed_widgets &= ~(1 << WIDX_PATH); + w->pressed_widgets &= ~(1ULL << WIDX_PATH); else - w->pressed_widgets |= (1 << WIDX_PATH); + w->pressed_widgets |= (1ULL << WIDX_PATH); if (gGamePaused & GAME_PAUSED_NORMAL) - w->pressed_widgets |= (1 << WIDX_PAUSE); + w->pressed_widgets |= (1ULL << WIDX_PAUSE); else - w->pressed_widgets &= ~(1 << WIDX_PAUSE); + w->pressed_widgets &= ~(1ULL << WIDX_PAUSE); if (!OpenRCT2::Audio::gGameSoundsOff) window_top_toolbar_widgets[WIDX_MUTE].image = IMAGE_TYPE_REMAP | SPR_G2_TOOLBAR_MUTE; @@ -832,15 +835,15 @@ static void window_top_toolbar_invalidate(rct_window* w) if (mainWindow->viewport->zoom == ZoomLevel::min()) { - w->disabled_widgets |= (1 << WIDX_ZOOM_IN); + w->disabled_widgets |= (1ULL << WIDX_ZOOM_IN); } else if (mainWindow->viewport->zoom >= ZoomLevel::max()) { - w->disabled_widgets |= (1 << WIDX_ZOOM_OUT); + w->disabled_widgets |= (1ULL << WIDX_ZOOM_OUT); } else { - w->disabled_widgets &= ~((1 << WIDX_ZOOM_IN) | (1 << WIDX_ZOOM_OUT)); + w->disabled_widgets &= ~((1ULL << WIDX_ZOOM_IN) | (1ULL << WIDX_ZOOM_OUT)); } } @@ -863,8 +866,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) imgId = SPR_TOOLBAR_STAFF; if (WidgetIsPressed(w, WIDX_STAFF)) imgId++; - imgId |= SPRITE_ID_PALETTE_COLOUR_2(gStaffHandymanColour, gStaffMechanicColour); - gfx_draw_sprite(dpi, imgId, screenPos, 0); + gfx_draw_sprite(dpi, ImageId(imgId, gStaffHandymanColour, gStaffMechanicColour), screenPos); } // Draw fast forward button @@ -874,16 +876,15 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) w->windowPos.y + window_top_toolbar_widgets[WIDX_FASTFORWARD].top + 0 }; if (WidgetIsPressed(w, WIDX_FASTFORWARD)) screenPos.y++; - imgId = SPR_G2_FASTFORWARD; - gfx_draw_sprite(dpi, imgId, screenPos + ScreenCoordsXY{ 6, 3 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_G2_FASTFORWARD), screenPos + ScreenCoordsXY{ 6, 3 }); for (int32_t i = 0; i < gGameSpeed && gGameSpeed <= 4; i++) { - gfx_draw_sprite(dpi, SPR_G2_SPEED_ARROW, screenPos + ScreenCoordsXY{ 5 + i * 5, 15 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_G2_SPEED_ARROW), screenPos + ScreenCoordsXY{ 5 + i * 5, 15 }); } for (int32_t i = 0; i < 3 && i < gGameSpeed - 4 && gGameSpeed >= 5; i++) { - gfx_draw_sprite(dpi, SPR_G2_HYPER_ARROW, screenPos + ScreenCoordsXY{ 5 + i * 6, 15 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_G2_HYPER_ARROW), screenPos + ScreenCoordsXY{ 5 + i * 6, 15 }); } } @@ -895,8 +896,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) window_top_toolbar_widgets[WIDX_CHEATS].top - 1 }; if (WidgetIsPressed(w, WIDX_CHEATS)) screenPos.y++; - imgId = SPR_G2_SANDBOX; - gfx_draw_sprite(dpi, imgId, screenPos, 3); + gfx_draw_sprite(dpi, ImageId(SPR_G2_SANDBOX), screenPos); // Draw an overlay if clearance checks are disabled if (gCheatsDisableClearanceChecks) @@ -914,8 +914,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) + ScreenCoordsXY{ window_top_toolbar_widgets[WIDX_CHAT].left, window_top_toolbar_widgets[WIDX_CHAT].top - 2 }; if (WidgetIsPressed(w, WIDX_CHAT)) screenPos.y++; - imgId = SPR_G2_CHAT; - gfx_draw_sprite(dpi, imgId, screenPos, 3); + gfx_draw_sprite(dpi, ImageId(SPR_G2_CHAT), screenPos); } // Draw debug button @@ -925,8 +924,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) + ScreenCoordsXY{ window_top_toolbar_widgets[WIDX_DEBUG].left, window_top_toolbar_widgets[WIDX_DEBUG].top - 1 }; if (WidgetIsPressed(w, WIDX_DEBUG)) screenPos.y++; - imgId = SPR_TAB_GEARS_0; - gfx_draw_sprite(dpi, imgId, screenPos, 3); + gfx_draw_sprite(dpi, ImageId(SPR_TAB_GEARS_0), screenPos); } // Draw research button @@ -937,8 +935,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) window_top_toolbar_widgets[WIDX_RESEARCH].top }; if (WidgetIsPressed(w, WIDX_RESEARCH)) screenPos.y++; - imgId = SPR_TAB_FINANCES_RESEARCH_0; - gfx_draw_sprite(dpi, imgId, screenPos, 0); + gfx_draw_sprite(dpi, ImageId(SPR_TAB_FINANCES_RESEARCH_0), screenPos); } // Draw finances button @@ -949,8 +946,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) window_top_toolbar_widgets[WIDX_FINANCES].top + 1 }; if (WidgetIsPressed(w, WIDX_FINANCES)) screenPos.y++; - imgId = SPR_FINANCE; - gfx_draw_sprite(dpi, imgId, screenPos, 0); + gfx_draw_sprite(dpi, ImageId(SPR_FINANCE), screenPos); } // Draw news button @@ -960,8 +956,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) + ScreenCoordsXY{ window_top_toolbar_widgets[WIDX_NEWS].left + 3, window_top_toolbar_widgets[WIDX_NEWS].top + 0 }; if (WidgetIsPressed(w, WIDX_NEWS)) screenPos.y++; - imgId = SPR_G2_TAB_NEWS; - gfx_draw_sprite(dpi, imgId, screenPos, 0); + gfx_draw_sprite(dpi, ImageId(SPR_G2_TAB_NEWS), screenPos); } // Draw network button @@ -975,7 +970,7 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi) // Draw (de)sync icon. imgId = (network_is_desynchronised() ? SPR_G2_MULTIPLAYER_DESYNC : SPR_G2_MULTIPLAYER_SYNC); - gfx_draw_sprite(dpi, imgId, screenPos + ScreenCoordsXY{ 3, 11 }, 0); + gfx_draw_sprite(dpi, ImageId(imgId), screenPos + ScreenCoordsXY{ 3, 11 }); // Draw number of players. auto ft = Formatter(); @@ -1000,11 +995,11 @@ static void repaint_scenery_tool_down(const ScreenCoordsXY& windowPos, rct_widge { case ViewportInteractionItem::Scenery: { - rct_scenery_entry* scenery_entry = info.Element->AsSmallScenery()->GetEntry(); + auto* sceneryEntry = info.Element->AsSmallScenery()->GetEntry(); // If can't repaint if (!scenery_small_entry_has_flag( - scenery_entry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR | SMALL_SCENERY_FLAG_HAS_GLASS)) + sceneryEntry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR | SMALL_SCENERY_FLAG_HAS_GLASS)) return; uint8_t quadrant = info.Element->AsSmallScenery()->GetSceneryQuadrant(); @@ -1017,10 +1012,10 @@ static void repaint_scenery_tool_down(const ScreenCoordsXY& windowPos, rct_widge } case ViewportInteractionItem::Wall: { - rct_scenery_entry* scenery_entry = info.Element->AsWall()->GetEntry(); + auto* scenery_entry = info.Element->AsWall()->GetEntry(); // If can't repaint - if (!(scenery_entry->wall.flags & (WALL_SCENERY_HAS_PRIMARY_COLOUR | WALL_SCENERY_HAS_GLASS))) + if (!(scenery_entry->flags & (WALL_SCENERY_HAS_PRIMARY_COLOUR | WALL_SCENERY_HAS_GLASS))) return; auto repaintScenery = WallSetColourAction( @@ -1032,10 +1027,10 @@ static void repaint_scenery_tool_down(const ScreenCoordsXY& windowPos, rct_widge } case ViewportInteractionItem::LargeScenery: { - rct_scenery_entry* scenery_entry = info.Element->AsLargeScenery()->GetEntry(); + auto* sceneryEntry = info.Element->AsLargeScenery()->GetEntry(); // If can't repaint - if (!(scenery_entry->large_scenery.flags & LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) + if (!(sceneryEntry->flags & LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) return; auto repaintScenery = LargeScenerySetColourAction( @@ -1050,8 +1045,8 @@ static void repaint_scenery_tool_down(const ScreenCoordsXY& windowPos, rct_widge auto banner = info.Element->AsBanner()->GetBanner(); if (banner != nullptr) { - auto scenery_entry = get_banner_entry(banner->type); - if (scenery_entry->banner.flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR) + auto* bannerEntry = get_banner_entry(banner->type); + if (bannerEntry->flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR) { auto repaintScenery = BannerSetColourAction( { info.Loc, info.Element->GetBaseZ(), info.Element->AsBanner()->GetPosition() }, @@ -1079,7 +1074,7 @@ static void scenery_eyedropper_tool_down(const ScreenCoordsXY& windowPos, rct_wi { SmallSceneryElement* sceneryElement = info.Element->AsSmallScenery(); auto entryIndex = sceneryElement->GetEntryIndex(); - rct_scenery_entry* sceneryEntry = get_small_scenery_entry(entryIndex); + auto* sceneryEntry = get_small_scenery_entry(entryIndex); if (sceneryEntry != nullptr) { if (window_scenery_set_selected_item({ SCENERY_TYPE_SMALL, entryIndex })) @@ -1095,7 +1090,7 @@ static void scenery_eyedropper_tool_down(const ScreenCoordsXY& windowPos, rct_wi case ViewportInteractionItem::Wall: { auto entryIndex = info.Element->AsWall()->GetEntryIndex(); - rct_scenery_entry* sceneryEntry = get_wall_entry(entryIndex); + auto* sceneryEntry = get_wall_entry(entryIndex); if (sceneryEntry != nullptr) { if (window_scenery_set_selected_item({ SCENERY_TYPE_WALL, entryIndex })) @@ -1111,7 +1106,7 @@ static void scenery_eyedropper_tool_down(const ScreenCoordsXY& windowPos, rct_wi case ViewportInteractionItem::LargeScenery: { auto entryIndex = info.Element->AsLargeScenery()->GetEntryIndex(); - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(entryIndex); + auto* sceneryEntry = get_large_scenery_entry(entryIndex); if (sceneryEntry != nullptr) { if (window_scenery_set_selected_item({ SCENERY_TYPE_LARGE, entryIndex })) @@ -1143,8 +1138,8 @@ static void scenery_eyedropper_tool_down(const ScreenCoordsXY& windowPos, rct_wi case ViewportInteractionItem::FootpathItem: { auto entryIndex = info.Element->AsPath()->GetAdditionEntryIndex(); - rct_scenery_entry* sceneryEntry = get_footpath_item_entry(entryIndex); - if (sceneryEntry != nullptr) + auto* pathBitEntry = get_footpath_item_entry(entryIndex); + if (pathBitEntry != nullptr) { if (window_scenery_set_selected_item({ SCENERY_TYPE_PATH_ITEM, entryIndex })) { @@ -1172,7 +1167,7 @@ static void sub_6E1F34_update_screen_coords_and_buttons_pressed(bool canRaiseIte if (InputTestPlaceObjectModifier(PLACE_OBJECT_MODIFIER_COPY_Z)) { // CTRL pressed - auto flags = EnumsToFlags( + constexpr auto flags = EnumsToFlags( ViewportInteractionItem::Terrain, ViewportInteractionItem::Ride, ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::Wall, ViewportInteractionItem::LargeScenery); auto info = get_map_coordinates_from_pos(screenPos, flags); @@ -1246,9 +1241,9 @@ static void sub_6E1F34_small_scenery( uint16_t maxPossibleHeight = (std::numeric_limits::max() - 32) * ZoomLevel::max(); bool can_raise_item = false; - rct_scenery_entry* scenery = get_small_scenery_entry(sceneryIndex); - maxPossibleHeight -= scenery->small_scenery.height; - if (scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_STACKABLE)) + auto* sceneryEntry = get_small_scenery_entry(sceneryIndex); + maxPossibleHeight -= sceneryEntry->height; + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_STACKABLE)) { can_raise_item = true; } @@ -1256,7 +1251,7 @@ static void sub_6E1F34_small_scenery( sub_6E1F34_update_screen_coords_and_buttons_pressed(can_raise_item, screenPos); // Small scenery - if (!scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_FULL_TILE)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) { uint8_t quadrant = 0; @@ -1320,7 +1315,7 @@ static void sub_6E1F34_small_scenery( uint8_t rotation = gWindowSceneryRotation; - if (!scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_ROTATABLE)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_ROTATABLE)) { rotation = util_rand() & 0xFF; } @@ -1342,7 +1337,7 @@ static void sub_6E1F34_small_scenery( // If CTRL not pressed if (!gSceneryCtrlPressed) { - auto flags = EnumsToFlags(ViewportInteractionItem::Terrain, ViewportInteractionItem::Water); + constexpr auto flags = EnumsToFlags(ViewportInteractionItem::Terrain, ViewportInteractionItem::Water); auto info = get_map_coordinates_from_pos(screenPos, flags); gridPos = info.Loc; @@ -1404,7 +1399,7 @@ static void sub_6E1F34_small_scenery( gridPos = gridPos.ToTileStart(); uint8_t rotation = gWindowSceneryRotation; - if (!scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_ROTATABLE)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_ROTATABLE)) { rotation = util_rand() & 0xFF; } @@ -1436,7 +1431,7 @@ static void sub_6E1F34_path_item( sub_6E1F34_update_screen_coords_and_buttons_pressed(false, screenPos); // Path bits - auto flags = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem); + constexpr auto flags = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem); auto info = get_map_coordinates_from_pos(screenPos, flags); gridPos = info.Loc; @@ -1468,10 +1463,10 @@ static void sub_6E1F34_wall( auto screenPos = sourceScreenPos; uint16_t maxPossibleHeight = (std::numeric_limits::max() - 32) * ZoomLevel::max(); - rct_scenery_entry* scenery_entry = get_wall_entry(sceneryIndex); - if (scenery_entry) + auto* wallEntry = get_wall_entry(sceneryIndex); + if (wallEntry != nullptr) { - maxPossibleHeight -= scenery_entry->wall.height; + maxPossibleHeight -= wallEntry->height; } sub_6E1F34_update_screen_coords_and_buttons_pressed(true, screenPos); @@ -1557,13 +1552,13 @@ static void sub_6E1F34_large_scenery( auto screenPos = sourceScreenPos; uint16_t maxPossibleHeight = (std::numeric_limits::max() - 32) * ZoomLevel::max(); - rct_scenery_entry* scenery_entry = get_large_scenery_entry(sceneryIndex); - if (scenery_entry) + auto* sceneryEntry = get_large_scenery_entry(sceneryIndex); + if (sceneryEntry) { int16_t maxClearZ = 0; - for (int32_t i = 0; scenery_entry->large_scenery.tiles[i].x_offset != -1; ++i) + for (int32_t i = 0; sceneryEntry->tiles[i].x_offset != -1; ++i) { - maxClearZ = std::max(maxClearZ, scenery_entry->large_scenery.tiles[i].z_clearance); + maxClearZ = std::max(maxClearZ, sceneryEntry->tiles[i].z_clearance); } maxPossibleHeight = std::max(0, maxPossibleHeight - maxClearZ); } @@ -1658,7 +1653,7 @@ static void sub_6E1F34_banner( sub_6E1F34_update_screen_coords_and_buttons_pressed(false, screenPos); // Banner - auto flags = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem); + constexpr auto flags = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem); auto info = get_map_coordinates_from_pos(screenPos, flags); gridPos = info.Loc; @@ -1755,14 +1750,14 @@ static void window_top_toolbar_scenery_tool_down(const ScreenCoordsXY& windowPos for (int32_t q = 0; q < quantity; q++) { int32_t zCoordinate = gSceneryPlaceZ; - rct_scenery_entry* scenery = get_small_scenery_entry(selectedScenery); + auto* sceneryEntry = get_small_scenery_entry(selectedScenery); int16_t cur_grid_x = gridPos.x; int16_t cur_grid_y = gridPos.y; if (isCluster) { - if (!scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_FULL_TILE)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) { quadrant = util_rand() & 3; } @@ -1777,7 +1772,7 @@ static void window_top_toolbar_scenery_tool_down(const ScreenCoordsXY& windowPos cur_grid_x += grid_x_offset * COORDS_XY_STEP; cur_grid_y += grid_y_offset * COORDS_XY_STEP; - if (!scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_ROTATABLE)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_ROTATABLE)) { gSceneryPlaceRotation = (gSceneryPlaceRotation + 1) & 3; } @@ -2117,7 +2112,7 @@ static void top_toolbar_tool_update_land(const ScreenCoordsXY& screenPos) int16_t tool_size = gLandToolSize; std::optional mapTile; - uint8_t side; + uint8_t side{}; gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE; if (tool_size == 1) @@ -2667,10 +2662,10 @@ static void top_toolbar_tool_update_scenery(const ScreenCoordsXY& screenPos) gMapSelectPositionB.y = mapTile.y; } - rct_scenery_entry* scenery = get_small_scenery_entry(selection.EntryIndex); + auto* sceneryEntry = get_small_scenery_entry(selection.EntryIndex); gMapSelectType = MAP_SELECT_TYPE_FULL; - if (!scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_FULL_TILE) && !gWindowSceneryScatterEnabled) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE) && !gWindowSceneryScatterEnabled) { gMapSelectType = MAP_SELECT_TYPE_QUARTER_0 + (quadrant ^ 2); } @@ -2813,10 +2808,10 @@ static void top_toolbar_tool_update_scenery(const ScreenCoordsXY& screenPos) return; } - rct_scenery_entry* scenery = get_large_scenery_entry(selection.EntryIndex); + auto* sceneryEntry = get_large_scenery_entry(selection.EntryIndex); gMapSelectionTiles.clear(); - for (rct_large_scenery_tile* tile = scenery->large_scenery.tiles; + for (rct_large_scenery_tile* tile = sceneryEntry->tiles; tile->x_offset != static_cast(static_cast(0xFFFF)); tile++) { CoordsXY tileLocation = { tile->x_offset, tile->y_offset }; @@ -3615,14 +3610,14 @@ static void top_toolbar_network_menu_dropdown(int16_t dropdownIndex) static void top_toolbar_init_view_menu(rct_window* w, rct_widget* widget) { using namespace Dropdown; - constexpr Item items[] = { ToggleOption(DDIDX_UNDERGROUND_INSIDE, STR_UNDERGROUND_VIEW), + ToggleOption(DDIDX_TRANSPARENT_WATER, STR_VIEWPORT_TRANSPARENT_WATER), ToggleOption(DDIDX_HIDE_BASE, STR_REMOVE_BASE_LAND), ToggleOption(DDIDX_HIDE_VERTICAL, STR_REMOVE_VERTICAL_FACES), Separator(), ToggleOption(DDIDX_SEETHROUGH_RIDES, STR_SEE_THROUGH_RIDES), - ToggleOption(DDIDX_SEETHROUGH_SCENARY, STR_SEE_THROUGH_SCENERY), + ToggleOption(DDIDX_SEETHROUGH_SCENERY, STR_SEE_THROUGH_SCENERY), ToggleOption(DDIDX_SEETHROUGH_PATHS, STR_SEE_THROUGH_PATHS), ToggleOption(DDIDX_INVISIBLE_SUPPORTS, STR_INVISIBLE_SUPPORTS), ToggleOption(DDIDX_INVISIBLE_PEEPS, STR_INVISIBLE_PEOPLE), @@ -3634,6 +3629,7 @@ static void top_toolbar_init_view_menu(rct_window* w, rct_widget* widget) ToggleOption(DDIDX_VIEW_CLIPPING, STR_VIEW_CLIPPING_MENU), ToggleOption(DDIDX_HIGHLIGHT_PATH_ISSUES, STR_HIGHLIGHT_PATH_ISSUES_MENU), }; + static_assert(ItemIDsMatchIndices(items)); SetItems(items); @@ -3645,33 +3641,41 @@ static void top_toolbar_init_view_menu(rct_window* w, rct_widget* widget) // Set checkmarks rct_viewport* mainViewport = window_get_main()->viewport; if (mainViewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) - Dropdown::SetChecked(0, true); + Dropdown::SetChecked(DDIDX_UNDERGROUND_INSIDE, true); + if (gConfigGeneral.transparent_water) + Dropdown::SetChecked(DDIDX_TRANSPARENT_WATER, true); if (mainViewport->flags & VIEWPORT_FLAG_HIDE_BASE) - Dropdown::SetChecked(1, true); + Dropdown::SetChecked(DDIDX_HIDE_BASE, true); if (mainViewport->flags & VIEWPORT_FLAG_HIDE_VERTICAL) - Dropdown::SetChecked(2, true); + Dropdown::SetChecked(DDIDX_HIDE_VERTICAL, true); if (mainViewport->flags & VIEWPORT_FLAG_SEETHROUGH_RIDES) - Dropdown::SetChecked(4, true); + Dropdown::SetChecked(DDIDX_SEETHROUGH_RIDES, true); if (mainViewport->flags & VIEWPORT_FLAG_SEETHROUGH_SCENERY) - Dropdown::SetChecked(5, true); + Dropdown::SetChecked(DDIDX_SEETHROUGH_SCENERY, true); if (mainViewport->flags & VIEWPORT_FLAG_SEETHROUGH_PATHS) - Dropdown::SetChecked(6, true); + Dropdown::SetChecked(DDIDX_SEETHROUGH_PATHS, true); if (mainViewport->flags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS) - Dropdown::SetChecked(7, true); + Dropdown::SetChecked(DDIDX_INVISIBLE_SUPPORTS, true); if (mainViewport->flags & VIEWPORT_FLAG_INVISIBLE_PEEPS) - Dropdown::SetChecked(8, true); + Dropdown::SetChecked(DDIDX_INVISIBLE_PEEPS, true); if (mainViewport->flags & VIEWPORT_FLAG_LAND_HEIGHTS) - Dropdown::SetChecked(10, true); + Dropdown::SetChecked(DDIDX_LAND_HEIGHTS, true); if (mainViewport->flags & VIEWPORT_FLAG_TRACK_HEIGHTS) - Dropdown::SetChecked(11, true); + Dropdown::SetChecked(DDIDX_TRACK_HEIGHTS, true); if (mainViewport->flags & VIEWPORT_FLAG_PATH_HEIGHTS) - Dropdown::SetChecked(12, true); + Dropdown::SetChecked(DDIDX_PATH_HEIGHTS, true); if (mainViewport->flags & VIEWPORT_FLAG_CLIP_VIEW) Dropdown::SetChecked(DDIDX_VIEW_CLIPPING, true); if (mainViewport->flags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) Dropdown::SetChecked(DDIDX_HIGHLIGHT_PATH_ISSUES, true); gDropdownDefaultIndex = DDIDX_UNDERGROUND_INSIDE; + + // Opaque water relies on RCT1 sprites. + if (!is_csg_loaded()) + { + Dropdown::SetDisabled(DDIDX_TRANSPARENT_WATER, true); + } } /** @@ -3688,6 +3692,10 @@ static void top_toolbar_view_menu_dropdown(int16_t dropdownIndex) case DDIDX_UNDERGROUND_INSIDE: w->viewport->flags ^= VIEWPORT_FLAG_UNDERGROUND_INSIDE; break; + case DDIDX_TRANSPARENT_WATER: + gConfigGeneral.transparent_water ^= 1; + config_save_default(); + break; case DDIDX_HIDE_BASE: w->viewport->flags ^= VIEWPORT_FLAG_HIDE_BASE; break; @@ -3697,7 +3705,7 @@ static void top_toolbar_view_menu_dropdown(int16_t dropdownIndex) case DDIDX_SEETHROUGH_RIDES: w->viewport->flags ^= VIEWPORT_FLAG_SEETHROUGH_RIDES; break; - case DDIDX_SEETHROUGH_SCENARY: + case DDIDX_SEETHROUGH_SCENERY: w->viewport->flags ^= VIEWPORT_FLAG_SEETHROUGH_SCENERY; break; case DDIDX_SEETHROUGH_PATHS: diff --git a/src/openrct2-ui/windows/TrackDesignManage.cpp b/src/openrct2-ui/windows/TrackDesignManage.cpp index 66eb6d374d..10d541600d 100644 --- a/src/openrct2-ui/windows/TrackDesignManage.cpp +++ b/src/openrct2-ui/windows/TrackDesignManage.cpp @@ -95,7 +95,7 @@ rct_window* window_track_manage_open(track_design_file_ref* tdFileRef) rct_window* w = WindowCreateCentred( 250, 44, &window_track_manage_events, WC_MANAGE_TRACK_DESIGN, WF_STICK_TO_FRONT | WF_TRANSPARENT); w->widgets = window_track_manage_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_RENAME) | (1 << WIDX_DELETE); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_RENAME) | (1ULL << WIDX_DELETE); WindowInitScrollWidgets(w); rct_window* trackDesignListWindow = window_find_by_class(WC_TRACK_DESIGN_LIST); @@ -203,7 +203,7 @@ static void window_track_delete_prompt_open() ScreenCoordsXY(std::max(TOP_TOOLBAR_HEIGHT + 1, (screenWidth - 250) / 2), (screenHeight - 44) / 2), 250, 74, &window_track_delete_prompt_events, WC_TRACK_DELETE_PROMPT, WF_STICK_TO_FRONT); w->widgets = window_track_delete_prompt_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_RENAME) | (1 << WIDX_DELETE); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_RENAME) | (1ULL << WIDX_DELETE); WindowInitScrollWidgets(w); w->flags |= WF_TRANSPARENT; } diff --git a/src/openrct2-ui/windows/TrackDesignPlace.cpp b/src/openrct2-ui/windows/TrackDesignPlace.cpp index cbdeda78e7..2508daf583 100644 --- a/src/openrct2-ui/windows/TrackDesignPlace.cpp +++ b/src/openrct2-ui/windows/TrackDesignPlace.cpp @@ -96,7 +96,7 @@ static rct_window_event_list window_track_place_events([](auto& events) static std::vector _window_track_place_mini_preview; static CoordsXY _windowTrackPlaceLast; -static uint8_t _window_track_place_ride_index; +static ride_id_t _window_track_place_ride_index; static bool _window_track_place_last_was_valid; static CoordsXYZ _windowTrackPlaceLastValid; static money32 _window_track_place_last_cost; @@ -144,7 +144,7 @@ rct_window* window_track_place_open(const track_design_file_ref* tdFileRef) rct_window* w = WindowCreate(ScreenCoordsXY(0, 29), 200, 124, &window_track_place_events, WC_TRACK_DESIGN_PLACE, 0); w->widgets = window_track_place_widgets; - w->enabled_widgets = 1 << WIDX_CLOSE | 1 << WIDX_ROTATE | 1 << WIDX_MIRROR | 1 << WIDX_SELECT_DIFFERENT_DESIGN; + w->enabled_widgets = 1ULL << WIDX_CLOSE | 1ULL << WIDX_ROTATE | 1ULL << WIDX_MIRROR | 1ULL << WIDX_SELECT_DIFFERENT_DESIGN; WindowInitScrollWidgets(w); tool_set(w, WIDX_PRICE, Tool::Crosshair); input_set_flag(INPUT_FLAG_6, true); @@ -490,7 +490,8 @@ static void window_track_place_paint(rct_window* w, rct_drawpixelinfo* dpi) g1temp.width = TRACK_MINI_PREVIEW_WIDTH; g1temp.height = TRACK_MINI_PREVIEW_HEIGHT; gfx_set_g1_element(SPR_TEMP, &g1temp); - gfx_draw_sprite(&clippedDpi, SPR_TEMP | SPRITE_ID_PALETTE_COLOUR_1(NOT_TRANSLUCENT(w->colours[0])), { 0, 0 }, 0); + drawing_engine_invalidate_image(SPR_TEMP); + gfx_draw_sprite(&clippedDpi, ImageId(SPR_TEMP, NOT_TRANSLUCENT(w->colours[0])), { 0, 0 }); } // Price diff --git a/src/openrct2-ui/windows/TrackList.cpp b/src/openrct2-ui/windows/TrackList.cpp index 42585dcba6..88ab3fd192 100644 --- a/src/openrct2-ui/windows/TrackList.cpp +++ b/src/openrct2-ui/windows/TrackList.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -27,6 +28,9 @@ static constexpr const rct_string_id WINDOW_TITLE = STR_SELECT_DESIGN; static constexpr const int32_t WH = 431; static constexpr const int32_t WW = 600; +static constexpr const int32_t DEBUG_PATH_HEIGHT = 12; +static constexpr const int32_t ROTATE_AND_SCENERY_BUTTON_SIZE = 24; +static constexpr const int32_t WINDOW_PADDING = 5; // clang-format off enum { @@ -51,8 +55,8 @@ static rct_widget window_track_list_widgets[] = { MakeWidget({130, 32}, { 92, 13}, WindowWidgetType::Button, WindowColour::Primary , STR_OBJECT_SEARCH_CLEAR ), MakeWidget({ 4, 46}, {218, 381}, WindowWidgetType::Scroll, WindowColour::Primary , SCROLL_VERTICAL, STR_CLICK_ON_DESIGN_TO_BUILD_IT_TIP), MakeWidget({224, 18}, {372, 219}, WindowWidgetType::FlatBtn, WindowColour::Primary ), - MakeWidget({574, 405}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Primary , SPR_ROTATE_ARROW, STR_ROTATE_90_TIP ), - MakeWidget({574, 381}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Primary , SPR_SCENERY, STR_TOGGLE_SCENERY_TIP ), + MakeWidget({572, 405}, { ROTATE_AND_SCENERY_BUTTON_SIZE, ROTATE_AND_SCENERY_BUTTON_SIZE}, WindowWidgetType::FlatBtn, WindowColour::Primary , SPR_ROTATE_ARROW, STR_ROTATE_90_TIP ), + MakeWidget({572, 381}, { ROTATE_AND_SCENERY_BUTTON_SIZE, ROTATE_AND_SCENERY_BUTTON_SIZE}, WindowWidgetType::FlatBtn, WindowColour::Primary , SPR_SCENERY, STR_TOGGLE_SCENERY_TIP ), { WIDGETS_END }, }; @@ -120,7 +124,7 @@ rct_window* window_track_list_open(RideSelection item) screenPos = { 0, TOP_TOOLBAR_HEIGHT + 2 }; } - rct_window* w = WindowCreate(screenPos, 600, 432, &window_track_list_events, WC_TRACK_DESIGN_LIST, 0); + rct_window* w = WindowCreate(screenPos, 600, WH, &window_track_list_events, WC_TRACK_DESIGN_LIST, 0); window_track_list_widgets[WIDX_FILTER_STRING].string = _filterString; w->widgets = window_track_list_widgets; @@ -237,7 +241,7 @@ static void window_track_list_select(rct_window* w, int32_t listIndex) // Displays a message if the ride can't load, fix #4080 if (_loadedTrackDesign == nullptr) { - context_show_error(STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_TRACK_LOAD_FAILED_ERROR, {}); + context_show_error(STR_CANT_BUILD_THIS_HERE, STR_TRACK_LOAD_FAILED_ERROR, {}); return; } @@ -450,26 +454,35 @@ static void window_track_list_invalidate(rct_window* w) if ((gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) || w->selected_list_item != 0) { - w->pressed_widgets |= 1 << WIDX_TRACK_PREVIEW; - w->disabled_widgets &= ~(1 << WIDX_TRACK_PREVIEW); + w->pressed_widgets |= 1ULL << WIDX_TRACK_PREVIEW; + w->disabled_widgets &= ~(1ULL << WIDX_TRACK_PREVIEW); window_track_list_widgets[WIDX_ROTATE].type = WindowWidgetType::FlatBtn; window_track_list_widgets[WIDX_TOGGLE_SCENERY].type = WindowWidgetType::FlatBtn; if (gTrackDesignSceneryToggle) { - w->pressed_widgets &= ~(1 << WIDX_TOGGLE_SCENERY); + w->pressed_widgets &= ~(1ULL << WIDX_TOGGLE_SCENERY); } else { - w->pressed_widgets |= (1 << WIDX_TOGGLE_SCENERY); + w->pressed_widgets |= (1ULL << WIDX_TOGGLE_SCENERY); } } else { - w->pressed_widgets &= ~(1 << WIDX_TRACK_PREVIEW); - w->disabled_widgets |= (1 << WIDX_TRACK_PREVIEW); + w->pressed_widgets &= ~(1ULL << WIDX_TRACK_PREVIEW); + w->disabled_widgets |= (1ULL << WIDX_TRACK_PREVIEW); window_track_list_widgets[WIDX_ROTATE].type = WindowWidgetType::Empty; window_track_list_widgets[WIDX_TOGGLE_SCENERY].type = WindowWidgetType::Empty; } + + // When debugging tools are on, shift everything up a bit to make room for displaying the path. + const int32_t bottomMargin = gConfigGeneral.debugging_tools ? (WINDOW_PADDING + DEBUG_PATH_HEIGHT) : WINDOW_PADDING; + window_track_list_widgets[WIDX_TRACK_LIST].bottom = w->height - bottomMargin; + window_track_list_widgets[WIDX_ROTATE].bottom = w->height - bottomMargin; + window_track_list_widgets[WIDX_ROTATE].top = window_track_list_widgets[WIDX_ROTATE].bottom - ROTATE_AND_SCENERY_BUTTON_SIZE; + window_track_list_widgets[WIDX_TOGGLE_SCENERY].bottom = window_track_list_widgets[WIDX_ROTATE].top; + window_track_list_widgets[WIDX_TOGGLE_SCENERY].top = window_track_list_widgets[WIDX_TOGGLE_SCENERY].bottom + - ROTATE_AND_SCENERY_BUTTON_SIZE; } /** @@ -500,13 +513,26 @@ static void window_track_list_paint(rct_window* w, rct_drawpixelinfo* dpi) // Track preview int32_t colour; rct_widget* widget = &window_track_list_widgets[WIDX_TRACK_PREVIEW]; - auto screenPos = w->windowPos + ScreenCoordsXY{ widget->left + 1, widget->top + 1 }; colour = ColourMapA[w->colours[0]].darkest; + utf8* path = _trackDesigns[trackIndex].path; + + // Show track file path (in debug mode) + if (gConfigGeneral.debugging_tools) + { + utf8 pathBuffer[MAX_PATH]; + const utf8* pathPtr = pathBuffer; + shorten_path(pathBuffer, sizeof(pathBuffer), path, w->width, FontSpriteBase::MEDIUM); + auto ft = Formatter(); + ft.Add(pathPtr); + DrawTextBasic( + dpi, w->windowPos + ScreenCoordsXY{ 0, w->height - DEBUG_PATH_HEIGHT - 3 }, STR_STRING, ft, { w->colours[1] }); + } + + auto screenPos = w->windowPos + ScreenCoordsXY{ widget->left + 1, widget->top + 1 }; gfx_fill_rect(dpi, { screenPos, screenPos + ScreenCoordsXY{ 369, 216 } }, colour); if (_loadedTrackDesignIndex != trackIndex) { - utf8* path = _trackDesigns[trackIndex].path; if (track_list_load_design_for_preview(path)) { _loadedTrackDesignIndex = trackIndex; @@ -532,7 +558,7 @@ static void window_track_list_paint(rct_window* w, rct_drawpixelinfo* dpi) g1temp.flags = G1_FLAG_BMP; gfx_set_g1_element(SPR_TEMP, &g1temp); drawing_engine_invalidate_image(SPR_TEMP); - gfx_draw_sprite(dpi, SPR_TEMP, trackPreview, 0); + gfx_draw_sprite(dpi, ImageId(SPR_TEMP), trackPreview); screenPos.y = w->windowPos.y + widget->bottom - 12; diff --git a/src/openrct2-ui/windows/Viewport.cpp b/src/openrct2-ui/windows/Viewport.cpp index 2e29976c70..ea481aedd9 100644 --- a/src/openrct2-ui/windows/Viewport.cpp +++ b/src/openrct2-ui/windows/Viewport.cpp @@ -66,7 +66,7 @@ rct_window* window_viewport_open() { rct_window* w = WindowCreateAutoPos(WW, WH, &window_viewport_events, WC_VIEWPORT, WF_RESIZABLE); w->widgets = window_viewport_widgets; - w->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_ZOOM_IN) | (1 << WIDX_ZOOM_OUT) | (1 << WIDX_LOCATE); + w->enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_ZOOM_IN) | (1ULL << WIDX_ZOOM_OUT) | (1ULL << WIDX_LOCATE); w->number = _viewportNumber++; // Create viewport @@ -180,9 +180,9 @@ static void window_viewport_invalidate(rct_window* w) // Set disabled widgets w->disabled_widgets = 0; if (viewport->zoom == ZoomLevel::min()) - w->disabled_widgets |= 1 << WIDX_ZOOM_IN; + w->disabled_widgets |= 1ULL << WIDX_ZOOM_IN; if (viewport->zoom >= ZoomLevel::max()) - w->disabled_widgets |= 1 << WIDX_ZOOM_OUT; + w->disabled_widgets |= 1ULL << WIDX_ZOOM_OUT; viewport->pos = w->windowPos + ScreenCoordsXY{ viewportWidget->left, viewportWidget->top }; viewport->width = viewportWidget->width(); diff --git a/src/openrct2-ui/windows/Water.cpp b/src/openrct2-ui/windows/Water.cpp index fb223ea436..3c42cdd7ac 100644 --- a/src/openrct2-ui/windows/Water.cpp +++ b/src/openrct2-ui/windows/Water.cpp @@ -45,8 +45,8 @@ public: void OnOpen() override { widgets = window_water_widgets; - enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_DECREMENT) | (1 << WIDX_INCREMENT) | (1 << WIDX_PREVIEW); - hold_down_widgets = (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT); + enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_DECREMENT) | (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_PREVIEW); + hold_down_widgets = (1ULL << WIDX_INCREMENT) | (1ULL << WIDX_DECREMENT); WindowInitScrollWidgets(this); window_push_others_below(this); diff --git a/src/openrct2-ui/windows/Window.h b/src/openrct2-ui/windows/Window.h index 2b727b62cd..7d6d074207 100644 --- a/src/openrct2-ui/windows/Window.h +++ b/src/openrct2-ui/windows/Window.h @@ -47,6 +47,7 @@ rct_window* window_editor_main_open(); rct_window* window_editor_objective_options_open(); rct_window* window_editor_scenario_options_open(); rct_window* window_footpath_open(); +void window_footpath_reset_selected_path(); rct_window* window_guest_open(Peep* peep); rct_window* window_land_open(); rct_window* window_land_rights_open(); diff --git a/src/openrct2/Cheats.cpp b/src/openrct2/Cheats.cpp index e8458acf61..c9de8b38d5 100644 --- a/src/openrct2/Cheats.cpp +++ b/src/openrct2/Cheats.cpp @@ -24,7 +24,6 @@ #include "world/Map.h" #include "world/Park.h" #include "world/Scenery.h" -#include "world/Sprite.h" #include "world/Surface.h" using namespace OpenRCT2; @@ -36,7 +35,7 @@ bool gCheatsDisableClearanceChecks = false; bool gCheatsDisableSupportLimits = false; bool gCheatsShowAllOperatingModes = false; bool gCheatsShowVehiclesFromOtherTrackTypes = false; -bool gCheatsFastLiftHill = false; +bool gCheatsUnlockOperatingLimits = false; bool gCheatsDisableBrakesFailure = false; bool gCheatsDisableAllBreakdowns = false; bool gCheatsBuildInPauseMode = false; @@ -63,7 +62,7 @@ void CheatsReset() gCheatsShowVehiclesFromOtherTrackTypes = false; gCheatsDisableTrainLengthLimit = false; gCheatsEnableChainLiftOnAllTrack = false; - gCheatsFastLiftHill = false; + gCheatsUnlockOperatingLimits = false; gCheatsDisableBrakesFailure = false; gCheatsDisableAllBreakdowns = false; gCheatsBuildInPauseMode = false; @@ -109,7 +108,7 @@ void CheatsSerialise(DataSerialiser& ds) CheatEntrySerialise(ds, CheatType::DisableSupportLimits, gCheatsDisableSupportLimits, count); CheatEntrySerialise(ds, CheatType::ShowAllOperatingModes, gCheatsShowAllOperatingModes, count); CheatEntrySerialise(ds, CheatType::ShowVehiclesFromOtherTrackTypes, gCheatsShowVehiclesFromOtherTrackTypes, count); - CheatEntrySerialise(ds, CheatType::FastLiftHill, gCheatsFastLiftHill, count); + CheatEntrySerialise(ds, CheatType::FastLiftHill, gCheatsUnlockOperatingLimits, count); CheatEntrySerialise(ds, CheatType::DisableBrakesFailure, gCheatsDisableBrakesFailure, count); CheatEntrySerialise(ds, CheatType::DisableAllBreakdowns, gCheatsDisableAllBreakdowns, count); CheatEntrySerialise(ds, CheatType::BuildInPauseMode, gCheatsBuildInPauseMode, count); @@ -163,7 +162,7 @@ void CheatsSerialise(DataSerialiser& ds) ds << gCheatsShowVehiclesFromOtherTrackTypes; break; case CheatType::FastLiftHill: - ds << gCheatsFastLiftHill; + ds << gCheatsUnlockOperatingLimits; break; case CheatType::DisableBrakesFailure: ds << gCheatsDisableBrakesFailure; diff --git a/src/openrct2/Cheats.h b/src/openrct2/Cheats.h index 6c72cb5cc7..4f36817073 100644 --- a/src/openrct2/Cheats.h +++ b/src/openrct2/Cheats.h @@ -17,7 +17,7 @@ extern bool gCheatsDisableClearanceChecks; extern bool gCheatsDisableSupportLimits; extern bool gCheatsShowAllOperatingModes; extern bool gCheatsShowVehiclesFromOtherTrackTypes; -extern bool gCheatsFastLiftHill; +extern bool gCheatsUnlockOperatingLimits; extern bool gCheatsDisableBrakesFailure; extern bool gCheatsDisableAllBreakdowns; extern bool gCheatsBuildInPauseMode; diff --git a/src/openrct2/CmdlineSprite.cpp b/src/openrct2/CmdlineSprite.cpp index 9c4a7daa9d..8d44a95546 100644 --- a/src/openrct2/CmdlineSprite.cpp +++ b/src/openrct2/CmdlineSprite.cpp @@ -436,7 +436,7 @@ int32_t cmdline_for_sprite(const char** argv, int32_t argc) } const rct_object_entry* entry = &ori->ObjectEntry; - void* loadedObject = object_manager_load_object(entry); + const auto* loadedObject = object_manager_load_object(entry); if (loadedObject == nullptr) { fprintf(stderr, "Unable to load object.\n"); diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 130fc95eb9..6ac59f67a2 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -63,6 +63,7 @@ #include "ui/UiContext.h" #include "ui/WindowManager.h" #include "util/Util.h" +#include "world/EntityTweener.h" #include "world/Park.h" #include "world/Sprite.h" @@ -174,6 +175,7 @@ namespace OpenRCT2 } gfx_object_check_all_images_freed(); + gfx_unload_csg(); gfx_unload_g2(); gfx_unload_g1(); Audio::Close(); @@ -1188,7 +1190,6 @@ namespace OpenRCT2 } } } - delete scanner; } #ifndef DISABLE_HTTP diff --git a/src/openrct2/Editor.cpp b/src/openrct2/Editor.cpp index 5976d7e031..fb778c1453 100644 --- a/src/openrct2/Editor.cpp +++ b/src/openrct2/Editor.cpp @@ -34,6 +34,7 @@ #include "util/Util.h" #include "windows/Intent.h" #include "world/Climate.h" +#include "world/EntityList.h" #include "world/Entrance.h" #include "world/Footpath.h" #include "world/Park.h" @@ -310,13 +311,13 @@ namespace Editor ride_init_all(); // - for (int32_t i = 0; i < MAX_ENTITIES; i++) + for (auto* guest : EntityList()) { - auto peep = GetEntity(i); - if (peep != nullptr) - { - peep->SetName({}); - } + guest->SetName({}); + } + for (auto* staff : EntityList()) + { + staff->SetName({}); } reset_sprite_list(); @@ -452,7 +453,7 @@ namespace Editor * * rct2: 0x006AB9B8 */ - ObjectType CheckObjectSelection() + std::pair CheckObjectSelection() { bool isTrackDesignerManager = gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER); @@ -460,52 +461,46 @@ namespace Editor { if (!editor_check_object_group_at_least_one_selected(ObjectType::Paths)) { - gGameCommandErrorText = STR_AT_LEAST_ONE_PATH_OBJECT_MUST_BE_SELECTED; - return ObjectType::Paths; + return { ObjectType::Paths, STR_AT_LEAST_ONE_PATH_OBJECT_MUST_BE_SELECTED }; } } if (!editor_check_object_group_at_least_one_selected(ObjectType::Ride)) { - gGameCommandErrorText = STR_AT_LEAST_ONE_RIDE_OBJECT_MUST_BE_SELECTED; - return ObjectType::Ride; + return { ObjectType::Ride, STR_AT_LEAST_ONE_RIDE_OBJECT_MUST_BE_SELECTED }; } if (!isTrackDesignerManager) { if (!editor_check_object_group_at_least_one_selected(ObjectType::ParkEntrance)) { - gGameCommandErrorText = STR_PARK_ENTRANCE_TYPE_MUST_BE_SELECTED; - return ObjectType::ParkEntrance; + return { ObjectType::ParkEntrance, STR_PARK_ENTRANCE_TYPE_MUST_BE_SELECTED }; } if (!editor_check_object_group_at_least_one_selected(ObjectType::Water)) { - gGameCommandErrorText = STR_WATER_TYPE_MUST_BE_SELECTED; - return ObjectType::Water; + return { ObjectType::Water, STR_WATER_TYPE_MUST_BE_SELECTED }; } } - return ObjectType::None; + return { ObjectType::None, STR_NONE }; } /** * * rct2: 0x0066FEAC */ - bool CheckPark() + std::pair CheckPark() { int32_t parkSize = park_calculate_size(); if (parkSize == 0) { - gGameCommandErrorText = STR_PARK_MUST_OWN_SOME_LAND; - return false; + return { false, STR_PARK_MUST_OWN_SOME_LAND }; } if (gParkEntrances.empty()) { - gGameCommandErrorText = STR_NO_PARK_ENTRANCES; - return false; + return { false, STR_NO_PARK_ENTRANCES }; } for (const auto& parkEntrance : gParkEntrances) @@ -515,12 +510,10 @@ namespace Editor switch (footpath_is_connected_to_map_edge(parkEntrance, direction, 0)) { case FOOTPATH_SEARCH_NOT_FOUND: - gGameCommandErrorText = STR_PARK_ENTRANCE_WRONG_DIRECTION_OR_NO_PATH; - return false; + return { false, STR_PARK_ENTRANCE_WRONG_DIRECTION_OR_NO_PATH }; case FOOTPATH_SEARCH_INCOMPLETE: case FOOTPATH_SEARCH_TOO_COMPLEX: - gGameCommandErrorText = STR_PARK_ENTRANCE_PATH_INCOMPLETE_OR_COMPLEX; - return false; + return { false, STR_PARK_ENTRANCE_PATH_INCOMPLETE_OR_COMPLEX }; case FOOTPATH_SEARCH_SUCCESS: // Run the search again and unown the path footpath_is_connected_to_map_edge(parkEntrance, direction, (1 << 5)); @@ -530,11 +523,10 @@ namespace Editor if (gPeepSpawns.empty()) { - gGameCommandErrorText = STR_PEEP_SPAWNS_NOT_SET; - return false; + return { false, STR_PEEP_SPAWNS_NOT_SET }; } - return true; + return { true, STR_NONE }; } uint8_t GetSelectedObjectFlags(ObjectType objectType, size_t index) diff --git a/src/openrct2/Editor.h b/src/openrct2/Editor.h index 3faf90f33b..cc617791b0 100644 --- a/src/openrct2/Editor.h +++ b/src/openrct2/Editor.h @@ -21,8 +21,8 @@ namespace Editor void LoadTrackManager(); bool LoadLandscape(const utf8* path); - bool CheckPark(); - ObjectType CheckObjectSelection(); + std::pair CheckPark(); + std::pair CheckObjectSelection(); void OpenWindowsForCurrentStep(); diff --git a/src/openrct2/EditorObjectSelectionSession.cpp b/src/openrct2/EditorObjectSelectionSession.cpp index ad20060873..cd13e2f396 100644 --- a/src/openrct2/EditorObjectSelectionSession.cpp +++ b/src/openrct2/EditorObjectSelectionSession.cpp @@ -21,6 +21,7 @@ #include "object/ObjectManager.h" #include "object/ObjectRepository.h" #include "ride/RideData.h" +#include "ride/TrainManager.h" #include "ride/Vehicle.h" #include "scenario/Scenario.h" #include "windows/Intent.h" @@ -202,18 +203,18 @@ void setup_in_use_selection_flags() } // Apply selected object status for hacked vehicles that may not have an associated ride - for (auto vehicle : EntityList(EntityListId::TrainHead)) + for (auto* vehicle : TrainManager::View()) { ObjectEntryIndex type = vehicle->ride_subtype; - if (type != RIDE_ENTRY_INDEX_NULL) // cable lifts use index null. Ignore them + if (type != OBJECT_ENTRY_INDEX_NULL) // cable lifts use index null. Ignore them { Editor::SetSelectedObject(ObjectType::Ride, type, OBJECT_SELECTION_FLAG_SELECTED); } } - for (auto vehicle : EntityList(EntityListId::Vehicle)) + for (auto vehicle : EntityList()) { ObjectEntryIndex type = vehicle->ride_subtype; - if (type != RIDE_ENTRY_INDEX_NULL) // cable lifts use index null. Ignore them + if (type != OBJECT_ENTRY_INDEX_NULL) // cable lifts use index null. Ignore them { Editor::SetSelectedObject(ObjectType::Ride, type, OBJECT_SELECTION_FLAG_SELECTED); } diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 0301b2f91a..50c8afb43f 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -410,7 +410,7 @@ void game_fix_save_vars() // Recalculates peep count after loading a save to fix corrupted files uint32_t guestCount = 0; { - for (auto guest : EntityList(EntityListId::Peep)) + for (auto guest : EntityList()) { if (!guest->OutsideOfPark) { @@ -425,7 +425,7 @@ void game_fix_save_vars() std::vector peepsToRemove; // Fix possibly invalid field values - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->CurrentRideStation >= MAX_STATIONS) { @@ -591,7 +591,7 @@ void reset_all_sprite_quadrant_placements() for (size_t i = 0; i < MAX_ENTITIES; i++) { auto* spr = GetEntity(i); - if (spr != nullptr && spr->sprite_identifier != SpriteIdentifier::Null) + if (spr != nullptr && spr->Type != EntityType::Null) { spr->MoveTo({ spr->x, spr->y, spr->z }); } @@ -678,7 +678,7 @@ static void limit_autosave_count(const size_t numberOfFilesToKeep, bool processL // At first, count how many autosaves there are { - auto scanner = std::unique_ptr(Path::ScanDirectory(filter, false)); + auto scanner = Path::ScanDirectory(filter, false); while (scanner->Next()) { autosavesCount++; @@ -693,7 +693,7 @@ static void limit_autosave_count(const size_t numberOfFilesToKeep, bool processL auto autosaveFiles = std::vector(autosavesCount); { - auto scanner = std::unique_ptr(Path::ScanDirectory(filter, false)); + auto scanner = Path::ScanDirectory(filter, false); for (size_t i = 0; i < autosavesCount; i++) { autosaveFiles[i].resize(MAX_PATH, 0); @@ -837,7 +837,7 @@ void start_silent_record() safe_strcpy(gSilentRecordingName, info.FilePath.c_str(), MAX_PATH); const char* logFmt = "Silent replay recording started: (%s) %s\n"; - printf(logFmt, info.Name.c_str(), info.FilePath.c_str()); + Console::WriteLine(logFmt, info.Name.c_str(), info.FilePath.c_str()); } } @@ -859,7 +859,7 @@ bool stop_silent_record() " Commands: %u\n" " Checksums: %u"; - printf(logFmt, info.Name.c_str(), info.FilePath.c_str(), info.Ticks, info.NumCommands, info.NumChecksums); + Console::WriteLine(logFmt, info.Name.c_str(), info.FilePath.c_str(), info.Ticks, info.NumCommands, info.NumChecksums); return true; } diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index 5d891f9e86..def2b810aa 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -26,6 +26,7 @@ #include "network/network.h" #include "peep/Staff.h" #include "platform/Platform2.h" +#include "ride/Vehicle.h" #include "scenario/Scenario.h" #include "scripting/ScriptEngine.h" #include "title/TitleScreen.h" @@ -150,14 +151,24 @@ void GameState::Update() } else { + // NOTE: Here are a few special cases that would be normally handled in UpdateLogic. + // If the game is paused it will not call UpdateLogic at all. numUpdates = 0; + + if (network_get_mode() == NETWORK_MODE_SERVER) + { + // Make sure the client always knows about what tick the host is on. + network_send_tick(); + } + // Update the animation list. Note this does not // increment the map animation. map_animation_invalidate_all(); - // Special case because we set numUpdates to 0, otherwise in game_logic_update. + // Post-tick network update network_process_pending(); + // Post-tick game actions. GameActions::ProcessQueue(); } } @@ -183,6 +194,8 @@ void GameState::Update() } } + network_flush(); + if (!gOpenRCT2Headless) { input_set_flag(INPUT_FLAG_VIEWPORT_SCROLLING, false); diff --git a/src/openrct2/GameStateSnapshots.cpp b/src/openrct2/GameStateSnapshots.cpp index e1e9c3875c..8ba15a0de6 100644 --- a/src/openrct2/GameStateSnapshots.cpp +++ b/src/openrct2/GameStateSnapshots.cpp @@ -11,7 +11,14 @@ #include "core/CircularBuffer.h" #include "peep/Peep.h" +#include "ride/Vehicle.h" +#include "world/Balloon.h" +#include "world/Duck.h" #include "world/EntityList.h" +#include "world/Fountain.h" +#include "world/Litter.h" +#include "world/MoneyEffect.h" +#include "world/Particle.h" #include "world/Sprite.h" static constexpr size_t MaximumGameStateSnapshots = 32; @@ -50,7 +57,7 @@ struct GameStateSnapshot_t for (size_t i = 0; i < numSprites; i++) { auto entity = getEntity(i); - if (entity == nullptr || entity->misc.sprite_identifier == SpriteIdentifier::Null) + if (entity == nullptr || entity->base.Type == EntityType::Null) continue; indexTable.push_back(static_cast(i)); } @@ -77,45 +84,40 @@ struct GameStateSnapshot_t } auto& sprite = *entity; - ds << sprite.misc.sprite_identifier; + ds << sprite.base.Type; - switch (sprite.misc.sprite_identifier) + switch (sprite.base.Type) { - case SpriteIdentifier::Vehicle: - ds << reinterpret_cast(sprite.vehicle); + case EntityType::Vehicle: + reinterpret_cast(sprite).Serialise(ds); break; - case SpriteIdentifier::Peep: - ds << reinterpret_cast(sprite.peep); + case EntityType::Guest: + reinterpret_cast(sprite).Serialise(ds); break; - case SpriteIdentifier::Litter: - ds << reinterpret_cast(sprite.litter); + case EntityType::Staff: + reinterpret_cast(sprite).Serialise(ds); break; - case SpriteIdentifier::Misc: - { - ds << sprite.misc.SubType; - switch (sprite.misc.SubType) - { - case MiscEntityType::MoneyEffect: - ds << reinterpret_cast(sprite.money_effect); - break; - case MiscEntityType::Balloon: - ds << reinterpret_cast(sprite.balloon); - break; - case MiscEntityType::Duck: - ds << reinterpret_cast(sprite.duck); - break; - case MiscEntityType::JumpingFountainWater: - ds << reinterpret_cast(sprite.jumping_fountain); - break; - case MiscEntityType::SteamParticle: - ds << reinterpret_cast(sprite.steam_particle); - break; - default: - break; - } + case EntityType::Litter: + reinterpret_cast(sprite).Serialise(ds); break; - } - case SpriteIdentifier::Null: + case EntityType::MoneyEffect: + reinterpret_cast(sprite).Serialise(ds); + break; + case EntityType::Balloon: + reinterpret_cast(sprite).Serialise(ds); + break; + case EntityType::Duck: + reinterpret_cast(sprite).Serialise(ds); + break; + case EntityType::JumpingFountain: + reinterpret_cast(sprite).Serialise(ds); + break; + case EntityType::SteamParticle: + reinterpret_cast(sprite).Serialise(ds); + break; + case EntityType::Null: + break; + default: break; } } @@ -177,7 +179,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots for (auto& sprite : spriteList) { // By default they don't exist. - sprite.misc.sprite_identifier = SpriteIdentifier::Null; + sprite.base.Type = EntityType::Null; } snapshot.SerialiseSprites([&spriteList](const size_t index) { return &spriteList[index]; }, MAX_ENTITIES, false); @@ -200,10 +202,8 @@ struct GameStateSnapshots final : public IGameStateSnapshots void CompareSpriteDataCommon( const SpriteBase& spriteBase, const SpriteBase& spriteCmp, GameStateSpriteChange_t& changeData) const { - COMPARE_FIELD(SpriteBase, sprite_identifier); - COMPARE_FIELD(SpriteBase, linked_list_index); + COMPARE_FIELD(SpriteBase, Type); COMPARE_FIELD(SpriteBase, sprite_index); - COMPARE_FIELD(SpriteBase, flags); COMPARE_FIELD(SpriteBase, x); COMPARE_FIELD(SpriteBase, y); COMPARE_FIELD(SpriteBase, z); @@ -225,12 +225,9 @@ struct GameStateSnapshots final : public IGameStateSnapshots COMPARE_FIELD(Peep, NextLoc.y); COMPARE_FIELD(Peep, NextLoc.z); COMPARE_FIELD(Peep, NextFlags); - COMPARE_FIELD(Peep, OutsideOfPark); COMPARE_FIELD(Peep, State); COMPARE_FIELD(Peep, SubState); COMPARE_FIELD(Peep, SpriteType); - COMPARE_FIELD(Peep, AssignedPeepType); - COMPARE_FIELD(Peep, GuestNumRides); COMPARE_FIELD(Peep, TshirtColour); COMPARE_FIELD(Peep, TrousersColour); COMPARE_FIELD(Peep, DestinationX); @@ -239,27 +236,8 @@ struct GameStateSnapshots final : public IGameStateSnapshots COMPARE_FIELD(Peep, Var37); COMPARE_FIELD(Peep, Energy); COMPARE_FIELD(Peep, EnergyTarget); - COMPARE_FIELD(Peep, Happiness); - COMPARE_FIELD(Peep, HappinessTarget); - COMPARE_FIELD(Peep, Nausea); - COMPARE_FIELD(Peep, NauseaTarget); - COMPARE_FIELD(Peep, Hunger); - COMPARE_FIELD(Peep, Thirst); - COMPARE_FIELD(Peep, Toilet); COMPARE_FIELD(Peep, Mass); - COMPARE_FIELD(Peep, TimeToConsume); - COMPARE_FIELD(Peep, Intensity); - COMPARE_FIELD(Peep, NauseaTolerance); COMPARE_FIELD(Peep, WindowInvalidateFlags); - COMPARE_FIELD(Peep, PaidOnDrink); - for (int i = 0; i < 16; i++) - { - COMPARE_FIELD(Peep, RideTypesBeenOn[i]); - } - COMPARE_FIELD(Peep, ItemFlags); - COMPARE_FIELD(Peep, Photo2RideRef); - COMPARE_FIELD(Peep, Photo3RideRef); - COMPARE_FIELD(Peep, Photo4RideRef); COMPARE_FIELD(Peep, CurrentRide); COMPARE_FIELD(Peep, CurrentRideStation); COMPARE_FIELD(Peep, CurrentTrain); @@ -271,64 +249,108 @@ struct GameStateSnapshots final : public IGameStateSnapshots COMPARE_FIELD(Peep, Action); COMPARE_FIELD(Peep, ActionFrame); COMPARE_FIELD(Peep, StepProgress); - COMPARE_FIELD(Peep, GuestNextInQueue); COMPARE_FIELD(Peep, MazeLastEdge); COMPARE_FIELD(Peep, InteractionRideIndex); - COMPARE_FIELD(Peep, TimeInQueue); - for (int i = 0; i < 32; i++) - { - COMPARE_FIELD(Peep, RidesBeenOn[i]); - } COMPARE_FIELD(Peep, Id); - COMPARE_FIELD(Peep, CashInPocket); - COMPARE_FIELD(Peep, CashSpent); - COMPARE_FIELD(Peep, ParkEntryTime); - COMPARE_FIELD(Peep, RejoinQueueTimeout); - COMPARE_FIELD(Peep, PreviousRide); - COMPARE_FIELD(Peep, PreviousRideTimeOut); - for (int i = 0; i < PEEP_MAX_THOUGHTS; i++) - { - COMPARE_FIELD(Peep, Thoughts[i]); - } COMPARE_FIELD(Peep, PathCheckOptimisation); - COMPARE_FIELD(Peep, GuestHeadingToRideId); - COMPARE_FIELD(Peep, StaffOrders); - COMPARE_FIELD(Peep, Photo1RideRef); - COMPARE_FIELD(Peep, PeepFlags); COMPARE_FIELD(Peep, PathfindGoal); for (int i = 0; i < 4; i++) { COMPARE_FIELD(Peep, PathfindHistory[i]); } COMPARE_FIELD(Peep, WalkingFrameNum); - COMPARE_FIELD(Peep, LitterCount); - COMPARE_FIELD(Peep, GuestTimeOnRide); - COMPARE_FIELD(Peep, DisgustingCount); - COMPARE_FIELD(Peep, PaidToEnter); - COMPARE_FIELD(Peep, PaidOnRides); - COMPARE_FIELD(Peep, PaidOnFood); - COMPARE_FIELD(Peep, PaidOnSouvenirs); - COMPARE_FIELD(Peep, AmountOfFood); - COMPARE_FIELD(Peep, AmountOfDrinks); - COMPARE_FIELD(Peep, AmountOfSouvenirs); - COMPARE_FIELD(Peep, VandalismSeen); - COMPARE_FIELD(Peep, VoucherType); - COMPARE_FIELD(Peep, VoucherRideId); - COMPARE_FIELD(Peep, SurroundingsThoughtTimeout); - COMPARE_FIELD(Peep, Angriness); - COMPARE_FIELD(Peep, TimeLost); - COMPARE_FIELD(Peep, DaysInQueue); - COMPARE_FIELD(Peep, BalloonColour); - COMPARE_FIELD(Peep, UmbrellaColour); - COMPARE_FIELD(Peep, HatColour); - COMPARE_FIELD(Peep, FavouriteRide); - COMPARE_FIELD(Peep, FavouriteRideRating); + } + + void CompareSpriteDataStaff(const Staff& spriteBase, const Staff& spriteCmp, GameStateSpriteChange_t& changeData) const + { + CompareSpriteDataPeep(spriteBase, spriteCmp, changeData); + + COMPARE_FIELD(Staff, AssignedStaffType); + COMPARE_FIELD(Staff, MechanicTimeSinceCall); + COMPARE_FIELD(Staff, HireDate); + COMPARE_FIELD(Staff, StaffId); + COMPARE_FIELD(Staff, StaffOrders); + COMPARE_FIELD(Staff, StaffMowingTimeout); + COMPARE_FIELD(Staff, StaffRidesFixed); + COMPARE_FIELD(Staff, StaffRidesInspected); + COMPARE_FIELD(Staff, StaffLitterSwept); + COMPARE_FIELD(Staff, StaffBinsEmptied); + } + + void CompareSpriteDataGuest(const Guest& spriteBase, const Guest& spriteCmp, GameStateSpriteChange_t& changeData) const + { + CompareSpriteDataPeep(spriteBase, spriteCmp, changeData); + + COMPARE_FIELD(Guest, OutsideOfPark); + COMPARE_FIELD(Guest, GuestNumRides); + COMPARE_FIELD(Guest, Happiness); + COMPARE_FIELD(Guest, HappinessTarget); + COMPARE_FIELD(Guest, Nausea); + COMPARE_FIELD(Guest, NauseaTarget); + COMPARE_FIELD(Guest, Hunger); + COMPARE_FIELD(Guest, Thirst); + COMPARE_FIELD(Guest, Toilet); + COMPARE_FIELD(Guest, TimeToConsume); + COMPARE_FIELD(Guest, Intensity); + COMPARE_FIELD(Guest, NauseaTolerance); + COMPARE_FIELD(Guest, PaidOnDrink); + for (int i = 0; i < 16; i++) + { + COMPARE_FIELD(Guest, RideTypesBeenOn[i]); + } + COMPARE_FIELD(Guest, ItemFlags); + COMPARE_FIELD(Guest, Photo2RideRef); + COMPARE_FIELD(Guest, Photo3RideRef); + COMPARE_FIELD(Guest, Photo4RideRef); + COMPARE_FIELD(Guest, GuestNextInQueue); + COMPARE_FIELD(Guest, TimeInQueue); + for (int i = 0; i < 32; i++) + { + COMPARE_FIELD(Guest, RidesBeenOn[i]); + } + + COMPARE_FIELD(Guest, CashInPocket); + COMPARE_FIELD(Guest, CashSpent); + COMPARE_FIELD(Guest, ParkEntryTime); + COMPARE_FIELD(Guest, RejoinQueueTimeout); + COMPARE_FIELD(Guest, PreviousRide); + COMPARE_FIELD(Guest, PreviousRideTimeOut); + for (int i = 0; i < PEEP_MAX_THOUGHTS; i++) + { + COMPARE_FIELD(Guest, Thoughts[i]); + } + COMPARE_FIELD(Guest, GuestHeadingToRideId); + COMPARE_FIELD(Guest, GuestIsLostCountdown); + COMPARE_FIELD(Guest, Photo1RideRef); + COMPARE_FIELD(Guest, PeepFlags); + COMPARE_FIELD(Guest, LitterCount); + COMPARE_FIELD(Guest, GuestTimeOnRide); + COMPARE_FIELD(Guest, DisgustingCount); + COMPARE_FIELD(Guest, PaidToEnter); + COMPARE_FIELD(Guest, PaidOnRides); + COMPARE_FIELD(Guest, PaidOnFood); + COMPARE_FIELD(Guest, PaidOnSouvenirs); + COMPARE_FIELD(Guest, AmountOfFood); + COMPARE_FIELD(Guest, AmountOfDrinks); + COMPARE_FIELD(Guest, AmountOfSouvenirs); + COMPARE_FIELD(Guest, VandalismSeen); + COMPARE_FIELD(Guest, VoucherType); + COMPARE_FIELD(Guest, VoucherRideId); + COMPARE_FIELD(Guest, SurroundingsThoughtTimeout); + COMPARE_FIELD(Guest, Angriness); + COMPARE_FIELD(Guest, TimeLost); + COMPARE_FIELD(Guest, DaysInQueue); + COMPARE_FIELD(Guest, BalloonColour); + COMPARE_FIELD(Guest, UmbrellaColour); + COMPARE_FIELD(Guest, HatColour); + COMPARE_FIELD(Guest, FavouriteRide); + COMPARE_FIELD(Guest, FavouriteRideRating); } void CompareSpriteDataVehicle( const Vehicle& spriteBase, const Vehicle& spriteCmp, GameStateSpriteChange_t& changeData) const { - COMPARE_FIELD(Vehicle, vehicle_sprite_type); + COMPARE_FIELD(Vehicle, Pitch); COMPARE_FIELD(Vehicle, bank_rotation); COMPARE_FIELD(Vehicle, remaining_distance); COMPARE_FIELD(Vehicle, velocity); @@ -399,6 +421,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots COMPARE_FIELD(Vehicle, target_seat_rotation); COMPARE_FIELD(Vehicle, BoatLocation.x); COMPARE_FIELD(Vehicle, BoatLocation.y); + COMPARE_FIELD(Vehicle, IsCrashedVehicle); } void CompareSpriteDataLitter(const Litter& spriteBase, const Litter& spriteCmp, GameStateSpriteChange_t& changeData) const @@ -409,6 +432,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots void CompareSpriteDataMoneyEffect( const MoneyEffect& spriteBase, const MoneyEffect& spriteCmp, GameStateSpriteChange_t& changeData) const { + CompareSpriteDataMisc(spriteBase, spriteCmp, changeData); COMPARE_FIELD(MoneyEffect, MoveDelay); COMPARE_FIELD(MoneyEffect, NumMovements); COMPARE_FIELD(MoneyEffect, Vertical); @@ -420,6 +444,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots void CompareSpriteDataSteamParticle( const SteamParticle& spriteBase, const SteamParticle& spriteCmp, GameStateSpriteChange_t& changeData) const { + CompareSpriteDataMisc(spriteBase, spriteCmp, changeData); COMPARE_FIELD(SteamParticle, time_to_move); } @@ -427,6 +452,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots const VehicleCrashParticle& spriteBase, const VehicleCrashParticle& spriteCmp, GameStateSpriteChange_t& changeData) const { + CompareSpriteDataMisc(spriteBase, spriteCmp, changeData); COMPARE_FIELD(VehicleCrashParticle, time_to_live); for (int i = 0; i < 2; i++) { @@ -443,6 +469,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots void CompareSpriteDataDuck(const Duck& spriteBase, const Duck& spriteCmp, GameStateSpriteChange_t& changeData) const { + CompareSpriteDataMisc(spriteBase, spriteCmp, changeData); COMPARE_FIELD(Duck, target_x); COMPARE_FIELD(Duck, target_y); COMPARE_FIELD(Duck, state); @@ -451,6 +478,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots void CompareSpriteDataBalloon( const Balloon& spriteBase, const Balloon& spriteCmp, GameStateSpriteChange_t& changeData) const { + CompareSpriteDataMisc(spriteBase, spriteCmp, changeData); COMPARE_FIELD(Balloon, popped); COMPARE_FIELD(Balloon, time_to_move); COMPARE_FIELD(Balloon, colour); @@ -459,72 +487,82 @@ struct GameStateSnapshots final : public IGameStateSnapshots void CompareSpriteDataJumpingFountain( const JumpingFountain& spriteBase, const JumpingFountain& spriteCmp, GameStateSpriteChange_t& changeData) const { + CompareSpriteDataMisc(spriteBase, spriteCmp, changeData); COMPARE_FIELD(JumpingFountain, NumTicksAlive); COMPARE_FIELD(JumpingFountain, FountainFlags); COMPARE_FIELD(JumpingFountain, TargetX); COMPARE_FIELD(JumpingFountain, TargetY); COMPARE_FIELD(JumpingFountain, Iteration); + COMPARE_FIELD(JumpingFountain, FountainType); } void CompareSpriteDataMisc( const MiscEntity& spriteBase, const MiscEntity& spriteCmp, GameStateSpriteChange_t& changeData) const { - COMPARE_FIELD(MiscEntity, SubType); COMPARE_FIELD(MiscEntity, frame); } void CompareSpriteData(const rct_sprite& spriteBase, const rct_sprite& spriteCmp, GameStateSpriteChange_t& changeData) const { - CompareSpriteDataCommon(spriteBase.misc, spriteCmp.misc, changeData); - if (spriteBase.misc.sprite_identifier == spriteCmp.misc.sprite_identifier) + CompareSpriteDataCommon(spriteBase.base, spriteCmp.base, changeData); + if (spriteBase.base.Type == spriteCmp.base.Type) { - switch (spriteBase.misc.sprite_identifier) + switch (spriteBase.base.Type) { - case SpriteIdentifier::Peep: - CompareSpriteDataPeep(spriteBase.peep, spriteCmp.peep, changeData); + case EntityType::Guest: + CompareSpriteDataGuest( + static_cast(spriteBase.base), static_cast(spriteCmp.base), changeData); break; - case SpriteIdentifier::Vehicle: - CompareSpriteDataVehicle(spriteBase.vehicle, spriteCmp.vehicle, changeData); + case EntityType::Staff: + CompareSpriteDataStaff( + static_cast(spriteBase.base), static_cast(spriteCmp.base), changeData); break; - case SpriteIdentifier::Litter: - CompareSpriteDataLitter(spriteBase.litter, spriteCmp.litter, changeData); + case EntityType::Vehicle: + CompareSpriteDataVehicle( + static_cast(spriteBase.base), static_cast(spriteCmp.base), changeData); break; - case SpriteIdentifier::Misc: - // This is not expected to happen, as misc sprites do not constitute sprite checksum - CompareSpriteDataMisc(spriteBase.misc, spriteCmp.misc, changeData); - switch (spriteBase.misc.SubType) - { - case MiscEntityType::SteamParticle: - CompareSpriteDataSteamParticle(spriteBase.steam_particle, spriteCmp.steam_particle, changeData); - break; - case MiscEntityType::MoneyEffect: - CompareSpriteDataMoneyEffect(spriteBase.money_effect, spriteCmp.money_effect, changeData); - break; - case MiscEntityType::CrashedVehicleParticle: - CompareSpriteDataVehicleCrashParticle( - spriteBase.crashed_vehicle_particle, spriteCmp.crashed_vehicle_particle, changeData); - break; - case MiscEntityType::ExplosionCloud: - case MiscEntityType::CrashSplash: - case MiscEntityType::ExplosionFlare: - // MiscEntity - break; - case MiscEntityType::JumpingFountainWater: - case MiscEntityType::JumpingFountainSnow: - CompareSpriteDataJumpingFountain( - spriteBase.jumping_fountain, spriteCmp.jumping_fountain, changeData); - break; - case MiscEntityType::Balloon: - CompareSpriteDataBalloon(spriteBase.balloon, spriteCmp.balloon, changeData); - break; - case MiscEntityType::Duck: - CompareSpriteDataDuck(spriteBase.duck, spriteCmp.duck, changeData); - break; - default: - break; - } + case EntityType::Litter: + CompareSpriteDataLitter( + static_cast(spriteBase.base), static_cast(spriteCmp.base), changeData); break; - case SpriteIdentifier::Null: + case EntityType::SteamParticle: + CompareSpriteDataSteamParticle( + static_cast(spriteBase.base), static_cast(spriteCmp.base), + changeData); + break; + case EntityType::MoneyEffect: + CompareSpriteDataMoneyEffect( + static_cast(spriteBase.base), static_cast(spriteCmp.base), + changeData); + break; + case EntityType::CrashedVehicleParticle: + CompareSpriteDataVehicleCrashParticle( + static_cast(spriteBase.base), + static_cast(spriteCmp.base), changeData); + break; + case EntityType::ExplosionCloud: + case EntityType::CrashSplash: + case EntityType::ExplosionFlare: + CompareSpriteDataMisc( + static_cast(spriteBase.base), static_cast(spriteCmp.base), + changeData); + break; + case EntityType::JumpingFountain: + CompareSpriteDataJumpingFountain( + static_cast(spriteBase.base), + static_cast(spriteCmp.base), changeData); + break; + case EntityType::Balloon: + CompareSpriteDataBalloon( + static_cast(spriteBase.base), static_cast(spriteCmp.base), changeData); + break; + case EntityType::Duck: + CompareSpriteDataDuck( + static_cast(spriteBase.base), static_cast(spriteCmp.base), changeData); + break; + case EntityType::Null: + break; + default: break; } } @@ -549,30 +587,21 @@ struct GameStateSnapshots final : public IGameStateSnapshots const rct_sprite& spriteBase = spritesBase[i]; const rct_sprite& spriteCmp = spritesCmp[i]; - changeData.spriteIdentifier = spriteBase.misc.sprite_identifier; - // This will be nonsense information for all types apart from MiscEntities. - // This is not an issue though as only MiscEntities will use this field in GetSpriteIdentifierName - // TODO: Don't do this. - changeData.miscIdentifier = spriteBase.misc.SubType; + changeData.entityType = spriteBase.base.Type; - if (spriteBase.misc.sprite_identifier == SpriteIdentifier::Null - && spriteCmp.misc.sprite_identifier != SpriteIdentifier::Null) + if (spriteBase.base.Type == EntityType::Null && spriteCmp.base.Type != EntityType::Null) { // Sprite was added. changeData.changeType = GameStateSpriteChange_t::ADDED; - changeData.spriteIdentifier = spriteCmp.misc.sprite_identifier; + changeData.entityType = spriteCmp.base.Type; } - else if ( - spriteBase.misc.sprite_identifier != SpriteIdentifier::Null - && spriteCmp.misc.sprite_identifier == SpriteIdentifier::Null) + else if (spriteBase.base.Type != EntityType::Null && spriteCmp.base.Type == EntityType::Null) { // Sprite was removed. changeData.changeType = GameStateSpriteChange_t::REMOVED; - changeData.spriteIdentifier = spriteBase.misc.sprite_identifier; + changeData.entityType = spriteBase.base.Type; } - else if ( - spriteBase.misc.sprite_identifier == SpriteIdentifier::Null - && spriteCmp.misc.sprite_identifier == SpriteIdentifier::Null) + else if (spriteBase.base.Type == EntityType::Null && spriteCmp.base.Type == EntityType::Null) { // Do nothing. changeData.changeType = GameStateSpriteChange_t::EQUAL; @@ -596,50 +625,45 @@ struct GameStateSnapshots final : public IGameStateSnapshots return res; } - static const char* GetSpriteIdentifierName(SpriteIdentifier spriteIdentifier, MiscEntityType miscIdentifier) + static const char* GetEntityTypeName(EntityType type) { - switch (spriteIdentifier) + switch (type) { - case SpriteIdentifier::Null: + case EntityType::Null: return "Null"; - case SpriteIdentifier::Peep: - return "Peep"; - case SpriteIdentifier::Vehicle: + case EntityType::Guest: + return "Guest"; + case EntityType::Staff: + return "Staff"; + case EntityType::Vehicle: return "Vehicle"; - case SpriteIdentifier::Litter: + case EntityType::Litter: return "Litter"; - case SpriteIdentifier::Misc: - switch (miscIdentifier) - { - case MiscEntityType::SteamParticle: - return "Misc: Steam Particle"; - case MiscEntityType::MoneyEffect: - return "Misc: Money effect"; - case MiscEntityType::CrashedVehicleParticle: - return "Misc: Crash Vehicle Particle"; - case MiscEntityType::ExplosionCloud: - return "Misc: Explosion Cloud"; - case MiscEntityType::CrashSplash: - return "Misc: Crash Splash"; - case MiscEntityType::ExplosionFlare: - return "Misc: Explosion Flare"; - case MiscEntityType::JumpingFountainWater: - return "Misc: Jumping fountain water"; - case MiscEntityType::Balloon: - return "Misc: Balloon"; - case MiscEntityType::Duck: - return "Misc: Duck"; - case MiscEntityType::JumpingFountainSnow: - return "Misc: Jumping fountain snow"; - default: - break; - } - return "Misc"; + case EntityType::SteamParticle: + return "Misc: Steam Particle"; + case EntityType::MoneyEffect: + return "Misc: Money effect"; + case EntityType::CrashedVehicleParticle: + return "Misc: Crash Vehicle Particle"; + case EntityType::ExplosionCloud: + return "Misc: Explosion Cloud"; + case EntityType::CrashSplash: + return "Misc: Crash Splash"; + case EntityType::ExplosionFlare: + return "Misc: Explosion Flare"; + case EntityType::JumpingFountain: + return "Misc: Jumping fountain"; + case EntityType::Balloon: + return "Misc: Balloon"; + case EntityType::Duck: + return "Misc: Duck"; + default: + break; } return "Unknown"; } - virtual bool LogCompareDataToFile(const std::string& fileName, const GameStateCompareData_t& cmpData) const override + virtual std::string GetCompareDataText(const GameStateCompareData_t& cmpData) const override { std::string outputBuffer; char tempBuffer[1024] = {}; @@ -663,7 +687,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots if (change.changeType == GameStateSpriteChange_t::EQUAL) continue; - const char* typeName = GetSpriteIdentifierName(change.spriteIdentifier, change.miscIdentifier); + const char* typeName = GetEntityTypeName(change.entityType); if (change.changeType == GameStateSpriteChange_t::ADDED) { @@ -691,6 +715,12 @@ struct GameStateSnapshots final : public IGameStateSnapshots } } } + return outputBuffer; + } + + virtual bool LogCompareDataToFile(const std::string& fileName, const GameStateCompareData_t& cmpData) const override + { + auto outputBuffer = GetCompareDataText(cmpData); FILE* fp = fopen(fileName.c_str(), "wt"); if (!fp) diff --git a/src/openrct2/GameStateSnapshots.h b/src/openrct2/GameStateSnapshots.h index 383522a769..f7490c953d 100644 --- a/src/openrct2/GameStateSnapshots.h +++ b/src/openrct2/GameStateSnapshots.h @@ -39,8 +39,7 @@ struct GameStateSpriteChange_t }; uint8_t changeType; - SpriteIdentifier spriteIdentifier; - MiscEntityType miscIdentifier; + EntityType entityType; uint32_t spriteIndex; std::vector diffs; @@ -104,6 +103,11 @@ struct IGameStateSnapshots * Writes the GameStateCompareData_t into the specified file as readable text. */ virtual bool LogCompareDataToFile(const std::string& fileName, const GameStateCompareData_t& cmpData) const = 0; + + /* + * Generates a string of readable text from GameStateCompareData_t + */ + virtual std::string GetCompareDataText(const GameStateCompareData_t& cmpData) const = 0; }; std::unique_ptr CreateGameStateSnapshots(); diff --git a/src/openrct2/Intro.cpp b/src/openrct2/Intro.cpp index b313e006d2..c640ff5788 100644 --- a/src/openrct2/Intro.cpp +++ b/src/openrct2/Intro.cpp @@ -189,10 +189,10 @@ void intro_draw(rct_drawpixelinfo* dpi) BORDER_COLOUR_PUBLISHER); // Draw Infogrames logo - gfx_draw_sprite(dpi, SPR_INTRO_INFOGRAMES_00, { (screenWidth / 2) - 320 + 69, _introStateCounter + 69 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_INFOGRAMES_10, { (screenWidth / 2) - 320 + 319, _introStateCounter + 69 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_INFOGRAMES_01, { (screenWidth / 2) - 320 + 69, _introStateCounter + 319 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_INFOGRAMES_11, { (screenWidth / 2) - 320 + 319, _introStateCounter + 319 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_INFOGRAMES_00), { (screenWidth / 2) - 320 + 69, _introStateCounter + 69 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_INFOGRAMES_10), { (screenWidth / 2) - 320 + 319, _introStateCounter + 69 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_INFOGRAMES_01), { (screenWidth / 2) - 320 + 69, _introStateCounter + 319 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_INFOGRAMES_11), { (screenWidth / 2) - 320 + 319, _introStateCounter + 319 }); break; case IntroState::DeveloperBegin: gfx_clear(dpi, BACKROUND_COLOUR_DARK); @@ -202,8 +202,8 @@ void intro_draw(rct_drawpixelinfo* dpi) gfx_clear(dpi, BACKROUND_COLOUR_DARK); // Draw Chris Sawyer logo - gfx_draw_sprite(dpi, SPR_INTRO_CHRIS_SAWYER_00, { (screenWidth / 2) - 320 + 70, _introStateCounter }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_CHRIS_SAWYER_10, { (screenWidth / 2) - 320 + 320, _introStateCounter }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_CHRIS_SAWYER_00), { (screenWidth / 2) - 320 + 70, _introStateCounter }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_CHRIS_SAWYER_10), { (screenWidth / 2) - 320 + 320, _introStateCounter }); break; case IntroState::LogoFadeIn: if (_introStateCounter <= 0xFF00) @@ -292,10 +292,10 @@ static void screen_intro_draw_logo(rct_drawpixelinfo* dpi) drawing_engine_invalidate_image(SPR_INTRO_LOGO_21); gfx_clear(dpi, BACKROUND_COLOUR_LOGO); - gfx_draw_sprite(dpi, SPR_INTRO_LOGO_00, { imageX + 0, 0 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_LOGO_10, { imageX + 220, 0 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_LOGO_20, { imageX + 440, 0 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_LOGO_01, { imageX + 0, 240 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_LOGO_11, { imageX + 220, 240 }, 0); - gfx_draw_sprite(dpi, SPR_INTRO_LOGO_21, { imageX + 440, 240 }, 0); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_LOGO_00), { imageX + 0, 0 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_LOGO_10), { imageX + 220, 0 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_LOGO_20), { imageX + 440, 0 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_LOGO_01), { imageX + 0, 240 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_LOGO_11), { imageX + 220, 240 }); + gfx_draw_sprite(dpi, ImageId(SPR_INTRO_LOGO_21), { imageX + 440, 240 }); } diff --git a/src/openrct2/ReplayManager.cpp b/src/openrct2/ReplayManager.cpp index 81c6746bd8..e3022c3190 100644 --- a/src/openrct2/ReplayManager.cpp +++ b/src/openrct2/ReplayManager.cpp @@ -29,6 +29,7 @@ #include "object/ObjectManager.h" #include "object/ObjectRepository.h" #include "rct2/S6Exporter.h" +#include "world/EntityTweener.h" #include "world/Park.h" #include "world/Sprite.h" #include "zlib.h" diff --git a/src/openrct2/actions/BalloonPressAction.cpp b/src/openrct2/actions/BalloonPressAction.cpp index 474722db35..85f5730295 100644 --- a/src/openrct2/actions/BalloonPressAction.cpp +++ b/src/openrct2/actions/BalloonPressAction.cpp @@ -9,7 +9,8 @@ #include "BalloonPressAction.h" -#include "../world/Sprite.h" +#include "../world/Balloon.h" +#include "../world/Entity.h" #include "GameAction.h" BalloonPressAction::BalloonPressAction(uint16_t spriteIndex) diff --git a/src/openrct2/actions/BannerPlaceAction.cpp b/src/openrct2/actions/BannerPlaceAction.cpp index 4991d0f847..c235d5891d 100644 --- a/src/openrct2/actions/BannerPlaceAction.cpp +++ b/src/openrct2/actions/BannerPlaceAction.cpp @@ -55,17 +55,17 @@ GameActions::Result::Ptr BannerPlaceAction::Query() const res->Expenditure = ExpenditureType::Landscaping; res->ErrorTitle = STR_CANT_POSITION_THIS_HERE; - if (!map_check_free_elements_and_reorganise(1)) - { - log_error("No free map elements."); - return MakeResult(GameActions::Status::NoFreeElements, STR_CANT_POSITION_THIS_HERE); - } - if (!LocationValid(_loc)) { return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE); } + if (!MapCheckCapacityAndReorganise(_loc)) + { + log_error("No free map elements."); + return MakeResult(GameActions::Status::NoFreeElements, STR_CANT_POSITION_THIS_HERE); + } + auto pathElement = GetValidPathElement(); if (pathElement == nullptr) @@ -99,13 +99,13 @@ GameActions::Result::Ptr BannerPlaceAction::Query() const return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE); } - rct_scenery_entry* bannerEntry = get_banner_entry(_bannerType); + auto* bannerEntry = get_banner_entry(_bannerType); if (bannerEntry == nullptr) { log_error("Invalid banner object type. bannerType = ", _bannerType); return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE); } - res->Cost = bannerEntry->banner.price; + res->Cost = bannerEntry->price; return res; } @@ -118,7 +118,7 @@ GameActions::Result::Ptr BannerPlaceAction::Execute() const res->Expenditure = ExpenditureType::Landscaping; res->ErrorTitle = STR_CANT_POSITION_THIS_HERE; - if (!map_check_free_elements_and_reorganise(1)) + if (!MapCheckCapacityAndReorganise(_loc)) { log_error("No free map elements."); return MakeResult(GameActions::Status::NoFreeElements, STR_CANT_POSITION_THIS_HERE); @@ -130,7 +130,7 @@ GameActions::Result::Ptr BannerPlaceAction::Execute() const return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE); } - rct_scenery_entry* bannerEntry = get_banner_entry(_bannerType); + auto* bannerEntry = get_banner_entry(_bannerType); if (bannerEntry == nullptr) { log_error("Invalid banner object type. bannerType = ", _bannerType); @@ -162,7 +162,7 @@ GameActions::Result::Ptr BannerPlaceAction::Execute() const map_invalidate_tile_full(_loc); map_animation_create(MAP_ANIMATION_TYPE_BANNER, CoordsXYZ{ _loc, bannerElement->GetBaseZ() }); - res->Cost = bannerEntry->banner.price; + res->Cost = bannerEntry->price; return res; } diff --git a/src/openrct2/actions/BannerRemoveAction.cpp b/src/openrct2/actions/BannerRemoveAction.cpp index 0d0f6ce5e5..184e6dd362 100644 --- a/src/openrct2/actions/BannerRemoveAction.cpp +++ b/src/openrct2/actions/BannerRemoveAction.cpp @@ -74,10 +74,10 @@ GameActions::Result::Ptr BannerRemoveAction::Query() const return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_REMOVE_THIS); } - rct_scenery_entry* bannerEntry = get_banner_entry(banner->type); + auto* bannerEntry = get_banner_entry(banner->type); if (bannerEntry != nullptr) { - res->Cost = -((bannerEntry->banner.price * 3) / 4); + res->Cost = -((bannerEntry->price * 3) / 4); } return res; @@ -112,10 +112,10 @@ GameActions::Result::Ptr BannerRemoveAction::Execute() const return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_REMOVE_THIS); } - rct_scenery_entry* bannerEntry = get_banner_entry(banner->type); + auto* bannerEntry = get_banner_entry(banner->type); if (bannerEntry != nullptr) { - res->Cost = -((bannerEntry->banner.price * 3) / 4); + res->Cost = -((bannerEntry->price * 3) / 4); } reinterpret_cast(bannerElement)->RemoveBannerEntry(); diff --git a/src/openrct2/actions/BannerSetNameAction.cpp b/src/openrct2/actions/BannerSetNameAction.cpp index 773dd1dc1d..8d4c088267 100644 --- a/src/openrct2/actions/BannerSetNameAction.cpp +++ b/src/openrct2/actions/BannerSetNameAction.cpp @@ -17,7 +17,6 @@ #include "../ui/UiContext.h" #include "../windows/Intent.h" #include "../world/Banner.h" -#include "../world/Sprite.h" #include "GameAction.h" BannerSetNameAction::BannerSetNameAction(BannerIndex bannerIndex, const std::string& name) diff --git a/src/openrct2/actions/FootpathAdditionPlaceAction.cpp b/src/openrct2/actions/FootpathAdditionPlaceAction.cpp index f6fed8ad75..7b6a20dec4 100644 --- a/src/openrct2/actions/FootpathAdditionPlaceAction.cpp +++ b/src/openrct2/actions/FootpathAdditionPlaceAction.cpp @@ -93,12 +93,12 @@ GameActions::Result::Ptr FootpathAdditionPlaceAction::Query() const if (_pathItemType != 0) { - rct_scenery_entry* sceneryEntry = get_footpath_item_entry(_pathItemType - 1); - if (sceneryEntry == nullptr) + auto* pathBitEntry = get_footpath_item_entry(_pathItemType - 1); + if (pathBitEntry == nullptr) { return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE); } - uint16_t sceneryFlags = sceneryEntry->path_bit.flags; + uint16_t sceneryFlags = pathBitEntry->flags; if ((sceneryFlags & PATH_BIT_FLAG_DONT_ALLOW_ON_SLOPE) && pathElement->IsSloped()) { @@ -124,7 +124,7 @@ GameActions::Result::Ptr FootpathAdditionPlaceAction::Query() const GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CAN_ONLY_PLACE_THESE_ON_QUEUE_AREA); } - res->Cost = sceneryEntry->path_bit.price; + res->Cost = pathBitEntry->price; } // Should place a ghost? @@ -163,13 +163,13 @@ GameActions::Result::Ptr FootpathAdditionPlaceAction::Execute() const if (_pathItemType != 0) { - rct_scenery_entry* sceneryEntry = get_footpath_item_entry(_pathItemType - 1); - if (sceneryEntry == nullptr) + auto* pathBitEntry = get_footpath_item_entry(_pathItemType - 1); + if (pathBitEntry == nullptr) { return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE); } - res->Cost = sceneryEntry->path_bit.price; + res->Cost = pathBitEntry->price; } if (GetFlags() & GAME_COMMAND_FLAG_GHOST) @@ -191,8 +191,8 @@ GameActions::Result::Ptr FootpathAdditionPlaceAction::Execute() const pathElement->SetIsBroken(false); if (_pathItemType != 0) { - rct_scenery_entry* scenery_entry = get_footpath_item_entry(_pathItemType - 1); - if (scenery_entry != nullptr && scenery_entry->path_bit.flags & PATH_BIT_FLAG_IS_BIN) + auto* pathBitEntry = get_footpath_item_entry(_pathItemType - 1); + if (pathBitEntry != nullptr && pathBitEntry->flags & PATH_BIT_FLAG_IS_BIN) { pathElement->SetAdditionStatus(255); } diff --git a/src/openrct2/actions/FootpathPlaceAction.cpp b/src/openrct2/actions/FootpathPlaceAction.cpp index 42cf8ad919..5b1894b9b8 100644 --- a/src/openrct2/actions/FootpathPlaceAction.cpp +++ b/src/openrct2/actions/FootpathPlaceAction.cpp @@ -185,13 +185,13 @@ GameActions::Result::Ptr FootpathPlaceAction::ElementUpdateExecute(PathElement* bool isQueue = _type & FOOTPATH_ELEMENT_INSERT_QUEUE; pathElement->SetIsQueue(isQueue); - rct_scenery_entry* elem = pathElement->GetAdditionEntry(); + auto* elem = pathElement->GetAdditionEntry(); if (elem != nullptr) { if (isQueue) { // remove any addition that isn't a TV or a lamp - if ((elem->path_bit.flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) == 0 && (elem->path_bit.flags & PATH_BIT_FLAG_LAMP) == 0) + if ((elem->flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) == 0 && (elem->flags & PATH_BIT_FLAG_LAMP) == 0) { pathElement->SetIsBroken(false); pathElement->SetAddition(0); @@ -200,7 +200,7 @@ GameActions::Result::Ptr FootpathPlaceAction::ElementUpdateExecute(PathElement* else { // remove all TVs - if ((elem->path_bit.flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) != 0) + if ((elem->flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) != 0) { pathElement->SetIsBroken(false); pathElement->SetAddition(0); @@ -216,7 +216,7 @@ GameActions::Result::Ptr FootpathPlaceAction::ElementInsertQuery(GameActions::Re { bool entrancePath = false, entranceIsSamePath = false; - if (!map_check_free_elements_and_reorganise(1)) + if (!MapCheckCapacityAndReorganise(_loc)) { return MakeResult(GameActions::Status::NoFreeElements, STR_CANT_BUILD_FOOTPATH_HERE); } @@ -248,16 +248,17 @@ GameActions::Result::Ptr FootpathPlaceAction::ElementInsertQuery(GameActions::Re uint8_t crossingMode = (_type & FOOTPATH_ELEMENT_INSERT_QUEUE) || (_slope != TILE_ELEMENT_SLOPE_FLAT) ? CREATE_CROSSING_MODE_NONE : CREATE_CROSSING_MODE_PATH_OVER_TRACK; - if (!entrancePath - && !map_can_construct_with_clear_at( - { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GetFlags(), &res->Cost, crossingMode)) + auto canBuild = MapCanConstructWithClearAt( + { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GetFlags(), crossingMode); + if (!entrancePath && canBuild->Error != GameActions::Status::Ok) { - return MakeResult( - GameActions::Status::NoClearance, STR_CANT_BUILD_FOOTPATH_HERE, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_CANT_BUILD_FOOTPATH_HERE; + return canBuild; } + res->Cost += canBuild->Cost; - gFootpathGroundFlags = gMapGroundFlags; - if (!gCheatsDisableClearanceChecks && (gMapGroundFlags & ELEMENT_IS_UNDERWATER)) + gFootpathGroundFlags = canBuild->GroundFlags; + if (!gCheatsDisableClearanceChecks && (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER)) { return MakeResult(GameActions::Status::Disallowed, STR_CANT_BUILD_FOOTPATH_HERE, STR_CANT_BUILD_THIS_UNDERWATER); } @@ -313,16 +314,17 @@ GameActions::Result::Ptr FootpathPlaceAction::ElementInsertExecute(GameActions:: uint8_t crossingMode = (_type & FOOTPATH_ELEMENT_INSERT_QUEUE) || (_slope != TILE_ELEMENT_SLOPE_FLAT) ? CREATE_CROSSING_MODE_NONE : CREATE_CROSSING_MODE_PATH_OVER_TRACK; - if (!entrancePath - && !map_can_construct_with_clear_at( - { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GAME_COMMAND_FLAG_APPLY | GetFlags(), - &res->Cost, crossingMode)) + auto canBuild = MapCanConstructWithClearAt( + { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GAME_COMMAND_FLAG_APPLY | GetFlags(), + crossingMode); + if (!entrancePath && canBuild->Error != GameActions::Status::Ok) { - return MakeResult( - GameActions::Status::NoClearance, STR_CANT_BUILD_FOOTPATH_HERE, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_CANT_BUILD_FOOTPATH_HERE; + return canBuild; } + res->Cost += canBuild->Cost; - gFootpathGroundFlags = gMapGroundFlags; + gFootpathGroundFlags = canBuild->GroundFlags; auto surfaceElement = map_get_surface_element_at(_loc); if (surfaceElement == nullptr) diff --git a/src/openrct2/actions/FootpathPlaceFromTrackAction.cpp b/src/openrct2/actions/FootpathPlaceFromTrackAction.cpp index ea9407091c..80249c155f 100644 --- a/src/openrct2/actions/FootpathPlaceFromTrackAction.cpp +++ b/src/openrct2/actions/FootpathPlaceFromTrackAction.cpp @@ -100,7 +100,7 @@ GameActions::Result::Ptr FootpathPlaceFromTrackAction::ElementInsertQuery(GameAc { bool entrancePath = false, entranceIsSamePath = false; - if (!map_check_free_elements_and_reorganise(1)) + if (!MapCheckCapacityAndReorganise(_loc)) { return MakeResult(GameActions::Status::NoFreeElements, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE); } @@ -132,17 +132,17 @@ GameActions::Result::Ptr FootpathPlaceFromTrackAction::ElementInsertQuery(GameAc uint8_t crossingMode = (_type & FOOTPATH_ELEMENT_INSERT_QUEUE) || (_slope != TILE_ELEMENT_SLOPE_FLAT) ? CREATE_CROSSING_MODE_NONE : CREATE_CROSSING_MODE_PATH_OVER_TRACK; - if (!entrancePath - && !map_can_construct_with_clear_at( - { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GetFlags(), &res->Cost, crossingMode)) + auto canBuild = MapCanConstructWithClearAt( + { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GetFlags(), crossingMode); + if (!entrancePath && canBuild->Error != GameActions::Status::Ok) { - return MakeResult( - GameActions::Status::NoClearance, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, gGameCommandErrorText, - gCommonFormatArgs); + canBuild->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; + return canBuild; } + res->Cost += canBuild->Cost; + gFootpathGroundFlags = canBuild->GroundFlags; - gFootpathGroundFlags = gMapGroundFlags; - if (!gCheatsDisableClearanceChecks && (gMapGroundFlags & ELEMENT_IS_UNDERWATER)) + if (!gCheatsDisableClearanceChecks && (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER)) { return MakeResult( GameActions::Status::Disallowed, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_CANT_BUILD_THIS_UNDERWATER); @@ -199,17 +199,16 @@ GameActions::Result::Ptr FootpathPlaceFromTrackAction::ElementInsertExecute(Game uint8_t crossingMode = (_type & FOOTPATH_ELEMENT_INSERT_QUEUE) || (_slope != TILE_ELEMENT_SLOPE_FLAT) ? CREATE_CROSSING_MODE_NONE : CREATE_CROSSING_MODE_PATH_OVER_TRACK; - if (!entrancePath - && !map_can_construct_with_clear_at( - { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GAME_COMMAND_FLAG_APPLY | GetFlags(), - &res->Cost, crossingMode)) + auto canBuild = MapCanConstructWithClearAt( + { _loc, zLow, zHigh }, &map_place_non_scenery_clear_func, quarterTile, GAME_COMMAND_FLAG_APPLY | GetFlags(), + crossingMode); + if (!entrancePath && canBuild->Error != GameActions::Status::Ok) { - return MakeResult( - GameActions::Status::NoClearance, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, gGameCommandErrorText, - gCommonFormatArgs); + canBuild->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; + return canBuild; } - - gFootpathGroundFlags = gMapGroundFlags; + res->Cost += canBuild->Cost; + gFootpathGroundFlags = canBuild->GroundFlags; auto surfaceElement = map_get_surface_element_at(_loc); if (surfaceElement == nullptr) diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index ccad0e2543..adc8606a62 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -23,9 +23,9 @@ #include "../scripting/ScriptEngine.h" #include "../ui/UiContext.h" #include "../ui/WindowManager.h" +#include "../world/MoneyEffect.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include #include diff --git a/src/openrct2/actions/GameActionCompat.cpp b/src/openrct2/actions/GameActionCompat.cpp index 00c45e2090..9af73acc63 100644 --- a/src/openrct2/actions/GameActionCompat.cpp +++ b/src/openrct2/actions/GameActionCompat.cpp @@ -33,7 +33,7 @@ money32 park_entrance_place_ghost(const CoordsXYZD& entranceLoc) { park_entrance_remove_ghost(); - auto gameAction = PlaceParkEntranceAction(entranceLoc); + auto gameAction = PlaceParkEntranceAction(entranceLoc, gFootpathSelectedId); gameAction.SetFlags(GAME_COMMAND_FLAG_GHOST); auto result = GameActions::Execute(&gameAction); @@ -82,7 +82,7 @@ void ride_construct_new(RideSelection listItem) #pragma region RideSetStatusAction -void ride_set_status(Ride* ride, int32_t status) +void ride_set_status(Ride* ride, RideStatus status) { auto gameAction = RideSetStatusAction(ride->id, status); GameActions::Execute(&gameAction); diff --git a/src/openrct2/actions/GuestSetFlagsAction.cpp b/src/openrct2/actions/GuestSetFlagsAction.cpp index 9ecd1919eb..f8066cc700 100644 --- a/src/openrct2/actions/GuestSetFlagsAction.cpp +++ b/src/openrct2/actions/GuestSetFlagsAction.cpp @@ -39,7 +39,7 @@ void GuestSetFlagsAction::Serialise(DataSerialiser& stream) GameActions::Result::Ptr GuestSetFlagsAction::Query() const { - Peep* peep = TryGetEntity(_peepId); + auto* peep = TryGetEntity(_peepId); if (peep == nullptr) { log_error("Used invalid sprite index for peep: %u", static_cast(_peepId)); @@ -50,7 +50,7 @@ GameActions::Result::Ptr GuestSetFlagsAction::Query() const GameActions::Result::Ptr GuestSetFlagsAction::Execute() const { - Peep* peep = TryGetEntity(_peepId); + auto* peep = TryGetEntity(_peepId); if (peep == nullptr) { log_error("Used invalid sprite index for peep: %u", static_cast(_peepId)); diff --git a/src/openrct2/actions/GuestSetNameAction.cpp b/src/openrct2/actions/GuestSetNameAction.cpp index 5c504ebbbe..8142c97462 100644 --- a/src/openrct2/actions/GuestSetNameAction.cpp +++ b/src/openrct2/actions/GuestSetNameAction.cpp @@ -17,8 +17,8 @@ #include "../localisation/Localisation.h" #include "../localisation/StringIds.h" #include "../windows/Intent.h" +#include "../world/Entity.h" #include "../world/Park.h" -#include "../world/Sprite.h" GuestSetNameAction::GuestSetNameAction(uint16_t spriteIndex, const std::string& name) : _spriteIndex(spriteIndex) diff --git a/src/openrct2/actions/LandBuyRightsAction.cpp b/src/openrct2/actions/LandBuyRightsAction.cpp index 9590ce9b61..46096f3886 100644 --- a/src/openrct2/actions/LandBuyRightsAction.cpp +++ b/src/openrct2/actions/LandBuyRightsAction.cpp @@ -22,7 +22,6 @@ #include "../windows/Intent.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" LandBuyRightsAction::LandBuyRightsAction(const MapRange& range, LandBuyRightSetting setting) diff --git a/src/openrct2/actions/LandLowerAction.cpp b/src/openrct2/actions/LandLowerAction.cpp index 8d1e558063..53cbb4b901 100644 --- a/src/openrct2/actions/LandLowerAction.cpp +++ b/src/openrct2/actions/LandLowerAction.cpp @@ -21,7 +21,6 @@ #include "../windows/Intent.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" LandLowerAction::LandLowerAction(const CoordsXY& coords, MapRange range, uint8_t selectionType) diff --git a/src/openrct2/actions/LandRaiseAction.cpp b/src/openrct2/actions/LandRaiseAction.cpp index 4808860903..05c33c6045 100644 --- a/src/openrct2/actions/LandRaiseAction.cpp +++ b/src/openrct2/actions/LandRaiseAction.cpp @@ -22,7 +22,6 @@ #include "../windows/Intent.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" LandRaiseAction::LandRaiseAction(const CoordsXY& coords, MapRange range, uint8_t selectionType) diff --git a/src/openrct2/actions/LandSetHeightAction.cpp b/src/openrct2/actions/LandSetHeightAction.cpp index 0287891163..43144fcfe0 100644 --- a/src/openrct2/actions/LandSetHeightAction.cpp +++ b/src/openrct2/actions/LandSetHeightAction.cpp @@ -20,7 +20,6 @@ #include "../world/Park.h" #include "../world/Scenery.h" #include "../world/SmallScenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" #include "../world/TileElementsView.h" @@ -221,7 +220,7 @@ TileElement* LandSetHeightAction::CheckTreeObstructions() const if (_height + 4 < sceneryElement->base_height) continue; - rct_scenery_entry* sceneryEntry = sceneryElement->GetEntry(); + auto* sceneryEntry = sceneryElement->GetEntry(); if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_IS_TREE)) continue; @@ -241,11 +240,11 @@ money32 LandSetHeightAction::GetSmallSceneryRemovalCost() const if (_height + 4 < sceneryElement->base_height) continue; - rct_scenery_entry* sceneryEntry = sceneryElement->GetEntry(); + auto* sceneryEntry = sceneryElement->GetEntry(); if (sceneryEntry == nullptr) continue; - cost += MONEY(sceneryEntry->small_scenery.removal_price, 0); + cost += MONEY(sceneryEntry->removal_price, 0); } return cost; diff --git a/src/openrct2/actions/LandSetRightsAction.cpp b/src/openrct2/actions/LandSetRightsAction.cpp index 4f82ebec6d..3510399c91 100644 --- a/src/openrct2/actions/LandSetRightsAction.cpp +++ b/src/openrct2/actions/LandSetRightsAction.cpp @@ -22,7 +22,6 @@ #include "../windows/Intent.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" #include "../world/TileElementsView.h" diff --git a/src/openrct2/actions/LandSmoothAction.cpp b/src/openrct2/actions/LandSmoothAction.cpp index ed9215afe5..656949a681 100644 --- a/src/openrct2/actions/LandSmoothAction.cpp +++ b/src/openrct2/actions/LandSmoothAction.cpp @@ -23,7 +23,6 @@ #include "../windows/Intent.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" LandSmoothAction::LandSmoothAction(const CoordsXY& coords, MapRange range, uint8_t selectionType, bool isLowering) diff --git a/src/openrct2/actions/LargeSceneryPlaceAction.cpp b/src/openrct2/actions/LargeSceneryPlaceAction.cpp index ea9c3b86f6..ccc6a13ed5 100644 --- a/src/openrct2/actions/LargeSceneryPlaceAction.cpp +++ b/src/openrct2/actions/LargeSceneryPlaceAction.cpp @@ -44,10 +44,10 @@ LargeSceneryPlaceAction::LargeSceneryPlaceAction( , _primaryColour(primaryColour) , _secondaryColour(secondaryColour) { - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(_sceneryType); + auto* sceneryEntry = get_large_scenery_entry(_sceneryType); if (sceneryEntry != nullptr) { - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { _bannerId = create_new_banner(0); } @@ -60,10 +60,10 @@ void LargeSceneryPlaceAction::AcceptParameters(GameActionParameterVisitor& visit visitor.Visit("object", _sceneryType); visitor.Visit("primaryColour", _primaryColour); visitor.Visit("secondaryColour", _secondaryColour); - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(_sceneryType); + auto* sceneryEntry = get_large_scenery_entry(_sceneryType); if (sceneryEntry != nullptr) { - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { _bannerId = create_new_banner(0); } @@ -109,15 +109,15 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Query() const return std::make_unique(GameActions::Status::InvalidParameters); } - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(_sceneryType); + auto* sceneryEntry = get_large_scenery_entry(_sceneryType); if (sceneryEntry == nullptr) { log_error("Invalid game command for scenery placement, sceneryType = %u", _sceneryType); return std::make_unique(GameActions::Status::InvalidParameters); } - uint32_t totalNumTiles = GetTotalNumTiles(sceneryEntry->large_scenery.tiles); - int16_t maxHeight = GetMaxSurfaceHeight(sceneryEntry->large_scenery.tiles); + uint32_t totalNumTiles = GetTotalNumTiles(sceneryEntry->tiles); + int16_t maxHeight = GetMaxSurfaceHeight(sceneryEntry->tiles); if (_loc.z != 0) { @@ -126,7 +126,7 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Query() const res->Position.z = maxHeight; - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { if (_bannerId == BANNER_INDEX_NULL) { @@ -142,14 +142,8 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Query() const } } - if (!map_check_free_elements_and_reorganise(totalNumTiles)) - { - log_error("No free map elements available"); - return std::make_unique(GameActions::Status::NoFreeElements); - } - uint8_t tileNum = 0; - for (rct_large_scenery_tile* tile = sceneryEntry->large_scenery.tiles; tile->x_offset != -1; tile++, tileNum++) + for (rct_large_scenery_tile* tile = sceneryEntry->tiles; tile->x_offset != -1; tile++, tileNum++) { auto curTile = CoordsXY{ tile->x_offset, tile->y_offset }.Rotate(_loc.direction); @@ -160,18 +154,22 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Query() const int32_t zHigh = tile->z_clearance + zLow; QuarterTile quarterTile = QuarterTile{ static_cast(tile->flags >> 12), 0 }.Rotate(_loc.direction); - if (!map_can_construct_with_clear_at( - { curTile, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags(), &supportsCost, - CREATE_CROSSING_MODE_NONE)) + const auto isTree = (sceneryEntry->flags & LARGE_SCENERY_FLAG_IS_TREE) != 0; + auto canBuild = MapCanConstructWithClearAt( + { curTile, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags(), CREATE_CROSSING_MODE_NONE, + isTree); + if (canBuild->Error != GameActions::Status::Ok) { - return std::make_unique( - GameActions::Status::NoClearance, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_CANT_POSITION_THIS_HERE; + return canBuild; } - int32_t tempSceneryGroundFlags = gMapGroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); + supportsCost += canBuild->Cost; + + int32_t tempSceneryGroundFlags = canBuild->GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); if (!gCheatsDisableClearanceChecks) { - if ((gMapGroundFlags & ELEMENT_IS_UNDERWATER) || (gMapGroundFlags & ELEMENT_IS_UNDERGROUND)) + if ((canBuild->GroundFlags & ELEMENT_IS_UNDERWATER) || (canBuild->GroundFlags & ELEMENT_IS_UNDERGROUND)) { return std::make_unique( GameActions::Status::Disallowed, STR_CANT_BUILD_THIS_UNDERWATER); @@ -185,7 +183,7 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Query() const res->GroundFlags = tempSceneryGroundFlags; - if (!LocationValid(curTile) || curTile.x >= gMapSizeUnits || curTile.y >= gMapSizeUnits) + if (!LocationValid(curTile) || map_is_edge(curTile)) { return std::make_unique(GameActions::Status::Disallowed, STR_OFF_EDGE_OF_MAP); } @@ -196,10 +194,16 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Query() const } } + if (!CheckMapCapacity(sceneryEntry->tiles, totalNumTiles)) + { + log_error("No free map elements available"); + return std::make_unique(GameActions::Status::NoFreeElements); + } + // Force ride construction to recheck area _currentTrackSelectionFlags |= TRACK_SELECTION_FLAG_RECHECK; - res->Cost = (sceneryEntry->large_scenery.price * 10) + supportsCost; + res->Cost = (sceneryEntry->price * 10) + supportsCost; return res; } @@ -217,21 +221,20 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const money32 supportsCost = 0; - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(_sceneryType); + auto* sceneryEntry = get_large_scenery_entry(_sceneryType); if (sceneryEntry == nullptr) { log_error("Invalid game command for scenery placement, sceneryType = %u", _sceneryType); return std::make_unique(GameActions::Status::InvalidParameters); } - if (sceneryEntry->large_scenery.tiles == nullptr) + if (sceneryEntry->tiles == nullptr) { log_error("Invalid large scenery object, sceneryType = %u", _sceneryType); return std::make_unique(GameActions::Status::InvalidParameters); } - uint32_t totalNumTiles = GetTotalNumTiles(sceneryEntry->large_scenery.tiles); - int16_t maxHeight = GetMaxSurfaceHeight(sceneryEntry->large_scenery.tiles); + int16_t maxHeight = GetMaxSurfaceHeight(sceneryEntry->tiles); if (_loc.z != 0) { @@ -240,14 +243,8 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const res->Position.z = maxHeight; - if (!map_check_free_elements_and_reorganise(totalNumTiles)) - { - log_error("No free map elements available"); - return std::make_unique(GameActions::Status::NoFreeElements); - } - uint8_t tileNum = 0; - for (rct_large_scenery_tile* tile = sceneryEntry->large_scenery.tiles; tile->x_offset != -1; tile++, tileNum++) + for (rct_large_scenery_tile* tile = sceneryEntry->tiles; tile->x_offset != -1; tile++, tileNum++) { auto curTile = CoordsXY{ tile->x_offset, tile->y_offset }.Rotate(_loc.direction); @@ -258,15 +255,18 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const int32_t zHigh = tile->z_clearance + zLow; QuarterTile quarterTile = QuarterTile{ static_cast(tile->flags >> 12), 0 }.Rotate(_loc.direction); - if (!map_can_construct_with_clear_at( - { curTile, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags(), &supportsCost, - CREATE_CROSSING_MODE_NONE)) + const auto isTree = (sceneryEntry->flags & LARGE_SCENERY_FLAG_IS_TREE) != 0; + auto canBuild = MapCanConstructWithClearAt( + { curTile, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags(), CREATE_CROSSING_MODE_NONE, + isTree); + if (canBuild->Error != GameActions::Status::Ok) { - return std::make_unique( - GameActions::Status::NoClearance, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_CANT_POSITION_THIS_HERE; + return canBuild; } - res->GroundFlags = gMapGroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); + supportsCost += canBuild->Cost; + res->GroundFlags = canBuild->GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST)) { @@ -293,7 +293,7 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const } // Allocate banner after all tiles to ensure banner id doesn't need to be freed. - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { if (_bannerId == BANNER_INDEX_NULL) { @@ -326,7 +326,7 @@ GameActions::Result::Ptr LargeSceneryPlaceAction::Execute() const // Force ride construction to recheck area _currentTrackSelectionFlags |= TRACK_SELECTION_FLAG_RECHECK; - res->Cost = (sceneryEntry->large_scenery.price * 10) + supportsCost; + res->Cost = (sceneryEntry->price * 10) + supportsCost; return res; } @@ -340,6 +340,22 @@ int16_t LargeSceneryPlaceAction::GetTotalNumTiles(rct_large_scenery_tile* tiles) return totalNumTiles; } +bool LargeSceneryPlaceAction::CheckMapCapacity(rct_large_scenery_tile* tiles, int16_t numTiles) const +{ + for (rct_large_scenery_tile* tile = tiles; tile->x_offset != -1; tile++) + { + auto curTile = CoordsXY{ tile->x_offset, tile->y_offset }.Rotate(_loc.direction); + + curTile.x += _loc.x; + curTile.y += _loc.y; + if (!MapCheckCapacityAndReorganise(curTile, numTiles)) + { + return false; + } + } + return true; +} + int16_t LargeSceneryPlaceAction::GetMaxSurfaceHeight(rct_large_scenery_tile* tiles) const { int16_t maxHeight = -1; diff --git a/src/openrct2/actions/LargeSceneryPlaceAction.h b/src/openrct2/actions/LargeSceneryPlaceAction.h index 2aa7d264df..e96ea00278 100644 --- a/src/openrct2/actions/LargeSceneryPlaceAction.h +++ b/src/openrct2/actions/LargeSceneryPlaceAction.h @@ -50,6 +50,7 @@ public: private: int16_t GetTotalNumTiles(rct_large_scenery_tile * tiles) const; + bool CheckMapCapacity(rct_large_scenery_tile * tiles, int16_t numTiles) const; int16_t GetMaxSurfaceHeight(rct_large_scenery_tile * tiles) const; void SetNewLargeSceneryElement(LargeSceneryElement & sceneryElement, uint8_t tileNum) const; }; diff --git a/src/openrct2/actions/LargeSceneryRemoveAction.cpp b/src/openrct2/actions/LargeSceneryRemoveAction.cpp index f440474beb..79767bbc3e 100644 --- a/src/openrct2/actions/LargeSceneryRemoveAction.cpp +++ b/src/openrct2/actions/LargeSceneryRemoveAction.cpp @@ -20,7 +20,6 @@ #include "../ride/Ride.h" #include "../world/Park.h" #include "../world/SmallScenery.h" -#include "../world/Sprite.h" #include "../world/TileElementsView.h" using namespace OpenRCT2; @@ -69,25 +68,24 @@ GameActions::Result::Ptr LargeSceneryRemoveAction::Query() const return MakeResult(GameActions::Status::InvalidParameters, STR_INVALID_SELECTION_OF_OBJECTS); } - rct_scenery_entry* scenery_entry = tileElement->AsLargeScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); // If we have a bugged scenery entry, do not touch the tile element. - if (scenery_entry == nullptr) + if (sceneryEntry == nullptr) return MakeResult(GameActions::Status::Unknown, STR_CANT_REMOVE_THIS); - auto rotatedOffsets = CoordsXYZ{ CoordsXY{ scenery_entry->large_scenery.tiles[_tileIndex].x_offset, - scenery_entry->large_scenery.tiles[_tileIndex].y_offset } - .Rotate(_loc.direction), - scenery_entry->large_scenery.tiles[_tileIndex].z_offset }; + auto rotatedOffsets = CoordsXYZ{ + CoordsXY{ sceneryEntry->tiles[_tileIndex].x_offset, sceneryEntry->tiles[_tileIndex].y_offset }.Rotate(_loc.direction), + sceneryEntry->tiles[_tileIndex].z_offset + }; auto firstTile = CoordsXYZ{ _loc.x, _loc.y, _loc.z } - rotatedOffsets; bool calculate_cost = true; - for (int32_t i = 0; scenery_entry->large_scenery.tiles[i].x_offset != -1; i++) + for (int32_t i = 0; sceneryEntry->tiles[i].x_offset != -1; i++) { auto currentTileRotatedOffset = CoordsXYZ{ - CoordsXY{ scenery_entry->large_scenery.tiles[i].x_offset, scenery_entry->large_scenery.tiles[i].y_offset }.Rotate( - _loc.direction), - scenery_entry->large_scenery.tiles[i].z_offset + CoordsXY{ sceneryEntry->tiles[i].x_offset, sceneryEntry->tiles[i].y_offset }.Rotate(_loc.direction), + sceneryEntry->tiles[i].z_offset }; auto currentTile = CoordsXYZ{ firstTile.x, firstTile.y, firstTile.z } + currentTileRotatedOffset; @@ -117,7 +115,7 @@ GameActions::Result::Ptr LargeSceneryRemoveAction::Query() const } if (calculate_cost) - res->Cost = scenery_entry->large_scenery.removal_price * 10; + res->Cost = sceneryEntry->removal_price * 10; return res; } @@ -140,26 +138,25 @@ GameActions::Result::Ptr LargeSceneryRemoveAction::Execute() const return MakeResult(GameActions::Status::InvalidParameters, STR_INVALID_SELECTION_OF_OBJECTS); } - rct_scenery_entry* scenery_entry = tileElement->AsLargeScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); // If we have a bugged scenery entry, do not touch the tile element. - if (scenery_entry == nullptr) + if (sceneryEntry == nullptr) return MakeResult(GameActions::Status::Unknown, STR_CANT_REMOVE_THIS); tileElement->RemoveBannerEntry(); - auto rotatedFirstTile = CoordsXYZ{ CoordsXY{ scenery_entry->large_scenery.tiles[_tileIndex].x_offset, - scenery_entry->large_scenery.tiles[_tileIndex].y_offset } - .Rotate(_loc.direction), - scenery_entry->large_scenery.tiles[_tileIndex].z_offset }; + auto rotatedFirstTile = CoordsXYZ{ + CoordsXY{ sceneryEntry->tiles[_tileIndex].x_offset, sceneryEntry->tiles[_tileIndex].y_offset }.Rotate(_loc.direction), + sceneryEntry->tiles[_tileIndex].z_offset + }; auto firstTile = CoordsXYZ{ _loc.x, _loc.y, _loc.z } - rotatedFirstTile; - for (int32_t i = 0; scenery_entry->large_scenery.tiles[i].x_offset != -1; i++) + for (int32_t i = 0; sceneryEntry->tiles[i].x_offset != -1; i++) { auto rotatedCurrentTile = CoordsXYZ{ - CoordsXY{ scenery_entry->large_scenery.tiles[i].x_offset, scenery_entry->large_scenery.tiles[i].y_offset }.Rotate( - _loc.direction), - scenery_entry->large_scenery.tiles[i].z_offset + CoordsXY{ sceneryEntry->tiles[i].x_offset, sceneryEntry->tiles[i].y_offset }.Rotate(_loc.direction), + sceneryEntry->tiles[i].z_offset }; auto currentTile = CoordsXYZ{ firstTile.x, firstTile.y, firstTile.z } + rotatedCurrentTile; @@ -184,7 +181,7 @@ GameActions::Result::Ptr LargeSceneryRemoveAction::Execute() const } } - res->Cost = scenery_entry->large_scenery.removal_price * 10; + res->Cost = sceneryEntry->removal_price * 10; return res; } diff --git a/src/openrct2/actions/LargeScenerySetColourAction.cpp b/src/openrct2/actions/LargeScenerySetColourAction.cpp index 313b07961e..794d863794 100644 --- a/src/openrct2/actions/LargeScenerySetColourAction.cpp +++ b/src/openrct2/actions/LargeScenerySetColourAction.cpp @@ -86,7 +86,7 @@ GameActions::Result::Ptr LargeScenerySetColourAction::QueryExecute(bool isExecut return res; } - rct_scenery_entry* sceneryEntry = largeElement->GetEntry(); + auto* sceneryEntry = largeElement->GetEntry(); if (sceneryEntry == nullptr) { @@ -94,15 +94,15 @@ GameActions::Result::Ptr LargeScenerySetColourAction::QueryExecute(bool isExecut return MakeResult(GameActions::Status::Unknown, STR_CANT_REPAINT_THIS); } // Work out the base tile coordinates (Tile with index 0) - auto rotatedBaseCoordsOffset = CoordsXYZ{ CoordsXY{ sceneryEntry->large_scenery.tiles[_tileIndex].x_offset, - sceneryEntry->large_scenery.tiles[_tileIndex].y_offset } - .Rotate(_loc.direction), - sceneryEntry->large_scenery.tiles[_tileIndex].z_offset }; + auto rotatedBaseCoordsOffset = CoordsXYZ{ + CoordsXY{ sceneryEntry->tiles[_tileIndex].x_offset, sceneryEntry->tiles[_tileIndex].y_offset }.Rotate(_loc.direction), + sceneryEntry->tiles[_tileIndex].z_offset + }; auto baseTile = CoordsXYZ{ _loc.x, _loc.y, _loc.z } - rotatedBaseCoordsOffset; auto i = 0; - for (auto tile = sceneryEntry->large_scenery.tiles; tile->x_offset != -1; ++tile, ++i) + for (auto tile = sceneryEntry->tiles; tile->x_offset != -1; ++tile, ++i) { // Work out the current tile coordinates auto rotatedTileCoords = CoordsXYZ{ CoordsXY{ tile->x_offset, tile->y_offset }.Rotate(_loc.direction), tile->z_offset }; diff --git a/src/openrct2/actions/MazePlaceTrackAction.cpp b/src/openrct2/actions/MazePlaceTrackAction.cpp index 71b18401c2..aa394ea0ea 100644 --- a/src/openrct2/actions/MazePlaceTrackAction.cpp +++ b/src/openrct2/actions/MazePlaceTrackAction.cpp @@ -39,12 +39,6 @@ GameActions::Result::Ptr MazePlaceTrackAction::Query() const res->Position = _loc + CoordsXYZ{ 8, 8, 0 }; res->Expenditure = ExpenditureType::RideConstruction; res->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; - if (!map_check_free_elements_and_reorganise(1)) - { - res->Error = GameActions::Status::NoFreeElements; - res->ErrorMessage = STR_TILE_ELEMENT_LIMIT_REACHED; - return res; - } if ((_loc.z & 0xF) != 0) { res->Error = GameActions::Status::Unknown; @@ -59,6 +53,12 @@ GameActions::Result::Ptr MazePlaceTrackAction::Query() const return res; } + if (!MapCheckCapacityAndReorganise(_loc)) + { + res->Error = GameActions::Status::NoFreeElements; + res->ErrorMessage = STR_TILE_ELEMENT_LIMIT_REACHED; + return res; + } auto surfaceElement = map_get_surface_element_at(_loc); if (surfaceElement == nullptr) { @@ -83,24 +83,22 @@ GameActions::Result::Ptr MazePlaceTrackAction::Query() const } } - money32 clearCost = 0; - - if (!map_can_construct_with_clear_at( - { _loc.ToTileStart(), baseHeight, clearanceHeight }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags(), - &clearCost, CREATE_CROSSING_MODE_NONE)) + auto canBuild = MapCanConstructWithClearAt( + { _loc.ToTileStart(), baseHeight, clearanceHeight }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags()); + if (canBuild->Error != GameActions::Status::Ok) { - return MakeResult( - GameActions::Status::NoClearance, res->ErrorTitle.GetStringId(), gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; + return canBuild; } - if (gMapGroundFlags & ELEMENT_IS_UNDERWATER) + if (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER) { res->Error = GameActions::Status::NoClearance; res->ErrorMessage = STR_RIDE_CANT_BUILD_THIS_UNDERWATER; return res; } - if (gMapGroundFlags & ELEMENT_IS_UNDERGROUND) + if (canBuild->GroundFlags & ELEMENT_IS_UNDERGROUND) { res->Error = GameActions::Status::NoClearance; res->ErrorMessage = STR_CAN_ONLY_BUILD_THIS_ABOVE_GROUND; @@ -116,7 +114,7 @@ GameActions::Result::Ptr MazePlaceTrackAction::Query() const } money32 price = (((ride->GetRideTypeDescriptor().BuildCosts.TrackPrice * TrackPricing[TrackElemType::Maze]) >> 16)); - res->Cost = clearCost + price / 2 * 10; + res->Cost = canBuild->Cost + price / 2 * 10; return res; } @@ -137,13 +135,6 @@ GameActions::Result::Ptr MazePlaceTrackAction::Execute() const return res; } - if (!map_check_free_elements_and_reorganise(1)) - { - res->Error = GameActions::Status::NoFreeElements; - res->ErrorMessage = STR_NONE; - return res; - } - uint32_t flags = GetFlags(); if (!(flags & GAME_COMMAND_FLAG_GHOST)) { @@ -154,17 +145,17 @@ GameActions::Result::Ptr MazePlaceTrackAction::Execute() const auto baseHeight = _loc.z; auto clearanceHeight = _loc.z + MAZE_CLEARANCE_HEIGHT; - money32 clearCost = 0; - if (!map_can_construct_with_clear_at( - { _loc.ToTileStart(), baseHeight, clearanceHeight }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, - GetFlags() | GAME_COMMAND_FLAG_APPLY, &clearCost, CREATE_CROSSING_MODE_NONE)) + auto canBuild = MapCanConstructWithClearAt( + { _loc.ToTileStart(), baseHeight, clearanceHeight }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, + GetFlags() | GAME_COMMAND_FLAG_APPLY); + if (canBuild->Error != GameActions::Status::Ok) { - return MakeResult( - GameActions::Status::NoClearance, res->ErrorTitle.GetStringId(), gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; + return canBuild; } money32 price = (((ride->GetRideTypeDescriptor().BuildCosts.TrackPrice * TrackPricing[TrackElemType::Maze]) >> 16)); - res->Cost = clearCost + price / 2 * 10; + res->Cost = canBuild->Cost + price / 2 * 10; auto startLoc = _loc.ToTileStart(); diff --git a/src/openrct2/actions/MazeSetTrackAction.cpp b/src/openrct2/actions/MazeSetTrackAction.cpp index 3c5af361ed..d2755adb1c 100644 --- a/src/openrct2/actions/MazeSetTrackAction.cpp +++ b/src/openrct2/actions/MazeSetTrackAction.cpp @@ -51,12 +51,6 @@ GameActions::Result::Ptr MazeSetTrackAction::Query() const res->Position = _loc + CoordsXYZ{ 8, 8, 0 }; res->Expenditure = ExpenditureType::RideConstruction; res->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; - if (!map_check_free_elements_and_reorganise(1)) - { - res->Error = GameActions::Status::NoFreeElements; - res->ErrorMessage = STR_TILE_ELEMENT_LIMIT_REACHED; - return res; - } if ((_loc.z & 0xF) != 0 && _mode == GC_SET_MAZE_TRACK_BUILD) { res->Error = GameActions::Status::Unknown; @@ -71,6 +65,12 @@ GameActions::Result::Ptr MazeSetTrackAction::Query() const return res; } + if (!MapCheckCapacityAndReorganise(_loc)) + { + res->Error = GameActions::Status::NoFreeElements; + res->ErrorMessage = STR_TILE_ELEMENT_LIMIT_REACHED; + return res; + } auto surfaceElement = map_get_surface_element_at(_loc); if (surfaceElement == nullptr) { @@ -159,13 +159,6 @@ GameActions::Result::Ptr MazeSetTrackAction::Execute() const return res; } - if (!map_check_free_elements_and_reorganise(1)) - { - res->Error = GameActions::Status::NoFreeElements; - res->ErrorMessage = STR_NONE; - return res; - } - uint32_t flags = GetFlags(); if (!(flags & GAME_COMMAND_FLAG_GHOST)) { diff --git a/src/openrct2/actions/ParkMarketingAction.cpp b/src/openrct2/actions/ParkMarketingAction.cpp index 30cc1693c0..aa9c2abda4 100644 --- a/src/openrct2/actions/ParkMarketingAction.cpp +++ b/src/openrct2/actions/ParkMarketingAction.cpp @@ -28,6 +28,13 @@ ParkMarketingAction::ParkMarketingAction(int32_t type, int32_t item, int32_t num { } +void ParkMarketingAction::AcceptParameters(GameActionParameterVisitor& visitor) +{ + visitor.Visit("type", _type); + visitor.Visit("item", _item); + visitor.Visit("duration", _numWeeks); +} + uint16_t ParkMarketingAction::GetActionFlags() const { return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused; diff --git a/src/openrct2/actions/ParkMarketingAction.h b/src/openrct2/actions/ParkMarketingAction.h index 3ca33f35ed..0af79e725f 100644 --- a/src/openrct2/actions/ParkMarketingAction.h +++ b/src/openrct2/actions/ParkMarketingAction.h @@ -22,6 +22,8 @@ public: ParkMarketingAction() = default; ParkMarketingAction(int32_t type, int32_t item, int32_t numWeeks); + void AcceptParameters(GameActionParameterVisitor & visitor) override; + uint16_t GetActionFlags() const override; void Serialise(DataSerialiser & stream) override; diff --git a/src/openrct2/actions/ParkSetDateAction.cpp b/src/openrct2/actions/ParkSetDateAction.cpp index 4127662dac..94f90664b8 100644 --- a/src/openrct2/actions/ParkSetDateAction.cpp +++ b/src/openrct2/actions/ParkSetDateAction.cpp @@ -24,6 +24,13 @@ ParkSetDateAction::ParkSetDateAction(int32_t year, int32_t month, int32_t day) { } +void ParkSetDateAction::AcceptParameters(GameActionParameterVisitor& visitor) +{ + visitor.Visit("year", _year); + visitor.Visit("month", _month); + visitor.Visit("day", _day); +} + uint16_t ParkSetDateAction::GetActionFlags() const { return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused; diff --git a/src/openrct2/actions/ParkSetDateAction.h b/src/openrct2/actions/ParkSetDateAction.h index 12f94f4eb1..20d76a5ce3 100644 --- a/src/openrct2/actions/ParkSetDateAction.h +++ b/src/openrct2/actions/ParkSetDateAction.h @@ -22,6 +22,8 @@ public: ParkSetDateAction() = default; ParkSetDateAction(int32_t year, int32_t month, int32_t day); + void AcceptParameters(GameActionParameterVisitor & visitor) override; + uint16_t GetActionFlags() const override; void Serialise(DataSerialiser & stream) override; diff --git a/src/openrct2/actions/ParkSetLoanAction.cpp b/src/openrct2/actions/ParkSetLoanAction.cpp index e1d94308b0..e40049f76b 100644 --- a/src/openrct2/actions/ParkSetLoanAction.cpp +++ b/src/openrct2/actions/ParkSetLoanAction.cpp @@ -22,6 +22,11 @@ ParkSetLoanAction::ParkSetLoanAction(money32 value) { } +void ParkSetLoanAction::AcceptParameters(GameActionParameterVisitor& visitor) +{ + visitor.Visit("value", _value); +} + uint16_t ParkSetLoanAction::GetActionFlags() const { return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused; diff --git a/src/openrct2/actions/ParkSetLoanAction.h b/src/openrct2/actions/ParkSetLoanAction.h index 9c53e8a018..43f4692ea2 100644 --- a/src/openrct2/actions/ParkSetLoanAction.h +++ b/src/openrct2/actions/ParkSetLoanAction.h @@ -20,6 +20,8 @@ public: ParkSetLoanAction() = default; ParkSetLoanAction(money32 value); + void AcceptParameters(GameActionParameterVisitor & visitor) override; + uint16_t GetActionFlags() const override; void Serialise(DataSerialiser & stream) override; diff --git a/src/openrct2/actions/PeepPickupAction.cpp b/src/openrct2/actions/PeepPickupAction.cpp index 49b422cdcf..bee844a0e0 100644 --- a/src/openrct2/actions/PeepPickupAction.cpp +++ b/src/openrct2/actions/PeepPickupAction.cpp @@ -11,8 +11,9 @@ #include "../Input.h" #include "../network/network.h" +#include "../peep/Peep.h" #include "../util/Util.h" -#include "../world/Sprite.h" +#include "../world/Entity.h" PeepPickupAction::PeepPickupAction(PeepPickupType type, uint32_t spriteId, const CoordsXYZ& loc, NetworkPlayerId_t owner) : _type(type) @@ -48,7 +49,7 @@ GameActions::Result::Ptr PeepPickupAction::Query() const } auto* const peep = TryGetEntity(_spriteId); - if (!peep || peep->sprite_identifier != SpriteIdentifier::Peep) + if (peep == nullptr) { log_error("Failed to pick up peep for sprite %d", _spriteId); return MakeResult(GameActions::Status::InvalidParameters, STR_ERR_CANT_PLACE_PERSON_HERE); @@ -106,7 +107,7 @@ GameActions::Result::Ptr PeepPickupAction::Query() const GameActions::Result::Ptr PeepPickupAction::Execute() const { Peep* const peep = TryGetEntity(_spriteId); - if (!peep || peep->sprite_identifier != SpriteIdentifier::Peep) + if (peep == nullptr) { log_error("Failed to pick up peep for sprite %d", _spriteId); return MakeResult(GameActions::Status::InvalidParameters, STR_ERR_CANT_PLACE_PERSON_HERE); diff --git a/src/openrct2/actions/PlaceParkEntranceAction.cpp b/src/openrct2/actions/PlaceParkEntranceAction.cpp index 661a69e1b9..248353afee 100644 --- a/src/openrct2/actions/PlaceParkEntranceAction.cpp +++ b/src/openrct2/actions/PlaceParkEntranceAction.cpp @@ -18,11 +18,11 @@ #include "../world/Footpath.h" #include "../world/MapAnimation.h" #include "../world/Park.h" -#include "../world/Sprite.h" #include "../world/Surface.h" -PlaceParkEntranceAction::PlaceParkEntranceAction(const CoordsXYZD& location) +PlaceParkEntranceAction::PlaceParkEntranceAction(const CoordsXYZD& location, ObjectEntryIndex pathType) : _loc(location) + , _pathType(pathType) { } @@ -36,37 +36,36 @@ void PlaceParkEntranceAction::Serialise(DataSerialiser& stream) GameAction::Serialise(stream); stream << DS_TAG(_loc); + stream << DS_TAG(_pathType); } GameActions::Result::Ptr PlaceParkEntranceAction::Query() const { if (!(gScreenFlags & SCREEN_FLAGS_EDITOR) && !gCheatsSandboxMode) { - return std::make_unique( - GameActions::Status::NotInEditorMode, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_NONE); + return std::make_unique(GameActions::Status::NotInEditorMode, STR_CANT_BUILD_THIS_HERE, STR_NONE); } auto res = std::make_unique(); res->Expenditure = ExpenditureType::LandPurchase; res->Position = { _loc.x, _loc.y, _loc.z }; - if (!map_check_free_elements_and_reorganise(3)) - { - return std::make_unique( - GameActions::Status::NoFreeElements, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_NONE); - } - if (!LocationValid(_loc) || _loc.x <= 32 || _loc.y <= 32 || _loc.x >= (gMapSizeUnits - 32) || _loc.y >= (gMapSizeUnits - 32)) { return std::make_unique( - GameActions::Status::InvalidParameters, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_TOO_CLOSE_TO_EDGE_OF_MAP); + GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_TOO_CLOSE_TO_EDGE_OF_MAP); + } + + if (!CheckMapCapacity(3)) + { + return std::make_unique(GameActions::Status::NoFreeElements, STR_CANT_BUILD_THIS_HERE, STR_NONE); } if (gParkEntrances.size() >= MAX_PARK_ENTRANCES) { return std::make_unique( - GameActions::Status::InvalidParameters, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_ERR_TOO_MANY_PARK_ENTRANCES); + GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_ERR_TOO_MANY_PARK_ENTRANCES); } auto zLow = _loc.z; @@ -87,7 +86,7 @@ GameActions::Result::Ptr PlaceParkEntranceAction::Query() const if (auto res2 = MapCanConstructAt({ entranceLoc, zLow, zHigh }, { 0b1111, 0 }); res2->Error != GameActions::Status::Ok) { return std::make_unique( - GameActions::Status::NoClearance, STR_CANT_BUILD_PARK_ENTRANCE_HERE, res2->ErrorMessage.GetStringId(), + GameActions::Status::NoClearance, STR_CANT_BUILD_THIS_HERE, res2->ErrorMessage.GetStringId(), res2->ErrorMessageArgs.data()); } @@ -96,7 +95,7 @@ GameActions::Result::Ptr PlaceParkEntranceAction::Query() const if (entranceElement != nullptr) { return std::make_unique( - GameActions::Status::ItemAlreadyPlaced, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_NONE); + GameActions::Status::ItemAlreadyPlaced, STR_CANT_BUILD_THIS_HERE, STR_NONE); } } @@ -146,7 +145,7 @@ GameActions::Result::Ptr PlaceParkEntranceAction::Execute() const entranceElement->SetDirection(_loc.direction); entranceElement->SetSequenceIndex(index); entranceElement->SetEntranceType(ENTRANCE_TYPE_PARK_ENTRANCE); - entranceElement->SetPathType(gFootpathSelectedId); + entranceElement->SetPathType(_pathType); if (!entranceElement->IsGhost()) { @@ -169,3 +168,25 @@ GameActions::Result::Ptr PlaceParkEntranceAction::Execute() const return res; } + +bool PlaceParkEntranceAction::CheckMapCapacity(int16_t numTiles) const +{ + CoordsXYZ entranceLoc = _loc; + for (uint8_t index = 0; index < 3; index++) + { + if (index == 1) + { + entranceLoc += CoordsDirectionDelta[(_loc.direction - 1) & 0x3]; + } + else if (index == 2) + { + entranceLoc.x += CoordsDirectionDelta[(_loc.direction + 1) & 0x3].x * 2; + entranceLoc.y += CoordsDirectionDelta[(_loc.direction + 1) & 0x3].y * 2; + } + if (!MapCheckCapacityAndReorganise(entranceLoc, numTiles)) + { + return false; + } + } + return true; +} diff --git a/src/openrct2/actions/PlaceParkEntranceAction.h b/src/openrct2/actions/PlaceParkEntranceAction.h index 2514d3ae1a..88d149cbda 100644 --- a/src/openrct2/actions/PlaceParkEntranceAction.h +++ b/src/openrct2/actions/PlaceParkEntranceAction.h @@ -15,14 +15,18 @@ DEFINE_GAME_ACTION(PlaceParkEntranceAction, GameCommand::PlaceParkEntrance, Game { private: CoordsXYZD _loc; + ObjectEntryIndex _pathType; public: PlaceParkEntranceAction() = default; - PlaceParkEntranceAction(const CoordsXYZD& location); + PlaceParkEntranceAction(const CoordsXYZD& location, ObjectEntryIndex pathType); uint16_t GetActionFlags() const override; void Serialise(DataSerialiser & stream) override; GameActions::Result::Ptr Query() const override; GameActions::Result::Ptr Execute() const override; + +private: + bool CheckMapCapacity(int16_t numTiles) const; }; diff --git a/src/openrct2/actions/PlacePeepSpawnAction.cpp b/src/openrct2/actions/PlacePeepSpawnAction.cpp index c332f27ef8..9af4289dd1 100644 --- a/src/openrct2/actions/PlacePeepSpawnAction.cpp +++ b/src/openrct2/actions/PlacePeepSpawnAction.cpp @@ -47,12 +47,6 @@ GameActions::Result::Ptr PlacePeepSpawnAction::Query() const res->Expenditure = ExpenditureType::LandPurchase; res->Position = _location; - if (!map_check_free_elements_and_reorganise(3)) - { - return std::make_unique( - GameActions::Status::NoFreeElements, STR_ERR_CANT_PLACE_PEEP_SPAWN_HERE, STR_NONE); - } - if (!LocationValid(_location) || _location.x <= 16 || _location.y <= 16 || _location.x >= (gMapSizeUnits - 16) || _location.y >= (gMapSizeUnits - 16)) { diff --git a/src/openrct2/actions/RideCreateAction.cpp b/src/openrct2/actions/RideCreateAction.cpp index 45498fc432..df9fa87135 100644 --- a/src/openrct2/actions/RideCreateAction.cpp +++ b/src/openrct2/actions/RideCreateAction.cpp @@ -155,13 +155,13 @@ GameActions::Result::Ptr RideCreateAction::Execute() const vehicle = SPRITE_INDEX_NULL; } - ride->status = RIDE_STATUS_CLOSED; + ride->status = RideStatus::Closed; ride->lifecycle_flags = 0; ride->vehicle_change_timeout = 0; ride->num_stations = 0; ride->num_vehicles = 1; ride->proposed_num_vehicles = 32; - ride->max_trains = 32; + ride->max_trains = MAX_VEHICLES_PER_RIDE; ride->num_cars_per_train = 1; ride->proposed_num_cars_per_train = 12; ride->min_waiting_time = 10; diff --git a/src/openrct2/actions/RideCreateAction.h b/src/openrct2/actions/RideCreateAction.h index 83cf87a994..098a749bf4 100644 --- a/src/openrct2/actions/RideCreateAction.h +++ b/src/openrct2/actions/RideCreateAction.h @@ -23,8 +23,8 @@ public: DEFINE_GAME_ACTION(RideCreateAction, GameCommand::CreateRide, RideCreateGameActionResult) { private: - int32_t _rideType{ RIDE_ID_NULL }; - ObjectEntryIndex _subType{ RIDE_ENTRY_INDEX_NULL }; + ObjectEntryIndex _rideType{ OBJECT_ENTRY_INDEX_NULL }; + ObjectEntryIndex _subType{ OBJECT_ENTRY_INDEX_NULL }; uint8_t _colour1{ 0xFF }; uint8_t _colour2{ 0xFF }; diff --git a/src/openrct2/actions/RideDemolishAction.cpp b/src/openrct2/actions/RideDemolishAction.cpp index 1a1f7d4e6e..a63dbc7ab2 100644 --- a/src/openrct2/actions/RideDemolishAction.cpp +++ b/src/openrct2/actions/RideDemolishAction.cpp @@ -24,7 +24,6 @@ #include "../world/Banner.h" #include "../world/EntityList.h" #include "../world/Park.h" -#include "../world/Sprite.h" #include "MazeSetTrackAction.h" #include "TrackRemoveAction.h" @@ -75,7 +74,7 @@ GameActions::Result::Ptr RideDemolishAction::Query() const if (_modifyType == RIDE_MODIFY_RENEW) { - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { return std::make_unique( GameActions::Status::Disallowed, STR_CANT_REFURBISH_RIDE, STR_MUST_BE_CLOSED_FIRST); @@ -143,7 +142,7 @@ GameActions::Result::Ptr RideDemolishAction::DemolishRide(Ride* ride) const } } - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { uint8_t ride_id_bit = _rideIndex % 8; uint8_t ride_id_offset = _rideIndex / 8; diff --git a/src/openrct2/actions/RideDemolishAction.h b/src/openrct2/actions/RideDemolishAction.h index c468843971..69a4e99363 100644 --- a/src/openrct2/actions/RideDemolishAction.h +++ b/src/openrct2/actions/RideDemolishAction.h @@ -14,7 +14,7 @@ DEFINE_GAME_ACTION(RideDemolishAction, GameCommand::DemolishRide, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; uint8_t _modifyType{ RIDE_MODIFY_DEMOLISH }; public: diff --git a/src/openrct2/actions/RideEntranceExitPlaceAction.cpp b/src/openrct2/actions/RideEntranceExitPlaceAction.cpp index bdea025199..df2b87bf2c 100644 --- a/src/openrct2/actions/RideEntranceExitPlaceAction.cpp +++ b/src/openrct2/actions/RideEntranceExitPlaceAction.cpp @@ -14,7 +14,6 @@ #include "../ride/Ride.h" #include "../ride/Station.h" #include "../world/MapAnimation.h" -#include "../world/Sprite.h" RideEntranceExitPlaceAction::RideEntranceExitPlaceAction( const CoordsXY& loc, Direction direction, ride_id_t rideIndex, StationIndex stationNum, bool isExit) @@ -51,10 +50,6 @@ GameActions::Result::Ptr RideEntranceExitPlaceAction::Query() const { auto errorTitle = _isExit ? STR_CANT_BUILD_MOVE_EXIT_FOR_THIS_RIDE_ATTRACTION : STR_CANT_BUILD_MOVE_ENTRANCE_FOR_THIS_RIDE_ATTRACTION; - if (!map_check_free_elements_and_reorganise(1)) - { - return MakeResult(GameActions::Status::NoFreeElements, errorTitle); - } auto ride = get_ride(_rideIndex); if (ride == nullptr) @@ -69,7 +64,7 @@ GameActions::Result::Ptr RideEntranceExitPlaceAction::Query() const return MakeResult(GameActions::Status::InvalidParameters, errorTitle); } - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { return MakeResult(GameActions::Status::NotClosed, errorTitle, STR_MUST_BE_CLOSED_FIRST); } @@ -99,16 +94,20 @@ GameActions::Result::Ptr RideEntranceExitPlaceAction::Query() const return MakeResult(GameActions::Status::NotOwned, errorTitle); } - auto clear_z = z + (_isExit ? RideExitHeight : RideEntranceHeight); - auto cost = MONEY32_UNDEFINED; - if (!map_can_construct_with_clear_at( - { _loc, z, clear_z }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags(), &cost, - CREATE_CROSSING_MODE_NONE)) + if (!MapCheckCapacityAndReorganise(_loc)) { - return MakeResult(GameActions::Status::NoClearance, errorTitle, gGameCommandErrorText, gCommonFormatArgs); + return MakeResult(GameActions::Status::NoFreeElements, errorTitle); + } + auto clear_z = z + (_isExit ? RideExitHeight : RideEntranceHeight); + auto canBuild = MapCanConstructWithClearAt( + { _loc, z, clear_z }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags()); + if (canBuild->Error != GameActions::Status::Ok) + { + canBuild->ErrorTitle = errorTitle; + return canBuild; } - if (gMapGroundFlags & ELEMENT_IS_UNDERWATER) + if (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER) { return MakeResult(GameActions::Status::Disallowed, errorTitle, STR_RIDE_CANT_BUILD_THIS_UNDERWATER); } @@ -164,12 +163,12 @@ GameActions::Result::Ptr RideEntranceExitPlaceAction::Execute() const } auto clear_z = z + (_isExit ? RideExitHeight : RideEntranceHeight); - auto cost = MONEY32_UNDEFINED; - if (!map_can_construct_with_clear_at( - { _loc, z, clear_z }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags() | GAME_COMMAND_FLAG_APPLY, &cost, - CREATE_CROSSING_MODE_NONE)) + auto canBuild = MapCanConstructWithClearAt( + { _loc, z, clear_z }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags() | GAME_COMMAND_FLAG_APPLY); + if (canBuild->Error != GameActions::Status::Ok) { - return MakeResult(GameActions::Status::NoClearance, errorTitle, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = errorTitle; + return canBuild; } auto res = MakeResult(); @@ -218,26 +217,26 @@ GameActions::Result::Ptr RideEntranceExitPlaceAction::TrackPlaceQuery(const Coor { auto errorTitle = isExit ? STR_CANT_BUILD_MOVE_EXIT_FOR_THIS_RIDE_ATTRACTION : STR_CANT_BUILD_MOVE_ENTRANCE_FOR_THIS_RIDE_ATTRACTION; - if (!map_check_free_elements_and_reorganise(1)) - { - return MakeResult(GameActions::Status::NoFreeElements, errorTitle); - } if (!gCheatsSandboxMode && !map_is_location_owned(loc)) { return MakeResult(GameActions::Status::NotOwned, errorTitle); } + if (!MapCheckCapacityAndReorganise(loc)) + { + return MakeResult(GameActions::Status::NoFreeElements, errorTitle); + } int16_t baseZ = loc.z; int16_t clearZ = baseZ + (isExit ? RideExitHeight : RideEntranceHeight); - auto cost = MONEY32_UNDEFINED; - if (!map_can_construct_with_clear_at( - { loc, baseZ, clearZ }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, 0, &cost, CREATE_CROSSING_MODE_NONE)) + auto canBuild = MapCanConstructWithClearAt({ loc, baseZ, clearZ }, &map_place_non_scenery_clear_func, { 0b1111, 0 }, 0); + if (canBuild->Error != GameActions::Status::Ok) { - return MakeResult(GameActions::Status::NoClearance, errorTitle, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = errorTitle; + return canBuild; } - if (gMapGroundFlags & ELEMENT_IS_UNDERWATER) + if (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER) { return MakeResult(GameActions::Status::Disallowed, errorTitle, STR_RIDE_CANT_BUILD_THIS_UNDERWATER); } diff --git a/src/openrct2/actions/RideEntranceExitRemoveAction.cpp b/src/openrct2/actions/RideEntranceExitRemoveAction.cpp index 5ef2b553df..f4fac8cae3 100644 --- a/src/openrct2/actions/RideEntranceExitRemoveAction.cpp +++ b/src/openrct2/actions/RideEntranceExitRemoveAction.cpp @@ -78,7 +78,7 @@ GameActions::Result::Ptr RideEntranceExitRemoveAction::Query() const return std::make_unique(GameActions::Status::InvalidParameters, STR_NONE); } - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { return MakeResult(GameActions::Status::InvalidParameters, STR_MUST_BE_CLOSED_FIRST); } diff --git a/src/openrct2/actions/RideSetAppearanceAction.h b/src/openrct2/actions/RideSetAppearanceAction.h index fdc4e65992..ce9a93d0d6 100644 --- a/src/openrct2/actions/RideSetAppearanceAction.h +++ b/src/openrct2/actions/RideSetAppearanceAction.h @@ -27,7 +27,7 @@ enum class RideSetAppearanceType : uint8_t DEFINE_GAME_ACTION(RideSetAppearanceAction, GameCommand::SetRideAppearance, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; RideSetAppearanceType _type{}; uint8_t _value{}; uint32_t _index{}; diff --git a/src/openrct2/actions/RideSetColourSchemeAction.cpp b/src/openrct2/actions/RideSetColourSchemeAction.cpp index 6ba9d0c4ab..8e245cc3df 100644 --- a/src/openrct2/actions/RideSetColourSchemeAction.cpp +++ b/src/openrct2/actions/RideSetColourSchemeAction.cpp @@ -18,7 +18,6 @@ #include "../management/Finance.h" #include "../ride/Ride.h" #include "../world/Park.h" -#include "../world/Sprite.h" RideSetColourSchemeAction::RideSetColourSchemeAction( const CoordsXYZD& location, track_type_t trackType, uint16_t newColourScheme) diff --git a/src/openrct2/actions/RideSetNameAction.h b/src/openrct2/actions/RideSetNameAction.h index de75055ecd..5da79e27a2 100644 --- a/src/openrct2/actions/RideSetNameAction.h +++ b/src/openrct2/actions/RideSetNameAction.h @@ -14,7 +14,7 @@ DEFINE_GAME_ACTION(RideSetNameAction, GameCommand::SetRideName, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; std::string _name; public: diff --git a/src/openrct2/actions/RideSetPriceAction.cpp b/src/openrct2/actions/RideSetPriceAction.cpp index bf65f3c7cc..374bd4d9a0 100644 --- a/src/openrct2/actions/RideSetPriceAction.cpp +++ b/src/openrct2/actions/RideSetPriceAction.cpp @@ -20,7 +20,6 @@ #include "../ride/RideData.h" #include "../ride/ShopItem.h" #include "../world/Park.h" -#include "../world/Sprite.h" RideSetPriceAction::RideSetPriceAction(ride_id_t rideIndex, money16 price, bool primaryPrice) : _rideIndex(rideIndex) diff --git a/src/openrct2/actions/RideSetPriceAction.h b/src/openrct2/actions/RideSetPriceAction.h index 6aa63c643d..07bebe0a1c 100644 --- a/src/openrct2/actions/RideSetPriceAction.h +++ b/src/openrct2/actions/RideSetPriceAction.h @@ -14,7 +14,7 @@ DEFINE_GAME_ACTION(RideSetPriceAction, GameCommand::SetRidePrice, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; money16 _price{ MONEY16_UNDEFINED }; bool _primaryPrice{ true }; diff --git a/src/openrct2/actions/RideSetSettingAction.cpp b/src/openrct2/actions/RideSetSettingAction.cpp index 3c19a54fa3..fb7b8d506b 100644 --- a/src/openrct2/actions/RideSetSettingAction.cpp +++ b/src/openrct2/actions/RideSetSettingAction.cpp @@ -58,7 +58,7 @@ GameActions::Result::Ptr RideSetSettingAction::Query() const GameActions::Status::Disallowed, STR_CANT_CHANGE_OPERATING_MODE, STR_HAS_BROKEN_DOWN_AND_REQUIRES_FIXING); } - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { return MakeResult(GameActions::Status::Disallowed, STR_CANT_CHANGE_OPERATING_MODE, STR_MUST_BE_CLOSED_FIRST); } @@ -244,15 +244,15 @@ bool RideSetSettingAction::ride_is_mode_valid(Ride* ride) const bool RideSetSettingAction::ride_is_valid_lift_hill_speed(Ride* ride) const { - int32_t minSpeed = gCheatsFastLiftHill ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; - int32_t maxSpeed = gCheatsFastLiftHill ? 255 : ride->GetRideTypeDescriptor().LiftData.maximum_speed; + int32_t minSpeed = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; + int32_t maxSpeed = gCheatsUnlockOperatingLimits ? 255 : ride->GetRideTypeDescriptor().LiftData.maximum_speed; return _value >= minSpeed && _value <= maxSpeed; } bool RideSetSettingAction::ride_is_valid_num_circuits() const { int32_t minNumCircuits = 1; - int32_t maxNumCircuits = gCheatsFastLiftHill ? 255 : 20; + int32_t maxNumCircuits = gCheatsUnlockOperatingLimits ? 255 : MAX_CIRCUITS_PER_RIDE; return _value >= minNumCircuits && _value <= maxNumCircuits; } @@ -261,7 +261,7 @@ bool RideSetSettingAction::ride_is_valid_operation_option(Ride* ride) const const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; uint8_t minValue = operatingSettings.MinValue; uint8_t maxValue = operatingSettings.MaxValue; - if (gCheatsFastLiftHill) + if (gCheatsUnlockOperatingLimits) { minValue = 0; maxValue = 255; diff --git a/src/openrct2/actions/RideSetSettingAction.h b/src/openrct2/actions/RideSetSettingAction.h index 08c868c21c..5eebc14bbe 100644 --- a/src/openrct2/actions/RideSetSettingAction.h +++ b/src/openrct2/actions/RideSetSettingAction.h @@ -29,7 +29,7 @@ enum class RideSetSetting : uint8_t DEFINE_GAME_ACTION(RideSetSettingAction, GameCommand::SetRideSetting, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; RideSetSetting _setting{}; uint8_t _value{}; diff --git a/src/openrct2/actions/RideSetStatusAction.cpp b/src/openrct2/actions/RideSetStatusAction.cpp index 49112eea39..2750d639f3 100644 --- a/src/openrct2/actions/RideSetStatusAction.cpp +++ b/src/openrct2/actions/RideSetStatusAction.cpp @@ -20,7 +20,6 @@ #include "../ui/UiContext.h" #include "../ui/WindowManager.h" #include "../world/Park.h" -#include "../world/Sprite.h" static rct_string_id _StatusErrorTitles[] = { STR_CANT_CLOSE, @@ -29,7 +28,7 @@ static rct_string_id _StatusErrorTitles[] = { STR_CANT_SIMULATE, }; -RideSetStatusAction::RideSetStatusAction(ride_id_t rideIndex, uint8_t status) +RideSetStatusAction::RideSetStatusAction(ride_id_t rideIndex, RideStatus status) : _rideIndex(rideIndex) , _status(status) { @@ -67,7 +66,7 @@ GameActions::Result::Ptr RideSetStatusAction::Query() const return res; } - if (_status >= RIDE_STATUS_COUNT) + if (_status >= RideStatus::Count) { log_warning("Invalid ride status %u for ride %u", uint32_t(_status), uint32_t(_rideIndex)); res->Error = GameActions::Status::InvalidParameters; @@ -76,21 +75,21 @@ GameActions::Result::Ptr RideSetStatusAction::Query() const return res; } - res->ErrorTitle = _StatusErrorTitles[_status]; + res->ErrorTitle = _StatusErrorTitles[EnumValue(_status)]; Formatter ft(res->ErrorMessageArgs.data()); ft.Increment(6); ride->FormatNameTo(ft); if (_status != ride->status) { - if (_status == RIDE_STATUS_SIMULATING && (ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) + if (_status == RideStatus::Simulating && (ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { // Simulating will force clear the track, so make sure player can't cheat around a break down res->Error = GameActions::Status::Disallowed; res->ErrorMessage = STR_HAS_BROKEN_DOWN_AND_REQUIRES_FIXING; return res; } - else if (_status == RIDE_STATUS_TESTING || _status == RIDE_STATUS_SIMULATING) + else if (_status == RideStatus::Testing || _status == RideStatus::Simulating) { if (!ride->Test(_status, false)) { @@ -99,7 +98,7 @@ GameActions::Result::Ptr RideSetStatusAction::Query() const return res; } } - else if (_status == RIDE_STATUS_OPEN) + else if (_status == RideStatus::Open) { if (!ride->Open(false)) { @@ -127,7 +126,7 @@ GameActions::Result::Ptr RideSetStatusAction::Execute() const return res; } - res->ErrorTitle = _StatusErrorTitles[_status]; + res->ErrorTitle = _StatusErrorTitles[static_cast(_status)]; Formatter ft(res->ErrorMessageArgs.data()); ft.Increment(6); @@ -140,8 +139,8 @@ GameActions::Result::Ptr RideSetStatusAction::Execute() const switch (_status) { - case RIDE_STATUS_CLOSED: - if (ride->status == _status || ride->status == RIDE_STATUS_SIMULATING) + case RideStatus::Closed: + if (ride->status == _status || ride->status == RideStatus::Simulating) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { @@ -151,13 +150,13 @@ GameActions::Result::Ptr RideSetStatusAction::Execute() const } } - ride->status = RIDE_STATUS_CLOSED; + ride->status = RideStatus::Closed; ride->lifecycle_flags &= ~RIDE_LIFECYCLE_PASS_STATION_NO_STOPPING; ride->race_winner = SPRITE_INDEX_NULL; ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_MAIN | RIDE_INVALIDATE_RIDE_LIST; window_invalidate_by_number(WC_RIDE, _rideIndex); break; - case RIDE_STATUS_SIMULATING: + case RideStatus::Simulating: { ride->lifecycle_flags &= ~RIDE_LIFECYCLE_CRASHED; ride_clear_for_construction(ride); @@ -180,15 +179,15 @@ GameActions::Result::Ptr RideSetStatusAction::Execute() const window_invalidate_by_number(WC_RIDE, _rideIndex); break; } - case RIDE_STATUS_TESTING: - case RIDE_STATUS_OPEN: + case RideStatus::Testing: + case RideStatus::Open: { if (ride->status == _status) { return res; } - if (ride->status == RIDE_STATUS_SIMULATING) + if (ride->status == RideStatus::Simulating) { ride_clear_for_construction(ride); ride_remove_peeps(ride); @@ -202,7 +201,7 @@ GameActions::Result::Ptr RideSetStatusAction::Execute() const window_close(constructionWindow); } - if (_status == RIDE_STATUS_TESTING) + if (_status == RideStatus::Testing) { if (!ride->Test(_status, true)) { diff --git a/src/openrct2/actions/RideSetStatusAction.h b/src/openrct2/actions/RideSetStatusAction.h index a8e4c188df..fc97fb220e 100644 --- a/src/openrct2/actions/RideSetStatusAction.h +++ b/src/openrct2/actions/RideSetStatusAction.h @@ -14,12 +14,12 @@ DEFINE_GAME_ACTION(RideSetStatusAction, GameCommand::SetRideStatus, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; - uint8_t _status{ RIDE_STATUS_CLOSED }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; + RideStatus _status{ RideStatus::Closed }; public: RideSetStatusAction() = default; - RideSetStatusAction(ride_id_t rideIndex, uint8_t status); + RideSetStatusAction(ride_id_t rideIndex, RideStatus status); void AcceptParameters(GameActionParameterVisitor & visitor) override; diff --git a/src/openrct2/actions/RideSetVehicleAction.cpp b/src/openrct2/actions/RideSetVehicleAction.cpp index 2663b1d86b..167d2cb0b2 100644 --- a/src/openrct2/actions/RideSetVehicleAction.cpp +++ b/src/openrct2/actions/RideSetVehicleAction.cpp @@ -77,7 +77,7 @@ GameActions::Result::Ptr RideSetVehicleAction::Query() const GameActions::Status::Broken, errTitle, STR_HAS_BROKEN_DOWN_AND_REQUIRES_FIXING); } - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { return std::make_unique(GameActions::Status::NotClosed, errTitle, STR_MUST_BE_CLOSED_FIRST); } diff --git a/src/openrct2/actions/RideSetVehicleAction.h b/src/openrct2/actions/RideSetVehicleAction.h index a8dfe37fd3..7c7662a85e 100644 --- a/src/openrct2/actions/RideSetVehicleAction.h +++ b/src/openrct2/actions/RideSetVehicleAction.h @@ -22,7 +22,7 @@ enum class RideSetVehicleType : uint8_t DEFINE_GAME_ACTION(RideSetVehicleAction, GameCommand::SetRideVehicles, GameActions::Result) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; RideSetVehicleType _type{}; uint8_t _value{}; uint8_t _colour{}; diff --git a/src/openrct2/actions/ScenarioSetSettingAction.cpp b/src/openrct2/actions/ScenarioSetSettingAction.cpp index 4ae585d2d4..6bd4291e86 100644 --- a/src/openrct2/actions/ScenarioSetSettingAction.cpp +++ b/src/openrct2/actions/ScenarioSetSettingAction.cpp @@ -13,6 +13,7 @@ #include "../interface/Window.h" #include "../management/Finance.h" #include "../peep/Peep.h" +#include "../scenario/Scenario.h" #include "../util/Util.h" #include "../world/Park.h" @@ -236,6 +237,9 @@ GameActions::Result::Ptr ScenarioSetSettingAction::Execute() const gParkFlags &= ~PARK_FLAGS_DIFFICULT_GUEST_GENERATION; } break; + case ScenarioSetSetting::AllowEarlyCompletion: + gAllowEarlyCompletionInNetworkPlay = _value; + break; default: log_error("Invalid setting: %u", _setting); return MakeResult(GameActions::Status::InvalidParameters, STR_NONE); diff --git a/src/openrct2/actions/ScenarioSetSettingAction.h b/src/openrct2/actions/ScenarioSetSettingAction.h index ef9e44805f..625418696a 100644 --- a/src/openrct2/actions/ScenarioSetSettingAction.h +++ b/src/openrct2/actions/ScenarioSetSettingAction.h @@ -34,6 +34,7 @@ enum class ScenarioSetSetting : uint8_t ForbidHighConstruction, ParkRatingHigherDifficultyLevel, GuestGenerationHigherDifficultyLevel, + AllowEarlyCompletion, Count }; diff --git a/src/openrct2/actions/SetCheatAction.cpp b/src/openrct2/actions/SetCheatAction.cpp index c07ca57822..3b335234fd 100644 --- a/src/openrct2/actions/SetCheatAction.cpp +++ b/src/openrct2/actions/SetCheatAction.cpp @@ -19,12 +19,14 @@ #include "../localisation/StringIds.h" #include "../network/network.h" #include "../ride/Ride.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" #include "../ui/UiContext.h" #include "../util/Util.h" #include "../windows/Intent.h" #include "../world/Banner.h" #include "../world/Climate.h" +#include "../world/Duck.h" #include "../world/Footpath.h" #include "../world/Location.hpp" #include "../world/Map.h" @@ -107,7 +109,7 @@ GameActions::Result::Ptr SetCheatAction::Execute() const gCheatsShowVehiclesFromOtherTrackTypes = _param1 != 0; break; case CheatType::FastLiftHill: - gCheatsFastLiftHill = _param1 != 0; + gCheatsUnlockOperatingLimits = _param1 != 0; break; case CheatType::DisableBrakesFailure: gCheatsDisableBrakesFailure = _param1 != 0; @@ -232,7 +234,7 @@ GameActions::Result::Ptr SetCheatAction::Execute() const CreateDucks(_param1); break; case CheatType::RemoveDucks: - duck_remove_all(); + Duck::RemoveAll(); break; case CheatType::AllowTrackPlaceInvalidHeights: gCheatsAllowTrackPlaceInvalidHeights = _param1 != 0; @@ -410,13 +412,12 @@ void SetCheatAction::FixVandalism() const void SetCheatAction::RemoveLitter() const { - for (auto litter : EntityList(EntityListId::Litter)) + for (auto litter : EntityList()) { sprite_remove(litter); } tile_element_iterator it; - rct_scenery_entry* sceneryEntry; tile_element_iterator_begin(&it); do @@ -427,8 +428,8 @@ void SetCheatAction::RemoveLitter() const if (!(it.element)->AsPath()->HasAddition()) continue; - sceneryEntry = it.element->AsPath()->GetAdditionEntry(); - if (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BIN) + auto* pathBitEntry = it.element->AsPath()->GetAdditionEntry(); + if (pathBitEntry->flags & PATH_BIT_FLAG_IS_BIN) it.element->AsPath()->SetAdditionStatus(0xFF); } while (tile_element_iterator_next(&it)); @@ -553,7 +554,7 @@ void SetCheatAction::GenerateGuests(int32_t count) const void SetCheatAction::SetGuestParameter(int32_t parameter, int32_t value) const { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { switch (parameter) { @@ -597,7 +598,7 @@ void SetCheatAction::SetGuestParameter(int32_t parameter, int32_t value) const void SetCheatAction::GiveObjectToGuests(int32_t object) const { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { switch (object) { @@ -661,7 +662,7 @@ void SetCheatAction::RemoveAllGuests() const // Do not use the FOR_ALL_PEEPS macro for this as next sprite index // will be fetched on a deleted guest. - for (auto guest : EntityList(EntityListId::Peep)) + for (auto guest : EntityList()) { guest->Remove(); } @@ -672,7 +673,7 @@ void SetCheatAction::RemoveAllGuests() const void SetCheatAction::SetStaffSpeed(uint8_t value) const { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { peep->Energy = value; peep->EnergyTarget = value; diff --git a/src/openrct2/actions/SetParkEntranceFeeAction.cpp b/src/openrct2/actions/SetParkEntranceFeeAction.cpp index 1ca2c0ce49..f8ff2fff87 100644 --- a/src/openrct2/actions/SetParkEntranceFeeAction.cpp +++ b/src/openrct2/actions/SetParkEntranceFeeAction.cpp @@ -20,6 +20,11 @@ SetParkEntranceFeeAction::SetParkEntranceFeeAction(money16 fee) { } +void SetParkEntranceFeeAction::AcceptParameters(GameActionParameterVisitor& visitor) +{ + visitor.Visit("value", _fee); +} + uint16_t SetParkEntranceFeeAction::GetActionFlags() const { return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused; diff --git a/src/openrct2/actions/SetParkEntranceFeeAction.h b/src/openrct2/actions/SetParkEntranceFeeAction.h index 6ffc8fc284..5fb8b280a8 100644 --- a/src/openrct2/actions/SetParkEntranceFeeAction.h +++ b/src/openrct2/actions/SetParkEntranceFeeAction.h @@ -20,6 +20,8 @@ public: SetParkEntranceFeeAction() = default; SetParkEntranceFeeAction(money16 fee); + void AcceptParameters(GameActionParameterVisitor & visitor) override; + uint16_t GetActionFlags() const override; void Serialise(DataSerialiser & stream) override; diff --git a/src/openrct2/actions/SignSetNameAction.cpp b/src/openrct2/actions/SignSetNameAction.cpp index 15bec943b1..e58b2ffc52 100644 --- a/src/openrct2/actions/SignSetNameAction.cpp +++ b/src/openrct2/actions/SignSetNameAction.cpp @@ -26,6 +26,12 @@ SignSetNameAction::SignSetNameAction(BannerIndex bannerIndex, const std::string& { } +void SignSetNameAction::AcceptParameters(GameActionParameterVisitor& visitor) +{ + visitor.Visit("id", _bannerIndex); + visitor.Visit("name", _name); +} + uint16_t SignSetNameAction::GetActionFlags() const { return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused; diff --git a/src/openrct2/actions/SignSetNameAction.h b/src/openrct2/actions/SignSetNameAction.h index 0affa91edc..4c99862368 100644 --- a/src/openrct2/actions/SignSetNameAction.h +++ b/src/openrct2/actions/SignSetNameAction.h @@ -21,6 +21,8 @@ public: SignSetNameAction() = default; SignSetNameAction(BannerIndex bannerIndex, const std::string& name); + void AcceptParameters(GameActionParameterVisitor & visitor) override; + uint16_t GetActionFlags() const override; void Serialise(DataSerialiser & stream) override; diff --git a/src/openrct2/actions/SignSetStyleAction.cpp b/src/openrct2/actions/SignSetStyleAction.cpp index e16f2cfddc..eb2e0525c7 100644 --- a/src/openrct2/actions/SignSetStyleAction.cpp +++ b/src/openrct2/actions/SignSetStyleAction.cpp @@ -17,7 +17,6 @@ #include "../windows/Intent.h" #include "../world/Banner.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" SignSetStyleAction::SignSetStyleAction(BannerIndex bannerIndex, uint8_t mainColour, uint8_t textColour, bool isLarge) : _bannerIndex(bannerIndex) diff --git a/src/openrct2/actions/SmallSceneryPlaceAction.cpp b/src/openrct2/actions/SmallSceneryPlaceAction.cpp index e8701443de..5aaeabc114 100644 --- a/src/openrct2/actions/SmallSceneryPlaceAction.cpp +++ b/src/openrct2/actions/SmallSceneryPlaceAction.cpp @@ -22,7 +22,6 @@ #include "../world/MapAnimation.h" #include "../world/Park.h" #include "../world/SmallScenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" #include "../world/TileElement.h" #include "GameAction.h" @@ -112,22 +111,22 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Query() const res->Position.z = surfaceHeight; } - if (!map_check_free_elements_and_reorganise(1)) - { - return std::make_unique(GameActions::Status::NoFreeElements); - } - if (!LocationValid(_loc)) { return MakeResult(GameActions::Status::InvalidParameters); } + if (!MapCheckCapacityAndReorganise(_loc)) + { + return std::make_unique(GameActions::Status::NoFreeElements); + } + if (!byte_9D8150 && (_loc.x > gMapSizeMaxXY || _loc.y > gMapSizeMaxXY)) { return std::make_unique(GameActions::Status::InvalidParameters); } - rct_scenery_entry* sceneryEntry = get_small_scenery_entry(_sceneryType); + auto* sceneryEntry = get_small_scenery_entry(_sceneryType); if (sceneryEntry == nullptr) { return std::make_unique(GameActions::Status::InvalidParameters); @@ -240,7 +239,7 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Query() const } int32_t zLow = targetHeight; - int32_t zHigh = zLow + ceil2(sceneryEntry->small_scenery.height, COORDS_Z_STEP); + int32_t zHigh = zLow + ceil2(sceneryEntry->height, COORDS_Z_STEP); uint8_t collisionQuadrants = 0b1111; auto quadRotation{ 0 }; if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE))) @@ -277,20 +276,19 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Query() const } QuarterTile quarterTile = QuarterTile{ collisionQuadrants, supports }.Rotate(quadRotation); - money32 clearCost = 0; - - if (!map_can_construct_with_clear_at( - { _loc, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags(), &clearCost, - CREATE_CROSSING_MODE_NONE)) + const auto isTree = scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_IS_TREE); + auto canBuild = MapCanConstructWithClearAt( + { _loc, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags(), CREATE_CROSSING_MODE_NONE, isTree); + if (canBuild->Error != GameActions::Status::Ok) { - return std::make_unique( - GameActions::Status::Disallowed, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_CANT_POSITION_THIS_HERE; + return canBuild; } - res->GroundFlags = gMapGroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); + res->GroundFlags = canBuild->GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); res->Expenditure = ExpenditureType::Landscaping; - res->Cost = (sceneryEntry->small_scenery.price * 10) + clearCost; + res->Cost = (sceneryEntry->price * 10) + canBuild->Cost; return res; } @@ -322,7 +320,7 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Execute() const res->Position.z = surfaceHeight; } - rct_scenery_entry* sceneryEntry = get_small_scenery_entry(_sceneryType); + auto* sceneryEntry = get_small_scenery_entry(_sceneryType); if (sceneryEntry == nullptr) { return std::make_unique(GameActions::Status::InvalidParameters); @@ -373,12 +371,12 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Execute() const footpath_remove_litter({ _loc, targetHeight }); if (!gCheatsDisableClearanceChecks && (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_NO_WALLS))) { - wall_remove_at({ _loc, targetHeight, targetHeight + sceneryEntry->small_scenery.height }); + wall_remove_at({ _loc, targetHeight, targetHeight + sceneryEntry->height }); } } int32_t zLow = targetHeight; - int32_t zHigh = zLow + ceil2(sceneryEntry->small_scenery.height, 8); + int32_t zHigh = zLow + ceil2(sceneryEntry->height, 8); uint8_t collisionQuadrants = 0b1111; auto quadRotation{ 0 }; if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE))) @@ -415,20 +413,20 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Execute() const } QuarterTile quarterTile = QuarterTile{ collisionQuadrants, supports }.Rotate(quadRotation); - money32 clearCost = 0; - - if (!map_can_construct_with_clear_at( - { _loc, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags() | GAME_COMMAND_FLAG_APPLY, &clearCost, - CREATE_CROSSING_MODE_NONE)) + const auto isTree = scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_IS_TREE); + auto canBuild = MapCanConstructWithClearAt( + { _loc, zLow, zHigh }, &map_place_scenery_clear_func, quarterTile, GetFlags() | GAME_COMMAND_FLAG_APPLY, + CREATE_CROSSING_MODE_NONE, isTree); + if (canBuild->Error != GameActions::Status::Ok) { - return std::make_unique( - GameActions::Status::Disallowed, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_CANT_POSITION_THIS_HERE; + return canBuild; } - res->GroundFlags = gMapGroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); + res->GroundFlags = canBuild->GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); res->Expenditure = ExpenditureType::Landscaping; - res->Cost = (sceneryEntry->small_scenery.price * 10) + clearCost; + res->Cost = (sceneryEntry->price * 10) + canBuild->Cost; auto* sceneryElement = TileElementInsert( CoordsXYZ{ _loc, zLow }, quarterTile.GetBaseQuarterOccupied()); @@ -440,7 +438,7 @@ GameActions::Result::Ptr SmallSceneryPlaceAction::Execute() const sceneryElement->SetAge(0); sceneryElement->SetPrimaryColour(_primaryColour); sceneryElement->SetSecondaryColour(_secondaryColour); - sceneryElement->SetClearanceZ(sceneryElement->GetBaseZ() + sceneryEntry->small_scenery.height + 7); + sceneryElement->SetClearanceZ(sceneryElement->GetBaseZ() + sceneryEntry->height + 7); sceneryElement->SetGhost(GetFlags() & GAME_COMMAND_FLAG_GHOST); if (supportsRequired) { diff --git a/src/openrct2/actions/SmallSceneryRemoveAction.cpp b/src/openrct2/actions/SmallSceneryRemoveAction.cpp index e692fa9630..e7fcb83290 100644 --- a/src/openrct2/actions/SmallSceneryRemoveAction.cpp +++ b/src/openrct2/actions/SmallSceneryRemoveAction.cpp @@ -20,7 +20,6 @@ #include "../ride/Ride.h" #include "../world/Park.h" #include "../world/SmallScenery.h" -#include "../world/Sprite.h" #include "../world/TileElementsView.h" #include "GameAction.h" #include "SmallSceneryPlaceAction.h" @@ -62,13 +61,13 @@ GameActions::Result::Ptr SmallSceneryRemoveAction::Query() const return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_REMOVE_THIS, STR_LAND_NOT_OWNED_BY_PARK); } - rct_scenery_entry* entry = get_small_scenery_entry(_sceneryType); + auto* entry = get_small_scenery_entry(_sceneryType); if (entry == nullptr) { return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_REMOVE_THIS, STR_INVALID_SELECTION_OF_OBJECTS); } - res->Cost = entry->small_scenery.removal_price * 10; + res->Cost = entry->removal_price * 10; res->Expenditure = ExpenditureType::Landscaping; res->Position = _loc; @@ -109,13 +108,13 @@ GameActions::Result::Ptr SmallSceneryRemoveAction::Execute() const { GameActions::Result::Ptr res = std::make_unique(); - rct_scenery_entry* entry = get_small_scenery_entry(_sceneryType); + auto* entry = get_small_scenery_entry(_sceneryType); if (entry == nullptr) { return MakeResult(GameActions::Status::InvalidParameters, STR_INVALID_SELECTION_OF_OBJECTS); } - res->Cost = entry->small_scenery.removal_price * 10; + res->Cost = entry->removal_price * 10; res->Expenditure = ExpenditureType::Landscaping; res->Position = _loc; diff --git a/src/openrct2/actions/SmallScenerySetColourAction.cpp b/src/openrct2/actions/SmallScenerySetColourAction.cpp index 6f80a882b6..ca77c3081a 100644 --- a/src/openrct2/actions/SmallScenerySetColourAction.cpp +++ b/src/openrct2/actions/SmallScenerySetColourAction.cpp @@ -22,7 +22,6 @@ #include "../world/MapAnimation.h" #include "../world/Park.h" #include "../world/SmallScenery.h" -#include "../world/Sprite.h" #include "../world/Surface.h" #include "../world/TileElement.h" diff --git a/src/openrct2/actions/StaffHireNewAction.cpp b/src/openrct2/actions/StaffHireNewAction.cpp index bf60a3a45f..e2ca9cd4b7 100644 --- a/src/openrct2/actions/StaffHireNewAction.cpp +++ b/src/openrct2/actions/StaffHireNewAction.cpp @@ -128,7 +128,7 @@ GameActions::Result::Ptr StaffHireNewAction::QueryExecute(bool execute) const return MakeResult(GameActions::Status::NoFreeElements, STR_TOO_MANY_STAFF_IN_GAME); } - Peep* newPeep = &(create_sprite(SpriteIdentifier::Peep)->peep); + Staff* newPeep = CreateEntity(); if (newPeep == nullptr) { // Too many peeps exist already. @@ -142,22 +142,18 @@ GameActions::Result::Ptr StaffHireNewAction::QueryExecute(bool execute) const } else { - newPeep->sprite_identifier = SpriteIdentifier::Peep; newPeep->WindowInvalidateFlags = 0; - newPeep->Action = PeepActionType::None2; + newPeep->Action = PeepActionType::Walking; newPeep->SpecialSprite = 0; newPeep->ActionSpriteImageOffset = 0; newPeep->WalkingFrameNum = 0; newPeep->ActionSpriteType = PeepActionSpriteType::None; newPeep->PathCheckOptimisation = 0; - newPeep->AssignedPeepType = PeepType::Staff; - newPeep->OutsideOfPark = false; newPeep->PeepFlags = 0; - newPeep->PaidToEnter = 0; - newPeep->PaidOnRides = 0; - newPeep->PaidOnFood = 0; - newPeep->PaidOnSouvenirs = 0; - newPeep->FavouriteRide = RIDE_ID_NULL; + newPeep->StaffLawnsMown = 0; + newPeep->StaffGardensWatered = 0; + newPeep->StaffLitterSwept = 0; + newPeep->StaffBinsEmptied = 0; newPeep->StaffOrders = _staffOrders; // We search for the first available Id for a given staff type @@ -166,7 +162,7 @@ GameActions::Result::Ptr StaffHireNewAction::QueryExecute(bool execute) const { bool found = false; ++newStaffId; - for (auto searchPeep : EntityList(EntityListId::Peep)) + for (auto searchPeep : EntityList()) { if (static_cast(searchPeep->AssignedStaffType) != _staffType) continue; @@ -251,7 +247,7 @@ void StaffHireNewAction::AutoPositionNewStaff(Peep* newPeep) const // Count number of walking guests { - for (auto guest : EntityList(EntityListId::Peep)) + for (auto guest : EntityList()) { if (guest->State == PeepState::Walking) { @@ -270,7 +266,7 @@ void StaffHireNewAction::AutoPositionNewStaff(Peep* newPeep) const uint32_t rand = scenario_rand_max(count); Guest* chosenGuest = nullptr; - for (auto guest : EntityList(EntityListId::Peep)) + for (auto guest : EntityList()) { if (guest->State == PeepState::Walking) { diff --git a/src/openrct2/actions/StaffSetColourAction.cpp b/src/openrct2/actions/StaffSetColourAction.cpp index f41462a167..d3f3f830ba 100644 --- a/src/openrct2/actions/StaffSetColourAction.cpp +++ b/src/openrct2/actions/StaffSetColourAction.cpp @@ -18,7 +18,6 @@ #include "../ui/WindowManager.h" #include "../windows/Intent.h" #include "../world/EntityList.h" -#include "../world/Sprite.h" StaffSetColourAction::StaffSetColourAction(StaffType staffType, uint8_t colour) : _staffType(static_cast(staffType)) @@ -56,7 +55,7 @@ GameActions::Result::Ptr StaffSetColourAction::Execute() const } // Update each staff member's uniform - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->AssignedStaffType == static_cast(_staffType)) { diff --git a/src/openrct2/actions/TrackDesignAction.cpp b/src/openrct2/actions/TrackDesignAction.cpp index 9119edb609..e72f07d692 100644 --- a/src/openrct2/actions/TrackDesignAction.cpp +++ b/src/openrct2/actions/TrackDesignAction.cpp @@ -259,11 +259,12 @@ GameActions::Result::Ptr TrackDesignAction::Execute() const ride->track_colour[i].supports = _td.track_support_colour[i]; } - for (int32_t i = 0; i <= MAX_VEHICLES_PER_RIDE; i++) + for (size_t i = 0; i <= MAX_VEHICLES_PER_RIDE; i++) { - ride->vehicle_colours[i].Body = _td.vehicle_colours[i].body_colour; - ride->vehicle_colours[i].Trim = _td.vehicle_colours[i].trim_colour; - ride->vehicle_colours[i].Ternary = _td.vehicle_additional_colour[i]; + auto tdIndex = std::min(i, std::size(_td.vehicle_colours) - 1); + ride->vehicle_colours[i].Body = _td.vehicle_colours[tdIndex].body_colour; + ride->vehicle_colours[i].Trim = _td.vehicle_colours[tdIndex].trim_colour; + ride->vehicle_colours[i].Ternary = _td.vehicle_additional_colour[tdIndex]; } for (int32_t count = 1; count == 1 || r->Error != GameActions::Status::Ok; ++count) diff --git a/src/openrct2/actions/TrackPlaceAction.cpp b/src/openrct2/actions/TrackPlaceAction.cpp index 914f585842..4858dff29e 100644 --- a/src/openrct2/actions/TrackPlaceAction.cpp +++ b/src/openrct2/actions/TrackPlaceAction.cpp @@ -169,7 +169,7 @@ GameActions::Result::Ptr TrackPlaceAction::Query() const numElements++; } - if (!map_check_free_elements_and_reorganise(numElements)) + if (!CheckMapCapacity(numElements)) { log_warning("Not enough free map elements to place track."); return std::make_unique(GameActions::Status::NoFreeElements, STR_TILE_ELEMENT_LIMIT_REACHED); @@ -232,12 +232,14 @@ GameActions::Result::Ptr TrackPlaceAction::Query() const && _trackType == TrackElemType::Flat) ? CREATE_CROSSING_MODE_TRACK_OVER_PATH : CREATE_CROSSING_MODE_NONE; - if (!map_can_construct_with_clear_at( - { mapLoc, baseZ, clearanceZ }, &map_place_non_scenery_clear_func, quarterTile, GetFlags(), &cost, crossingMode)) + auto canBuild = MapCanConstructWithClearAt( + { mapLoc, baseZ, clearanceZ }, &map_place_non_scenery_clear_func, quarterTile, GetFlags(), crossingMode); + if (canBuild->Error != GameActions::Status::Ok) { - return std::make_unique( - GameActions::Status::NoClearance, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; + return canBuild; } + cost += canBuild->Cost; // When building a level crossing, remove any pre-existing path furniture. if (crossingMode == CREATE_CROSSING_MODE_TRACK_OVER_PATH) @@ -249,7 +251,7 @@ GameActions::Result::Ptr TrackPlaceAction::Query() const } } - uint8_t mapGroundFlags = gMapGroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); + uint8_t mapGroundFlags = canBuild->GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); if (res->GroundFlags != 0 && (res->GroundFlags & mapGroundFlags) == 0) { return std::make_unique( @@ -269,14 +271,14 @@ GameActions::Result::Ptr TrackPlaceAction::Query() const if (TrackFlags[_trackType] & TRACK_ELEM_FLAG_ONLY_UNDERWATER) { // No element has this flag - if (gMapGroundFlags & ELEMENT_IS_UNDERWATER) + if (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER) { return std::make_unique( GameActions::Status::Disallowed, STR_CAN_ONLY_BUILD_THIS_UNDERWATER); } } - if (gMapGroundFlags & ELEMENT_IS_UNDERWATER && !gCheatsDisableClearanceChecks) + if (canBuild->GroundFlags & ELEMENT_IS_UNDERWATER && !gCheatsDisableClearanceChecks) { return std::make_unique( GameActions::Status::Disallowed, STR_RIDE_CANT_BUILD_THIS_UNDERWATER); @@ -428,13 +430,15 @@ GameActions::Result::Ptr TrackPlaceAction::Execute() const && _trackType == TrackElemType::Flat) ? CREATE_CROSSING_MODE_TRACK_OVER_PATH : CREATE_CROSSING_MODE_NONE; - if (!map_can_construct_with_clear_at( - mapLocWithClearance, &map_place_non_scenery_clear_func, quarterTile, GetFlags() | GAME_COMMAND_FLAG_APPLY, - &cost, crossingMode)) + auto canBuild = MapCanConstructWithClearAt( + mapLocWithClearance, &map_place_non_scenery_clear_func, quarterTile, GetFlags() | GAME_COMMAND_FLAG_APPLY, + crossingMode); + if (canBuild->Error != GameActions::Status::Ok) { - return std::make_unique( - GameActions::Status::NoClearance, gGameCommandErrorText, gCommonFormatArgs); + canBuild->ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; + return canBuild; } + cost += canBuild->Cost; if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST) && !gCheatsDisableClearanceChecks) { @@ -459,7 +463,7 @@ GameActions::Result::Ptr TrackPlaceAction::Execute() const } } - uint8_t mapGroundFlags = gMapGroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); + uint8_t mapGroundFlags = canBuild->GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); if (res->GroundFlags != 0 && (res->GroundFlags & mapGroundFlags) == 0) { return std::make_unique( @@ -543,7 +547,11 @@ GameActions::Result::Ptr TrackPlaceAction::Execute() const } auto* trackElement = TileElementInsert(mapLoc, quarterTile.GetBaseQuarterOccupied()); - Guard::Assert(trackElement != nullptr); + if (trackElement == nullptr) + { + log_warning("Cannot create track element for ride = %d", static_cast(_rideIndex)); + return std::make_unique(GameActions::Status::NoFreeElements); + } trackElement->SetClearanceZ(clearanceZ); trackElement->SetDirection(_origin.direction); @@ -614,7 +622,7 @@ GameActions::Result::Ptr TrackPlaceAction::Execute() const // If the placed tile is a station modify station properties. // Don't do this if the ride is simulating and the tile is a ghost to prevent desyncs. if (entranceDirections & TRACK_SEQUENCE_FLAG_ORIGIN - && !(ride->status == RIDE_STATUS_SIMULATING && GetFlags() & GAME_COMMAND_FLAG_GHOST)) + && !(ride->status == RideStatus::Simulating && GetFlags() & GAME_COMMAND_FLAG_GHOST)) { if (trackBlock->index == 0) { @@ -650,3 +658,18 @@ GameActions::Result::Ptr TrackPlaceAction::Execute() const res->Cost = cost + ((price / 2) * 10); return res; } + +bool TrackPlaceAction::CheckMapCapacity(int16_t numTiles) const +{ + for (const rct_preview_track* trackBlock = TrackBlocks[_trackType]; trackBlock->index != 0xFF; trackBlock++) + { + auto rotatedTrack = CoordsXY{ trackBlock->x, trackBlock->y }.Rotate(_origin.direction); + + auto tileCoords = CoordsXY{ _origin.x, _origin.y } + rotatedTrack; + if (!MapCheckCapacityAndReorganise(tileCoords, numTiles)) + { + return false; + } + } + return true; +} diff --git a/src/openrct2/actions/TrackPlaceAction.h b/src/openrct2/actions/TrackPlaceAction.h index e85f11fa57..8692372f16 100644 --- a/src/openrct2/actions/TrackPlaceAction.h +++ b/src/openrct2/actions/TrackPlaceAction.h @@ -25,7 +25,7 @@ public: DEFINE_GAME_ACTION(TrackPlaceAction, GameCommand::PlaceTrack, TrackPlaceActionResult) { private: - NetworkRideId_t _rideIndex{ RideIdNewNull }; + NetworkRideId_t _rideIndex{ RIDE_ID_NULL }; int32_t _trackType{}; CoordsXYZD _origin; int32_t _brakeSpeed{}; @@ -47,4 +47,7 @@ public: void Serialise(DataSerialiser & stream) override; GameActions::Result::Ptr Query() const override; GameActions::Result::Ptr Execute() const override; + +private: + bool CheckMapCapacity(int16_t numTiles) const; }; diff --git a/src/openrct2/actions/TrackRemoveAction.cpp b/src/openrct2/actions/TrackRemoveAction.cpp index c89cc2db92..0165bb721f 100644 --- a/src/openrct2/actions/TrackRemoveAction.cpp +++ b/src/openrct2/actions/TrackRemoveAction.cpp @@ -401,7 +401,7 @@ GameActions::Result::Ptr TrackRemoveAction::Execute() const // If the removed tile is a station modify station properties. // Don't do this if the ride is simulating and the tile is a ghost to prevent desyncs. if (entranceDirections & TRACK_SEQUENCE_FLAG_ORIGIN - && !(ride->status == RIDE_STATUS_SIMULATING && tileElement->Flags & TILE_ELEMENT_FLAG_GHOST) + && !(ride->status == RideStatus::Simulating && tileElement->Flags & TILE_ELEMENT_FLAG_GHOST) && (tileElement->AsTrack()->GetSequenceIndex() == 0)) { if (!track_remove_station_element({ mapLoc, _origin.direction }, rideIndex, GAME_COMMAND_FLAG_APPLY)) diff --git a/src/openrct2/actions/WallPlaceAction.cpp b/src/openrct2/actions/WallPlaceAction.cpp index 7adaff2f90..583db43616 100644 --- a/src/openrct2/actions/WallPlaceAction.cpp +++ b/src/openrct2/actions/WallPlaceAction.cpp @@ -21,22 +21,22 @@ #include "../world/Wall.h" WallPlaceActionResult::WallPlaceActionResult() - : GameActions::Result(GameActions::Status::Ok, STR_CANT_BUILD_PARK_ENTRANCE_HERE) + : GameActions::Result(GameActions::Status::Ok, STR_CANT_BUILD_THIS_HERE) { } WallPlaceActionResult::WallPlaceActionResult(GameActions::Status err) - : GameActions::Result(err, STR_CANT_BUILD_PARK_ENTRANCE_HERE) + : GameActions::Result(err, STR_CANT_BUILD_THIS_HERE) { } WallPlaceActionResult::WallPlaceActionResult(GameActions::Status err, rct_string_id msg) - : GameActions::Result(err, STR_CANT_BUILD_PARK_ENTRANCE_HERE, msg) + : GameActions::Result(err, STR_CANT_BUILD_THIS_HERE, msg) { } WallPlaceActionResult::WallPlaceActionResult(GameActions::Status error, rct_string_id msg, uint8_t* args) - : GameActions::Result(error, STR_CANT_BUILD_PARK_ENTRANCE_HERE, msg, args) + : GameActions::Result(error, STR_CANT_BUILD_THIS_HERE, msg, args) { } @@ -50,10 +50,10 @@ WallPlaceAction::WallPlaceAction( , _secondaryColour(secondaryColour) , _tertiaryColour(tertiaryColour) { - rct_scenery_entry* sceneryEntry = get_wall_entry(_wallType); + auto* sceneryEntry = get_wall_entry(_wallType); if (sceneryEntry != nullptr) { - if (sceneryEntry->wall.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { _bannerId = create_new_banner(0); } @@ -68,10 +68,10 @@ void WallPlaceAction::AcceptParameters(GameActionParameterVisitor& visitor) visitor.Visit("primaryColour", _primaryColour); visitor.Visit("secondaryColour", _secondaryColour); visitor.Visit("tertiaryColour", _tertiaryColour); - rct_scenery_entry* sceneryEntry = get_large_scenery_entry(_wallType); + auto* sceneryEntry = get_wall_entry(_wallType); if (sceneryEntry != nullptr) { - if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { _bannerId = create_new_banner(0); } @@ -94,7 +94,7 @@ void WallPlaceAction::Serialise(DataSerialiser& stream) GameActions::Result::Ptr WallPlaceAction::Query() const { auto res = std::make_unique(); - res->ErrorTitle = STR_CANT_BUILD_PARK_ENTRANCE_HERE; + res->ErrorTitle = STR_CANT_BUILD_THIS_HERE; res->Position = _loc; res->Expenditure = ExpenditureType::Landscaping; @@ -243,7 +243,7 @@ GameActions::Result::Ptr WallPlaceAction::Query() const } } - rct_scenery_entry* wallEntry = get_wall_entry(_wallType); + auto* wallEntry = get_wall_entry(_wallType); if (wallEntry == nullptr) { @@ -251,7 +251,7 @@ GameActions::Result::Ptr WallPlaceAction::Query() const return std::make_unique(GameActions::Status::InvalidParameters); } - if (wallEntry->wall.scrolling_mode != SCROLLING_MODE_NONE) + if (wallEntry->scrolling_mode != SCROLLING_MODE_NONE) { if (_bannerId == BANNER_INDEX_NULL) { @@ -271,14 +271,14 @@ GameActions::Result::Ptr WallPlaceAction::Query() const uint8_t clearanceHeight = targetHeight / 8; if (edgeSlope & (EDGE_SLOPE_UPWARDS | EDGE_SLOPE_DOWNWARDS)) { - if (wallEntry->wall.flags & WALL_SCENERY_CANT_BUILD_ON_SLOPE) + if (wallEntry->flags & WALL_SCENERY_CANT_BUILD_ON_SLOPE) { return std::make_unique( GameActions::Status::Disallowed, STR_ERR_UNABLE_TO_BUILD_THIS_ON_SLOPE); } clearanceHeight += 2; } - clearanceHeight += wallEntry->wall.height; + clearanceHeight += wallEntry->height; bool wallAcrossTrack = false; if (!(GetFlags() & GAME_COMMAND_FLAG_PATH_SCENERY) && !gCheatsDisableClearanceChecks) @@ -290,19 +290,19 @@ GameActions::Result::Ptr WallPlaceAction::Query() const } } - if (!map_check_free_elements_and_reorganise(1)) + if (!MapCheckCapacityAndReorganise(_loc)) { return MakeResult(GameActions::Status::NoFreeElements, STR_TILE_ELEMENT_LIMIT_REACHED); } - res->Cost = wallEntry->wall.price; + res->Cost = wallEntry->price; return res; } GameActions::Result::Ptr WallPlaceAction::Execute() const { auto res = std::make_unique(); - res->ErrorTitle = STR_CANT_BUILD_PARK_ENTRANCE_HERE; + res->ErrorTitle = STR_CANT_BUILD_THIS_HERE; res->Position = _loc; res->Expenditure = ExpenditureType::Landscaping; @@ -336,7 +336,7 @@ GameActions::Result::Ptr WallPlaceAction::Execute() const } auto targetLoc = CoordsXYZ(_loc, targetHeight); - rct_scenery_entry* wallEntry = get_wall_entry(_wallType); + auto* wallEntry = get_wall_entry(_wallType); if (wallEntry == nullptr) { @@ -349,7 +349,7 @@ GameActions::Result::Ptr WallPlaceAction::Execute() const { clearanceHeight += 2; } - clearanceHeight += wallEntry->wall.height; + clearanceHeight += wallEntry->height; bool wallAcrossTrack = false; if (!(GetFlags() & GAME_COMMAND_FLAG_PATH_SCENERY) && !gCheatsDisableClearanceChecks) @@ -361,12 +361,7 @@ GameActions::Result::Ptr WallPlaceAction::Execute() const } } - if (!map_check_free_elements_and_reorganise(1)) - { - return MakeResult(GameActions::Status::NoFreeElements, STR_TILE_ELEMENT_LIMIT_REACHED); - } - - if (wallEntry->wall.scrolling_mode != SCROLLING_MODE_NONE) + if (wallEntry->scrolling_mode != SCROLLING_MODE_NONE) { if (_bannerId == BANNER_INDEX_NULL) { @@ -414,7 +409,7 @@ GameActions::Result::Ptr WallPlaceAction::Execute() const wallElement->SetBannerIndex(_bannerId); } - if (wallEntry->wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_TERNARY_COLOUR) { wallElement->SetTertiaryColour(_tertiaryColour); } @@ -426,7 +421,7 @@ GameActions::Result::Ptr WallPlaceAction::Execute() const map_animation_create(MAP_ANIMATION_TYPE_WALL, targetLoc); map_invalidate_tile_zoom1({ _loc, wallElement->GetBaseZ(), wallElement->GetBaseZ() + 72 }); - res->Cost = wallEntry->wall.price; + res->Cost = wallEntry->price; return res; } @@ -435,7 +430,7 @@ GameActions::Result::Ptr WallPlaceAction::Execute() const * rct2: 0x006E5CBA */ bool WallPlaceAction::WallCheckObstructionWithTrack( - rct_scenery_entry* wall, int32_t z0, TrackElement* trackElement, bool* wallAcrossTrack) const + WallSceneryEntry* wall, int32_t z0, TrackElement* trackElement, bool* wallAcrossTrack) const { track_type_t trackType = trackElement->GetTrackType(); int32_t sequence = trackElement->GetSequenceIndex(); @@ -451,7 +446,7 @@ bool WallPlaceAction::WallCheckObstructionWithTrack( return true; } - if (!(wall->wall.flags & WALL_SCENERY_IS_DOOR)) + if (!(wall->flags & WALL_SCENERY_IS_DOOR)) { return false; } @@ -528,14 +523,12 @@ bool WallPlaceAction::WallCheckObstructionWithTrack( * rct2: 0x006E5C1A */ GameActions::Result::Ptr WallPlaceAction::WallCheckObstruction( - rct_scenery_entry* wall, int32_t z0, int32_t z1, bool* wallAcrossTrack) const + WallSceneryEntry* wall, int32_t z0, int32_t z1, bool* wallAcrossTrack) const { int32_t entryType, sequence; - rct_scenery_entry* entry; rct_large_scenery_tile* tile; *wallAcrossTrack = false; - gMapGroundFlags = ELEMENT_IS_ABOVE_GROUND; if (map_is_location_at_edge(_loc)) { return MakeResult(GameActions::Status::InvalidParameters, STR_OFF_EDGE_OF_MAP); @@ -582,10 +575,11 @@ GameActions::Result::Ptr WallPlaceAction::WallCheckObstruction( } break; case TILE_ELEMENT_TYPE_LARGE_SCENERY: + { entryType = tileElement->AsLargeScenery()->GetEntryIndex(); sequence = tileElement->AsLargeScenery()->GetSequenceIndex(); - entry = get_large_scenery_entry(entryType); - tile = &entry->large_scenery.tiles[sequence]; + auto* sceneryEntry = get_large_scenery_entry(entryType); + tile = &sceneryEntry->tiles[sequence]; { int32_t direction = ((_edge - tileElement->GetDirection()) & TILE_ELEMENT_DIRECTION_MASK) + 8; if (!(tile->flags & (1 << direction))) @@ -595,14 +589,17 @@ GameActions::Result::Ptr WallPlaceAction::WallCheckObstruction( } } break; + } case TILE_ELEMENT_TYPE_SMALL_SCENERY: - entry = tileElement->AsSmallScenery()->GetEntry(); - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_NO_WALLS)) + { + auto sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_NO_WALLS)) { map_obstruction_set_error_text(tileElement, *res); return res; } break; + } case TILE_ELEMENT_TYPE_TRACK: if (!WallCheckObstructionWithTrack(wall, z0, tileElement->AsTrack(), wallAcrossTrack)) { diff --git a/src/openrct2/actions/WallPlaceAction.h b/src/openrct2/actions/WallPlaceAction.h index 28ee14f1ab..8a1776395a 100644 --- a/src/openrct2/actions/WallPlaceAction.h +++ b/src/openrct2/actions/WallPlaceAction.h @@ -55,14 +55,13 @@ private: * * rct2: 0x006E5CBA */ - bool WallCheckObstructionWithTrack(rct_scenery_entry * wall, int32_t z0, TrackElement * trackElement, bool* wallAcrossTrack) + bool WallCheckObstructionWithTrack(WallSceneryEntry * wall, int32_t z0, TrackElement * trackElement, bool* wallAcrossTrack) const; /** * * rct2: 0x006E5C1A */ - GameActions::Result::Ptr WallCheckObstruction(rct_scenery_entry * wall, int32_t z0, int32_t z1, bool* wallAcrossTrack) - const; + GameActions::Result::Ptr WallCheckObstruction(WallSceneryEntry * wall, int32_t z0, int32_t z1, bool* wallAcrossTrack) const; /** * Gets whether the given track type can have a wall placed on the edge of the given direction. diff --git a/src/openrct2/actions/WallSetColourAction.cpp b/src/openrct2/actions/WallSetColourAction.cpp index 86797f2637..e81617d820 100644 --- a/src/openrct2/actions/WallSetColourAction.cpp +++ b/src/openrct2/actions/WallSetColourAction.cpp @@ -74,8 +74,8 @@ GameActions::Result::Ptr WallSetColourAction::Query() const return res; } - rct_scenery_entry* sceneryEntry = wallElement->GetEntry(); - if (sceneryEntry == nullptr) + auto* wallEntry = wallElement->GetEntry(); + if (wallEntry == nullptr) { log_error("Could not find wall object"); return MakeResult(GameActions::Status::Unknown, STR_CANT_REPAINT_THIS); @@ -93,7 +93,7 @@ GameActions::Result::Ptr WallSetColourAction::Query() const return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS); } - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_TERNARY_COLOUR) { if (_tertiaryColour > 31) { @@ -126,8 +126,8 @@ GameActions::Result::Ptr WallSetColourAction::Execute() const return res; } - rct_scenery_entry* sceneryEntry = wallElement->GetEntry(); - if (sceneryEntry == nullptr) + auto* wallEntry = wallElement->GetEntry(); + if (wallEntry == nullptr) { log_error("Could not find wall object"); return MakeResult(GameActions::Status::Unknown, STR_CANT_REPAINT_THIS); @@ -136,7 +136,7 @@ GameActions::Result::Ptr WallSetColourAction::Execute() const wallElement->SetPrimaryColour(_primaryColour); wallElement->SetSecondaryColour(_secondaryColour); - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_TERNARY_COLOUR) { wallElement->SetTertiaryColour(_tertiaryColour); } diff --git a/src/openrct2/audio/Audio.cpp b/src/openrct2/audio/Audio.cpp index 3869dee744..454a81dd1f 100644 --- a/src/openrct2/audio/Audio.cpp +++ b/src/openrct2/audio/Audio.cpp @@ -304,7 +304,6 @@ namespace OpenRCT2::Audio const std::string& GetDeviceName(int32_t index) { - Guard::Assert(index >= 0 && index < GetDeviceCount()); if (index < 0 || index >= GetDeviceCount()) { static std::string InvalidDevice = "Invalid Device"; diff --git a/src/openrct2/cmdline/BenchSpriteSort.cpp b/src/openrct2/cmdline/BenchSpriteSort.cpp index db59000371..c7dcd8f0da 100644 --- a/src/openrct2/cmdline/BenchSpriteSort.cpp +++ b/src/openrct2/cmdline/BenchSpriteSort.cpp @@ -34,47 +34,50 @@ # include # include -static void fixup_pointers(paint_session* s, size_t paint_session_entries, size_t paint_struct_entries, size_t quadrant_entries) +static void fixup_pointers(std::vector& s) { - for (size_t i = 0; i < paint_session_entries; i++) + for (size_t i = 0; i < s.size(); i++) { - for (size_t j = 0; j < paint_struct_entries; j++) + auto& entries = s[i].Entries; + auto& quadrants = s[i].Session.Quadrants; + for (size_t j = 0; j < entries.size(); j++) { - if (s[i].PaintStructs[j].basic.next_quadrant_ps == reinterpret_cast(paint_struct_entries)) + if (entries[j].basic.next_quadrant_ps == reinterpret_cast(-1)) { - s[i].PaintStructs[j].basic.next_quadrant_ps = nullptr; + entries[j].basic.next_quadrant_ps = nullptr; } else { - auto nextQuadrantPs = reinterpret_cast(s[i].PaintStructs[j].basic.next_quadrant_ps); - s[i].PaintStructs[j].basic.next_quadrant_ps = &s[i].PaintStructs[nextQuadrantPs].basic; + auto nextQuadrantPs = reinterpret_cast(entries[j].basic.next_quadrant_ps) / sizeof(paint_entry); + entries[j].basic.next_quadrant_ps = &s[i].Entries[nextQuadrantPs].basic; } } - for (size_t j = 0; j < quadrant_entries; j++) + for (size_t j = 0; j < std::size(quadrants); j++) { - if (s[i].Quadrants[j] == reinterpret_cast(quadrant_entries)) + if (quadrants[j] == reinterpret_cast(-1)) { - s[i].Quadrants[j] = nullptr; + quadrants[j] = nullptr; } else { - s[i].Quadrants[j] = &s[i].PaintStructs[reinterpret_cast(s[i].Quadrants[j])].basic; + auto ps = reinterpret_cast(quadrants[j]) / sizeof(paint_entry); + quadrants[j] = &entries[ps].basic; } } } } -static std::vector extract_paint_session(const std::string parkFileName) +static std::vector extract_paint_session(std::string_view parkFileName) { core_init(); gOpenRCT2Headless = true; auto context = OpenRCT2::CreateContext(); - std::vector sessions; + std::vector sessions; log_info("Starting..."); if (context->Initialise()) { drawing_engine_init(); - if (!context->LoadParkFromFile(parkFileName)) + if (!context->LoadParkFromFile(std::string(parkFileName))) { log_error("Failed to load park!"); return {}; @@ -133,21 +136,21 @@ static std::vector extract_paint_session(const std::string parkFi } // This function is based on benchgfx_render_screenshots -static void BM_paint_session_arrange(benchmark::State& state, const std::vector inputSessions) +static void BM_paint_session_arrange(benchmark::State& state, const std::vector inputSessions) { - std::vector sessions = inputSessions; + auto sessions = inputSessions; // Fixing up the pointers continuously is wasteful. Fix it up once for `sessions` and store a copy. // Keep in mind we need bit-exact copy, as the lists use pointers. // Once sorted, just restore the copy with the original fixed-up version. - paint_session* local_s = new paint_session[std::size(sessions)]; - fixup_pointers(&sessions[0], std::size(sessions), std::size(local_s->PaintStructs), std::size(local_s->Quadrants)); + RecordedPaintSession* local_s = new RecordedPaintSession[std::size(sessions)]; + fixup_pointers(sessions); std::copy_n(sessions.cbegin(), std::size(sessions), local_s); for (auto _ : state) { state.PauseTiming(); std::copy_n(local_s, std::size(sessions), sessions.begin()); state.ResumeTiming(); - PaintSessionArrange(&sessions[0]); + PaintSessionArrange(&sessions[0].Session); benchmark::DoNotOptimize(sessions); } state.SetItemsProcessed(state.iterations() * std::size(sessions)); @@ -158,14 +161,14 @@ static int cmdline_for_bench_sprite_sort(int argc, const char** argv) { { // Register some basic "baseline" benchmark - std::vector sessions(1); - for (auto& ps : sessions[0].PaintStructs) + std::vector sessions(1); + for (auto& ps : sessions[0].Entries) { - ps.basic.next_quadrant_ps = reinterpret_cast((std::size(sessions[0].PaintStructs))); + ps.basic.next_quadrant_ps = reinterpret_cast(-1); } - for (auto& quad : sessions[0].Quadrants) + for (auto& quad : sessions[0].Session.Quadrants) { - quad = reinterpret_cast((std::size(sessions[0].Quadrants))); + quad = reinterpret_cast(-1); } benchmark::RegisterBenchmark("baseline", BM_paint_session_arrange, sessions); } @@ -183,7 +186,7 @@ static int cmdline_for_bench_sprite_sort(int argc, const char** argv) if (Platform::FileExists(argv[i])) { // Register benchmark for sv6 if valid - std::vector sessions = extract_paint_session(argv[i]); + std::vector sessions = extract_paint_session(argv[i]); if (!sessions.empty()) benchmark::RegisterBenchmark(argv[i], BM_paint_session_arrange, sessions); } diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 06007c8c19..e29069d377 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -227,6 +227,7 @@ namespace Config model->show_real_names_of_guests = reader->GetBoolean("show_real_names_of_guests", true); model->allow_early_completion = reader->GetBoolean("allow_early_completion", false); model->transparent_screenshot = reader->GetBoolean("transparent_screenshot", true); + model->transparent_water = reader->GetBoolean("transparent_water", true); model->last_version_check_time = reader->GetInt64("last_version_check_time", 0); } } @@ -304,6 +305,7 @@ namespace Config writer->WriteBoolean("allow_early_completion", model->allow_early_completion); writer->WriteEnum("virtual_floor_style", model->virtual_floor_style, Enum_VirtualFloorStyle); writer->WriteBoolean("transparent_screenshot", model->transparent_screenshot); + writer->WriteBoolean("transparent_water", model->transparent_water); writer->WriteInt64("last_version_check_time", model->last_version_check_time); } @@ -1000,7 +1002,7 @@ bool RCT1DataPresentAtLocation(const utf8* path) bool CsgIsUsable(const rct_gx& csg) { - return csg.header.num_entries == RCT1_NUM_LL_CSG_ENTRIES; + return csg.header.total_size == RCT1_LL_CSG1_DAT_FILE_SIZE && csg.header.num_entries == RCT1_NUM_LL_CSG_ENTRIES; } bool CsgAtLocationIsUsable(const utf8* path) diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index badf2b1fdf..083b2f029e 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -58,6 +58,7 @@ struct GeneralConfiguration bool disable_lightning_effect; bool show_guest_purchases; bool transparent_screenshot; + bool transparent_water; // Localisation int32_t language; diff --git a/src/openrct2/core/ChecksumStream.cpp b/src/openrct2/core/ChecksumStream.cpp new file mode 100644 index 0000000000..b54f29bc90 --- /dev/null +++ b/src/openrct2/core/ChecksumStream.cpp @@ -0,0 +1,47 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "ChecksumStream.h" + +#include "Endianness.h" + +#include + +namespace OpenRCT2 +{ +#ifndef DISABLE_NETWORK + ChecksumStream::ChecksumStream(std::array& buf) + : _checksum(buf) + { + uint64_t* hash = reinterpret_cast(_checksum.data()); + *hash = Seed; + } + + void ChecksumStream::Write(const void* buffer, uint64_t length) + { + uint64_t* hash = reinterpret_cast(_checksum.data()); + for (size_t i = 0; i < length; i += sizeof(uint64_t)) + { + const auto maxLen = std::min(sizeof(uint64_t), length - i); + + uint64_t temp{}; + std::memcpy(&temp, reinterpret_cast(buffer) + i, maxLen); + + // Always use value as little endian, most common systems are little. +# if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) + temp = ByteSwapBE(temp); +# endif + + *hash ^= temp; + *hash *= Prime; + } + } + +#endif +} // namespace OpenRCT2 diff --git a/src/openrct2/core/ChecksumStream.h b/src/openrct2/core/ChecksumStream.h new file mode 100644 index 0000000000..fac658b914 --- /dev/null +++ b/src/openrct2/core/ChecksumStream.h @@ -0,0 +1,110 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "../common.h" +#include "IStream.hpp" + +namespace OpenRCT2 +{ + /** + * A stream for checksumming a stream of data + */ + class ChecksumStream final : public IStream + { + // FIXME: Move the checksum implementation out. + std::array& _checksum; + + static constexpr uint64_t Seed = 0xcbf29ce484222325ULL; + static constexpr uint64_t Prime = 0x00000100000001B3ULL; + + public: + ChecksumStream(std::array& buf); + + virtual ~ChecksumStream() = default; + + const void* GetData() const override + { + return _checksum.data(); + }; + + /////////////////////////////////////////////////////////////////////////// + // ISteam methods + /////////////////////////////////////////////////////////////////////////// + bool CanRead() const override + { + return false; + } + bool CanWrite() const override + { + return true; + } + + uint64_t GetLength() const override + { + return _checksum.size(); + } + + uint64_t GetPosition() const override + { + return 0; + } + + void SetPosition(uint64_t position) override + { + } + + void Seek(int64_t offset, int32_t origin) override + { + } + + void Read(void* buffer, uint64_t length) override + { + } + + void Write(const void* buffer, uint64_t length) override; + + void Write1(const void* buffer) override + { + Write<1>(buffer); + } + + void Write2(const void* buffer) override + { + Write<2>(buffer); + } + + void Write4(const void* buffer) override + { + Write<4>(buffer); + } + + void Write8(const void* buffer) override + { + Write<8>(buffer); + } + + void Write16(const void* buffer) override + { + Write<16>(buffer); + } + + template void Write(const void* buffer) + { + Write(buffer, N); + } + + uint64_t TryRead(void* buffer, uint64_t length) override + { + return 0; + } + }; + +} // namespace OpenRCT2 diff --git a/src/openrct2/core/DataSerialiserTraits.h b/src/openrct2/core/DataSerialiserTraits.h index 6128404106..f4c9266fc5 100644 --- a/src/openrct2/core/DataSerialiserTraits.h +++ b/src/openrct2/core/DataSerialiserTraits.h @@ -302,7 +302,7 @@ template struct DataSerializerTraitsPODArray uint16_t swapped = ByteSwapBE(len); stream->Write(&swapped); - DataSerializerTraits s; + DataSerializerTraits<_Ty> s; for (auto&& sub : val) { s.encode(stream, sub); @@ -584,6 +584,34 @@ template<> struct DataSerializerTraits_t stream->Write(msg, strlen(msg)); } }; +template<> struct DataSerializerTraits_t +{ + static void encode(OpenRCT2::IStream* stream, const rct12_xyzd8& coord) + { + stream->WriteValue(ByteSwapBE(coord.x)); + stream->WriteValue(ByteSwapBE(coord.y)); + stream->WriteValue(ByteSwapBE(coord.z)); + stream->WriteValue(ByteSwapBE(coord.direction)); + } + + static void decode(OpenRCT2::IStream* stream, rct12_xyzd8& coord) + { + auto x = ByteSwapBE(stream->ReadValue()); + auto y = ByteSwapBE(stream->ReadValue()); + auto z = ByteSwapBE(stream->ReadValue()); + auto d = ByteSwapBE(stream->ReadValue()); + coord = rct12_xyzd8{ x, y, z, d }; + } + + static void log(OpenRCT2::IStream* stream, const rct12_xyzd8& coord) + { + char msg[128] = {}; + snprintf( + msg, sizeof(msg), "rct12_xyzd8(x = %d, y = %d, z = %d, direction = %d)", coord.x, coord.y, coord.z, + coord.direction); + stream->Write(msg, strlen(msg)); + } +}; template<> struct DataSerializerTraits_t { @@ -793,3 +821,49 @@ template<> struct DataSerializerTraits_t stream->Write(msg, strlen(msg)); } }; + +template<> struct DataSerializerTraits_t +{ + static void encode(OpenRCT2::IStream* stream, const IntensityRange& val) + { + uint8_t temp = uint8_t(val); + stream->Write(&temp); + } + static void decode(OpenRCT2::IStream* stream, IntensityRange& val) + { + auto temp = stream->ReadValue(); + val = IntensityRange(temp); + } + static void log(OpenRCT2::IStream* stream, const IntensityRange& val) + { + char msg[128] = {}; + snprintf(msg, sizeof(msg), "IntensityRange(min = %d, max = %d)", val.GetMinimum(), val.GetMaximum()); + stream->Write(msg, strlen(msg)); + } +}; + +template<> struct DataSerializerTraits_t +{ + static void encode(OpenRCT2::IStream* stream, const rct_peep_thought& val) + { + stream->Write(&val.type); + stream->Write(&val.item); + stream->Write(&val.freshness); + stream->Write(&val.fresh_timeout); + } + static void decode(OpenRCT2::IStream* stream, rct_peep_thought& val) + { + stream->Read(&val.type); + stream->Read(&val.item); + stream->Read(&val.freshness); + stream->Read(&val.fresh_timeout); + } + static void log(OpenRCT2::IStream* stream, const rct_peep_thought& val) + { + char msg[128] = {}; + snprintf( + msg, sizeof(msg), "rct_peep_thought(type = %d, item = %d, freshness = %d, freshtimeout = %d)", + static_cast(val.type), val.item, val.freshness, val.fresh_timeout); + stream->Write(msg, strlen(msg)); + } +}; diff --git a/src/openrct2/core/File.cpp b/src/openrct2/core/File.cpp index af5753da13..4e7eba3fea 100644 --- a/src/openrct2/core/File.cpp +++ b/src/openrct2/core/File.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -57,8 +57,7 @@ namespace File } std::vector result; - fs.seekg(0, std::ios::end); - auto fsize = static_cast(fs.tellg()); + auto fsize = Platform::GetFileSize(path); if (fsize > SIZE_MAX) { std::string message = String::StdFormat( @@ -68,7 +67,6 @@ namespace File else { result.resize(fsize); - fs.seekg(0); fs.read(reinterpret_cast(result.data()), result.size()); fs.exceptions(fs.failbit); } @@ -121,30 +119,12 @@ namespace File uint64_t GetLastModified(const std::string& path) { - uint64_t lastModified = 0; -#ifdef _WIN32 - auto pathW = String::ToWideChar(path); - auto hFile = CreateFileW(pathW.c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, 0, nullptr); - if (hFile != INVALID_HANDLE_VALUE) - { - FILETIME ftCreate, ftAccess, ftWrite; - if (GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite)) - { - lastModified = (static_cast(ftWrite.dwHighDateTime) << 32ULL) - | static_cast(ftWrite.dwLowDateTime); - } - CloseHandle(hFile); - } -#else - struct stat statInfo - { - }; - if (stat(path.c_str(), &statInfo) == 0) - { - lastModified = statInfo.st_mtime; - } -#endif - return lastModified; + return Platform::GetLastModified(path); + } + + uint64_t GetSize(std::string_view path) + { + return Platform::GetFileSize(path); } } // namespace File diff --git a/src/openrct2/core/File.h b/src/openrct2/core/File.h index 9dc216042e..cdd6179fa7 100644 --- a/src/openrct2/core/File.h +++ b/src/openrct2/core/File.h @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -26,4 +26,5 @@ namespace File std::vector ReadAllLines(std::string_view path); void WriteAllBytes(const std::string& path, const void* buffer, size_t length); uint64_t GetLastModified(const std::string& path); + uint64_t GetSize(std::string_view path); } // namespace File diff --git a/src/openrct2/core/FileIndex.hpp b/src/openrct2/core/FileIndex.hpp index 033a286b14..0e5d570a47 100644 --- a/src/openrct2/core/FileIndex.hpp +++ b/src/openrct2/core/FileIndex.hpp @@ -161,7 +161,6 @@ private: files.push_back(std::move(path)); } - delete scanner; } return ScanResult(stats, files); } diff --git a/src/openrct2/core/FileScanner.cpp b/src/openrct2/core/FileScanner.cpp index 56a435c986..9c79c500f7 100644 --- a/src/openrct2/core/FileScanner.cpp +++ b/src/openrct2/core/FileScanner.cpp @@ -342,18 +342,18 @@ private: #endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) -IFileScanner* Path::ScanDirectory(const std::string& pattern, bool recurse) +std::unique_ptr Path::ScanDirectory(const std::string& pattern, bool recurse) { #ifdef _WIN32 - return new FileScannerWindows(pattern, recurse); + return std::make_unique(pattern, recurse); #elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) - return new FileScannerUnix(pattern, recurse); + return std::make_unique(pattern, recurse); #endif } void Path::QueryDirectory(QueryDirectoryResult* result, const std::string& pattern) { - IFileScanner* scanner = Path::ScanDirectory(pattern, true); + auto scanner = Path::ScanDirectory(pattern, true); while (scanner->Next()) { const FileInfo* fileInfo = scanner->GetFileInfo(); @@ -366,12 +366,11 @@ void Path::QueryDirectory(QueryDirectoryResult* result, const std::string& patte result->FileDateModifiedChecksum = ror32(result->FileDateModifiedChecksum, 5); result->PathChecksum += GetPathChecksum(path); } - delete scanner; } std::vector Path::GetDirectories(const std::string& path) { - auto scanner = std::unique_ptr(ScanDirectory(path, false)); + auto scanner = ScanDirectory(path, false); auto baseScanner = static_cast(scanner.get()); std::vector children; diff --git a/src/openrct2/core/FileScanner.h b/src/openrct2/core/FileScanner.h index f3136e48f4..1e6c63d230 100644 --- a/src/openrct2/core/FileScanner.h +++ b/src/openrct2/core/FileScanner.h @@ -11,6 +11,7 @@ #include "../common.h" +#include #include #include @@ -50,7 +51,7 @@ namespace Path * @param recurse Whether to scan sub directories or not. * @returns A new FileScanner, this must be deleted when no longer needed. */ - IFileScanner* ScanDirectory(const std::string& pattern, bool recurse); + std::unique_ptr ScanDirectory(const std::string& pattern, bool recurse); /** * Scans a directory and all sub directories diff --git a/src/openrct2/core/FileStream.cpp b/src/openrct2/core/FileStream.cpp index 3a1ff1654b..68c0b52692 100644 --- a/src/openrct2/core/FileStream.cpp +++ b/src/openrct2/core/FileStream.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -16,6 +16,8 @@ #ifndef _WIN32 # include +#else +# include #endif #if defined(__linux__) && !defined(__ANDROID__) @@ -98,9 +100,12 @@ namespace OpenRCT2 throw IOException(String::StdFormat("Unable to open '%s'", path)); } - Seek(0, STREAM_SEEK_END); - _fileSize = GetPosition(); - Seek(0, STREAM_SEEK_BEGIN); +#ifdef _WIN32 + _fileSize = _filelengthi64(_fileno(_file)); +#else + std::error_code ec; + _fileSize = fs::file_size(fs::u8path(path), ec); +#endif _ownsFilePtr = true; } @@ -160,13 +165,9 @@ namespace OpenRCT2 void FileStream::Read(void* buffer, uint64_t length) { - uint64_t remainingBytes = GetLength() - GetPosition(); - if (length <= remainingBytes) + if (fread(buffer, 1, static_cast(length), _file) == length) { - if (fread(buffer, static_cast(length), 1, _file) == 1) - { - return; - } + return; } throw IOException("Attempted to read past end of file."); } diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 8bb3269049..33a3667d28 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -7,20 +7,18 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include -#ifndef _WIN32 -# include -#endif +#include "Path.hpp" #include "../localisation/Language.h" +#include "../platform/Platform2.h" #include "../platform/platform.h" #include "../util/Util.h" #include "File.h" #include "FileSystem.hpp" #include "Memory.hpp" -#include "Path.hpp" #include "String.hpp" +#include #include namespace Path @@ -30,15 +28,6 @@ namespace Path return safe_strcat_path(buffer, src, bufferSize); } - static constexpr bool IsPathSeparator(char c) - { -#ifdef _WIN32 - if (c == '\\') - return true; -#endif - return c == '/'; - } - std::string Combine(std::string_view a, std::string_view b) { if (a.empty()) @@ -47,9 +36,9 @@ namespace Path return std::string(a); auto aEnd = a.back(); auto bBegin = b.front(); - if (IsPathSeparator(aEnd)) + if (Platform::IsPathSeparator(aEnd)) { - if (IsPathSeparator(bBegin)) + if (Platform::IsPathSeparator(bBegin)) { return std::string(a) + std::string(b.substr(1)); } @@ -60,7 +49,7 @@ namespace Path } else { - if (IsPathSeparator(bBegin)) + if (Platform::IsPathSeparator(bBegin)) { return std::string(a) + std::string(b); } @@ -204,34 +193,7 @@ namespace Path utf8* GetAbsolute(utf8* buffer, size_t bufferSize, const utf8* relativePath) { -#ifdef _WIN32 - auto relativePathW = String::ToWideChar(relativePath); - wchar_t absolutePathW[MAX_PATH]; - DWORD length = GetFullPathNameW( - relativePathW.c_str(), static_cast(std::size(absolutePathW)), absolutePathW, nullptr); - if (length == 0) - { - return String::Set(buffer, bufferSize, relativePath); - } - else - { - auto absolutePath = String::ToUtf8(absolutePathW); - String::Set(buffer, bufferSize, absolutePath.c_str()); - return buffer; - } -#else - utf8* absolutePath = realpath(relativePath, nullptr); - if (absolutePath == nullptr) - { - return String::Set(buffer, bufferSize, relativePath); - } - else - { - String::Set(buffer, bufferSize, absolutePath); - Memory::Free(absolutePath); - return buffer; - } -#endif + return Platform::GetAbsolutePath(buffer, bufferSize, relativePath); } std::string GetAbsolute(const std::string& relative) @@ -247,51 +209,11 @@ namespace Path bool Equals(const utf8* a, const utf8* b) { - bool ignoreCase = false; -#ifdef _WIN32 - ignoreCase = true; -#endif - return String::Equals(a, b, ignoreCase); + return String::Equals(a, b, Platform::ShouldIgnoreCase()); } std::string ResolveCasing(const std::string& path) { - std::string result; - if (File::Exists(path)) - { - // Windows is case insensitive so it will exist and that is all that matters - // for now. We can properly resolve the casing if we ever need to. - result = path; - } -#ifndef _WIN32 - else - { - std::string fileName = Path::GetFileName(path); - std::string directory = Path::GetDirectory(path); - - struct dirent** files; - auto count = scandir(directory.c_str(), &files, nullptr, alphasort); - if (count != -1) - { - // Find a file which matches by name (case insensitive) - for (int32_t i = 0; i < count; i++) - { - if (String::Equals(files[i]->d_name, fileName.c_str(), true)) - { - result = Path::Combine(directory, std::string(files[i]->d_name)); - break; - } - } - - // Free memory - for (int32_t i = 0; i < count; i++) - { - free(files[i]); - } - free(files); - } - } -#endif - return result; + return Platform::ResolveCasing(path, File::Exists(path)); } } // namespace Path diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp index 9f394be4f1..bb773e5df9 100644 --- a/src/openrct2/core/String.cpp +++ b/src/openrct2/core/String.cpp @@ -807,6 +807,22 @@ namespace String return res; #endif } + + std::string_view UTF8Truncate(std::string_view v, size_t size) + { + auto trunc = v.substr(0, size); + for (size_t i = 0; i < trunc.size();) + { + auto length = UTF8GetCodePointSize(trunc.substr(i, trunc.size())); + if (!length.has_value()) + { + return trunc.substr(0, i); + } + i += *length; + } + + return trunc; + } } // namespace String char32_t CodepointView::iterator::GetNextCodepoint(const char* ch, const char** next) diff --git a/src/openrct2/core/String.hpp b/src/openrct2/core/String.hpp index 0849571353..d4ce69210e 100644 --- a/src/openrct2/core/String.hpp +++ b/src/openrct2/core/String.hpp @@ -147,6 +147,37 @@ namespace String } return result; } + + /** + * Returns codepoint size or no value if not valid + */ + constexpr std::optional UTF8GetCodePointSize(std::string_view v) + { + if (v.size() >= 1 && !(v[0] & 0x80)) + { + return { 1 }; + } + else if (v.size() >= 2 && ((v[0] & 0xE0) == 0xC0)) + { + return { 2 }; + } + else if (v.size() >= 3 && ((v[0] & 0xF0) == 0xE0)) + { + return { 3 }; + } + else if (v.size() >= 4 && ((v[0] & 0xF8) == 0xF0)) + { + return { 4 }; + } + return {}; + } + + /** + * Truncates a string to at most `size` bytes, + * making sure not to cut in the middle of a sequence. + */ + std::string_view UTF8Truncate(std::string_view v, size_t size); + } // namespace String class CodepointView diff --git a/src/openrct2/drawing/Drawing.String.cpp b/src/openrct2/drawing/Drawing.String.cpp index cde9b151e2..4d8772ded8 100644 --- a/src/openrct2/drawing/Drawing.String.cpp +++ b/src/openrct2/drawing/Drawing.String.cpp @@ -745,6 +745,7 @@ static void ttf_process_format_code(rct_drawpixelinfo* dpi, const FmtString::tok } } +#ifndef NO_TTF static bool ShouldUseSpriteForCodepoint(char32_t codepoint) { switch (codepoint) @@ -769,6 +770,7 @@ static bool ShouldUseSpriteForCodepoint(char32_t codepoint) return false; } } +#endif // NO_TTF static void ttf_process_string_literal(rct_drawpixelinfo* dpi, std::string_view text, text_draw_info* info) { @@ -957,8 +959,7 @@ void ttf_draw_string( ttf_process_string(dpi, text, &info); std::memcpy(text_palette, info.palette, sizeof(info.palette)); - gLastDrawStringX = info.x; - gLastDrawStringY = info.y; + dpi->lastStringPos = { info.x, info.y }; } static int32_t ttf_get_string_width(std::string_view text, FontSpriteBase fontSpriteBase, bool noFormatting) @@ -1018,8 +1019,7 @@ void gfx_draw_string_with_y_offsets( ttf_process_string(dpi, text, &info); std::memcpy(text_palette, info.palette, sizeof(info.palette)); - gLastDrawStringX = info.x; - gLastDrawStringY = info.y; + dpi->lastStringPos = { info.x, info.y }; } void shorten_path(utf8* buffer, size_t bufferSize, const utf8* path, int32_t availableWidth, FontSpriteBase fontSpriteBase) diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index dcf73912a1..0894323ff4 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -81,10 +81,6 @@ void PaletteMap::Copy(size_t dstIndex, const PaletteMap& src, size_t srcIndex, s std::memcpy(&_data[dstIndex], &src._data[srcIndex], copyLength); } -// HACK These were originally passed back through registers -thread_local int32_t gLastDrawStringX; -thread_local int32_t gLastDrawStringY; - uint8_t gGamePalette[256 * 4]; uint32_t gPaletteEffectFrame; diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index 3704522920..2e28549e81 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -120,6 +120,9 @@ struct rct_drawpixelinfo uint8_t remX{}; uint8_t remY{}; + // Last position of drawn text. + ScreenCoordsXY lastStringPos{}; + OpenRCT2::Drawing::IDrawingEngine* DrawingEngine{}; size_t GetBytesPerRow() const; @@ -662,9 +665,6 @@ extern uint8_t gOtherPalette[256]; extern uint8_t text_palette[]; extern const translucent_window_palette TranslucentWindowPalettes[COLOUR_COUNT]; -extern thread_local int32_t gLastDrawStringX; -extern thread_local int32_t gLastDrawStringY; - extern uint32_t gPickupPeepImage; extern int32_t gPickupPeepX; extern int32_t gPickupPeepY; @@ -688,14 +688,12 @@ void gfx_draw_pickedup_peep(rct_drawpixelinfo* dpi); // line void gfx_draw_line(rct_drawpixelinfo* dpi, const ScreenLine& line, int32_t colour); -void gfx_draw_line_software(rct_drawpixelinfo* dpi, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t colour); +void gfx_draw_line_software(rct_drawpixelinfo* dpi, const ScreenLine& line, int32_t colour); void gfx_draw_dashed_line( rct_drawpixelinfo* dpi, const ScreenLine& screenLine, const int32_t dashedLineSegmentLength, const int32_t color); // rect void gfx_fill_rect(rct_drawpixelinfo* dpi, const ScreenRect& rect, int32_t colour); -void gfx_fill_rect_inset( - rct_drawpixelinfo* dpi, int16_t left, int16_t top, int16_t right, int16_t bottom, int32_t colour, uint8_t flags); void gfx_fill_rect_inset(rct_drawpixelinfo* dpi, const ScreenRect& rect, int32_t colour, uint8_t flags); void gfx_filter_rect(rct_drawpixelinfo* dpi, int32_t left, int32_t top, int32_t right, int32_t bottom, FilterPaletteID palette); void gfx_filter_rect(rct_drawpixelinfo* dpi, const ScreenRect& rect, FilterPaletteID palette); @@ -719,6 +717,7 @@ size_t ImageListGetMaximum(); void FASTCALL gfx_sprite_to_buffer(DrawSpriteArgs& args); void FASTCALL gfx_bmp_sprite_to_buffer(DrawSpriteArgs& args); void FASTCALL gfx_rle_sprite_to_buffer(DrawSpriteArgs& args); +void FASTCALL gfx_draw_sprite(rct_drawpixelinfo* dpi, ImageId image_id, const ScreenCoordsXY& coords); void FASTCALL gfx_draw_sprite(rct_drawpixelinfo* dpi, int32_t image_id, const ScreenCoordsXY& coords, uint32_t tertiary_colour); void FASTCALL gfx_draw_glyph(rct_drawpixelinfo* dpi, int32_t image_id, const ScreenCoordsXY& coords, const PaletteMap& paletteMap); diff --git a/src/openrct2/drawing/IDrawingContext.h b/src/openrct2/drawing/IDrawingContext.h index 12fa7a2ea9..2fe2aef713 100644 --- a/src/openrct2/drawing/IDrawingContext.h +++ b/src/openrct2/drawing/IDrawingContext.h @@ -27,7 +27,7 @@ namespace OpenRCT2::Drawing virtual void Clear(uint8_t paletteIndex) abstract; virtual void FillRect(uint32_t colour, int32_t left, int32_t top, int32_t right, int32_t bottom) abstract; virtual void FilterRect(FilterPaletteID palette, int32_t left, int32_t top, int32_t right, int32_t bottom) abstract; - virtual void DrawLine(uint32_t colour, int32_t x1, int32_t y1, int32_t x2, int32_t y2) abstract; + virtual void DrawLine(uint32_t colour, const ScreenLine& line) abstract; virtual void DrawSprite(uint32_t image, int32_t x, int32_t y, uint32_t tertiaryColour) abstract; virtual void DrawSpriteRawMasked(int32_t x, int32_t y, uint32_t maskImage, uint32_t colourImage) abstract; virtual void DrawSpriteSolid(uint32_t image, int32_t x, int32_t y, uint8_t colour) abstract; diff --git a/src/openrct2/drawing/ImageImporter.cpp b/src/openrct2/drawing/ImageImporter.cpp index b537255fbc..fe7b313872 100644 --- a/src/openrct2/drawing/ImageImporter.cpp +++ b/src/openrct2/drawing/ImageImporter.cpp @@ -312,11 +312,11 @@ bool ImageImporter::IsChangablePixel(int32_t paletteIndex) return true; if (paletteIndex == 0) return false; - if (paletteIndex >= 203 && paletteIndex < 214) + if (paletteIndex >= 202 && paletteIndex <= 213) return false; if (paletteIndex == 226) return false; - if (paletteIndex >= 227 && paletteIndex < 229) + if (paletteIndex >= 227 && paletteIndex <= 229) return false; if (paletteIndex >= 243) return false; diff --git a/src/openrct2/drawing/ImageImporter.h b/src/openrct2/drawing/ImageImporter.h index fa507fc4e7..e121414259 100644 --- a/src/openrct2/drawing/ImageImporter.h +++ b/src/openrct2/drawing/ImageImporter.h @@ -273,7 +273,7 @@ constexpr const GamePalette StandardPalette = { { { 231, 231, 171, 255 }, { 255, 255, 207, 255 }, - // 203 - 214 (Secondary remap) + // 202 - 213 (Secondary remap) { 27, 0, 63, 255 }, { 51, 0, 103, 255 }, { 63, 11, 123, 255 }, diff --git a/src/openrct2/drawing/LightFX.cpp b/src/openrct2/drawing/LightFX.cpp index 352ba23f08..c90abd7fed 100644 --- a/src/openrct2/drawing/LightFX.cpp +++ b/src/openrct2/drawing/LightFX.cpp @@ -19,10 +19,11 @@ # include "../interface/Window_internal.h" # include "../paint/Paint.h" # include "../ride/Ride.h" +# include "../ride/Vehicle.h" # include "../util/Util.h" # include "../world/Climate.h" +# include "../world/Entity.h" # include "../world/Map.h" -# include "../world/Sprite.h" # include "Drawing.h" # include @@ -802,6 +803,53 @@ void lightfx_add_lights_magic_vehicle(const Vehicle* vehicle) }; } +void LightFxAddKioskLights(const CoordsXY& mapPosition, const int32_t height, const uint8_t zOffset) +{ + uint8_t relativeRotation = (4 - get_current_rotation()) % 4; + CoordsXY lanternOffset1 = CoordsXY(0, 16).Rotate(relativeRotation); + CoordsXY lanternOffset2 = CoordsXY(16, 0).Rotate(relativeRotation); + lightfx_add_3d_light_magic_from_drawing_tile( + mapPosition, lanternOffset1.x, lanternOffset1.y, height + zOffset, LightType::Lantern3); + lightfx_add_3d_light_magic_from_drawing_tile( + mapPosition, lanternOffset2.x, lanternOffset2.y, height + zOffset, LightType::Lantern3); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, 8, 32, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, 32, 8, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, -32, 8, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, 8, -32, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, -8, 32, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, 32, -8, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, -32, -8, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, -8, -32, height, LightType::Spot1); +} + +void LightFxAddShopLights(const CoordsXY& mapPosition, const uint8_t direction, const int32_t height, const uint8_t zOffset) +{ + if (direction == (4 - get_current_rotation()) % 4) // Back Right Facing Stall + { + CoordsXY spotOffset1 = CoordsXY(-32, 8).Rotate(direction); + CoordsXY spotOffset2 = CoordsXY(-32, 4).Rotate(direction); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, spotOffset1.x, spotOffset1.y, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, spotOffset2.x, spotOffset2.y, height, LightType::Spot2); + } + else if (direction == (7 - get_current_rotation()) % 4) // Back left Facing Stall + { + CoordsXY spotOffset1 = CoordsXY(-32, -8).Rotate(direction); + CoordsXY spotOffset2 = CoordsXY(-32, -4).Rotate(direction); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, spotOffset1.x, spotOffset1.y, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, spotOffset2.x, spotOffset2.y, height, LightType::Spot2); + } + else // Forward Facing Stall + { + CoordsXY spotOffset1 = CoordsXY(-32, 8).Rotate(direction); + CoordsXY spotOffset2 = CoordsXY(-32, -8).Rotate(direction); + CoordsXY lanternOffset = CoordsXY(-16, 0).Rotate(direction); + lightfx_add_3d_light_magic_from_drawing_tile( + mapPosition, lanternOffset.x, lanternOffset.y, height + zOffset, LightType::Lantern3); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, spotOffset1.x, spotOffset1.y, height, LightType::Spot1); + lightfx_add_3d_light_magic_from_drawing_tile(mapPosition, spotOffset2.x, spotOffset2.y, height, LightType::Spot1); + } +} + void lightfx_apply_palette_filter(uint8_t i, uint8_t* r, uint8_t* g, uint8_t* b) { float night = static_cast(pow(gDayNightCycle, 1.5)); diff --git a/src/openrct2/drawing/LightFX.h b/src/openrct2/drawing/LightFX.h index ba5b113df9..acbd5ed4be 100644 --- a/src/openrct2/drawing/LightFX.h +++ b/src/openrct2/drawing/LightFX.h @@ -68,6 +68,9 @@ void lightfx_add_3d_light_magic_from_drawing_tile( void lightfx_add_lights_magic_vehicle(const Vehicle* vehicle); +void LightFxAddKioskLights(const CoordsXY& mapPosition, const int32_t height, const uint8_t zOffset); +void LightFxAddShopLights(const CoordsXY& mapPosition, const uint8_t direction, const int32_t height, const uint8_t zOffset); + uint32_t lightfx_get_light_polution(); void lightfx_apply_palette_filter(uint8_t i, uint8_t* r, uint8_t* g, uint8_t* b); diff --git a/src/openrct2/drawing/Line.cpp b/src/openrct2/drawing/Line.cpp index 1f929f34ca..15122bc27c 100644 --- a/src/openrct2/drawing/Line.cpp +++ b/src/openrct2/drawing/Line.cpp @@ -16,44 +16,43 @@ * Draws a horizontal line of specified colour to a buffer. * rct2: 0x0068474C */ -static void gfx_draw_line_on_buffer(rct_drawpixelinfo* dpi, char colour, int32_t y, int32_t x, int32_t no_pixels) +static void gfx_draw_line_on_buffer(rct_drawpixelinfo* dpi, char colour, const ScreenCoordsXY& coords, int32_t no_pixels) { - y -= dpi->y; + ScreenCoordsXY offset{ coords.x - dpi->x, coords.y - dpi->y }; // Check to make sure point is in the y range - if (y < 0) + if (offset.y < 0) return; - if (y >= dpi->height) + if (offset.y >= dpi->height) return; // Check to make sure we are drawing at least a pixel if (!no_pixels) no_pixels++; - x -= dpi->x; - // If x coord outside range leave - if (x < 0) + if (offset.x < 0) { // Unless the number of pixels is enough to be in range - no_pixels += x; + no_pixels += offset.x; if (no_pixels <= 0) return; // Resets starting point to 0 as we don't draw outside the range - x = 0; + offset.x = 0; } // Ensure that the end point of the line is within range - if (x + no_pixels - dpi->width > 0) + if (offset.x + no_pixels - dpi->width > 0) { // If the end point has any pixels outside range // cut them off. If there are now no pixels return. - no_pixels -= x + no_pixels - dpi->width; + no_pixels -= offset.x + no_pixels - dpi->width; if (no_pixels <= 0) return; } // Get the buffer we are drawing to and move to the first coordinate. - uint8_t* bits_pointer = dpi->bits + y * (dpi->pitch + dpi->width) + x; + uint8_t* bits_pointer = dpi->bits + + offset.y * (static_cast(static_cast(dpi->pitch) + static_cast(dpi->width))) + offset.x; // Draw the line to the specified colour for (; no_pixels > 0; --no_pixels, ++bits_pointer) @@ -72,8 +71,13 @@ static void gfx_draw_line_on_buffer(rct_drawpixelinfo* dpi, char colour, int32_t * y2 (dx) * colour (ebp) */ -void gfx_draw_line_software(rct_drawpixelinfo* dpi, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t colour) + +void gfx_draw_line_software(rct_drawpixelinfo* dpi, const ScreenLine& line, int32_t colour) { + int32_t x1 = line.GetX1(); + int32_t x2 = line.GetX2(); + int32_t y1 = line.GetY1(); + int32_t y2 = line.GetY2(); // Check to make sure the line is within the drawing area if ((x1 < dpi->x) && (x2 < dpi->x)) { @@ -136,14 +140,14 @@ void gfx_draw_line_software(rct_drawpixelinfo* dpi, int32_t x1, int32_t y1, int3 { // Vertical lines are drawn 1 pixel at a time if (steep) - gfx_draw_line_on_buffer(dpi, colour, x, y, 1); + gfx_draw_line_on_buffer(dpi, colour, { y, x }, 1); error -= delta_y; if (error < 0) { // Non vertical lines are drawn with as many pixels in a horizontal line as possible if (!steep) - gfx_draw_line_on_buffer(dpi, colour, y, x_start, no_pixels); + gfx_draw_line_on_buffer(dpi, colour, { x_start, y }, no_pixels); // Reset non vertical line vars x_start = x + 1; @@ -155,7 +159,7 @@ void gfx_draw_line_software(rct_drawpixelinfo* dpi, int32_t x1, int32_t y1, int3 // Catch the case of the last line if (x + 1 == x2 && !steep) { - gfx_draw_line_on_buffer(dpi, colour, y, x_start, no_pixels); + gfx_draw_line_on_buffer(dpi, colour, { x_start, y }, no_pixels); } } } diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 08258379ec..c1eb196933 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -15,6 +15,7 @@ #include "../interface/Screenshot.h" #include "../localisation/StringIds.h" #include "../paint/Painter.h" +#include "../platform/Platform2.h" #include "../ui/UiContext.h" #include "../world/Location.hpp" #include "IDrawingContext.h" @@ -52,16 +53,8 @@ static IDrawingEngine* GetDrawingEngine() bool drawing_engine_requires_new_window(DrawingEngine srcEngine, DrawingEngine dstEngine) { -#ifdef _WIN32 - if (srcEngine != DrawingEngine::OpenGL && dstEngine != DrawingEngine::OpenGL) - { - // Windows is apparently able to switch to hardware rendering on the fly although - // using the same window in an unaccelerated and accelerated context is unsupported by SDL2 - return false; - } -#endif - - return true; + bool openGL = srcEngine == DrawingEngine::OpenGL || dstEngine == DrawingEngine::OpenGL; + return Platform::RequireNewWindow(openGL); } void drawing_engine_init() @@ -208,7 +201,7 @@ void gfx_draw_line(rct_drawpixelinfo* dpi, const ScreenLine& line, int32_t colou if (drawingEngine != nullptr) { IDrawingContext* dc = drawingEngine->GetDrawingContext(dpi); - dc->DrawLine(colour, line.GetX1(), line.GetY1(), line.GetX2(), line.GetY2()); + dc->DrawLine(colour, line); } } @@ -240,11 +233,16 @@ void gfx_draw_dashed_line( { x = screenLine.GetX1() + dxPrecise * i * 2 / precisionFactor; y = screenLine.GetY1() + dyPrecise * i * 2 / precisionFactor; - dc->DrawLine(color, x, y, x + dxPrecise / precisionFactor, y + dyPrecise / precisionFactor); + dc->DrawLine(color, { { x, y }, { x + dxPrecise / precisionFactor, y + dyPrecise / precisionFactor } }); } } } +void FASTCALL gfx_draw_sprite(rct_drawpixelinfo* dpi, ImageId image_id, const ScreenCoordsXY& coords) +{ + gfx_draw_sprite(dpi, image_id.ToUInt32(), coords, image_id.GetTertiary()); +} + void FASTCALL gfx_draw_sprite(rct_drawpixelinfo* dpi, int32_t image, const ScreenCoordsXY& coords, uint32_t tertiary_colour) { auto drawingEngine = dpi->DrawingEngine; diff --git a/src/openrct2/drawing/Rect.cpp b/src/openrct2/drawing/Rect.cpp index 39f162f378..4110287f0d 100644 --- a/src/openrct2/drawing/Rect.cpp +++ b/src/openrct2/drawing/Rect.cpp @@ -140,9 +140,3 @@ void gfx_fill_rect_inset(rct_drawpixelinfo* dpi, const ScreenRect& rect, int32_t } } } - -void gfx_fill_rect_inset( - rct_drawpixelinfo* dpi, int16_t left, int16_t top, int16_t right, int16_t bottom, int32_t colour, uint8_t flags) -{ - gfx_fill_rect_inset(dpi, { left, top, right, bottom }, colour, flags); -} diff --git a/src/openrct2/drawing/X8DrawingEngine.cpp b/src/openrct2/drawing/X8DrawingEngine.cpp index da80744be6..528e236892 100644 --- a/src/openrct2/drawing/X8DrawingEngine.cpp +++ b/src/openrct2/drawing/X8DrawingEngine.cpp @@ -721,9 +721,9 @@ void X8DrawingContext::FilterRect(FilterPaletteID palette, int32_t left, int32_t } } -void X8DrawingContext::DrawLine(uint32_t colour, int32_t x1, int32_t y1, int32_t x2, int32_t y2) +void X8DrawingContext::DrawLine(uint32_t colour, const ScreenLine& line) { - gfx_draw_line_software(_dpi, x1, y1, x2, y2, colour); + gfx_draw_line_software(_dpi, line, colour); } void X8DrawingContext::DrawSprite(uint32_t image, int32_t x, int32_t y, uint32_t tertiaryColour) diff --git a/src/openrct2/drawing/X8DrawingEngine.h b/src/openrct2/drawing/X8DrawingEngine.h index a0622f5e27..e462871162 100644 --- a/src/openrct2/drawing/X8DrawingEngine.h +++ b/src/openrct2/drawing/X8DrawingEngine.h @@ -145,7 +145,7 @@ namespace OpenRCT2 void Clear(uint8_t paletteIndex) override; void FillRect(uint32_t colour, int32_t x, int32_t y, int32_t w, int32_t h) override; void FilterRect(FilterPaletteID palette, int32_t left, int32_t top, int32_t right, int32_t bottom) override; - void DrawLine(uint32_t colour, int32_t x1, int32_t y1, int32_t x2, int32_t y2) override; + void DrawLine(uint32_t colour, const ScreenLine& line) override; void DrawSprite(uint32_t image, int32_t x, int32_t y, uint32_t tertiaryColour) override; void DrawSpriteRawMasked(int32_t x, int32_t y, uint32_t maskImage, uint32_t colourImage) override; void DrawSpriteSolid(uint32_t image, int32_t x, int32_t y, uint8_t colour) override; diff --git a/src/openrct2/interface/FontFamilies.cpp b/src/openrct2/interface/FontFamilies.cpp index c7b1da1186..35b9024bcb 100644 --- a/src/openrct2/interface/FontFamilies.cpp +++ b/src/openrct2/interface/FontFamilies.cpp @@ -34,6 +34,7 @@ TTFontFamily const TTFFamilyJapanese = { TTFontFamily const TTFFamilyKorean = { &TTFFontGulim, &TTFFontNanum, + &TTFFontMalgun, }; TTFontFamily const TTFFamilySansSerif = { diff --git a/src/openrct2/interface/Fonts.cpp b/src/openrct2/interface/Fonts.cpp index 939f023a72..40de2922cb 100644 --- a/src/openrct2/interface/Fonts.cpp +++ b/src/openrct2/interface/Fonts.cpp @@ -72,10 +72,16 @@ TTFFontSetDescriptor TTFFontGulim = { { { "gulim.ttc", "Gulim", 12, 1, 0, 15, HINTING_THRESHOLD_MEDIUM, nullptr }, } }; +TTFFontSetDescriptor TTFFontMalgun = { { + { "malgun.ttf", "Malgun Gothic", 10, 1, -3, 10, HINTING_THRESHOLD_LOW, nullptr }, + { "malgun.ttf", "Malgun Gothic", 12, 1, -3, 15, HINTING_THRESHOLD_LOW, nullptr }, + { "malgun.ttf", "Malgun Gothic", 12, 1, -3, 15, HINTING_THRESHOLD_LOW, nullptr }, +} }; + TTFFontSetDescriptor TTFFontNanum = { { - { "NanumGothic.ttc", "Nanum Gothic", 10, 1, 0, 10, HINTING_DISABLED, nullptr }, - { "NanumGothic.ttc", "Nanum Gothic", 12, 1, 0, 15, HINTING_THRESHOLD_LOW, nullptr }, - { "NanumGothic.ttc", "Nanum Gothic", 12, 1, 0, 15, HINTING_THRESHOLD_LOW, nullptr }, + { "NanumGothic.ttf", "Nanum Gothic", 10, 1, -2, 10, HINTING_DISABLED, nullptr }, + { "NanumGothic.ttf", "Nanum Gothic", 12, 1, -2, 15, HINTING_THRESHOLD_LOW, nullptr }, + { "NanumGothic.ttf", "Nanum Gothic", 12, 1, -2, 15, HINTING_THRESHOLD_LOW, nullptr }, } }; TTFFontSetDescriptor TTFFontArial = { { diff --git a/src/openrct2/interface/Fonts.h b/src/openrct2/interface/Fonts.h index 54f9d24c24..2eaea52884 100644 --- a/src/openrct2/interface/Fonts.h +++ b/src/openrct2/interface/Fonts.h @@ -26,6 +26,7 @@ extern TTFFontSetDescriptor TTFFontHeiti; extern TTFFontSetDescriptor TTFFontSimSun; extern TTFFontSetDescriptor TTFFontLiHeiPro; extern TTFFontSetDescriptor TTFFontGulim; +extern TTFFontSetDescriptor TTFFontMalgun; extern TTFFontSetDescriptor TTFFontNanum; extern TTFFontSetDescriptor TTFFontArial; extern TTFFontSetDescriptor TTFFontArialUnicode; diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index c6456a5f5e..cc5741263f 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -22,6 +22,7 @@ #include "../actions/SetCheatAction.h" #include "../actions/StaffSetCostumeAction.h" #include "../config/Config.h" +#include "../core/Console.hpp" #include "../core/Guard.hpp" #include "../core/Path.hpp" #include "../core/String.hpp" @@ -43,6 +44,7 @@ #include "../platform/platform.h" #include "../ride/Ride.h" #include "../ride/RideData.h" +#include "../ride/Vehicle.h" #include "../util/Util.h" #include "../windows/Intent.h" #include "../world/Climate.h" @@ -195,7 +197,15 @@ static int32_t cc_rides(InteractiveConsole& console, const arguments_t& argv) int32_t res = set_operating_setting(ride_index, RideSetSetting::RideType, type); if (res == MONEY32_UNDEFINED) { - console.WriteFormatLine("That didn't work"); + if (!gCheatsAllowArbitraryRideTypeChanges) + { + console.WriteFormatLine( + "That didn't work. Try enabling the 'Allow arbitrary ride type changes' cheat"); + } + else + { + console.WriteFormatLine("That didn't work"); + } } } } @@ -436,7 +446,7 @@ static int32_t cc_staff(InteractiveConsole& console, const arguments_t& argv) { if (argv[0] == "list") { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { auto name = peep->GetName(); console.WriteFormatLine( @@ -1071,7 +1081,7 @@ static int32_t cc_load_object(InteractiveConsole& console, const arguments_t& ar } const rct_object_entry* entry = &ori->ObjectEntry; - void* loadedObject = object_manager_get_loaded_object(entry); + const auto* loadedObject = object_manager_get_loaded_object(ObjectEntryDescriptor(*ori)); if (loadedObject != nullptr) { console.WriteLineError("Object is already in scenario."); @@ -1237,24 +1247,17 @@ static int32_t cc_remove_park_fences(InteractiveConsole& console, [[maybe_unused static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] const arguments_t& argv) { - map_reorganise_elements(); - int32_t tileElementCount = gNextFreeTileElement - gTileElements - 1; + const auto& tileElements = GetTileElements(); + const auto tileElementCount = tileElements.size(); int32_t rideCount = ride_get_count(); int32_t spriteCount = 0; - for (int32_t i = 1; i < static_cast(EntityListId::Count); ++i) + for (int32_t i = 0; i < static_cast(EntityType::Count); ++i) { - spriteCount += GetEntityListCount(EntityListId(i)); + spriteCount += GetEntityListCount(EntityType(i)); } - int32_t staffCount = 0; - for (int32_t i = 0; i < STAFF_MAX_COUNT; ++i) - { - if (gStaffModes[i] != StaffMode::None) - { - staffCount++; - } - } + int32_t staffCount = GetEntityListCount(EntityType::Staff); int32_t bannerCount = 0; for (BannerIndex i = 0; i < MAX_BANNERS; ++i) @@ -1267,7 +1270,7 @@ static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] cons } console.WriteFormatLine("Sprites: %d/%d", spriteCount, MAX_ENTITIES); - console.WriteFormatLine("Map Elements: %d/%d", tileElementCount, MAX_TILE_ELEMENTS); + console.WriteFormatLine("Map Elements: %zu/%d", tileElementCount, MAX_TILE_ELEMENTS); console.WriteFormatLine("Banners: %d/%zu", bannerCount, MAX_BANNERS); console.WriteFormatLine("Rides: %d/%d", rideCount, MAX_RIDES); console.WriteFormatLine("Staff: %d/%d", staffCount, STAFF_MAX_COUNT); @@ -1441,7 +1444,7 @@ static int32_t cc_replay_startrecord(InteractiveConsole& console, const argument const char* logFmt = "Replay recording started: (%s) %s"; console.WriteFormatLine(logFmt, info.Name.c_str(), info.FilePath.c_str()); - log_info(logFmt, info.Name.c_str(), info.FilePath.c_str()); + Console::WriteLine(logFmt, info.Name.c_str(), info.FilePath.c_str()); return 1; } @@ -1476,7 +1479,7 @@ static int32_t cc_replay_stoprecord(InteractiveConsole& console, const arguments console.WriteFormatLine( logFmt, info.Name.c_str(), info.FilePath.c_str(), info.Ticks, info.NumCommands, info.NumChecksums); - log_info(logFmt, info.Name.c_str(), info.FilePath.c_str(), info.Ticks, info.NumCommands, info.NumChecksums); + Console::WriteLine(logFmt, info.Name.c_str(), info.FilePath.c_str(), info.Ticks, info.NumCommands, info.NumChecksums); return 1; } @@ -1518,7 +1521,7 @@ static int32_t cc_replay_start(InteractiveConsole& console, const arguments_t& a " Checksums: %u"; console.WriteFormatLine(logFmt, info.FilePath.c_str(), recordingDate, info.Ticks, info.NumCommands, info.NumChecksums); - log_info(logFmt, info.FilePath.c_str(), recordingDate, info.Ticks, info.NumCommands, info.NumChecksums); + Console::WriteLine(logFmt, info.FilePath.c_str(), recordingDate, info.Ticks, info.NumCommands, info.NumChecksums); return 1; } @@ -1587,49 +1590,43 @@ static int32_t cc_mp_desync(InteractiveConsole& console, const arguments_t& argv desyncType = atoi(argv[0].c_str()); } - std::vector peeps; + std::vector guests; - for (int i = 0; i < MAX_ENTITIES; i++) + for (auto* guest : EntityList()) { - auto* sprite = GetEntity(i); - if (sprite == nullptr || sprite->sprite_identifier == SpriteIdentifier::Null) - continue; - - auto peep = sprite->As(); - if (peep != nullptr) - peeps.push_back(peep); + guests.push_back(guest); } switch (desyncType) { - case 0: // Peep t-shirts. + case 0: // Guest t-shirts. { - if (peeps.empty()) + if (guests.empty()) { - console.WriteFormatLine("No peeps"); + console.WriteFormatLine("No guests"); } else { - auto* peep = peeps[0]; - if (peeps.size() > 1) - peep = peeps[util_rand() % peeps.size() - 1]; - peep->TshirtColour = util_rand() & 0xFF; - peep->Invalidate(); + auto* guest = guests[0]; + if (guests.size() > 1) + guest = guests[util_rand() % guests.size() - 1]; + guest->TshirtColour = util_rand() & 0xFF; + guest->Invalidate(); } break; } - case 1: // Remove random peep. + case 1: // Remove random guest. { - if (peeps.empty()) + if (guests.empty()) { - console.WriteFormatLine("No peep removed"); + console.WriteFormatLine("No guest removed"); } else { - auto* peep = peeps[0]; - if (peeps.size() > 1) - peep = peeps[util_rand() % peeps.size() - 1]; - peep->Remove(); + auto* guest = guests[0]; + if (guests.size() > 1) + guest = guests[util_rand() % guests.size() - 1]; + guest->Remove(); } break; } @@ -1674,7 +1671,6 @@ static int32_t cc_assert([[maybe_unused]] InteractiveConsole& console, [[maybe_u static int32_t cc_add_news_item([[maybe_unused]] InteractiveConsole& console, [[maybe_unused]] const arguments_t& argv) { - printf("argv.size() = %zu\n", argv.size()); if (argv.size() < 2) { console.WriteLineWarning("Too few arguments"); @@ -1817,7 +1813,7 @@ static constexpr const console_command console_command_table[] = { { "replay_start", cc_replay_start, "Starts a replay", "replay_start "}, { "replay_stop", cc_replay_stop, "Stops the replay", "replay_stop"}, { "replay_normalise", cc_replay_normalise, "Normalises the replay to remove all gaps", "replay_normalise "}, - { "mp_desync", cc_mp_desync, "Forces a multiplayer desync", "cc_mp_desync [desync_type, 0 = Random t-shirt color on random peep, 1 = Remove random peep ]"}, + { "mp_desync", cc_mp_desync, "Forces a multiplayer desync", "cc_mp_desync [desync_type, 0 = Random t-shirt color on random guest, 1 = Remove random guest ]"}, }; // clang-format on diff --git a/src/openrct2/interface/StdInOutConsole.cpp b/src/openrct2/interface/StdInOutConsole.cpp index 3ea2e4c3af..42217dfed2 100644 --- a/src/openrct2/interface/StdInOutConsole.cpp +++ b/src/openrct2/interface/StdInOutConsole.cpp @@ -134,7 +134,23 @@ void StdInOutConsole::WriteLine(const std::string& s, FormatToken colourFormat) { if (_isPromptShowing) { - std::printf("\r%s%s\x1b[0m\x1b[0K\r\n", formatBegin.c_str(), s.c_str()); + auto* mainString = s.c_str(); + + // If string contains \n, we need to replace with \r\n + std::string newString; + if (s.find('\n') != std::string::npos) + { + for (auto ch : s) + { + if (ch == '\n') + newString += "\r\n"; + else + newString += ch; + } + mainString = newString.c_str(); + } + + std::printf("\r%s%s\x1b[0m\x1b[0K\r\n", formatBegin.c_str(), mainString); std::fflush(stdout); linenoise::linenoiseEditRefreshLine(); } diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 42bee34297..6fde1dba5a 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -22,12 +22,12 @@ #include "../peep/Staff.h" #include "../ride/Ride.h" #include "../ride/TrackDesign.h" +#include "../ride/Vehicle.h" #include "../ui/UiContext.h" #include "../ui/WindowManager.h" #include "../world/Climate.h" #include "../world/EntityList.h" #include "../world/Map.h" -#include "../world/Sprite.h" #include "Colour.h" #include "Window.h" #include "Window_internal.h" @@ -35,6 +35,7 @@ #include #include #include +#include using namespace OpenRCT2; @@ -668,7 +669,7 @@ void viewport_update_smart_sprite_follow(rct_window* window) window->viewport_smart_follow_sprite = SPRITE_INDEX_NULL; window->viewport_target_sprite = SPRITE_INDEX_NULL; } - else if (entity->sprite_identifier == SpriteIdentifier::Peep) + else if (entity->Type == EntityType::Guest || entity->Type == EntityType::Staff) { Peep* peep = TryGetEntity(window->viewport_smart_follow_sprite); if (peep == nullptr) @@ -679,16 +680,16 @@ void viewport_update_smart_sprite_follow(rct_window* window) return; } - if (peep->AssignedPeepType == PeepType::Guest) + if (peep->Is()) viewport_update_smart_guest_follow(window, peep); - else if (peep->AssignedPeepType == PeepType::Staff) + else if (peep->Is()) viewport_update_smart_staff_follow(window, peep); } - else if (entity->sprite_identifier == SpriteIdentifier::Vehicle) + else if (entity->Type == EntityType::Vehicle) { viewport_update_smart_vehicle_follow(window); } - else if (entity->sprite_identifier == SpriteIdentifier::Misc || entity->sprite_identifier == SpriteIdentifier::Litter) + else if (entity->Type != EntityType::Null) { window->viewport_focus_sprite.sprite_id = window->viewport_smart_follow_sprite; window->viewport_target_sprite = window->viewport_smart_follow_sprite; @@ -805,7 +806,7 @@ void viewport_update_smart_vehicle_follow(rct_window* window) */ void viewport_render( rct_drawpixelinfo* dpi, const rct_viewport* viewport, int32_t left, int32_t top, int32_t right, int32_t bottom, - std::vector* sessions) + std::vector* sessions) { if (right <= viewport->pos.x) return; @@ -846,30 +847,68 @@ void viewport_render( #endif } -static void record_session(const paint_session* session, std::vector* recorded_sessions, size_t record_index) +static void record_session( + const paint_session* session, std::vector* recorded_sessions, size_t record_index) { // Perform a deep copy of the paint session, use relative offsets. // This is done to extract the session for benchmark. // Place the copied session at provided record_index, so the caller can decide which columns/paint sessions to copy; // there is no column information embedded in the session itself. - (*recorded_sessions)[record_index] = (*session); - paint_session* session_copy = &recorded_sessions->at(record_index); + auto& recordedSession = recorded_sessions->at(record_index); + recordedSession.Session = *session; + recordedSession.Entries.resize(session->PaintEntryChain.GetCount()); // Mind the offset needs to be calculated against the original `session`, not `session_copy` - for (auto& ps : session_copy->PaintStructs) + std::unordered_map entryRemap; + + // Copy all entries + auto paintIndex = 0; + auto chain = session->PaintEntryChain.Head; + while (chain != nullptr) { - ps.basic.next_quadrant_ps = reinterpret_cast( - ps.basic.next_quadrant_ps ? int(ps.basic.next_quadrant_ps - &session->PaintStructs[0].basic) - : std::size(session->PaintStructs)); + for (size_t i = 0; i < chain->Count; i++) + { + auto& src = chain->PaintStructs[i]; + auto& dst = recordedSession.Entries[paintIndex++]; + dst = src; + entryRemap[&src.basic] = reinterpret_cast(i * sizeof(paint_entry)); + } + chain = chain->Next; } - for (auto& quad : session_copy->Quadrants) + entryRemap[nullptr] = reinterpret_cast(-1); + + // Remap all entries + for (auto& ps : recordedSession.Entries) { - quad = reinterpret_cast( - quad ? int(quad - &session->PaintStructs[0].basic) : std::size(session->Quadrants)); + auto& ptr = ps.basic.next_quadrant_ps; + auto it = entryRemap.find(ptr); + if (it == entryRemap.end()) + { + assert(false); + ptr = nullptr; + } + else + { + ptr = it->second; + } + } + for (auto& ptr : recordedSession.Session.Quadrants) + { + auto it = entryRemap.find(ptr); + if (it == entryRemap.end()) + { + assert(false); + ptr = nullptr; + } + else + { + ptr = it->second; + } } } -static void viewport_fill_column(paint_session* session, std::vector* recorded_sessions, size_t record_index) +static void viewport_fill_column( + paint_session* session, std::vector* recorded_sessions, size_t record_index) { PaintSessionGenerate(session); if (recorded_sessions != nullptr) @@ -922,7 +961,7 @@ static void viewport_paint_column(paint_session* session) */ void viewport_paint( const rct_viewport* viewport, rct_drawpixelinfo* dpi, int16_t left, int16_t top, int16_t right, int16_t bottom, - std::vector* recorded_sessions) + std::vector* recorded_sessions) { uint32_t viewFlags = viewport->flags; uint16_t width = right - left; diff --git a/src/openrct2/interface/Viewport.h b/src/openrct2/interface/Viewport.h index d62da72b0c..0c7afab621 100644 --- a/src/openrct2/interface/Viewport.h +++ b/src/openrct2/interface/Viewport.h @@ -18,6 +18,7 @@ #include struct paint_session; +struct RecordedPaintSession; struct paint_struct; struct rct_drawpixelinfo; struct Peep; @@ -116,10 +117,10 @@ void viewport_update_smart_staff_follow(rct_window* window, Peep* peep); void viewport_update_smart_vehicle_follow(rct_window* window); void viewport_render( rct_drawpixelinfo* dpi, const rct_viewport* viewport, int32_t left, int32_t top, int32_t right, int32_t bottom, - std::vector* sessions = nullptr); + std::vector* sessions = nullptr); void viewport_paint( const rct_viewport* viewport, rct_drawpixelinfo* dpi, int16_t left, int16_t top, int16_t right, int16_t bottom, - std::vector* sessions = nullptr); + std::vector* sessions = nullptr); CoordsXYZ viewport_adjust_for_map_height(const ScreenCoordsXY& startCoords); @@ -146,7 +147,6 @@ bool ViewportInteractionRightOver(const ScreenCoordsXY& screenCoords); bool ViewportInteractionRightClick(const ScreenCoordsXY& screenCoords); CoordsXY ViewportInteractionGetTileStartAtCursor(const ScreenCoordsXY& screenCoords); -void sub_68B2B7(paint_session* session, const CoordsXY& mapCoords); void viewport_invalidate(const rct_viewport* viewport, int32_t left, int32_t top, int32_t right, int32_t bottom); diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp index 1256e392d1..d12d1b5318 100644 --- a/src/openrct2/interface/Window.cpp +++ b/src/openrct2/interface/Window.cpp @@ -28,7 +28,6 @@ #include "../ui/UiContext.h" #include "../ui/WindowManager.h" #include "../world/Map.h" -#include "../world/Sprite.h" #include "Viewport.h" #include "Widget.h" #include "Window_internal.h" @@ -1562,7 +1561,9 @@ void window_event_textinput_call(rct_window* w, rct_widgetindex widgetIndex, cha void window_event_viewport_rotate_call(rct_window* w) { - if (w->event_handlers != nullptr) + if (w->event_handlers == nullptr) + w->OnViewportRotate(); + else if (w->event_handlers != nullptr) if (w->event_handlers->viewport_rotate != nullptr) w->event_handlers->viewport_rotate(w); } diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index 3d2492d6c7..bbfb9bac2e 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -244,34 +244,34 @@ struct viewport_focus struct rct_window_event_list { - void (*close)(struct rct_window*); - void (*mouse_up)(struct rct_window*, rct_widgetindex); - void (*resize)(struct rct_window*); - void (*mouse_down)(struct rct_window*, rct_widgetindex, rct_widget*); - void (*dropdown)(struct rct_window*, rct_widgetindex, int32_t); - void (*unknown_05)(struct rct_window*); - void (*update)(struct rct_window*); - void (*periodic_update)(struct rct_window*); - void (*unknown_08)(struct rct_window*); - void (*tool_update)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&); - void (*tool_down)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&); - void (*tool_drag)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&); - void (*tool_up)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&); - void (*tool_abort)(struct rct_window*, rct_widgetindex); - void (*unknown_0E)(struct rct_window*); - void (*get_scroll_size)(struct rct_window*, int32_t, int32_t*, int32_t*); - void (*scroll_mousedown)(struct rct_window*, int32_t, const ScreenCoordsXY&); - void (*scroll_mousedrag)(struct rct_window*, int32_t, const ScreenCoordsXY&); - void (*scroll_mouseover)(struct rct_window*, int32_t, const ScreenCoordsXY&); - void (*text_input)(struct rct_window*, rct_widgetindex, char*); - void (*viewport_rotate)(struct rct_window*); - void (*unknown_15)(struct rct_window*, int32_t, int32_t); - OpenRCT2String (*tooltip)(struct rct_window*, const rct_widgetindex, const rct_string_id); - void (*cursor)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&, CursorID*); - void (*moved)(struct rct_window*, const ScreenCoordsXY&); - void (*invalidate)(struct rct_window*); - void (*paint)(struct rct_window*, rct_drawpixelinfo*); - void (*scroll_paint)(struct rct_window*, rct_drawpixelinfo*, int32_t); + void (*close)(struct rct_window*){}; + void (*mouse_up)(struct rct_window*, rct_widgetindex){}; + void (*resize)(struct rct_window*){}; + void (*mouse_down)(struct rct_window*, rct_widgetindex, rct_widget*){}; + void (*dropdown)(struct rct_window*, rct_widgetindex, int32_t){}; + void (*unknown_05)(struct rct_window*){}; + void (*update)(struct rct_window*){}; + void (*periodic_update)(struct rct_window*){}; + void (*unknown_08)(struct rct_window*){}; + void (*tool_update)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&){}; + void (*tool_down)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&){}; + void (*tool_drag)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&){}; + void (*tool_up)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&){}; + void (*tool_abort)(struct rct_window*, rct_widgetindex){}; + void (*unknown_0E)(struct rct_window*){}; + void (*get_scroll_size)(struct rct_window*, int32_t, int32_t*, int32_t*){}; + void (*scroll_mousedown)(struct rct_window*, int32_t, const ScreenCoordsXY&){}; + void (*scroll_mousedrag)(struct rct_window*, int32_t, const ScreenCoordsXY&){}; + void (*scroll_mouseover)(struct rct_window*, int32_t, const ScreenCoordsXY&){}; + void (*text_input)(struct rct_window*, rct_widgetindex, char*){}; + void (*viewport_rotate)(struct rct_window*){}; + void (*unknown_15)(struct rct_window*, int32_t, int32_t){}; + OpenRCT2String (*tooltip)(struct rct_window*, const rct_widgetindex, const rct_string_id){}; + void (*cursor)(struct rct_window*, rct_widgetindex, const ScreenCoordsXY&, CursorID*){}; + void (*moved)(struct rct_window*, const ScreenCoordsXY&){}; + void (*invalidate)(struct rct_window*){}; + void (*paint)(struct rct_window*, rct_drawpixelinfo*){}; + void (*scroll_paint)(struct rct_window*, rct_drawpixelinfo*, int32_t){}; typedef void (*fnEventInitializer)(rct_window_event_list&); rct_window_event_list(fnEventInitializer fn) diff --git a/src/openrct2/interface/Window_internal.cpp b/src/openrct2/interface/Window_internal.cpp index 9b3140dee4..3db47f0186 100644 --- a/src/openrct2/interface/Window_internal.cpp +++ b/src/openrct2/interface/Window_internal.cpp @@ -1,7 +1,8 @@ #include "Window_internal.h" +#include "../world/Entity.h" #include "../world/EntityList.h" -#include "../world/Sprite.h" +#include "Viewport.h" void rct_window::SetLocation(const CoordsXYZ& coords) { diff --git a/src/openrct2/interface/Window_internal.h b/src/openrct2/interface/Window_internal.h index 8272f45d95..9fd1784815 100644 --- a/src/openrct2/interface/Window_internal.h +++ b/src/openrct2/interface/Window_internal.h @@ -179,6 +179,9 @@ struct rct_window virtual void OnToolAbort(rct_widgetindex widgetIndex) { } + virtual void OnViewportRotate() + { + } }; #ifdef __WARN_SUGGEST_FINAL_METHODS__ diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 1623118c3d..375d579fa3 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -147,6 +147,7 @@ + @@ -383,6 +384,7 @@ + @@ -406,6 +408,7 @@ + @@ -434,18 +437,26 @@ + + + + + + + + @@ -568,6 +579,7 @@ + @@ -815,6 +827,7 @@ + @@ -852,10 +865,13 @@ + + + @@ -873,4 +889,4 @@ - + \ No newline at end of file diff --git a/src/openrct2/localisation/FormatCodes.cpp b/src/openrct2/localisation/FormatCodes.cpp index f869bb94df..204afcaa11 100644 --- a/src/openrct2/localisation/FormatCodes.cpp +++ b/src/openrct2/localisation/FormatCodes.cpp @@ -20,7 +20,6 @@ static const std::unordered_map FormatTokenMap = { "NEWLINE", FormatToken::Newline, }, { "NEWLINE_SMALLER", FormatToken::NewlineSmall, }, { "TINYFONT", FormatToken::FontTiny, }, - { "BIGFONT", FormatToken::FontBig, }, { "MEDIUMFONT", FormatToken::FontMedium, }, { "SMALLFONT", FormatToken::FontSmall, }, { "OUTLINE", FormatToken::OutlineEnable, }, diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index 6baf334b35..760f61ab36 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -70,7 +70,6 @@ enum class FormatToken FontTiny, FontSmall, FontMedium, - FontBig, OutlineEnable, OutlineDisable, diff --git a/src/openrct2/localisation/Formatter.h b/src/openrct2/localisation/Formatter.h index 70610b1eaf..49d03febb6 100644 --- a/src/openrct2/localisation/Formatter.h +++ b/src/openrct2/localisation/Formatter.h @@ -77,16 +77,16 @@ public: // clang-format off static_assert( - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v + std::is_same_v::type, char*> || + std::is_same_v::type, const char*> || + std::is_same_v::type, int16_t> || + std::is_same_v::type, int32_t> || + std::is_same_v::type, money32> || + std::is_same_v::type, rct_string_id> || + std::is_same_v::type, uint16_t> || + std::is_same_v::type, uint32_t> || + std::is_same_v::type, utf8*> || + std::is_same_v::type, const utf8*> ); // clang-format on diff --git a/src/openrct2/localisation/Language.cpp b/src/openrct2/localisation/Language.cpp index c7c8630da6..59aa3e67a4 100644 --- a/src/openrct2/localisation/Language.cpp +++ b/src/openrct2/localisation/Language.cpp @@ -48,6 +48,7 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = { "fi-FI", "Finnish", "Suomi", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_FINNISH { "sv-SE", "Swedish", "Svenska", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_SWEDISH { "tr-TR", "Turkish", "Türkçe", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_TURKISH + { "vi-VN", "Vietnamese", "Vietnamese", FAMILY(&TTFFamilySansSerif), false }, // LANGUAGE_VIETNAMESE }; // clang-format on diff --git a/src/openrct2/localisation/Language.h b/src/openrct2/localisation/Language.h index 2df4b18bf9..557bbe4197 100644 --- a/src/openrct2/localisation/Language.h +++ b/src/openrct2/localisation/Language.h @@ -43,6 +43,7 @@ enum LANGUAGE_FINNISH, LANGUAGE_SWEDISH, LANGUAGE_TURKISH, + LANGUAGE_VIETNAMESE, LANGUAGE_COUNT }; diff --git a/src/openrct2/localisation/StringIds.h b/src/openrct2/localisation/StringIds.h index 381637c278..c3a474e0da 100644 --- a/src/openrct2/localisation/StringIds.h +++ b/src/openrct2/localisation/StringIds.h @@ -1228,7 +1228,7 @@ enum STR_LAST_BREAKDOWN = 1808, STR_CURRENT_BREAKDOWN = 1809, STR_CARRYING = 1810, - STR_CANT_BUILD_PARK_ENTRANCE_HERE = 1811, + STR_CANT_BUILD_THIS_HERE = 1811, STR_STRING_DEFINED_TOOLTIP = 1812, STR_MISCELLANEOUS = 1813, STR_ACTIONS = 1814, @@ -1342,7 +1342,7 @@ enum STR_CONTINUE_SAVED_GAME_TIP = 1922, STR_EXIT = 1924, STR_ERR_CANT_PLACE_PERSON_HERE = 1925, - // STR_1926 :{SMALLFONT} // Used in window_game_bottom_toolbar_onpaint and window_news_onscrollpaint + // STR_1926 : STR_RIDE_IS_BROKEN_DOWN = 1927, STR_RIDE_HAS_CRASHED = 1928, STR_RIDE_IS_STILL_NOT_FIXED = 1929, @@ -2004,7 +2004,7 @@ enum // 2671--2679 unused STR_RESEARCH_COMPLETED_AL = 2680, - STR_CHEAT_5K_MONEY_TIP = 2681, + // STR_2681 : // STR_2682 : // STR_2683 : STR_CHEAT_LARGE_TRAM_GUESTS_TIP = 2684, @@ -3055,8 +3055,6 @@ enum STR_NOTIFICATION_GUEST_DIED = 5606, STR_TILE_INSPECTOR_BASE_HEIGHT_SHORT = 5608, STR_TILE_INSPECTOR_CLEARANGE_HEIGHT_SHORT = 5609, - // STR_5610 :{SMALLFONT}{BLACK}Remove the currently selected map element. This will forcefully remove it, so no cash will - // be used/gained. Use with caution. STR_REMOVE_SELECTED_ELEMENT_TIP = 5610, STR_TILE_INSPECTOR_FLAG_GHOST_SHORT = 5611, STR_TILE_INSPECTOR_FLAG_GHOST = 5612, @@ -3936,6 +3934,23 @@ enum STR_SHORTCUT_REMOVE = 6433, STR_SHORTCUT_REMOVE_TIP = 6434, + STR_STAFF_STAT_VANDALS_STOPPED = 6435, + + STR_TILE_INSPECTOR_TOGGLE_INVISIBILITY_TIP = 6436, + STR_TILE_INSPECTOR_FLAG_INVISIBLE = 6437, + STR_TILE_INSPECTOR_INVISIBLE_SHORT = 6438, + STR_SHORTCUT_TOGGLE_INVISIBILITY = 6439, + + STR_VIEWPORT_TRANSPARENT_WATER = 6440, + + STR_MUSIC_OBJECT_TRACK_HEADER = 6449, + STR_MUSIC_OBJECT_TRACK_LIST_ITEM = 6450, + STR_MUSIC_OBJECT_TRACK_LIST_ITEM_WITH_COMPOSER = 6451, + + STR_RIDE_OBJECT_SHOP_SELLS = 6452, + + STR_COPY_BUILD_HASH = 6453, + // Have to include resource strings (from scenarios and objects) for the time being now that language is partially working /* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings }; diff --git a/src/openrct2/management/Award.cpp b/src/openrct2/management/Award.cpp index 8f75a42507..f6cb615059 100644 --- a/src/openrct2/management/Award.cpp +++ b/src/openrct2/management/Award.cpp @@ -85,7 +85,7 @@ static bool award_is_deserved_most_untidy(int32_t activeAwardTypes) return false; uint32_t negativeCount = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -113,7 +113,7 @@ static bool award_is_deserved_most_tidy(int32_t activeAwardTypes) uint32_t positiveCount = 0; uint32_t negativeCount = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -146,7 +146,7 @@ static bool award_is_deserved_best_rollercoasters([[maybe_unused]] int32_t activ continue; } - if (ride.status != RIDE_STATUS_OPEN || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) + if (ride.status != RideStatus::Open || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) { continue; } @@ -192,7 +192,7 @@ static bool award_is_deserved_most_beautiful(int32_t activeAwardTypes) uint32_t positiveCount = 0; uint32_t negativeCount = 0; - auto list = EntityList(EntityListId::Peep); + auto list = EntityList(); for (auto peep : list) { if (peep->OutsideOfPark) @@ -234,7 +234,7 @@ static bool award_is_deserved_worst_value(int32_t activeAwardTypes) static bool award_is_deserved_safest([[maybe_unused]] int32_t activeAwardTypes) { auto peepsWhoDislikeVandalism = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -263,10 +263,8 @@ static bool award_is_deserved_best_staff(int32_t activeAwardTypes) if (activeAwardTypes & EnumToFlag(ParkAward::MostUntidy)) return false; - auto staff = EntityList(EntityListId::Peep); - auto staffCount = std::distance(staff.begin(), staff.end()); - auto guests = EntityList(EntityListId::Peep); - auto peepCount = std::distance(guests.begin(), guests.end()); + auto staffCount = GetEntityListCount(EntityType::Staff); + auto peepCount = GetEntityListCount(EntityType::Guest); return ((staffCount != 0) && staffCount >= 20 && staffCount >= peepCount / 32); } @@ -282,7 +280,7 @@ static bool award_is_deserved_best_food(int32_t activeAwardTypes) uint64_t shopTypes = 0; for (const auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_OPEN) + if (ride.status != RideStatus::Open) continue; if (!ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_SELLS_FOOD)) continue; @@ -304,7 +302,7 @@ static bool award_is_deserved_best_food(int32_t activeAwardTypes) // Count hungry peeps auto hungryPeeps = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -326,7 +324,7 @@ static bool award_is_deserved_worst_food(int32_t activeAwardTypes) uint64_t shopTypes = 0; for (const auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_OPEN) + if (ride.status != RideStatus::Open) continue; if (!ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_SELLS_FOOD)) continue; @@ -348,7 +346,7 @@ static bool award_is_deserved_worst_food(int32_t activeAwardTypes) // Count hungry peeps auto hungryPeeps = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -365,7 +363,7 @@ static bool award_is_deserved_best_restrooms([[maybe_unused]] int32_t activeAwar // Count open restrooms const auto& rideManager = GetRideManager(); auto numRestrooms = static_cast(std::count_if(rideManager.begin(), rideManager.end(), [](const Ride& ride) { - return ride.type == RIDE_TYPE_TOILETS && ride.status == RIDE_STATUS_OPEN; + return ride.type == RIDE_TYPE_TOILETS && ride.status == RideStatus::Open; })); // At least 4 open restrooms @@ -378,7 +376,7 @@ static bool award_is_deserved_best_restrooms([[maybe_unused]] int32_t activeAwar // Count number of guests who are thinking they need the restroom auto guestsWhoNeedRestroom = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -428,7 +426,7 @@ static bool award_is_deserved_best_water_rides([[maybe_unused]] int32_t activeAw continue; } - if (ride.status != RIDE_STATUS_OPEN || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) + if (ride.status != RideStatus::Open || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) { continue; } @@ -459,7 +457,7 @@ static bool award_is_deserved_best_custom_designed_rides(int32_t activeAwardType continue; if (ride.excitement < RIDE_RATING(5, 50)) continue; - if (ride.status != RIDE_STATUS_OPEN || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) + if (ride.status != RideStatus::Open || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) continue; customDesignedRides++; @@ -505,7 +503,7 @@ static bool award_is_deserved_most_confusing_layout([[maybe_unused]] int32_t act { uint32_t peepsCounted = 0; uint32_t peepsLost = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -531,7 +529,7 @@ static bool award_is_deserved_best_gentle_rides([[maybe_unused]] int32_t activeA continue; } - if (ride.status != RIDE_STATUS_OPEN || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) + if (ride.status != RideStatus::Open || (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) { continue; } diff --git a/src/openrct2/management/Finance.cpp b/src/openrct2/management/Finance.cpp index dd0cb1bddc..12f7858baf 100644 --- a/src/openrct2/management/Finance.cpp +++ b/src/openrct2/management/Finance.cpp @@ -22,7 +22,6 @@ #include "../util/Util.h" #include "../windows/Intent.h" #include "../world/Park.h" -#include "../world/Sprite.h" // Monthly research funding costs const money32 research_cost_table[RESEARCH_FUNDING_COUNT] = { @@ -75,7 +74,7 @@ bool finance_check_money_required(uint32_t flags) */ bool finance_check_affordability(money32 cost, uint32_t flags) { - return cost <= 0 || !finance_check_money_required(flags) || cost <= gCash; + return !finance_check_money_required(flags) || cost <= 0 || cost <= gCash; } /** @@ -111,7 +110,7 @@ void finance_pay_wages() return; } - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { finance_payment(GetStaffWage(peep->AssignedStaffType) / 4, ExpenditureType::Wages); } @@ -165,7 +164,7 @@ void finance_pay_ride_upkeep() ride.Renew(); } - if (ride.status != RIDE_STATUS_CLOSED && !(gParkFlags & PARK_FLAGS_NO_MONEY)) + if (ride.status != RideStatus::Closed && !(gParkFlags & PARK_FLAGS_NO_MONEY)) { int16_t upkeep = ride.upkeep_cost; if (upkeep != -1) @@ -242,7 +241,7 @@ void finance_update_daily_profit() if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) { // Staff costs - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { current_profit -= GetStaffWage(peep->AssignedStaffType); } @@ -258,7 +257,7 @@ void finance_update_daily_profit() // Ride costs for (auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_CLOSED && ride.upkeep_cost != MONEY16_UNDEFINED) + if (ride.status != RideStatus::Closed && ride.upkeep_cost != MONEY16_UNDEFINED) { current_profit -= 2 * ride.upkeep_cost; } diff --git a/src/openrct2/management/Marketing.cpp b/src/openrct2/management/Marketing.cpp index 39d086e226..f458ea23e4 100644 --- a/src/openrct2/management/Marketing.cpp +++ b/src/openrct2/management/Marketing.cpp @@ -127,7 +127,7 @@ void marketing_update() window_invalidate_by_class(WC_FINANCES); } -void marketing_set_guest_campaign(Peep* peep, int32_t campaignType) +void marketing_set_guest_campaign(Guest* peep, int32_t campaignType) { auto campaign = marketing_get_campaign(campaignType); if (campaign == nullptr) diff --git a/src/openrct2/management/Marketing.h b/src/openrct2/management/Marketing.h index c74e51e6c3..7c0a13f422 100644 --- a/src/openrct2/management/Marketing.h +++ b/src/openrct2/management/Marketing.h @@ -63,7 +63,7 @@ extern std::vector gMarketingCampaigns; uint16_t marketing_get_campaign_guest_generation_probability(int32_t campaign); void marketing_update(); -void marketing_set_guest_campaign(Peep* peep, int32_t campaign); +void marketing_set_guest_campaign(Guest* peep, int32_t campaign); bool marketing_is_campaign_type_applicable(int32_t campaignType); MarketingCampaign* marketing_get_campaign(int32_t campaignType); void marketing_new_campaign(const MarketingCampaign& campaign); diff --git a/src/openrct2/management/NewsItem.cpp b/src/openrct2/management/NewsItem.cpp index e96b46cf8e..c93eabe5af 100644 --- a/src/openrct2/management/NewsItem.cpp +++ b/src/openrct2/management/NewsItem.cpp @@ -18,11 +18,13 @@ #include "../localisation/Date.h" #include "../localisation/Localisation.h" #include "../management/Research.h" +#include "../peep/Peep.h" #include "../ride/Ride.h" +#include "../ride/Vehicle.h" #include "../util/Util.h" #include "../windows/Intent.h" +#include "../world/Entity.h" #include "../world/Location.hpp" -#include "../world/Sprite.h" News::ItemQueues gNewsItems; diff --git a/src/openrct2/management/Research.cpp b/src/openrct2/management/Research.cpp index f17a5877b8..8aaf119e70 100644 --- a/src/openrct2/management/Research.cpp +++ b/src/openrct2/management/Research.cpp @@ -657,7 +657,7 @@ void set_all_scenery_items_not_invented() { for (auto sceneryType = 0; sceneryType < SCENERY_TYPE_COUNT; sceneryType++) { - std::fill(std::begin(_researchedSceneryItems[sceneryType]), std::end(_researchedSceneryItems[sceneryType]), true); + std::fill(std::begin(_researchedSceneryItems[sceneryType]), std::end(_researchedSceneryItems[sceneryType]), false); } } diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index dfa6893fb1..1048b95a91 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -25,6 +25,7 @@ #include "../ui/WindowManager.h" #include "../util/SawyerCoding.h" #include "../world/EntityList.h" +#include "../world/EntityTweener.h" #include "../world/Location.hpp" #include "../world/Sprite.h" #include "network.h" @@ -36,18 +37,18 @@ // This string specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "0" +#define NETWORK_STREAM_VERSION "20" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION static Peep* _pickup_peep = nullptr; static int32_t _pickup_peep_old_x = LOCATION_NULL; +#ifndef DISABLE_NETWORK + // General chunk size is 63 KiB, this can not be any larger because the packet size is encoded // with uint16_t and needs some spare room for other data in the packet. static constexpr uint32_t CHUNK_SIZE = 1024 * 63; -#ifndef DISABLE_NETWORK - # include "../Cheats.h" # include "../ParkImporter.h" # include "../Version.h" @@ -504,12 +505,12 @@ void NetworkBase::UpdateServer() for (auto& connection : client_connection_list) { // This can be called multiple times before the connection is removed. - if (connection->IsDisconnected) + if (!connection->IsValid()) continue; if (!ProcessConnection(*connection)) { - connection->IsDisconnected = true; + connection->Disconnect(); } else { @@ -716,12 +717,6 @@ void NetworkBase::SendPacketToClients(const NetworkPacket& packet, bool front, b { for (auto& client_connection : client_connection_list) { - if (client_connection->IsDisconnected) - { - // Client will be removed at the end of the tick, don't bother. - continue; - } - if (gameCmd) { // If marked as game command we can not send the packet to connections that are not fully connected. @@ -826,7 +821,7 @@ void NetworkBase::KickPlayer(int32_t playerId) char str_disconnect_msg[256]; format_string(str_disconnect_msg, 256, STR_MULTIPLAYER_KICKED_REASON, nullptr); Server_Send_SETDISCONNECTMSG(*client_connection, str_disconnect_msg); - client_connection->Socket->Disconnect(); + client_connection->Disconnect(); break; } } @@ -841,7 +836,7 @@ void NetworkBase::ServerClientDisconnected() { if (GetMode() == NETWORK_MODE_CLIENT) { - _serverConnection->Socket->Disconnect(); + _serverConnection->Disconnect(); } } @@ -1356,7 +1351,7 @@ void NetworkBase::Server_Send_AUTH(NetworkConnection& connection) connection.QueuePacket(std::move(packet)); if (connection.AuthStatus != NetworkAuth::Ok && connection.AuthStatus != NetworkAuth::RequirePassword) { - connection.Socket->Disconnect(); + connection.Disconnect(); } } @@ -1382,7 +1377,7 @@ void NetworkBase::Server_Send_MAP(NetworkConnection* connection) if (connection) { connection->SetLastDisconnectReason(STR_MULTIPLAYER_CONNECTION_CLOSED); - connection->Socket->Disconnect(); + connection->Disconnect(); } return; } @@ -1461,7 +1456,7 @@ void NetworkBase::Server_Send_CHAT(const char* text, const std::vector& for (auto playerId : playerIds) { auto conn = GetPlayerConnection(playerId); - if (conn != nullptr && !conn->IsDisconnected) + if (conn != nullptr) { conn->QueuePacket(packet); } @@ -1674,7 +1669,7 @@ bool NetworkBase::ProcessConnection(NetworkConnection& connection) case NetworkReadPacket::Success: // done reading in packet ProcessPacket(connection, connection.InboundPacket); - if (connection.Socket == nullptr) + if (!connection.IsValid()) { return false; } @@ -1688,8 +1683,6 @@ bool NetworkBase::ProcessConnection(NetworkConnection& connection) } } while (packetStatus == NetworkReadPacket::Success); - connection.SendQueuedPackets(); - if (!connection.ReceivedPacketRecently()) { if (!connection.GetLastDisconnectReason()) @@ -1920,17 +1913,21 @@ void NetworkBase::ProcessDisconnectedClients() for (auto it = client_connection_list.begin(); it != client_connection_list.end();) { auto& connection = *it; - if (connection->IsDisconnected) - { - ServerClientDisconnected(connection); - RemovePlayer(connection); - it = client_connection_list.erase(it); - } - else + if (!connection->ShouldDisconnect) { it++; + continue; } + + // Make sure to send all remaining packets out before disconnecting. + connection->SendQueuedPackets(); + connection->Socket->Disconnect(); + + ServerClientDisconnected(connection); + RemovePlayer(connection); + + it = client_connection_list.erase(it); } } @@ -2133,7 +2130,7 @@ void NetworkBase::Client_Handle_TOKEN(NetworkConnection& connection, NetworkPack { log_error("Failed to load key %s", keyPath); connection.SetLastDisconnectReason(STR_MULTIPLAYER_VERIFICATION_FAILURE); - connection.Socket->Disconnect(); + connection.Disconnect(); return; } @@ -2150,7 +2147,7 @@ void NetworkBase::Client_Handle_TOKEN(NetworkConnection& connection, NetworkPack { log_error("Failed to sign server's challenge."); connection.SetLastDisconnectReason(STR_MULTIPLAYER_VERIFICATION_FAILURE); - connection.Socket->Disconnect(); + connection.Disconnect(); return; } // Don't keep private key in memory. There's no need and it may get leaked @@ -2221,37 +2218,37 @@ void NetworkBase::Client_Handle_AUTH(NetworkConnection& connection, NetworkPacke break; case NetworkAuth::BadName: connection.SetLastDisconnectReason(STR_MULTIPLAYER_BAD_PLAYER_NAME); - connection.Socket->Disconnect(); + connection.Disconnect(); break; case NetworkAuth::BadVersion: { const char* version = packet.ReadString(); connection.SetLastDisconnectReason(STR_MULTIPLAYER_INCORRECT_SOFTWARE_VERSION, &version); - connection.Socket->Disconnect(); + connection.Disconnect(); break; } case NetworkAuth::BadPassword: connection.SetLastDisconnectReason(STR_MULTIPLAYER_BAD_PASSWORD); - connection.Socket->Disconnect(); + connection.Disconnect(); break; case NetworkAuth::VerificationFailure: connection.SetLastDisconnectReason(STR_MULTIPLAYER_VERIFICATION_FAILURE); - connection.Socket->Disconnect(); + connection.Disconnect(); break; case NetworkAuth::Full: connection.SetLastDisconnectReason(STR_MULTIPLAYER_SERVER_FULL); - connection.Socket->Disconnect(); + connection.Disconnect(); break; case NetworkAuth::RequirePassword: context_open_window_view(WV_NETWORK_PASSWORD); break; case NetworkAuth::UnknownKeyDisallowed: connection.SetLastDisconnectReason(STR_MULTIPLAYER_UNKNOWN_KEY_DISALLOWED); - connection.Socket->Disconnect(); + connection.Disconnect(); break; default: connection.SetLastDisconnectReason(STR_MULTIPLAYER_RECEIVED_INVALID_DATA); - connection.Socket->Disconnect(); + connection.Disconnect(); break; } } @@ -2311,7 +2308,7 @@ void NetworkBase::Client_Handle_OBJECTS_LIST(NetworkConnection& connection, Netw if (totalObjects > OBJECT_ENTRY_COUNT) { connection.SetLastDisconnectReason(STR_MULTIPLAYER_SERVER_INVALID_REQUEST); - connection.Socket->Disconnect(); + connection.Disconnect(); log_warning("Server sent invalid amount of objects"); return; } @@ -2460,7 +2457,7 @@ void NetworkBase::Server_Handle_MAPREQUEST(NetworkConnection& connection, Networ if (size > OBJECT_ENTRY_COUNT) { connection.SetLastDisconnectReason(STR_MULTIPLAYER_CLIENT_INVALID_REQUEST); - connection.Socket->Disconnect(); + connection.Disconnect(); std::string playerName = "(unknown)"; if (connection.Player) { @@ -2500,6 +2497,8 @@ void NetworkBase::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacke { if (connection.AuthStatus != NetworkAuth::Ok) { + const char* hostName = connection.Socket->GetHostName(); + const char* gameversion = packet.ReadString(); const char* name = packet.ReadString(); const char* password = packet.ReadString(); @@ -2535,10 +2534,10 @@ void NetworkBase::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacke const std::string hash = connection.Key.PublicKeyHash(); if (verified) { - log_verbose("Signature verification ok. Hash %s", hash.c_str()); + log_verbose("Connection %s: Signature verification ok. Hash %s", hostName, hash.c_str()); if (gConfigNetwork.known_keys_only && _userManager.GetUserByHash(hash) == nullptr) { - log_verbose("Hash %s, not known", hash.c_str()); + log_verbose("Connection %s: Hash %s, not known", hostName, hash.c_str()); connection.AuthStatus = NetworkAuth::UnknownKeyDisallowed; } else @@ -2549,13 +2548,13 @@ void NetworkBase::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacke else { connection.AuthStatus = NetworkAuth::VerificationFailure; - log_verbose("Signature verification failed!"); + log_verbose("Connection %s: Signature verification failed!", hostName); } } catch (const std::exception&) { connection.AuthStatus = NetworkAuth::VerificationFailure; - log_verbose("Signature verification failed, invalid data!"); + log_verbose("Connection %s: Signature verification failed, invalid data!", hostName); } } @@ -2568,26 +2567,31 @@ void NetworkBase::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacke if (!gameversion || network_get_version() != gameversion) { connection.AuthStatus = NetworkAuth::BadVersion; + log_info("Connection %s: Bad version.", hostName); } else if (!name) { connection.AuthStatus = NetworkAuth::BadName; + log_info("Connection %s: Bad name.", connection.Socket->GetHostName()); } else if (!passwordless) { if ((!password || strlen(password) == 0) && !_password.empty()) { connection.AuthStatus = NetworkAuth::RequirePassword; + log_info("Connection %s: Requires password.", hostName); } else if (password && _password != password) { connection.AuthStatus = NetworkAuth::BadPassword; + log_info("Connection %s: Bad password.", hostName); } } if (static_cast(gConfigNetwork.maxplayers) <= player_list.size()) { connection.AuthStatus = NetworkAuth::Full; + log_info("Connection %s: Server is full.", hostName); } else if (connection.AuthStatus == NetworkAuth::Verified) { @@ -2600,12 +2604,10 @@ void NetworkBase::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacke else { connection.AuthStatus = NetworkAuth::VerificationFailure; + log_info("Connection %s: Denied by plugin.", hostName); } } - else if (connection.AuthStatus != NetworkAuth::RequirePassword) - { - log_error("Unknown failure (%d) while authenticating client", connection.AuthStatus); - } + Server_Send_AUTH(connection); } } @@ -2740,7 +2742,7 @@ bool NetworkBase::LoadMap(IStream* stream) gCheatsEnableChainLiftOnAllTrack = stream->ReadValue() != 0; gCheatsShowAllOperatingModes = stream->ReadValue() != 0; gCheatsShowVehiclesFromOtherTrackTypes = stream->ReadValue() != 0; - gCheatsFastLiftHill = stream->ReadValue() != 0; + gCheatsUnlockOperatingLimits = stream->ReadValue() != 0; gCheatsDisableBrakesFailure = stream->ReadValue() != 0; gCheatsDisableAllBreakdowns = stream->ReadValue() != 0; gCheatsBuildInPauseMode = stream->ReadValue() != 0; @@ -2754,6 +2756,7 @@ bool NetworkBase::LoadMap(IStream* stream) gCheatsDisableRideValueAging = stream->ReadValue() != 0; gConfigGeneral.show_real_names_of_guests = stream->ReadValue() != 0; gCheatsIgnoreResearchStatus = stream->ReadValue() != 0; + gAllowEarlyCompletionInNetworkPlay = stream->ReadValue() != 0; gLastAutoSaveUpdate = AUTOSAVE_PAUSE; result = true; @@ -2767,7 +2770,6 @@ bool NetworkBase::LoadMap(IStream* stream) bool NetworkBase::SaveMap(IStream* stream, const std::vector& objects) const { bool result = false; - map_reorganise_elements(); viewport_set_saved_view(); try { @@ -2789,7 +2791,7 @@ bool NetworkBase::SaveMap(IStream* stream, const std::vectorWriteValue(gCheatsEnableChainLiftOnAllTrack); stream->WriteValue(gCheatsShowAllOperatingModes); stream->WriteValue(gCheatsShowVehiclesFromOtherTrackTypes); - stream->WriteValue(gCheatsFastLiftHill); + stream->WriteValue(gCheatsUnlockOperatingLimits); stream->WriteValue(gCheatsDisableBrakesFailure); stream->WriteValue(gCheatsDisableAllBreakdowns); stream->WriteValue(gCheatsBuildInPauseMode); @@ -2803,6 +2805,7 @@ bool NetworkBase::SaveMap(IStream* stream, const std::vectorWriteValue(gCheatsDisableRideValueAging); stream->WriteValue(gConfigGeneral.show_real_names_of_guests); stream->WriteValue(gCheatsIgnoreResearchStatus); + stream->WriteValue(gConfigGeneral.allow_early_completion); result = true; } diff --git a/src/openrct2/network/NetworkConnection.cpp b/src/openrct2/network/NetworkConnection.cpp index fe6087a6c1..ffb0e46e1d 100644 --- a/src/openrct2/network/NetworkConnection.cpp +++ b/src/openrct2/network/NetworkConnection.cpp @@ -155,6 +155,16 @@ void NetworkConnection::QueuePacket(NetworkPacket&& packet, bool front) } } +void NetworkConnection::Disconnect() +{ + ShouldDisconnect = true; +} + +bool NetworkConnection::IsValid() const +{ + return !ShouldDisconnect && Socket->GetStatus() == SocketStatus::Connected; +} + void NetworkConnection::SendQueuedPackets() { while (!_outboundPackets.empty() && SendPacket(_outboundPackets.front())) diff --git a/src/openrct2/network/NetworkConnection.h b/src/openrct2/network/NetworkConnection.h index 293f01f5db..d5a94d5056 100644 --- a/src/openrct2/network/NetworkConnection.h +++ b/src/openrct2/network/NetworkConnection.h @@ -35,7 +35,7 @@ public: NetworkKey Key; std::vector Challenge; std::vector RequestedObjects; - bool IsDisconnected = false; + bool ShouldDisconnect = false; NetworkConnection(); ~NetworkConnection(); @@ -48,6 +48,11 @@ public: return QueuePacket(std::move(copy), front); } + // This will not immediately disconnect the client. The disconnect + // will happen post-tick. + void Disconnect(); + + bool IsValid() const; void SendQueuedPackets(); void ResetLastPacketTime(); bool ReceivedPacketRecently(); diff --git a/src/openrct2/network/Socket.cpp b/src/openrct2/network/Socket.cpp index 55035a77d4..2bf4d8dd30 100644 --- a/src/openrct2/network/Socket.cpp +++ b/src/openrct2/network/Socket.cpp @@ -541,6 +541,7 @@ public: { shutdown(_socket, SHUT_RDWR); } + _status = SocketStatus::Closed; } size_t SendData(const void* buffer, size_t size) override diff --git a/src/openrct2/object/BannerObject.cpp b/src/openrct2/object/BannerObject.cpp index 01e434b32a..9238f70ef5 100644 --- a/src/openrct2/object/BannerObject.cpp +++ b/src/openrct2/object/BannerObject.cpp @@ -20,10 +20,10 @@ void BannerObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) { stream->Seek(6, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.banner.scrolling_mode = stream->ReadValue(); - _legacyType.banner.flags = stream->ReadValue(); - _legacyType.banner.price = stream->ReadValue(); - _legacyType.banner.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.scrolling_mode = stream->ReadValue(); + _legacyType.flags = stream->ReadValue(); + _legacyType.price = stream->ReadValue(); + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; stream->Seek(2, OpenRCT2::STREAM_SEEK_CURRENT); GetStringTable().Read(context, stream, ObjectStringID::NAME); @@ -34,7 +34,7 @@ void BannerObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* st GetImageTable().Read(context, stream); // Validate properties - if (_legacyType.large_scenery.price <= 0) + if (_legacyType.price <= 0) { context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative."); } @@ -89,9 +89,9 @@ void BannerObject::ReadJson(IReadObjectContext* context, json_t& root) if (properties.is_object()) { - _legacyType.banner.scrolling_mode = Json::GetNumber(properties["scrollingMode"]); - _legacyType.banner.price = Json::GetNumber(properties["price"]); - _legacyType.banner.flags = Json::GetFlags( + _legacyType.scrolling_mode = Json::GetNumber(properties["scrollingMode"]); + _legacyType.price = Json::GetNumber(properties["price"]); + _legacyType.flags = Json::GetFlags( properties, { { "hasPrimaryColour", BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR }, diff --git a/src/openrct2/object/BannerObject.h b/src/openrct2/object/BannerObject.h index 1877ce6d25..4ee48e5bb5 100644 --- a/src/openrct2/object/BannerObject.h +++ b/src/openrct2/object/BannerObject.h @@ -16,7 +16,7 @@ class BannerObject final : public SceneryObject { private: - rct_scenery_entry _legacyType = {}; + BannerSceneryEntry _legacyType = {}; public: explicit BannerObject(const rct_object_entry& entry) diff --git a/src/openrct2/object/FootpathItemObject.cpp b/src/openrct2/object/FootpathItemObject.cpp index 9ef967b37e..cb8405f0eb 100644 --- a/src/openrct2/object/FootpathItemObject.cpp +++ b/src/openrct2/object/FootpathItemObject.cpp @@ -23,11 +23,11 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) { stream->Seek(6, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.path_bit.flags = stream->ReadValue(); - _legacyType.path_bit.draw_type = stream->ReadValue(); - _legacyType.path_bit.tool_id = static_cast(stream->ReadValue()); - _legacyType.path_bit.price = stream->ReadValue(); - _legacyType.path_bit.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.flags = stream->ReadValue(); + _legacyType.draw_type = static_cast(stream->ReadValue()); + _legacyType.tool_id = static_cast(stream->ReadValue()); + _legacyType.price = stream->ReadValue(); + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; stream->Seek(2, OpenRCT2::STREAM_SEEK_CURRENT); GetStringTable().Read(context, stream, ObjectStringID::NAME); @@ -38,7 +38,7 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre GetImageTable().Read(context, stream); // Validate properties - if (_legacyType.large_scenery.price <= 0) + if (_legacyType.price <= 0) { context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative."); } @@ -67,7 +67,7 @@ void FootpathItemObject::Load() _legacyType.name = language_allocate_object_string(GetName()); _legacyType.image = gfx_object_allocate_images(GetImageTable().GetImages(), GetImageTable().GetCount()); - _legacyType.path_bit.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; } void FootpathItemObject::Unload() @@ -85,17 +85,17 @@ void FootpathItemObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int3 gfx_draw_sprite(dpi, _legacyType.image, screenCoords - ScreenCoordsXY{ 22, 24 }, 0); } -static uint8_t ParseDrawType(const std::string& s) +static PathBitDrawType ParseDrawType(const std::string& s) { if (s == "lamp") - return PATH_BIT_DRAW_TYPE_LIGHTS; + return PathBitDrawType::Light; if (s == "bin") - return PATH_BIT_DRAW_TYPE_BINS; + return PathBitDrawType::Bin; if (s == "bench") - return PATH_BIT_DRAW_TYPE_BENCHES; + return PathBitDrawType::Bench; if (s == "fountain") - return PATH_BIT_DRAW_TYPE_JUMPING_FOUNTAINS; - return PATH_BIT_DRAW_TYPE_LIGHTS; + return PathBitDrawType::JumpingFountain; + return PathBitDrawType::Light; } void FootpathItemObject::ReadJson(IReadObjectContext* context, json_t& root) @@ -106,14 +106,14 @@ void FootpathItemObject::ReadJson(IReadObjectContext* context, json_t& root) if (properties.is_object()) { - _legacyType.path_bit.draw_type = ParseDrawType(Json::GetString(properties["renderAs"])); - _legacyType.path_bit.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::LamppostDown); - _legacyType.path_bit.price = Json::GetNumber(properties["price"]); + _legacyType.draw_type = ParseDrawType(Json::GetString(properties["renderAs"])); + _legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::LamppostDown); + _legacyType.price = Json::GetNumber(properties["price"]); SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"]))); // clang-format off - _legacyType.path_bit.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlags( properties, { { "isBin", PATH_BIT_FLAG_IS_BIN, Json::FlagType::Normal }, diff --git a/src/openrct2/object/FootpathItemObject.h b/src/openrct2/object/FootpathItemObject.h index 4bbcc8741a..53cdf51ad5 100644 --- a/src/openrct2/object/FootpathItemObject.h +++ b/src/openrct2/object/FootpathItemObject.h @@ -15,7 +15,7 @@ class FootpathItemObject final : public SceneryObject { private: - rct_scenery_entry _legacyType = {}; + PathBitEntry _legacyType = {}; public: explicit FootpathItemObject(const rct_object_entry& entry) diff --git a/src/openrct2/object/ImageTable.cpp b/src/openrct2/object/ImageTable.cpp index 0c70da90cc..ab2e033ba3 100644 --- a/src/openrct2/object/ImageTable.cpp +++ b/src/openrct2/object/ImageTable.cpp @@ -274,7 +274,7 @@ std::string ImageTable::FindLegacyObject(const std::string& name) { // Search recursively for any file with the target name (case insensitive) auto filter = Path::Combine(objectsPath, "*.dat"); - auto scanner = std::unique_ptr(Path::ScanDirectory(filter, true)); + auto scanner = Path::ScanDirectory(filter, true); while (scanner->Next()) { auto currentName = Path::GetFileName(scanner->GetPathRelative()); @@ -315,7 +315,7 @@ void ImageTable::Read(IReadObjectContext* context, OpenRCT2::IStream* stream) uint64_t remainingBytes = stream->GetLength() - stream->GetPosition() - headerTableSize; if (remainingBytes > imageDataSize) { - context->LogWarning(ObjectError::BadImageTable, "Image table size longer than expected."); + context->LogVerbose(ObjectError::BadImageTable, "Image table size longer than expected."); imageDataSize = static_cast(remainingBytes); } diff --git a/src/openrct2/object/LargeSceneryObject.cpp b/src/openrct2/object/LargeSceneryObject.cpp index aa31694dfc..fa96ac5535 100644 --- a/src/openrct2/object/LargeSceneryObject.cpp +++ b/src/openrct2/object/LargeSceneryObject.cpp @@ -26,13 +26,13 @@ void LargeSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) { stream->Seek(6, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.large_scenery.tool_id = static_cast(stream->ReadValue()); - _legacyType.large_scenery.flags = stream->ReadValue(); - _legacyType.large_scenery.price = stream->ReadValue(); - _legacyType.large_scenery.removal_price = stream->ReadValue(); + _legacyType.tool_id = static_cast(stream->ReadValue()); + _legacyType.flags = stream->ReadValue(); + _legacyType.price = stream->ReadValue(); + _legacyType.removal_price = stream->ReadValue(); stream->Seek(5, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.large_scenery.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; - _legacyType.large_scenery.scrolling_mode = stream->ReadValue(); + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.scrolling_mode = stream->ReadValue(); stream->Seek(4, OpenRCT2::STREAM_SEEK_CURRENT); GetStringTable().Read(context, stream, ObjectStringID::NAME); @@ -40,11 +40,12 @@ void LargeSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre rct_object_entry sgEntry = stream->ReadValue(); SetPrimarySceneryGroup(ObjectEntryDescriptor(sgEntry)); - if (_legacyType.large_scenery.flags & LARGE_SCENERY_FLAG_3D_TEXT) + if (_legacyType.flags & LARGE_SCENERY_FLAG_3D_TEXT) { - _3dFont = std::make_unique(); - stream->Read(_3dFont.get()); - _legacyType.large_scenery.text = _3dFont.get(); + rct_large_scenery_text _3dFontLegacy = {}; + stream->Read(&_3dFontLegacy); + _3dFont = std::make_unique(_3dFontLegacy); + _legacyType.text = _3dFont.get(); } _tiles = ReadTiles(stream); @@ -52,15 +53,15 @@ void LargeSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre GetImageTable().Read(context, stream); // Validate properties - if (_legacyType.large_scenery.price <= 0) + if (_legacyType.price <= 0) { context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative."); } - if (_legacyType.large_scenery.removal_price <= 0) + if (_legacyType.removal_price <= 0) { // Make sure you don't make a profit when placing then removing. - money16 reimbursement = _legacyType.large_scenery.removal_price; - if (reimbursement > _legacyType.large_scenery.price) + money16 reimbursement = _legacyType.removal_price; + if (reimbursement > _legacyType.price) { context->LogError(ObjectError::InvalidProperty, "Sell price can not be more than buy price."); } @@ -74,11 +75,11 @@ void LargeSceneryObject::Load() _baseImageId = gfx_object_allocate_images(GetImageTable().GetImages(), GetImageTable().GetCount()); _legacyType.image = _baseImageId; - _legacyType.large_scenery.tiles = _tiles.data(); + _legacyType.tiles = _tiles.data(); - if (_legacyType.large_scenery.flags & LARGE_SCENERY_FLAG_3D_TEXT) + if (_legacyType.flags & LARGE_SCENERY_FLAG_3D_TEXT) { - _legacyType.large_scenery.text_image = _legacyType.image; + _legacyType.text_image = _legacyType.image; if (_3dFont->flags & LARGE_SCENERY_TEXT_FLAG_VERTICAL) { _legacyType.image += _3dFont->num_images * 2; @@ -87,7 +88,7 @@ void LargeSceneryObject::Load() { _legacyType.image += _3dFont->num_images * 4; } - _legacyType.large_scenery.text = _3dFont.get(); + _legacyType.text = _3dFont.get(); } } @@ -129,20 +130,21 @@ void LargeSceneryObject::ReadJson(IReadObjectContext* context, json_t& root) if (properties.is_object()) { - _legacyType.large_scenery.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::StatueDown); + _legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::StatueDown); - _legacyType.large_scenery.price = Json::GetNumber(properties["price"]); - _legacyType.large_scenery.removal_price = Json::GetNumber(properties["removalPrice"]); + _legacyType.price = Json::GetNumber(properties["price"]); + _legacyType.removal_price = Json::GetNumber(properties["removalPrice"]); - _legacyType.large_scenery.scrolling_mode = Json::GetNumber(properties["scrollingMode"], SCROLLING_MODE_NONE); + _legacyType.scrolling_mode = Json::GetNumber(properties["scrollingMode"], SCROLLING_MODE_NONE); - _legacyType.large_scenery.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlags( properties, { { "hasPrimaryColour", LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR }, { "hasSecondaryColour", LARGE_SCENERY_FLAG_HAS_SECONDARY_COLOUR }, { "isAnimated", LARGE_SCENERY_FLAG_ANIMATED }, { "isPhotogenic", LARGE_SCENERY_FLAG_PHOTOGENIC }, + { "isTree", LARGE_SCENERY_FLAG_IS_TREE }, }); // Tiles @@ -157,7 +159,7 @@ void LargeSceneryObject::ReadJson(IReadObjectContext* context, json_t& root) if (j3dFont.is_object()) { _3dFont = ReadJson3dFont(j3dFont); - _legacyType.large_scenery.flags |= LARGE_SCENERY_FLAG_3D_TEXT; + _legacyType.flags |= LARGE_SCENERY_FLAG_3D_TEXT; } SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"]))); @@ -207,11 +209,11 @@ std::vector LargeSceneryObject::ReadJsonTiles(json_t& jT return tiles; } -std::unique_ptr LargeSceneryObject::ReadJson3dFont(json_t& j3dFont) +std::unique_ptr LargeSceneryObject::ReadJson3dFont(json_t& j3dFont) { Guard::Assert(j3dFont.is_object(), "LargeSceneryObject::ReadJson3dFont expects parameter j3dFont to be object"); - auto font = std::make_unique(); + auto font = std::make_unique(); auto jOffsets = j3dFont["offsets"]; if (jOffsets.is_array()) @@ -222,7 +224,7 @@ std::unique_ptr LargeSceneryObject::ReadJson3dFont(json_ } font->max_width = Json::GetNumber(j3dFont["maxWidth"]); - font->num_images = Json::GetNumber(j3dFont["numImages"]); + font->num_images = Json::GetNumber(j3dFont["numImages"]); font->flags = Json::GetFlags( j3dFont, @@ -242,14 +244,14 @@ std::unique_ptr LargeSceneryObject::ReadJson3dFont(json_ return font; } -std::vector LargeSceneryObject::ReadJsonOffsets(json_t& jOffsets) +std::vector LargeSceneryObject::ReadJsonOffsets(json_t& jOffsets) { - std::vector offsets; + std::vector offsets; for (auto& jOffset : jOffsets) { if (jOffset.is_object()) { - LocationXY16 offset = {}; + CoordsXY offset = {}; offset.x = Json::GetNumber(jOffset["x"]); offset.y = Json::GetNumber(jOffset["y"]); offsets.push_back(offset); diff --git a/src/openrct2/object/LargeSceneryObject.h b/src/openrct2/object/LargeSceneryObject.h index 00e33a4670..a39e387880 100644 --- a/src/openrct2/object/LargeSceneryObject.h +++ b/src/openrct2/object/LargeSceneryObject.h @@ -18,10 +18,10 @@ class LargeSceneryObject final : public SceneryObject { private: - rct_scenery_entry _legacyType = {}; + LargeSceneryEntry _legacyType = {}; uint32_t _baseImageId = 0; std::vector _tiles; - std::unique_ptr _3dFont; + std::unique_ptr _3dFont; public: explicit LargeSceneryObject(const rct_object_entry& entry) @@ -45,7 +45,7 @@ public: private: static std::vector ReadTiles(OpenRCT2::IStream* stream); static std::vector ReadJsonTiles(json_t& jTiles); - static std::unique_ptr ReadJson3dFont(json_t& j3dFont); - static std::vector ReadJsonOffsets(json_t& jOffsets); + static std::unique_ptr ReadJson3dFont(json_t& j3dFont); + static std::vector ReadJsonOffsets(json_t& jOffsets); static std::vector ReadJsonGlyphs(json_t& jGlyphs); }; diff --git a/src/openrct2/object/MusicObject.cpp b/src/openrct2/object/MusicObject.cpp index 825ef6098c..f61b6f65b2 100644 --- a/src/openrct2/object/MusicObject.cpp +++ b/src/openrct2/object/MusicObject.cpp @@ -106,6 +106,7 @@ void MusicObject::ParseTracks(IReadObjectContext& context, json_t& jTracks) { MusicObjectTrack track; track.Name = Json::GetString(jTrack["name"]); + track.Composer = Json::GetString(jTrack["composer"]); auto source = Json::GetString(jTrack["source"]); if (source.empty()) { diff --git a/src/openrct2/object/MusicObject.h b/src/openrct2/object/MusicObject.h index f25c448b00..43b519fadd 100644 --- a/src/openrct2/object/MusicObject.h +++ b/src/openrct2/object/MusicObject.h @@ -18,6 +18,7 @@ class MusicObjectTrack { public: std::string Name; + std::string Composer; ObjectAsset Asset; /** diff --git a/src/openrct2/object/Object.cpp b/src/openrct2/object/Object.cpp index 7c1d400bd4..6de569acdf 100644 --- a/src/openrct2/object/Object.cpp +++ b/src/openrct2/object/Object.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -20,6 +20,7 @@ #include "../localisation/StringIds.h" #include "../world/Scenery.h" #include "ObjectLimits.h" +#include "ObjectRepository.h" #include #include @@ -251,18 +252,11 @@ bool ObjectAsset::IsAvailable() const } } -size_t ObjectAsset::GetSize() const +uint64_t ObjectAsset::GetSize() const { if (_zipPath.empty()) { - try - { - return File::ReadAllBytes(_path).size(); - } - catch (...) - { - return 0; - } + return File::GetSize(_path); } else { @@ -301,6 +295,20 @@ std::unique_ptr ObjectAsset::GetStream() const return {}; } +ObjectEntryDescriptor::ObjectEntryDescriptor(const ObjectRepositoryItem& ori) +{ + if (!ori.Identifier.empty()) + { + Generation = ObjectGeneration::JSON; + Identifier = std::string(ori.Identifier); + } + else + { + Generation = ObjectGeneration::DAT; + Entry = ori.ObjectEntry; + } +} + #ifdef __WARN_SUGGEST_FINAL_METHODS__ # pragma GCC diagnostic pop #endif diff --git a/src/openrct2/object/Object.h b/src/openrct2/object/Object.h index 03c91e7966..0f3761986c 100644 --- a/src/openrct2/object/Object.h +++ b/src/openrct2/object/Object.h @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -22,6 +22,7 @@ using ObjectEntryIndex = uint16_t; constexpr const ObjectEntryIndex OBJECT_ENTRY_INDEX_NULL = std::numeric_limits::max(); +struct ObjectRepositoryItem; // First 0xF of rct_object_entry->flags enum class ObjectType : uint8_t @@ -180,6 +181,8 @@ struct ObjectEntryDescriptor Generation = ObjectGeneration::JSON; Identifier = std::string(newIdentifier); } + + explicit ObjectEntryDescriptor(const ObjectRepositoryItem& ori); }; struct IObjectRepository; @@ -220,7 +223,7 @@ public: } bool IsAvailable() const; - size_t GetSize() const; + uint64_t GetSize() const; std::unique_ptr GetStream() const; }; @@ -234,6 +237,7 @@ struct IReadObjectContext virtual std::vector GetData(std::string_view path) abstract; virtual ObjectAsset GetAsset(std::string_view path) abstract; + virtual void LogVerbose(ObjectError code, const utf8* text) abstract; virtual void LogWarning(ObjectError code, const utf8* text) abstract; virtual void LogError(ObjectError code, const utf8* text) abstract; }; diff --git a/src/openrct2/object/ObjectFactory.cpp b/src/openrct2/object/ObjectFactory.cpp index 98a045d31c..db5865e54a 100644 --- a/src/openrct2/object/ObjectFactory.cpp +++ b/src/openrct2/object/ObjectFactory.cpp @@ -105,10 +105,15 @@ private: std::string _identifier; bool _loadImages; std::string _basePath; + bool _wasVerbose = false; bool _wasWarning = false; bool _wasError = false; public: + bool WasVerbose() const + { + return _wasVerbose; + } bool WasWarning() const { return _wasWarning; @@ -161,6 +166,16 @@ public: return {}; } + void LogVerbose(ObjectError code, const utf8* text) override + { + _wasVerbose = true; + + if (!String::IsNullOrEmpty(text)) + { + log_verbose("[%s] Info (%d): %s", _identifier.c_str(), code, text); + } + } + void LogWarning(ObjectError code, const utf8* text) override { _wasWarning = true; diff --git a/src/openrct2/object/ObjectManager.cpp b/src/openrct2/object/ObjectManager.cpp index 079637aff0..b72f6c0bd8 100644 --- a/src/openrct2/object/ObjectManager.cpp +++ b/src/openrct2/object/ObjectManager.cpp @@ -480,37 +480,36 @@ private: { if (loadedObject != nullptr) { - rct_scenery_entry* sceneryEntry; switch (loadedObject->GetObjectType()) { case ObjectType::SmallScenery: { - sceneryEntry = static_cast(loadedObject->GetLegacyData()); - sceneryEntry->small_scenery.scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); + auto* sceneryEntry = static_cast(loadedObject->GetLegacyData()); + sceneryEntry->scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); break; } case ObjectType::LargeScenery: { - sceneryEntry = static_cast(loadedObject->GetLegacyData()); - sceneryEntry->large_scenery.scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); + auto* sceneryEntry = static_cast(loadedObject->GetLegacyData()); + sceneryEntry->scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); break; } case ObjectType::Walls: { - sceneryEntry = static_cast(loadedObject->GetLegacyData()); - sceneryEntry->wall.scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); + auto* wallEntry = static_cast(loadedObject->GetLegacyData()); + wallEntry->scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); break; } case ObjectType::Banners: { - sceneryEntry = static_cast(loadedObject->GetLegacyData()); - sceneryEntry->banner.scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); + auto* bannerEntry = static_cast(loadedObject->GetLegacyData()); + bannerEntry->scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); break; } case ObjectType::PathBits: { - sceneryEntry = static_cast(loadedObject->GetLegacyData()); - sceneryEntry->path_bit.scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); + auto* pathBitEntry = static_cast(loadedObject->GetLegacyData()); + pathBitEntry->scenery_tab_id = GetPrimarySceneryGroupEntryIndex(loadedObject.get()); break; } case ObjectType::SceneryGroup: @@ -816,26 +815,30 @@ Object* object_manager_get_loaded_object_by_index(size_t index) return loadedObject; } -Object* object_manager_get_loaded_object(const rct_object_entry* entry) +Object* object_manager_get_loaded_object(const ObjectEntryDescriptor& entry) { auto& objectManager = OpenRCT2::GetContext()->GetObjectManager(); - Object* loadedObject = objectManager.GetLoadedObject(ObjectEntryDescriptor(*entry)); + Object* loadedObject = objectManager.GetLoadedObject(entry); return loadedObject; } -ObjectEntryIndex object_manager_get_loaded_object_entry_index(const void* loadedObject) +ObjectEntryIndex object_manager_get_loaded_object_entry_index(const Object* loadedObject) { auto& objectManager = OpenRCT2::GetContext()->GetObjectManager(); - const Object* object = static_cast(loadedObject); - auto entryIndex = objectManager.GetLoadedObjectEntryIndex(object); + auto entryIndex = objectManager.GetLoadedObjectEntryIndex(loadedObject); return entryIndex; } -void* object_manager_load_object(const rct_object_entry* entry) +ObjectEntryIndex object_manager_get_loaded_object_entry_index(const ObjectEntryDescriptor& entry) +{ + return object_manager_get_loaded_object_entry_index(object_manager_get_loaded_object(entry)); +} + +Object* object_manager_load_object(const rct_object_entry* entry) { auto& objectManager = OpenRCT2::GetContext()->GetObjectManager(); Object* loadedObject = objectManager.LoadObject(entry); - return static_cast(loadedObject); + return loadedObject; } void object_manager_unload_objects(const std::vector& entries) diff --git a/src/openrct2/object/ObjectManager.h b/src/openrct2/object/ObjectManager.h index c8ee13d853..37f54cfb05 100644 --- a/src/openrct2/object/ObjectManager.h +++ b/src/openrct2/object/ObjectManager.h @@ -46,9 +46,10 @@ struct IObjectManager std::unique_ptr CreateObjectManager(IObjectRepository& objectRepository); Object* object_manager_get_loaded_object_by_index(size_t index); -Object* object_manager_get_loaded_object(const rct_object_entry* entry); -ObjectEntryIndex object_manager_get_loaded_object_entry_index(const void* loadedObject); -void* object_manager_load_object(const rct_object_entry* entry); +Object* object_manager_get_loaded_object(const ObjectEntryDescriptor& entry); +ObjectEntryIndex object_manager_get_loaded_object_entry_index(const Object* loadedObject); +ObjectEntryIndex object_manager_get_loaded_object_entry_index(const ObjectEntryDescriptor& entry); +Object* object_manager_load_object(const rct_object_entry* entry); void object_manager_unload_objects(const std::vector& entries); void object_manager_unload_all_objects(); rct_string_id object_manager_get_source_game_string(const ObjectSourceGame sourceGame); diff --git a/src/openrct2/object/RideObject.cpp b/src/openrct2/object/RideObject.cpp index 7024fd4d86..b475785b5b 100644 --- a/src/openrct2/object/RideObject.cpp +++ b/src/openrct2/object/RideObject.cpp @@ -216,9 +216,9 @@ void RideObject::Load() { int32_t b = vehicleEntry->base_num_frames * 32; - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_11) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES) b /= 2; - if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_15) + if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_USE_4_ROTATION_FRAMES) b /= 8; image_index += b; @@ -338,10 +338,10 @@ void RideObject::Load() cur_vehicle_images_offset = image_index + vehicleEntry->no_seating_rows * vehicleEntry->no_vehicle_images; // 0x6DEB0D - if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_10)) + if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_RECALCULATE_SPRITE_BOUNDS)) { int32_t num_images = cur_vehicle_images_offset - vehicleEntry->base_image_id; - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_13) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SPRITE_BOUNDS_INCLUDE_INVERTED_SET) { num_images *= 2; } @@ -497,9 +497,10 @@ uint8_t RideObject::CalculateNumHorizontalFrames(const rct_ride_entry_vehicle* v uint8_t numHorizontalFrames; if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SWINGING) { - if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_21) && !(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SLIDE_SWING)) + if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SUSPENDED_SWING) + && !(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SLIDE_SWING)) { - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_25) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING) { numHorizontalFrames = 3; } @@ -508,7 +509,9 @@ uint8_t RideObject::CalculateNumHorizontalFrames(const rct_ride_entry_vehicle* v numHorizontalFrames = 5; } } - else if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_21) || !(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SLIDE_SWING)) + else if ( + !(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SUSPENDED_SWING) + || !(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SLIDE_SWING)) { numHorizontalFrames = 7; } @@ -786,7 +789,7 @@ rct_ride_entry_vehicle RideObject::ReadJsonCar(json_t& jCar) auto jFrames = jCar["frames"]; if (jFrames.is_object()) { - car.sprite_flags = Json::GetFlags( + car.sprite_flags = Json::GetFlags( jFrames, { { "flat", VEHICLE_SPRITE_FLAG_FLAT }, @@ -805,27 +808,58 @@ rct_ride_entry_vehicle RideObject::ReadJsonCar(json_t& jCar) { "corkscrews", VEHICLE_SPRITE_FLAG_CORKSCREWS }, { "restraintAnimation", VEHICLE_SPRITE_FLAG_RESTRAINT_ANIMATION }, { "curvedLiftHill", VEHICLE_SPRITE_FLAG_CURVED_LIFT_HILL }, - { "VEHICLE_SPRITE_FLAG_15", VEHICLE_SPRITE_FLAG_15 }, + { "VEHICLE_SPRITE_FLAG_15", VEHICLE_SPRITE_FLAG_USE_4_ROTATION_FRAMES }, }); } car.flags |= Json::GetFlags( jCar, { + { "isPoweredRideWithUnrestrictedGravity", VEHICLE_ENTRY_FLAG_POWERED_RIDE_UNRESTRICTED_GRAVITY }, + { "hasNoUpstopWheels", VEHICLE_ENTRY_FLAG_NO_UPSTOP_WHEELS }, + { "hasNoUpstopWheelsBobsleigh", VEHICLE_ENTRY_FLAG_NO_UPSTOP_BOBSLEIGH }, + { "isMiniGolf", VEHICLE_ENTRY_FLAG_MINI_GOLF }, + { "isReverserBogie", VEHICLE_ENTRY_FLAG_REVERSER_BOGIE }, + { "isReverserPassengerCar", VEHICLE_ENTRY_FLAG_REVERSER_PASSENGER_CAR }, + { "hasInvertedSpriteSet", VEHICLE_ENTRY_FLAG_HAS_INVERTED_SPRITE_SET }, + { "hasDodgemInUseLights", VEHICLE_ENTRY_FLAG_DODGEM_INUSE_LIGHTS }, + { "hasAdditionalColour2", VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_2 }, + { "recalculateSpriteBounds", VEHICLE_ENTRY_FLAG_RECALCULATE_SPRITE_BOUNDS }, + { "VEHICLE_ENTRY_FLAG_11", VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES }, + { "overrideNumberOfVerticalFrames", VEHICLE_ENTRY_FLAG_OVERRIDE_NUM_VERTICAL_FRAMES }, + { "spriteBoundsIncludeInvertedSet", VEHICLE_ENTRY_FLAG_SPRITE_BOUNDS_INCLUDE_INVERTED_SET }, + { "hasAdditionalSpinningFrames", VEHICLE_ENTRY_FLAG_SPINNING_ADDITIONAL_FRAMES }, + { "isLift", VEHICLE_ENTRY_FLAG_LIFT }, + { "hasAdditionalColour1", VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_1 }, + { "hasSwinging", VEHICLE_ENTRY_FLAG_SWINGING }, + { "hasSpinning", VEHICLE_ENTRY_FLAG_SPINNING }, + { "isPowered", VEHICLE_ENTRY_FLAG_POWERED }, + { "hasScreamingRiders", VEHICLE_ENTRY_FLAG_RIDERS_SCREAM }, + { "useSuspendedSwing", VEHICLE_ENTRY_FLAG_SUSPENDED_SWING }, + { "useBoatHireCollisionDetection", VEHICLE_ENTRY_FLAG_BOAT_HIRE_COLLISION_DETECTION }, + { "hasVehicleAnimation", VEHICLE_ENTRY_FLAG_VEHICLE_ANIMATION }, + { "hasRiderAnimation", VEHICLE_ENTRY_FLAG_RIDER_ANIMATION }, + { "useWoodenWildMouseSwing", VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING }, + { "useSlideSwing", VEHICLE_ENTRY_FLAG_SLIDE_SWING }, + { "isChairlift", VEHICLE_ENTRY_FLAG_CHAIRLIFT }, + { "isWaterRide", VEHICLE_ENTRY_FLAG_WATER_RIDE }, + { "isGoKart", VEHICLE_ENTRY_FLAG_GO_KART }, + { "useDodgemCarPlacement", VEHICLE_ENTRY_FLAG_DODGEM_CAR_PLACEMENT }, + + // Obsolete flags that have been replaced with named and camelCased values, but kept for now for backward + // compatibility. { "VEHICLE_ENTRY_FLAG_POWERED_RIDE_UNRESTRICTED_GRAVITY", VEHICLE_ENTRY_FLAG_POWERED_RIDE_UNRESTRICTED_GRAVITY }, { "VEHICLE_ENTRY_FLAG_NO_UPSTOP_WHEELS", VEHICLE_ENTRY_FLAG_NO_UPSTOP_WHEELS }, { "VEHICLE_ENTRY_FLAG_NO_UPSTOP_BOBSLEIGH", VEHICLE_ENTRY_FLAG_NO_UPSTOP_BOBSLEIGH }, { "VEHICLE_ENTRY_FLAG_MINI_GOLF", VEHICLE_ENTRY_FLAG_MINI_GOLF }, - { "VEHICLE_ENTRY_FLAG_4", VEHICLE_ENTRY_FLAG_4 }, - { "VEHICLE_ENTRY_FLAG_5", VEHICLE_ENTRY_FLAG_5 }, + { "VEHICLE_ENTRY_FLAG_4", VEHICLE_ENTRY_FLAG_REVERSER_BOGIE }, + { "VEHICLE_ENTRY_FLAG_5", VEHICLE_ENTRY_FLAG_REVERSER_PASSENGER_CAR }, { "VEHICLE_ENTRY_FLAG_HAS_INVERTED_SPRITE_SET", VEHICLE_ENTRY_FLAG_HAS_INVERTED_SPRITE_SET }, { "VEHICLE_ENTRY_FLAG_DODGEM_INUSE_LIGHTS", VEHICLE_ENTRY_FLAG_DODGEM_INUSE_LIGHTS }, - { "VEHICLE_ENTRY_FLAG_ALLOW_DOORS_DEPRECATED", VEHICLE_ENTRY_FLAG_ALLOW_DOORS_DEPRECATED }, { "VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_2", VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_2 }, - { "VEHICLE_ENTRY_FLAG_10", VEHICLE_ENTRY_FLAG_10 }, - { "VEHICLE_ENTRY_FLAG_11", VEHICLE_ENTRY_FLAG_11 }, + { "VEHICLE_ENTRY_FLAG_10", VEHICLE_ENTRY_FLAG_RECALCULATE_SPRITE_BOUNDS }, { "VEHICLE_ENTRY_FLAG_OVERRIDE_NUM_VERTICAL_FRAMES", VEHICLE_ENTRY_FLAG_OVERRIDE_NUM_VERTICAL_FRAMES }, - { "VEHICLE_ENTRY_FLAG_13", VEHICLE_ENTRY_FLAG_13 }, + { "VEHICLE_ENTRY_FLAG_13", VEHICLE_ENTRY_FLAG_SPRITE_BOUNDS_INCLUDE_INVERTED_SET }, { "VEHICLE_ENTRY_FLAG_SPINNING_ADDITIONAL_FRAMES", VEHICLE_ENTRY_FLAG_SPINNING_ADDITIONAL_FRAMES }, { "VEHICLE_ENTRY_FLAG_LIFT", VEHICLE_ENTRY_FLAG_LIFT }, { "VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_1", VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_1 }, @@ -833,11 +867,11 @@ rct_ride_entry_vehicle RideObject::ReadJsonCar(json_t& jCar) { "VEHICLE_ENTRY_FLAG_SPINNING", VEHICLE_ENTRY_FLAG_SPINNING }, { "VEHICLE_ENTRY_FLAG_POWERED", VEHICLE_ENTRY_FLAG_POWERED }, { "VEHICLE_ENTRY_FLAG_RIDERS_SCREAM", VEHICLE_ENTRY_FLAG_RIDERS_SCREAM }, - { "VEHICLE_ENTRY_FLAG_21", VEHICLE_ENTRY_FLAG_21 }, + { "VEHICLE_ENTRY_FLAG_21", VEHICLE_ENTRY_FLAG_SUSPENDED_SWING }, { "VEHICLE_ENTRY_FLAG_BOAT_HIRE_COLLISION_DETECTION", VEHICLE_ENTRY_FLAG_BOAT_HIRE_COLLISION_DETECTION }, { "VEHICLE_ENTRY_FLAG_VEHICLE_ANIMATION", VEHICLE_ENTRY_FLAG_VEHICLE_ANIMATION }, { "VEHICLE_ENTRY_FLAG_RIDER_ANIMATION", VEHICLE_ENTRY_FLAG_RIDER_ANIMATION }, - { "VEHICLE_ENTRY_FLAG_25", VEHICLE_ENTRY_FLAG_25 }, + { "VEHICLE_ENTRY_FLAG_25", VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING }, { "VEHICLE_ENTRY_FLAG_SLIDE_SWING", VEHICLE_ENTRY_FLAG_SLIDE_SWING }, { "VEHICLE_ENTRY_FLAG_CHAIRLIFT", VEHICLE_ENTRY_FLAG_CHAIRLIFT }, { "VEHICLE_ENTRY_FLAG_WATER_RIDE", VEHICLE_ENTRY_FLAG_WATER_RIDE }, diff --git a/src/openrct2/object/SceneryGroupObject.cpp b/src/openrct2/object/SceneryGroupObject.cpp index 20deaaa397..aa6a8bfd20 100644 --- a/src/openrct2/object/SceneryGroupObject.cpp +++ b/src/openrct2/object/SceneryGroupObject.cpp @@ -176,3 +176,8 @@ std::vector SceneryGroupObject::ReadJsonEntries(json_t& j } return entries; } + +uint16_t SceneryGroupObject::GetNumIncludedObjects() const +{ + return static_cast(_items.size()); +} diff --git a/src/openrct2/object/SceneryGroupObject.h b/src/openrct2/object/SceneryGroupObject.h index e3e9d889a2..09ed0e6256 100644 --- a/src/openrct2/object/SceneryGroupObject.h +++ b/src/openrct2/object/SceneryGroupObject.h @@ -45,6 +45,8 @@ public: void SetRepositoryItem(ObjectRepositoryItem* item) const override; + uint16_t GetNumIncludedObjects() const; + private: static std::vector ReadItems(OpenRCT2::IStream* stream); static uint32_t ReadJsonEntertainerCostumes(json_t& jCostumes); diff --git a/src/openrct2/object/SmallSceneryObject.cpp b/src/openrct2/object/SmallSceneryObject.cpp index 8ef813df5f..a9aa6d30fd 100644 --- a/src/openrct2/object/SmallSceneryObject.cpp +++ b/src/openrct2/object/SmallSceneryObject.cpp @@ -26,16 +26,16 @@ void SmallSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) { stream->Seek(6, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.small_scenery.flags = stream->ReadValue(); - _legacyType.small_scenery.height = stream->ReadValue(); - _legacyType.small_scenery.tool_id = static_cast(stream->ReadValue()); - _legacyType.small_scenery.price = stream->ReadValue(); - _legacyType.small_scenery.removal_price = stream->ReadValue(); + _legacyType.flags = stream->ReadValue(); + _legacyType.height = stream->ReadValue(); + _legacyType.tool_id = static_cast(stream->ReadValue()); + _legacyType.price = stream->ReadValue(); + _legacyType.removal_price = stream->ReadValue(); stream->Seek(4, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.small_scenery.animation_delay = stream->ReadValue(); - _legacyType.small_scenery.animation_mask = stream->ReadValue(); - _legacyType.small_scenery.num_frames = stream->ReadValue(); - _legacyType.small_scenery.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.animation_delay = stream->ReadValue(); + _legacyType.animation_mask = stream->ReadValue(); + _legacyType.num_frames = stream->ReadValue(); + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; GetStringTable().Read(context, stream, ObjectStringID::NAME); @@ -47,23 +47,23 @@ void SmallSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre _frameOffsets = ReadFrameOffsets(stream); } // This crude method was used by RCT2. JSON objects have a flag for this property. - if (_legacyType.small_scenery.height > 64) + if (_legacyType.height > 64) { - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_IS_TREE; + _legacyType.flags |= SMALL_SCENERY_FLAG_IS_TREE; } GetImageTable().Read(context, stream); // Validate properties - if (_legacyType.small_scenery.price <= 0) + if (_legacyType.price <= 0) { context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative."); } - if (_legacyType.small_scenery.removal_price <= 0) + if (_legacyType.removal_price <= 0) { // Make sure you don't make a profit when placing then removing. - money16 reimbursement = _legacyType.small_scenery.removal_price; - if (reimbursement > _legacyType.small_scenery.price) + money16 reimbursement = _legacyType.removal_price; + if (reimbursement > _legacyType.price) { context->LogError(ObjectError::InvalidProperty, "Sell price can not be more than buy price."); } @@ -76,11 +76,11 @@ void SmallSceneryObject::Load() _legacyType.name = language_allocate_object_string(GetName()); _legacyType.image = gfx_object_allocate_images(GetImageTable().GetImages(), GetImageTable().GetCount()); - _legacyType.small_scenery.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; if (scenery_small_entry_has_flag(&_legacyType, SMALL_SCENERY_FLAG_HAS_FRAME_OFFSETS)) { - _legacyType.small_scenery.frame_offsets = _frameOffsets.data(); + _legacyType.frame_offsets = _frameOffsets.data(); } PerformFixes(); @@ -107,7 +107,7 @@ void SmallSceneryObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int3 } } - auto screenCoords = ScreenCoordsXY{ width / 2, (height / 2) + (_legacyType.small_scenery.height / 2) }; + auto screenCoords = ScreenCoordsXY{ width / 2, (height / 2) + (_legacyType.height / 2) }; screenCoords.y = std::min(screenCoords.y, height - 16); if ((scenery_small_entry_has_flag(&_legacyType, SMALL_SCENERY_FLAG_FULL_TILE)) @@ -165,7 +165,7 @@ void SmallSceneryObject::PerformFixes() { SetPrimarySceneryGroup(scgWalls); - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_BUILD_DIRECTLY_ONTOP; + _legacyType.flags |= SMALL_SCENERY_FLAG_BUILD_DIRECTLY_ONTOP; } // ToonTowner's Pirate roofs. Make them show up in the Pirate Theming. @@ -231,15 +231,15 @@ void SmallSceneryObject::ReadJson(IReadObjectContext* context, json_t& root) if (properties.is_object()) { - _legacyType.small_scenery.height = Json::GetNumber(properties["height"]); - _legacyType.small_scenery.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::StatueDown); - _legacyType.small_scenery.price = Json::GetNumber(properties["price"]); - _legacyType.small_scenery.removal_price = Json::GetNumber(properties["removalPrice"]); - _legacyType.small_scenery.animation_delay = Json::GetNumber(properties["animationDelay"]); - _legacyType.small_scenery.animation_mask = Json::GetNumber(properties["animationMask"]); - _legacyType.small_scenery.num_frames = Json::GetNumber(properties["numFrames"]); + _legacyType.height = Json::GetNumber(properties["height"]); + _legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::StatueDown); + _legacyType.price = Json::GetNumber(properties["price"]); + _legacyType.removal_price = Json::GetNumber(properties["removalPrice"]); + _legacyType.animation_delay = Json::GetNumber(properties["animationDelay"]); + _legacyType.animation_mask = Json::GetNumber(properties["animationMask"]); + _legacyType.num_frames = Json::GetNumber(properties["numFrames"]); - _legacyType.small_scenery.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlags( properties, { { "SMALL_SCENERY_FLAG_VOFFSET_CENTRE", SMALL_SCENERY_FLAG_VOFFSET_CENTRE }, @@ -275,21 +275,21 @@ void SmallSceneryObject::ReadJson(IReadObjectContext* context, json_t& root) auto quarters = shape.substr(0, 3); if (quarters == "2/4") { - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_FULL_TILE | SMALL_SCENERY_FLAG_HALF_SPACE; + _legacyType.flags |= SMALL_SCENERY_FLAG_FULL_TILE | SMALL_SCENERY_FLAG_HALF_SPACE; } else if (quarters == "3/4") { - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_FULL_TILE | SMALL_SCENERY_FLAG_THREE_QUARTERS; + _legacyType.flags |= SMALL_SCENERY_FLAG_FULL_TILE | SMALL_SCENERY_FLAG_THREE_QUARTERS; } else if (quarters == "4/4") { - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_FULL_TILE; + _legacyType.flags |= SMALL_SCENERY_FLAG_FULL_TILE; } if (shape.size() >= 5) { if ((shape.substr(3) == "+D")) { - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_DIAGONAL; + _legacyType.flags |= SMALL_SCENERY_FLAG_DIAGONAL; } } } @@ -298,7 +298,7 @@ void SmallSceneryObject::ReadJson(IReadObjectContext* context, json_t& root) if (jFrameOffsets.is_array()) { _frameOffsets = ReadJsonFrameOffsets(jFrameOffsets); - _legacyType.small_scenery.flags |= SMALL_SCENERY_FLAG_HAS_FRAME_OFFSETS; + _legacyType.flags |= SMALL_SCENERY_FLAG_HAS_FRAME_OFFSETS; } SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"]))); diff --git a/src/openrct2/object/SmallSceneryObject.h b/src/openrct2/object/SmallSceneryObject.h index 94289e14f5..48c8bdb2d7 100644 --- a/src/openrct2/object/SmallSceneryObject.h +++ b/src/openrct2/object/SmallSceneryObject.h @@ -17,7 +17,7 @@ class SmallSceneryObject final : public SceneryObject { private: - rct_scenery_entry _legacyType = {}; + SmallSceneryEntry _legacyType = {}; std::vector _frameOffsets; public: diff --git a/src/openrct2/object/TerrainEdgeObject.cpp b/src/openrct2/object/TerrainEdgeObject.cpp index 3e26972f03..dfb1c532e3 100644 --- a/src/openrct2/object/TerrainEdgeObject.cpp +++ b/src/openrct2/object/TerrainEdgeObject.cpp @@ -9,11 +9,13 @@ #include "TerrainEdgeObject.h" +#include "../Context.h" #include "../core/IStream.hpp" #include "../core/Json.hpp" #include "../core/String.hpp" #include "../drawing/Drawing.h" #include "../localisation/Localisation.h" +#include "ObjectManager.h" void TerrainEdgeObject::Load() { @@ -58,3 +60,10 @@ void TerrainEdgeObject::ReadJson(IReadObjectContext* context, json_t& root) PopulateTablesFromJson(context, root); NumImagesLoaded = GetImageTable().GetCount(); } + +TerrainEdgeObject* TerrainEdgeObject::GetById(ObjectEntryIndex entryIndex) +{ + auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); + auto obj = objMgr.GetLoadedObject(ObjectType::TerrainSurface, entryIndex); + return obj != nullptr ? static_cast(obj) : nullptr; +} diff --git a/src/openrct2/object/TerrainEdgeObject.h b/src/openrct2/object/TerrainEdgeObject.h index f275736b7e..d55fb84d42 100644 --- a/src/openrct2/object/TerrainEdgeObject.h +++ b/src/openrct2/object/TerrainEdgeObject.h @@ -31,4 +31,6 @@ public: void Unload() override; void DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t height) const override; + + static TerrainEdgeObject* GetById(ObjectEntryIndex entryIndex); }; diff --git a/src/openrct2/object/TerrainSurfaceObject.cpp b/src/openrct2/object/TerrainSurfaceObject.cpp index 26dda7ca95..666cb41c49 100644 --- a/src/openrct2/object/TerrainSurfaceObject.cpp +++ b/src/openrct2/object/TerrainSurfaceObject.cpp @@ -11,12 +11,14 @@ #include "TerrainSurfaceObject.h" +#include "../Context.h" #include "../core/IStream.hpp" #include "../core/Json.hpp" #include "../core/String.hpp" #include "../drawing/Drawing.h" #include "../localisation/Localisation.h" #include "../world/Location.hpp" +#include "ObjectManager.h" void TerrainSurfaceObject::Load() { @@ -145,3 +147,10 @@ uint32_t TerrainSurfaceObject::GetImageId( } return EntryBaseImageId + (result * NUM_IMAGES_IN_ENTRY) + offset; } + +TerrainSurfaceObject* TerrainSurfaceObject::GetById(ObjectEntryIndex entryIndex) +{ + auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); + auto obj = objMgr.GetLoadedObject(ObjectType::TerrainSurface, entryIndex); + return obj != nullptr ? static_cast(obj) : nullptr; +} diff --git a/src/openrct2/object/TerrainSurfaceObject.h b/src/openrct2/object/TerrainSurfaceObject.h index 85a53afa97..c273ad42d6 100644 --- a/src/openrct2/object/TerrainSurfaceObject.h +++ b/src/openrct2/object/TerrainSurfaceObject.h @@ -69,4 +69,6 @@ public: uint32_t GetImageId( const CoordsXY& position, int32_t length, int32_t rotation, int32_t offset, bool grid, bool underground) const; + + static TerrainSurfaceObject* GetById(ObjectEntryIndex entryIndex); }; diff --git a/src/openrct2/object/WallObject.cpp b/src/openrct2/object/WallObject.cpp index e4b38d0768..33a25e817b 100644 --- a/src/openrct2/object/WallObject.cpp +++ b/src/openrct2/object/WallObject.cpp @@ -20,14 +20,14 @@ void WallObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) { stream->Seek(6, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.wall.tool_id = static_cast(stream->ReadValue()); - _legacyType.wall.flags = stream->ReadValue(); - _legacyType.wall.height = stream->ReadValue(); - _legacyType.wall.flags2 = stream->ReadValue(); - _legacyType.wall.price = stream->ReadValue(); - _legacyType.wall.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; + _legacyType.tool_id = static_cast(stream->ReadValue()); + _legacyType.flags = stream->ReadValue(); + _legacyType.height = stream->ReadValue(); + _legacyType.flags2 = stream->ReadValue(); + _legacyType.price = stream->ReadValue(); + _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; stream->Seek(1, OpenRCT2::STREAM_SEEK_CURRENT); - _legacyType.wall.scrolling_mode = stream->ReadValue(); + _legacyType.scrolling_mode = stream->ReadValue(); GetStringTable().Read(context, stream, ObjectStringID::NAME); @@ -37,7 +37,7 @@ void WallObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stre GetImageTable().Read(context, stream); // Validate properties - if (_legacyType.wall.price <= 0) + if (_legacyType.price <= 0) { context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative."); } @@ -46,8 +46,8 @@ void WallObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stre auto identifier = GetLegacyIdentifier(); if (identifier == "XXWLBR03") { - _legacyType.wall.flags2 &= ~WALL_SCENERY_2_DOOR_SOUND_MASK; - _legacyType.wall.flags2 |= (1u << WALL_SCENERY_2_DOOR_SOUND_SHIFT) & WALL_SCENERY_2_DOOR_SOUND_MASK; + _legacyType.flags2 &= ~WALL_SCENERY_2_DOOR_SOUND_MASK; + _legacyType.flags2 |= (1u << WALL_SCENERY_2_DOOR_SOUND_SHIFT) & WALL_SCENERY_2_DOOR_SOUND_MASK; } } @@ -72,22 +72,22 @@ void WallObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t heig auto screenCoords = ScreenCoordsXY{ width / 2, height / 2 }; screenCoords.x += 14; - screenCoords.y += (_legacyType.wall.height * 2) + 16; + screenCoords.y += (_legacyType.height * 2) + 16; uint32_t imageId = 0x20D00000 | _legacyType.image; - if (_legacyType.wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) + if (_legacyType.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) { imageId |= 0x92000000; } gfx_draw_sprite(dpi, imageId, screenCoords, 0); - if (_legacyType.wall.flags & WALL_SCENERY_HAS_GLASS) + if (_legacyType.flags & WALL_SCENERY_HAS_GLASS) { imageId = _legacyType.image + 0x44500006; gfx_draw_sprite(dpi, imageId, screenCoords, 0); } - else if (_legacyType.wall.flags & WALL_SCENERY_IS_DOOR) + else if (_legacyType.flags & WALL_SCENERY_IS_DOOR) { imageId++; gfx_draw_sprite(dpi, imageId, screenCoords, 0); @@ -102,16 +102,16 @@ void WallObject::ReadJson(IReadObjectContext* context, json_t& root) if (properties.is_object()) { - _legacyType.wall.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::FenceDown); - _legacyType.wall.height = Json::GetNumber(properties["height"]); - _legacyType.wall.price = Json::GetNumber(properties["price"]); + _legacyType.tool_id = Cursor::FromString(Json::GetString(properties["cursor"]), CursorID::FenceDown); + _legacyType.height = Json::GetNumber(properties["height"]); + _legacyType.price = Json::GetNumber(properties["price"]); - _legacyType.wall.scrolling_mode = Json::GetNumber(properties["scrollingMode"], SCROLLING_MODE_NONE); + _legacyType.scrolling_mode = Json::GetNumber(properties["scrollingMode"], SCROLLING_MODE_NONE); SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"]))); // clang-format off - _legacyType.wall.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlags( properties, { { "hasPrimaryColour", WALL_SCENERY_HAS_PRIMARY_COLOUR, Json::FlagType::Normal }, @@ -119,13 +119,14 @@ void WallObject::ReadJson(IReadObjectContext* context, json_t& root) { "hasSecondaryColour", WALL_SCENERY_HAS_SECONDARY_COLOUR, Json::FlagType::Normal }, { "hasTernaryColour", WALL_SCENERY_HAS_TERNARY_COLOUR, Json::FlagType::Normal }, { "hasGlass", WALL_SCENERY_HAS_GLASS, Json::FlagType::Normal }, - { "isBanner", WALL_SCENERY_IS_BANNER, Json::FlagType::Normal }, + { "isBanner", WALL_SCENERY_IS_DOUBLE_SIDED, Json::FlagType::Normal }, + { "isDoubleSided", WALL_SCENERY_IS_DOUBLE_SIDED, Json::FlagType::Normal }, { "isDoor", WALL_SCENERY_IS_DOOR, Json::FlagType::Normal }, { "isLongDoorAnimation", WALL_SCENERY_LONG_DOOR_ANIMATION, Json::FlagType::Normal }, }); // clang-format on - _legacyType.wall.flags2 = Json::GetFlags( + _legacyType.flags2 = Json::GetFlags( properties, { { "isOpaque", WALL_SCENERY_2_IS_OPAQUE }, @@ -134,12 +135,12 @@ void WallObject::ReadJson(IReadObjectContext* context, json_t& root) // HACK WALL_SCENERY_HAS_PRIMARY_COLOUR actually means, has any colour but we simplify the // JSON and handle this on load. We should change code base in future to reflect the JSON. - if (!(_legacyType.wall.flags & WALL_SCENERY_HAS_PRIMARY_COLOUR)) + if (!(_legacyType.flags & WALL_SCENERY_HAS_PRIMARY_COLOUR)) { - if (_legacyType.wall.flags & (WALL_SCENERY_HAS_SECONDARY_COLOUR | WALL_SCENERY_HAS_TERNARY_COLOUR)) + if (_legacyType.flags & (WALL_SCENERY_HAS_SECONDARY_COLOUR | WALL_SCENERY_HAS_TERNARY_COLOUR)) { - _legacyType.wall.flags |= WALL_SCENERY_HAS_PRIMARY_COLOUR; - _legacyType.wall.flags2 |= WALL_SCENERY_2_NO_SELECT_PRIMARY_COLOUR; + _legacyType.flags |= WALL_SCENERY_HAS_PRIMARY_COLOUR; + _legacyType.flags2 |= WALL_SCENERY_2_NO_SELECT_PRIMARY_COLOUR; } } @@ -148,7 +149,7 @@ void WallObject::ReadJson(IReadObjectContext* context, json_t& root) if (jDoorSound.is_number()) { auto doorSound = Json::GetNumber(jDoorSound); - _legacyType.wall.flags2 |= (doorSound << WALL_SCENERY_2_DOOR_SOUND_SHIFT) & WALL_SCENERY_2_DOOR_SOUND_MASK; + _legacyType.flags2 |= (doorSound << WALL_SCENERY_2_DOOR_SOUND_SHIFT) & WALL_SCENERY_2_DOOR_SOUND_MASK; } } diff --git a/src/openrct2/object/WallObject.h b/src/openrct2/object/WallObject.h index 82b89ef7fa..a0948326ea 100644 --- a/src/openrct2/object/WallObject.h +++ b/src/openrct2/object/WallObject.h @@ -15,7 +15,7 @@ class WallObject final : public SceneryObject { private: - rct_scenery_entry _legacyType = {}; + WallSceneryEntry _legacyType = {}; public: explicit WallObject(const rct_object_entry& entry) diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index 0bb434b384..dcec3ea8b0 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -1,4 +1,4 @@ -/***************************************************************************** +/***************************************************************************** * Copyright (c) 2014-2020 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md @@ -139,9 +139,6 @@ static paint_struct* CreateNormalPaintStruct( paint_session* session, const uint32_t image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize, const CoordsXYZ& boundBoxOffset) { - if (session->NoPaintStructsAvailable()) - return nullptr; - auto* const g1 = gfx_get_g1_element(image_id & 0x7FFFF); if (g1 == nullptr) { @@ -162,7 +159,12 @@ static paint_struct* CreateNormalPaintStruct( const auto rotBoundBoxOffset = CoordsXYZ{ boundBoxOffset.Rotate(swappedRotation), boundBoxOffset.z }; const auto rotBoundBoxSize = RotateBoundBoxSize(boundBoxSize, session->CurrentRotation); - paint_struct* ps = session->AllocateNormalPaintEntry(); + auto* ps = session->AllocateNormalPaintEntry(); + if (ps == nullptr) + { + return nullptr; + } + ps->image_id = image_id; ps->x = imagePos.x; ps->y = imagePos.y; @@ -207,14 +209,14 @@ template void PaintSessionGenerateRotate(paint_session* sessi for (; numVerticalTiles > 0; --numVerticalTiles) { - tile_element_paint_setup(session, mapTile.x, mapTile.y); + tile_element_paint_setup(session, mapTile); sprite_paint_setup(session, mapTile.x, mapTile.y); auto loc1 = mapTile + adjacentTiles[0]; sprite_paint_setup(session, loc1.x, loc1.y); auto loc2 = mapTile + adjacentTiles[1]; - tile_element_paint_setup(session, loc2.x, loc2.y); + tile_element_paint_setup(session, loc2); sprite_paint_setup(session, loc2.x, loc2.y); auto loc3 = mapTile + adjacentTiles[2]; @@ -383,7 +385,7 @@ static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, ui } } -template static void PaintSessionArrange(paint_session* session, bool) +template static void PaintSessionArrange(PaintSessionCore* session, bool) { paint_struct* psHead = &session->PaintHead; @@ -423,7 +425,7 @@ template static void PaintSessionArrange(paint_session* session, * * rct2: 0x00688217 */ -void PaintSessionArrange(paint_session* session) +void PaintSessionArrange(PaintSessionCore* session) { switch (session->CurrentRotation) { @@ -647,6 +649,7 @@ static uint32_t PaintPSColourifyImage(uint32_t imageId, ViewportInteractionItem case ViewportInteractionItem::Banner: imageId &= 0x7FFFF; imageId |= seeThoughFlags; + break; default: break; } @@ -660,6 +663,7 @@ static uint32_t PaintPSColourifyImage(uint32_t imageId, ViewportInteractionItem case ViewportInteractionItem::Wall: imageId &= 0x7FFFF; imageId |= seeThoughFlags; + break; default: break; } @@ -692,9 +696,7 @@ void PaintSessionFree([[maybe_unused]] paint_session* session) paint_struct* PaintAddImageAsParent( paint_session* session, uint32_t image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize) { - return PaintAddImageAsParent( - session, image_id, offset.x, offset.y, boundBoxSize.x, boundBoxSize.y, boundBoxSize.z, offset.z, offset.x, offset.y, - offset.z); + return PaintAddImageAsParent(session, image_id, offset, boundBoxSize, offset); } paint_struct* PaintAddImageAsParent( @@ -722,17 +724,12 @@ paint_struct* PaintAddImageAsParent( */ // Track Pieces, Shops. paint_struct* PaintAddImageAsParent( - paint_session* session, uint32_t image_id, int8_t x_offset, int8_t y_offset, int16_t bound_box_length_x, - int16_t bound_box_length_y, int8_t bound_box_length_z, int16_t z_offset, int16_t bound_box_offset_x, - int16_t bound_box_offset_y, int16_t bound_box_offset_z) + paint_session* session, uint32_t image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize, + const CoordsXYZ& boundBoxOffset) { session->LastPS = nullptr; session->LastAttachedPS = nullptr; - CoordsXYZ offset = { x_offset, y_offset, z_offset }; - CoordsXYZ boundBoxSize = { bound_box_length_x, bound_box_length_y, bound_box_length_z }; - CoordsXYZ boundBoxOffset = { bound_box_offset_x, bound_box_offset_y, bound_box_offset_z }; - auto* ps = CreateNormalPaintStruct(session, image_id, offset, boundBoxSize, boundBoxOffset); if (ps == nullptr) { @@ -744,6 +741,16 @@ paint_struct* PaintAddImageAsParent( return ps; } +paint_struct* PaintAddImageAsParent( + paint_session* session, uint32_t image_id, int8_t x_offset, int8_t y_offset, int16_t bound_box_length_x, + int16_t bound_box_length_y, int8_t bound_box_length_z, int16_t z_offset, int16_t bound_box_offset_x, + int16_t bound_box_offset_y, int16_t bound_box_offset_z) +{ + return PaintAddImageAsParent( + session, image_id, { x_offset, y_offset, z_offset }, { bound_box_length_x, bound_box_length_y, bound_box_length_z }, + { bound_box_offset_x, bound_box_offset_y, bound_box_offset_z }); +} + /** * * rct2: 0x00686EF0, 0x00687056, 0x006871C8, 0x0068733C, 0x0098198C @@ -809,9 +816,7 @@ paint_struct* PaintAddImageAsChild( paint_struct* parentPS = session->LastPS; if (parentPS == nullptr) { - return PaintAddImageAsParent( - session, image_id, offset.x, offset.y, boundBoxLength.x, boundBoxLength.y, boundBoxLength.z, offset.z, - boundBoxOffset.x, boundBoxOffset.y, boundBoxOffset.z); + return PaintAddImageAsParent(session, image_id, offset, boundBoxLength, boundBoxOffset); } auto* ps = CreateNormalPaintStruct(session, image_id, offset, boundBoxLength, boundBoxOffset); @@ -847,18 +852,18 @@ paint_struct* PaintAddImageAsChild( */ bool PaintAttachToPreviousAttach(paint_session* session, uint32_t image_id, int16_t x, int16_t y) { - if (session->NoPaintStructsAvailable()) - { - return false; - } - - attached_paint_struct* previousAttachedPS = session->LastAttachedPS; + auto* previousAttachedPS = session->LastAttachedPS; if (previousAttachedPS == nullptr) { return PaintAttachToPreviousPS(session, image_id, x, y); } - attached_paint_struct* ps = session->AllocateAttachedPaintEntry(); + auto* ps = session->AllocateAttachedPaintEntry(); + if (ps == nullptr) + { + return false; + } + ps->image_id = image_id; ps->x = x; ps->y = y; @@ -880,18 +885,18 @@ bool PaintAttachToPreviousAttach(paint_session* session, uint32_t image_id, int1 */ bool PaintAttachToPreviousPS(paint_session* session, uint32_t image_id, int16_t x, int16_t y) { - if (session->NoPaintStructsAvailable()) - { - return false; - } - - paint_struct* masterPs = session->LastPS; + auto* masterPs = session->LastPS; if (masterPs == nullptr) { return false; } - attached_paint_struct* ps = session->AllocateAttachedPaintEntry(); + auto* ps = session->AllocateAttachedPaintEntry(); + if (ps == nullptr) + { + return false; + } + ps->image_id = image_id; ps->x = x; ps->y = y; @@ -918,7 +923,8 @@ void PaintFloatingMoneyEffect( paint_session* session, money32 amount, rct_string_id string_id, int16_t y, int16_t z, int8_t y_offsets[], int16_t offset_x, uint32_t rotation) { - if (session->NoPaintStructsAvailable()) + auto* ps = session->AllocateStringPaintEntry(); + if (ps == nullptr) { return; } @@ -930,7 +936,6 @@ void PaintFloatingMoneyEffect( }; const auto coord = translate_3d_to_2d_with_z(rotation, position); - paint_string_struct* ps = session->AllocateStringPaintEntry(); ps->string_id = string_id; ps->next = nullptr; ps->args[0] = amount; @@ -966,3 +971,133 @@ void PaintDrawMoneyStructs(rct_drawpixelinfo* dpi, paint_string_struct* ps) FontSpriteBase::MEDIUM); } while ((ps = ps->next) != nullptr); } + +PaintEntryPool::Chain::Chain(PaintEntryPool* pool) + : Pool(pool) +{ +} + +PaintEntryPool::Chain::Chain(Chain&& chain) +{ + *this = std::move(chain); +} + +PaintEntryPool::Chain::~Chain() +{ + Clear(); +} + +PaintEntryPool::Chain& PaintEntryPool::Chain::operator=(Chain&& chain) noexcept +{ + Pool = chain.Pool; + Head = chain.Head; + Current = chain.Current; + chain.Pool = nullptr; + chain.Head = nullptr; + chain.Current = nullptr; + return *this; +} + +paint_entry* PaintEntryPool::Chain::Allocate() +{ + if (Pool == nullptr) + { + return nullptr; + } + + if (Current == nullptr) + { + assert(Head == nullptr); + Head = Pool->AllocateNode(); + if (Head == nullptr) + { + // Unable to allocate any more nodes + return nullptr; + } + Current = Head; + } + else if (Current->Count >= NodeSize) + { + // We need another node + Current->Next = Pool->AllocateNode(); + if (Current->Next == nullptr) + { + // Unable to allocate any more nodes + return nullptr; + } + Current = Current->Next; + } + + assert(Current->Count < NodeSize); + return &Current->PaintStructs[Current->Count++]; +} + +void PaintEntryPool::Chain::Clear() +{ + if (Pool != nullptr) + { + Pool->FreeNodes(Head); + Head = nullptr; + Current = nullptr; + } + assert(Head == nullptr); + assert(Current == nullptr); +} + +size_t PaintEntryPool::Chain::GetCount() const +{ + size_t count = 0; + auto current = Head; + while (current != nullptr) + { + count += current->Count; + current = current->Next; + } + return count; +} + +PaintEntryPool::~PaintEntryPool() +{ + for (auto node : _available) + { + delete node; + } + _available.clear(); +} + +PaintEntryPool::Node* PaintEntryPool::AllocateNode() +{ + std::lock_guard lock(_mutex); + + PaintEntryPool::Node* result; + if (_available.size() > 0) + { + result = _available.back(); + _available.pop_back(); + } + else + { + result = new (std::nothrow) PaintEntryPool::Node(); + } + return result; +} + +PaintEntryPool::Chain PaintEntryPool::Create() +{ + return PaintEntryPool::Chain(this); +} + +void PaintEntryPool::FreeNodes(PaintEntryPool::Node* head) +{ + std::lock_guard lock(_mutex); + + auto node = head; + while (node != nullptr) + { + auto next = node->Next; + node->Next = nullptr; + node->Count = 0; + _available.push_back(node); + node = next; + } +} diff --git a/src/openrct2/paint/Paint.h b/src/openrct2/paint/Paint.h index 664017af54..6b5ff077a2 100644 --- a/src/openrct2/paint/Paint.h +++ b/src/openrct2/paint/Paint.h @@ -15,6 +15,9 @@ #include "../interface/Colour.h" #include "../world/Location.hpp" +#include +#include + struct TileElement; enum class ViewportInteractionItem : uint8_t; @@ -109,9 +112,9 @@ union paint_entry struct sprite_bb { uint32_t sprite_id; - LocationXYZ16 offset; - LocationXYZ16 bb_offset; - LocationXYZ16 bb_size; + CoordsXYZ offset; + CoordsXYZ bb_offset; + CoordsXYZ bb_size; }; enum PAINT_STRUCT_FLAGS @@ -135,10 +138,58 @@ struct tunnel_entry #define MAX_PAINT_QUADRANTS 512 #define TUNNEL_MAX_COUNT 65 -struct paint_session +/** + * A pool of paint_entry instances that can be rented out. + * The internal implementation uses an unrolled linked list so that each + * paint session can quickly allocate a new paint entry until it requires + * another node / block of paint entries. Only the node allocation needs to + * be thread safe. + */ +class PaintEntryPool +{ + static constexpr size_t NodeSize = 512; + +public: + struct Node + { + Node* Next{}; + size_t Count{}; + paint_entry PaintStructs[NodeSize]{}; + }; + + struct Chain + { + PaintEntryPool* Pool{}; + Node* Head{}; + Node* Current{}; + + Chain() = default; + Chain(PaintEntryPool* pool); + Chain(Chain&& chain); + ~Chain(); + + Chain& operator=(Chain&& chain) noexcept; + + paint_entry* Allocate(); + void Clear(); + size_t GetCount() const; + }; + +private: + std::vector _available; + std::mutex _mutex; + + Node* AllocateNode(); + +public: + ~PaintEntryPool(); + + Chain Create(); + void FreeNodes(Node* head); +}; + +struct PaintSessionCore { - rct_drawpixelinfo DPI; - FixedVector PaintStructs; paint_struct* Quadrants[MAX_PAINT_QUADRANTS]; paint_struct* LastPS; paint_string_struct* PSStringHead; @@ -168,38 +219,60 @@ struct paint_session uint8_t Unk141E9DB; uint16_t WaterHeight; uint32_t TrackColours[4]; +}; - constexpr bool NoPaintStructsAvailable() noexcept - { - return PaintStructs.size() >= PaintStructs.capacity(); - } +struct paint_session : public PaintSessionCore +{ + rct_drawpixelinfo DPI; + PaintEntryPool::Chain PaintEntryChain; - constexpr paint_struct* AllocateNormalPaintEntry() noexcept + paint_struct* AllocateNormalPaintEntry() noexcept { - LastPS = &PaintStructs.emplace_back().basic; - return LastPS; - } - - constexpr attached_paint_struct* AllocateAttachedPaintEntry() noexcept - { - LastAttachedPS = &PaintStructs.emplace_back().attached; - return LastAttachedPS; - } - - constexpr paint_string_struct* AllocateStringPaintEntry() noexcept - { - auto* string = &PaintStructs.emplace_back().string; - if (LastPSString == nullptr) + auto* entry = PaintEntryChain.Allocate(); + if (entry != nullptr) { - PSStringHead = string; + LastPS = &entry->basic; + return LastPS; } - else - { - LastPSString->next = string; - } - LastPSString = string; - return LastPSString; + return nullptr; } + + attached_paint_struct* AllocateAttachedPaintEntry() noexcept + { + auto* entry = PaintEntryChain.Allocate(); + if (entry != nullptr) + { + LastAttachedPS = &entry->attached; + return LastAttachedPS; + } + return nullptr; + } + + paint_string_struct* AllocateStringPaintEntry() noexcept + { + auto* entry = PaintEntryChain.Allocate(); + if (entry != nullptr) + { + auto* string = &entry->string; + if (LastPSString == nullptr) + { + PSStringHead = string; + } + else + { + LastPSString->next = string; + } + LastPSString = string; + return LastPSString; + } + return nullptr; + } +}; + +struct RecordedPaintSession +{ + PaintSessionCore Session; + std::vector Entries; }; extern paint_session gPaintSession; @@ -225,6 +298,9 @@ paint_struct* PaintAddImageAsParent( paint_session* session, uint32_t image_id, int8_t x_offset, int8_t y_offset, int16_t bound_box_length_x, int16_t bound_box_length_y, int8_t bound_box_length_z, int16_t z_offset, int16_t bound_box_offset_x, int16_t bound_box_offset_y, int16_t bound_box_offset_z); +paint_struct* PaintAddImageAsParent( + paint_session* session, uint32_t image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize, + const CoordsXYZ& boundBoxOffset); [[nodiscard]] paint_struct* PaintAddImageAsOrphan( paint_session* session, uint32_t image_id, int8_t x_offset, int8_t y_offset, int16_t bound_box_length_x, int16_t bound_box_length_y, int8_t bound_box_length_z, int16_t z_offset, int16_t bound_box_offset_x, @@ -260,7 +336,7 @@ void PaintFloatingMoneyEffect( paint_session* PaintSessionAlloc(rct_drawpixelinfo* dpi, uint32_t viewFlags); void PaintSessionFree(paint_session* session); void PaintSessionGenerate(paint_session* session); -void PaintSessionArrange(paint_session* session); +void PaintSessionArrange(PaintSessionCore* session); void PaintDrawStructs(paint_session* session); void PaintDrawMoneyStructs(rct_drawpixelinfo* dpi, paint_string_struct* ps); diff --git a/src/openrct2/paint/Painter.cpp b/src/openrct2/paint/Painter.cpp index 2963ef12fd..46ccdd559d 100644 --- a/src/openrct2/paint/Painter.cpp +++ b/src/openrct2/paint/Painter.cpp @@ -85,7 +85,7 @@ void Painter::PaintReplayNotice(rct_drawpixelinfo* dpi, const char* text) ScreenCoordsXY screenCoords(_uiContext->GetWidth() / 2, _uiContext->GetHeight() - 44); char buffer[64]{}; - FormatStringToBuffer(buffer, sizeof(buffer), "{MEDIUMFONT}{OUTLINE}{RED}{STRING}", text); + FormatStringToBuffer(buffer, sizeof(buffer), "{OUTLINE}{RED}{STRING}", text); auto stringWidth = gfx_get_string_width(buffer, FontSpriteBase::MEDIUM); screenCoords.x = screenCoords.x - stringWidth; @@ -104,7 +104,7 @@ void Painter::PaintFPS(rct_drawpixelinfo* dpi) MeasureFPS(); char buffer[64]{}; - FormatStringToBuffer(buffer, sizeof(buffer), "{MEDIUMFONT}{OUTLINE}{WHITE}{INT32}", _currentFPS); + FormatStringToBuffer(buffer, sizeof(buffer), "{OUTLINE}{WHITE}{INT32}", _currentFPS); // Draw Text int32_t stringWidth = gfx_get_string_width(buffer, FontSpriteBase::MEDIUM); @@ -112,7 +112,7 @@ void Painter::PaintFPS(rct_drawpixelinfo* dpi) gfx_draw_string(dpi, screenCoords, buffer); // Make area dirty so the text doesn't get drawn over the last - gfx_set_dirty_blocks({ { screenCoords - ScreenCoordsXY{ 16, 4 } }, { gLastDrawStringX + 16, 16 } }); + gfx_set_dirty_blocks({ { screenCoords - ScreenCoordsXY{ 16, 4 } }, { dpi->lastStringPos.x + 16, 16 } }); } void Painter::MeasureFPS() @@ -151,7 +151,7 @@ paint_session* Painter::CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags session->ViewFlags = viewFlags; session->QuadrantBackIndex = std::numeric_limits::max(); session->QuadrantFrontIndex = 0; - session->PaintStructs.clear(); + session->PaintEntryChain = _paintStructPool.Create(); std::fill(std::begin(session->Quadrants), std::end(session->Quadrants), nullptr); session->LastPS = nullptr; @@ -167,5 +167,6 @@ paint_session* Painter::CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags void Painter::ReleaseSession(paint_session* session) { + session->PaintEntryChain.Clear(); _freePaintSessions.push_back(session); } diff --git a/src/openrct2/paint/Painter.h b/src/openrct2/paint/Painter.h index e479a0e93c..d776f6f557 100644 --- a/src/openrct2/paint/Painter.h +++ b/src/openrct2/paint/Painter.h @@ -38,6 +38,7 @@ namespace OpenRCT2 std::shared_ptr const _uiContext; std::vector> _paintSessionPool; std::vector _freePaintSessions; + PaintEntryPool _paintStructPool; time_t _lastSecond = 0; int32_t _currentFPS = 0; int32_t _frames = 0; diff --git a/src/openrct2/paint/Supports.cpp b/src/openrct2/paint/Supports.cpp index cc94f12f7d..d42d93c05e 100644 --- a/src/openrct2/paint/Supports.cpp +++ b/src/openrct2/paint/Supports.cpp @@ -472,7 +472,7 @@ bool wooden_a_supports_paint_setup( return false; } - if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) + if (!(session->Unk141E9DB & PaintSessionFlags::IsPassedSurface)) { return false; } @@ -521,9 +521,9 @@ bool wooden_a_supports_paint_setup( { imageId += word_97B3C4[slope & TILE_ELEMENT_SURFACE_SLOPE_MASK]; imageId |= imageColourFlags; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 11, z, 0, 0, z + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, z }, { 32, 32, 11 }, { 0, 0, z + 2 }); - PaintAddImageAsParent(session, imageId + 4, 0, 0, 32, 32, 11, z + 16, 0, 0, z + 16 + 2); + PaintAddImageAsParent(session, imageId + 4, { 0, 0, z + 16 }, { 32, 32, 11 }, { 0, 0, z + 16 + 2 }); hasSupports = true; } @@ -552,7 +552,7 @@ bool wooden_a_supports_paint_setup( imageId += word_97B3C4[slope & TILE_ELEMENT_SURFACE_SLOPE_MASK]; imageId |= imageColourFlags; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 11, z, 0, 0, z + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, z }, { 32, 32, 11 }, { 0, 0, z + 2 }); hasSupports = true; } z += 16; @@ -562,7 +562,7 @@ bool wooden_a_supports_paint_setup( if (drawFlatPiece) { int32_t imageId = WoodenSupportImageIds[supportType].flat | imageColourFlags; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 0, z - 2); + PaintAddImageAsParent(session, imageId, { 0, 0, z - 2 }, { 32, 32, 0 }); hasSupports = true; } @@ -574,7 +574,7 @@ bool wooden_a_supports_paint_setup( // Full support int32_t imageId = WoodenSupportImageIds[supportType].full | imageColourFlags; uint8_t ah = height == 2 ? 23 : 28; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, ah, z); + PaintAddImageAsParent(session, imageId, { 0, 0, z }, { 32, 32, ah }); hasSupports = true; z += 32; height -= 2; @@ -584,7 +584,7 @@ bool wooden_a_supports_paint_setup( // Half support int32_t imageId = WoodenSupportImageIds[supportType].half | imageColourFlags; uint8_t ah = height == 1 ? 7 : 12; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, ah, z); + PaintAddImageAsParent(session, imageId, { 0, 0, z }, { 32, 32, ah }); hasSupports = true; z += 16; height -= 1; @@ -652,7 +652,7 @@ bool wooden_b_supports_paint_setup( return false; } - if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) + if (!(session->Unk141E9DB & PaintSessionFlags::IsPassedSurface)) { if (underground != nullptr) *underground = false; // AND @@ -697,7 +697,8 @@ bool wooden_b_supports_paint_setup( { imageId += word_97B3C4[session->Support.slope & TILE_ELEMENT_SURFACE_SLOPE_MASK]; - PaintAddImageAsParent(session, imageId | imageColourFlags, 0, 0, 32, 32, 11, baseHeight, 0, 0, baseHeight + 2); + PaintAddImageAsParent( + session, imageId | imageColourFlags, { 0, 0, baseHeight }, { 32, 32, 11 }, { 0, 0, baseHeight + 2 }); baseHeight += 16; PaintAddImageAsParent(session, (imageId + 4) | imageColourFlags, 0, 0, 32, 32, 3, baseHeight, 0, 0, baseHeight + 2); @@ -726,7 +727,8 @@ bool wooden_b_supports_paint_setup( { imageId += word_97B3C4[session->Support.slope & TILE_ELEMENT_SURFACE_SLOPE_MASK]; - PaintAddImageAsParent(session, imageId | imageColourFlags, 0, 0, 32, 32, 3, baseHeight, 0, 0, baseHeight + 2); + PaintAddImageAsParent( + session, imageId | imageColourFlags, { 0, 0, baseHeight }, { 32, 32, 3 }, { 0, 0, baseHeight + 2 }); baseHeight += 16; _9E32B1 = true; @@ -743,7 +745,7 @@ bool wooden_b_supports_paint_setup( else { PaintAddImageAsParent( - session, WoodenSupportImageIds[supportType].flat | imageColourFlags, 0, 0, 32, 32, 0, baseHeight - 2); + session, WoodenSupportImageIds[supportType].flat | imageColourFlags, { 0, 0, baseHeight - 2 }, { 32, 32, 0 }); _9E32B1 = true; } } @@ -832,7 +834,7 @@ bool metal_a_supports_paint_setup( return false; } - if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) + if (!(session->Unk141E9DB & PaintSessionFlags::IsPassedSurface)) { return false; } @@ -885,7 +887,7 @@ bool metal_a_supports_paint_setup( uint32_t image_id = _metalSupportTypeToCrossbeamImages[supportType][ebp]; image_id |= imageColourFlags; - PaintAddImageAsParent(session, image_id, xOffset, yOffset, boundBoxLengthX, boundBoxLengthY, 1, height); + PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { boundBoxLengthX, boundBoxLengthY, 1 }); segment = newSegment; } @@ -904,7 +906,7 @@ bool metal_a_supports_paint_setup( image_id += metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK]; image_id |= imageColourFlags; - PaintAddImageAsParent(session, image_id, xOffset, yOffset, 0, 0, 5, supportSegments[segment].height); + PaintAddImageAsParent(session, image_id, { xOffset, yOffset, supportSegments[segment].height }, { 0, 0, 5 }); height = supportSegments[segment].height + 6; } @@ -928,7 +930,7 @@ bool metal_a_supports_paint_setup( image_id += heightDiff - 1; image_id |= imageColourFlags; - PaintAddImageAsParent(session, image_id, xOffset, yOffset, 0, 0, heightDiff - 1, height); + PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, heightDiff - 1 }); } height += heightDiff; @@ -959,7 +961,7 @@ bool metal_a_supports_paint_setup( if (count == 3 && z == 0x10) image_id++; - PaintAddImageAsParent(session, image_id, xOffset, yOffset, 0, 0, z - 1, height); + PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, z - 1 }); height += z; } @@ -1000,8 +1002,7 @@ bool metal_a_supports_paint_setup( image_id += z - 1; image_id |= imageColourFlags; - PaintAddImageAsParent( - session, image_id, xOffset, yOffset, 0, 0, 0, height, boundBoxOffset.x, boundBoxOffset.y, boundBoxOffset.z); + PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, 0 }, boundBoxOffset); height += z; } @@ -1032,7 +1033,7 @@ bool metal_b_supports_paint_setup( return false; // AND } - if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) + if (!(session->Unk141E9DB & PaintSessionFlags::IsPassedSurface)) { return false; // AND } @@ -1215,7 +1216,7 @@ bool path_a_supports_paint_setup( return false; } - if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) + if (!(session->Unk141E9DB & PaintSessionFlags::IsPassedSurface)) { return false; } @@ -1252,7 +1253,8 @@ bool path_a_supports_paint_setup( uint32_t imageId = (supportType * 24) + word_97B3C4[session->Support.slope & TILE_ELEMENT_SURFACE_SLOPE_MASK] + railingEntry->bridge_image; - PaintAddImageAsParent(session, imageId | imageColourFlags, 0, 0, 32, 32, 11, baseHeight, 0, 0, baseHeight + 2); + PaintAddImageAsParent( + session, imageId | imageColourFlags, { 0, 0, baseHeight }, { 32, 32, 11 }, { 0, 0, baseHeight + 2 }); baseHeight += 16; PaintAddImageAsParent(session, (imageId + 4) | imageColourFlags, 0, 0, 32, 32, 11, baseHeight, 0, 0, baseHeight + 2); @@ -1273,7 +1275,7 @@ bool path_a_supports_paint_setup( uint32_t ebx = (supportType * 24) + word_97B3C4[session->Support.slope & TILE_ELEMENT_SURFACE_SLOPE_MASK] + railingEntry->bridge_image; - PaintAddImageAsParent(session, ebx | imageColourFlags, 0, 0, 32, 32, 11, baseHeight, 0, 0, baseHeight + 2); + PaintAddImageAsParent(session, ebx | imageColourFlags, { 0, 0, baseHeight }, { 32, 32, 11 }, { 0, 0, baseHeight + 2 }); hasSupports = true; baseHeight += 16; @@ -1360,7 +1362,7 @@ bool path_b_supports_paint_setup( return false; // AND } - if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) + if (!(session->Unk141E9DB & PaintSessionFlags::IsPassedSurface)) { return false; // AND } diff --git a/src/openrct2/paint/VirtualFloor.cpp b/src/openrct2/paint/VirtualFloor.cpp index 0a97801a7c..7731ec8b0c 100644 --- a/src/openrct2/paint/VirtualFloor.cpp +++ b/src/openrct2/paint/VirtualFloor.cpp @@ -366,13 +366,14 @@ void virtual_floor_paint(paint_session* session) uint8_t dullEdges = 0xF & ~occupiedEdges & ~litEdges; uint8_t paintEdges = ((weAreOccupied || weAreLit) && weAreOwned) ? ~dullEdges : 0xF; + const auto virtualFloorOffset = CoordsXYZ{ 0, 0, _virtualFloorHeight }; if (paintEdges & EDGE_NE) { PaintAddImageAsParent( session, SPR_G2_SELECTION_EDGE_NE | (!(occupiedEdges & EDGE_NE) ? ((litEdges & EDGE_NE) ? remap_lit : remap_base) : remap_edge), - 0, 0, 0, 0, 1, _virtualFloorHeight, 5, 5, _virtualFloorHeight + ((dullEdges & EDGE_NE) ? -2 : 0)); + virtualFloorOffset, { 0, 0, 1 }, { 5, 5, _virtualFloorHeight + ((dullEdges & EDGE_NE) ? -2 : 0) }); } if (paintEdges & EDGE_SE) { @@ -380,7 +381,7 @@ void virtual_floor_paint(paint_session* session) session, SPR_G2_SELECTION_EDGE_SE | (!(occupiedEdges & EDGE_SE) ? ((litEdges & EDGE_SE) ? remap_lit : remap_base) : remap_edge), - 0, 0, 1, 1, 1, _virtualFloorHeight, 16, 27, _virtualFloorHeight + ((dullEdges & EDGE_SE) ? -2 : 0)); + virtualFloorOffset, { 1, 1, 1 }, { 16, 27, _virtualFloorHeight + ((dullEdges & EDGE_SE) ? -2 : 0) }); } if (paintEdges & EDGE_SW) { @@ -388,7 +389,7 @@ void virtual_floor_paint(paint_session* session) session, SPR_G2_SELECTION_EDGE_SW | (!(occupiedEdges & EDGE_SW) ? ((litEdges & EDGE_SW) ? remap_lit : remap_base) : remap_edge), - 0, 0, 1, 1, 1, _virtualFloorHeight, 27, 16, _virtualFloorHeight + ((dullEdges & EDGE_SW) ? -2 : 0)); + virtualFloorOffset, { 1, 1, 1 }, { 27, 16, _virtualFloorHeight + ((dullEdges & EDGE_SW) ? -2 : 0) }); } if (paintEdges & EDGE_NW) { @@ -396,7 +397,7 @@ void virtual_floor_paint(paint_session* session) session, SPR_G2_SELECTION_EDGE_NW | (!(occupiedEdges & EDGE_NW) ? ((litEdges & EDGE_NW) ? remap_lit : remap_base) : remap_edge), - 0, 0, 0, 0, 1, _virtualFloorHeight, 5, 5, _virtualFloorHeight + ((dullEdges & EDGE_NW) ? -2 : 0)); + virtualFloorOffset, { 0, 0, 1 }, { 5, 5, _virtualFloorHeight + ((dullEdges & EDGE_NW) ? -2 : 0) }); } if (gConfigGeneral.virtual_floor_style != VirtualFloorStyles::Glassy) @@ -406,7 +407,7 @@ void virtual_floor_paint(paint_session* session) { int32_t imageColourFlats = SPR_G2_SURFACE_GLASSY_RECOLOURABLE | IMAGE_TYPE_REMAP | IMAGE_TYPE_TRANSPARENT | EnumValue(FilterPaletteID::PaletteWater) << 19; - PaintAddImageAsParent(session, imageColourFlats, 0, 0, 30, 30, 0, _virtualFloorHeight, 2, 2, _virtualFloorHeight - 3); + PaintAddImageAsParent(session, imageColourFlats, virtualFloorOffset, { 30, 30, 0 }, { 2, 2, _virtualFloorHeight - 3 }); } } diff --git a/src/openrct2/paint/sprite/Paint.Litter.cpp b/src/openrct2/paint/sprite/Paint.Litter.cpp index 17a4218499..e0fc132747 100644 --- a/src/openrct2/paint/sprite/Paint.Litter.cpp +++ b/src/openrct2/paint/sprite/Paint.Litter.cpp @@ -8,7 +8,7 @@ *****************************************************************************/ #include "../../interface/Viewport.h" -#include "../../world/Sprite.h" +#include "../../world/Litter.h" #include "../Paint.h" #include "Paint.Sprite.h" @@ -65,7 +65,7 @@ static constexpr const litter_sprite litter_sprites[] = { * Litter Paint Setup * rct2: 0x006736FC */ -void litter_paint(paint_session* session, const Litter* litter, int32_t imageDirection) +template<> void PaintEntity(paint_session* session, const Litter* litter, int32_t imageDirection) { rct_drawpixelinfo* dpi; @@ -77,9 +77,9 @@ void litter_paint(paint_session* session, const Litter* litter, int32_t imageDir imageDirection >>= 3; // Some litter types have only 1 direction so remove // anything that isn't required. - imageDirection &= litter_sprites[litter->SubType].direction_mask; + imageDirection &= litter_sprites[EnumValue(litter->SubType)].direction_mask; - uint32_t image_id = imageDirection + litter_sprites[litter->SubType].base_id; + uint32_t image_id = imageDirection + litter_sprites[EnumValue(litter->SubType)].base_id; // In the following call to PaintAddImageAsParent, we add 4 (instead of 2) to the // bound_box_offset_z to make sure litter is drawn on top of railways diff --git a/src/openrct2/paint/sprite/Paint.Misc.cpp b/src/openrct2/paint/sprite/Paint.Misc.cpp index 8f2c51e805..61352ae456 100644 --- a/src/openrct2/paint/sprite/Paint.Misc.cpp +++ b/src/openrct2/paint/sprite/Paint.Misc.cpp @@ -10,8 +10,11 @@ #include "../../drawing/Drawing.h" #include "../../interface/Viewport.h" #include "../../localisation/StringIds.h" +#include "../../world/Balloon.h" +#include "../../world/Duck.h" #include "../../world/Fountain.h" -#include "../../world/Sprite.h" +#include "../../world/MoneyEffect.h" +#include "../../world/Particle.h" #include "../Paint.h" #include "Paint.Sprite.h" @@ -26,154 +29,132 @@ const uint32_t vehicle_particle_base_sprites[] = { 22577, 22589, 22601, 22613, 22625, }; -/** - * rct2: 0x00672AC9 - */ -void misc_paint(paint_session* session, const MiscEntity* misc, int32_t imageDirection) +template<> void PaintEntity(paint_session* session, const SteamParticle* particle, int32_t imageDirection) +{ + uint32_t imageId = 22637 + (particle->frame / 256); + PaintAddImageAsParent(session, imageId, { 0, 0, particle->z }, { 1, 1, 0 }); +} + +template<> void PaintEntity(paint_session* session, const MoneyEffect* moneyEffect, int32_t imageDirection) { rct_drawpixelinfo* dpi = &session->DPI; - switch (misc->SubType) + if (dpi->zoom_level > 0) { - case MiscEntityType::SteamParticle: // 0 + return; + } + if (moneyEffect == nullptr) + return; + auto [stringId, value] = moneyEffect->GetStringId(); + PaintFloatingMoneyEffect( + session, value, stringId, moneyEffect->y, moneyEffect->z, const_cast(&money_wave[moneyEffect->Wiggle % 22]), + moneyEffect->OffsetX, session->CurrentRotation); +} + +template<> void PaintEntity(paint_session* session, const VehicleCrashParticle* particle, int32_t imageDirection) +{ + rct_drawpixelinfo* dpi = &session->DPI; + if (dpi->zoom_level > 0) + { + return; + } + + if (particle == nullptr) + return; + uint32_t imageId = vehicle_particle_base_sprites[particle->crashed_sprite_base] + particle->frame / 256; + imageId = imageId | (particle->colour[0] << 19) | (particle->colour[1] << 24) | IMAGE_TYPE_REMAP | IMAGE_TYPE_REMAP_2_PLUS; + PaintAddImageAsParent(session, imageId, { 0, 0, particle->z }, { 1, 1, 0 }); +} + +template<> void PaintEntity(paint_session* session, const ExplosionCloud* particle, int32_t imageDirection) +{ + if (particle == nullptr) + return; + uint32_t imageId = 22878 + (particle->frame / 256); + PaintAddImageAsParent(session, imageId, { 0, 0, particle->z }, { 1, 1, 0 }); +} + +template<> void PaintEntity(paint_session* session, const CrashSplashParticle* crashSplash, int32_t imageDirection) +{ + if (crashSplash == nullptr) + return; + uint32_t imageId = 22927 + (crashSplash->frame / 256); + PaintAddImageAsParent(session, imageId, { 0, 0, crashSplash->z }, { 1, 1, 0 }); +} + +template<> void PaintEntity(paint_session* session, const ExplosionFlare* flare, int32_t imageDirection) +{ + // Like a flare + if (flare == nullptr) + return; + uint32_t imageId = 22896 + (flare->frame / 256); + PaintAddImageAsParent(session, imageId, { 0, 0, flare->z }, { 1, 1, 0 }); +} + +constexpr uint32_t JumpingFountainSnowBaseImage = 23037; +constexpr uint32_t JumpingFountainWaterBaseImage = 22973; + +template<> void PaintEntity(paint_session* session, const JumpingFountain* jumpingFountain, int32_t imageDirection) +{ + rct_drawpixelinfo* dpi = &session->DPI; + if (dpi->zoom_level > 0) + { + return; + } + + if (jumpingFountain == nullptr) + return; + uint16_t height = jumpingFountain->z + 6; + int32_t ebx = imageDirection / 8; + + // Fountain is firing anti clockwise + bool reversed = (jumpingFountain->FountainFlags & FOUNTAIN_FLAG::DIRECTION); + // Fountain rotation + bool rotated = (jumpingFountain->sprite_direction / 16) & 1; + bool isAntiClockwise = (ebx / 2) & 1; // Clockwise or Anti-clockwise + + // These cancel each other out + if (reversed != rotated) + { + isAntiClockwise = !isAntiClockwise; + } + + uint32_t baseImageId = (jumpingFountain->FountainType == JumpingFountainType::Snow) ? JumpingFountainSnowBaseImage + : JumpingFountainWaterBaseImage; + uint32_t imageId = baseImageId + ebx * 16 + jumpingFountain->frame; + constexpr std::array antiClockWiseBoundingBoxes = { CoordsXY{ -COORDS_XY_STEP, -3 }, CoordsXY{ 0, -3 } }; + constexpr std::array clockWiseBoundingBoxes = { CoordsXY{ -COORDS_XY_STEP, 3 }, CoordsXY{ 0, 3 } }; + + auto bb = isAntiClockwise ? antiClockWiseBoundingBoxes : clockWiseBoundingBoxes; + + PaintAddImageAsParentRotated(session, ebx, imageId, 0, 0, 32, 1, 3, height, bb[ebx & 1].x, bb[ebx & 1].y, height); +} + +template<> void PaintEntity(paint_session* session, const Balloon* balloon, int32_t imageDirection) +{ + if (balloon == nullptr) + return; + uint32_t imageId = 22651 + (balloon->frame & 7); + if (balloon->popped != 0) + { + imageId += 8; + } + + imageId = imageId | (balloon->colour << 19) | IMAGE_TYPE_REMAP; + PaintAddImageAsParent(session, imageId, { 0, 0, balloon->z }, { 1, 1, 0 }); +} + +template<> void PaintEntity(paint_session* session, const Duck* duck, int32_t imageDirection) +{ + rct_drawpixelinfo* dpi = &session->DPI; + if (dpi->zoom_level <= 1) + { + if (duck == nullptr) + return; + uint32_t imageId = duck->GetFrameImage(imageDirection); + if (imageId != 0) { - auto particle = misc->As(); - if (particle == nullptr) - return; - uint32_t imageId = 22637 + (particle->frame / 256); - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, particle->z); - break; + PaintAddImageAsParent(session, imageId, { 0, 0, duck->z }, { 1, 1, 0 }); } - - case MiscEntityType::MoneyEffect: // 1 - { - if (dpi->zoom_level > 0) - { - return; - } - auto moneyEffect = misc->As(); - if (moneyEffect == nullptr) - return; - auto [stringId, value] = moneyEffect->GetStringId(); - PaintFloatingMoneyEffect( - session, value, stringId, moneyEffect->y, moneyEffect->z, - const_cast(&money_wave[moneyEffect->Wiggle % 22]), moneyEffect->OffsetX, session->CurrentRotation); - break; - } - - case MiscEntityType::CrashedVehicleParticle: // 2 - { - if (dpi->zoom_level > 0) - { - return; - } - auto particle = misc->As(); - if (particle == nullptr) - return; - uint32_t imageId = vehicle_particle_base_sprites[particle->crashed_sprite_base] + particle->frame / 256; - imageId = imageId | (particle->colour[0] << 19) | (particle->colour[1] << 24) | IMAGE_TYPE_REMAP - | IMAGE_TYPE_REMAP_2_PLUS; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, particle->z); - break; - } - - case MiscEntityType::ExplosionCloud: // 3 - { - auto particle = misc->As(); - if (particle == nullptr) - return; - uint32_t imageId = 22878 + (particle->frame / 256); - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, particle->z); - break; - } - - case MiscEntityType::CrashSplash: // 4 - { - auto crashSplash = misc->As(); - if (crashSplash == nullptr) - return; - uint32_t imageId = 22927 + (crashSplash->frame / 256); - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, crashSplash->z); - break; - } - - case MiscEntityType::ExplosionFlare: // 5 - { - // Like a flare - auto flare = misc->As(); - if (flare == nullptr) - return; - uint32_t imageId = 22896 + (flare->frame / 256); - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, flare->z); - break; - } - - case MiscEntityType::JumpingFountainWater: // 6 - case MiscEntityType::JumpingFountainSnow: // 9 - { - if (dpi->zoom_level > 0) - { - return; - } - - auto jumpingFountain = misc->As(); - if (jumpingFountain == nullptr) - return; - uint16_t height = jumpingFountain->z + 6; - int32_t ebx = imageDirection / 8; - - // Fountain is firing anti clockwise - bool reversed = (jumpingFountain->FountainFlags & FOUNTAIN_FLAG::DIRECTION); - // Fountain rotation - bool rotated = (jumpingFountain->sprite_direction / 16) & 1; - bool isAntiClockwise = (ebx / 2) & 1; // Clockwise or Anti-clockwise - - // These cancel each other out - if (reversed != rotated) - { - isAntiClockwise = !isAntiClockwise; - } - - uint32_t baseImageId = (jumpingFountain->SubType == MiscEntityType::JumpingFountainSnow) ? 23037 : 22973; - uint32_t imageId = baseImageId + ebx * 16 + jumpingFountain->frame; - constexpr std::array antiClockWiseBoundingBoxes = { CoordsXY{ -COORDS_XY_STEP, -3 }, - CoordsXY{ 0, -3 } }; - constexpr std::array clockWiseBoundingBoxes = { CoordsXY{ -COORDS_XY_STEP, 3 }, CoordsXY{ 0, 3 } }; - - auto bb = isAntiClockwise ? antiClockWiseBoundingBoxes : clockWiseBoundingBoxes; - - PaintAddImageAsParentRotated(session, ebx, imageId, 0, 0, 32, 1, 3, height, bb[ebx & 1].x, bb[ebx & 1].y, height); - break; - } - - case MiscEntityType::Balloon: // 7 - { - auto balloon = misc->As(); - if (balloon == nullptr) - return; - uint32_t imageId = 22651 + (balloon->frame & 7); - if (balloon->popped != 0) - { - imageId += 8; - } - - imageId = imageId | (balloon->colour << 19) | IMAGE_TYPE_REMAP; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, balloon->z); - break; - } - - case MiscEntityType::Duck: - if (dpi->zoom_level <= 1) - { - const Duck* duck = misc->As(); - if (duck == nullptr) - return; - uint32_t imageId = duck->GetFrameImage(imageDirection); - if (imageId != 0) - { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 0, duck->z); - } - } - break; } } diff --git a/src/openrct2/paint/sprite/Paint.Peep.cpp b/src/openrct2/paint/sprite/Paint.Peep.cpp index 93b268ed17..804e6f5026 100644 --- a/src/openrct2/paint/sprite/Paint.Peep.cpp +++ b/src/openrct2/paint/sprite/Paint.Peep.cpp @@ -11,7 +11,6 @@ #include "../../drawing/LightFX.h" #include "../../interface/Viewport.h" #include "../../peep/Peep.h" -#include "../../world/Sprite.h" #include "../Paint.h" #include "Paint.Sprite.h" @@ -19,12 +18,12 @@ * * rct2: 0x0068F0FB */ -void peep_paint(paint_session* session, const Peep* peep, int32_t imageDirection) +template<> void PaintEntity(paint_session* session, const Peep* peep, int32_t imageDirection) { #ifdef __ENABLE_LIGHTFX__ if (lightfx_is_available()) { - if (peep->AssignedPeepType == PeepType::Staff) + if (peep->Is()) { int16_t peep_x, peep_y, peep_z; @@ -69,7 +68,7 @@ void peep_paint(paint_session* session, const Peep* peep, int32_t imageDirection PeepActionSpriteType actionSpriteType = peep->ActionSpriteType; uint8_t imageOffset = peep->ActionSpriteImageOffset; - if (peep->Action == PeepActionType::None1) + if (peep->Action == PeepActionType::Idle) { actionSpriteType = peep->NextActionSpriteType; imageOffset = 0; @@ -82,25 +81,28 @@ void peep_paint(paint_session* session, const Peep* peep, int32_t imageDirection uint32_t imageId = baseImageId | peep->TshirtColour << 19 | peep->TrousersColour << 24 | IMAGE_TYPE_REMAP | IMAGE_TYPE_REMAP_2_PLUS; PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); - - if (baseImageId >= 10717 && baseImageId < 10749) + auto* guest = peep->As(); + if (guest != nullptr) { - imageId = (baseImageId + 32) | peep->HatColour << 19 | IMAGE_TYPE_REMAP; - PaintAddImageAsChild(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); - return; - } + if (baseImageId >= 10717 && baseImageId < 10749) + { + imageId = (baseImageId + 32) | guest->HatColour << 19 | IMAGE_TYPE_REMAP; + PaintAddImageAsChild(session, imageId, { 0, 0, peep->z }, { 1, 1, 11 }, { 0, 0, peep->z + 5 }); + return; + } - if (baseImageId >= 10781 && baseImageId < 10813) - { - imageId = (baseImageId + 32) | peep->BalloonColour << 19 | IMAGE_TYPE_REMAP; - PaintAddImageAsChild(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); - return; - } + if (baseImageId >= 10781 && baseImageId < 10813) + { + imageId = (baseImageId + 32) | guest->BalloonColour << 19 | IMAGE_TYPE_REMAP; + PaintAddImageAsChild(session, imageId, { 0, 0, peep->z }, { 1, 1, 11 }, { 0, 0, peep->z + 5 }); + return; + } - if (baseImageId >= 11197 && baseImageId < 11229) - { - imageId = (baseImageId + 32) | peep->UmbrellaColour << 19 | IMAGE_TYPE_REMAP; - PaintAddImageAsChild(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); - return; + if (baseImageId >= 11197 && baseImageId < 11229) + { + imageId = (baseImageId + 32) | guest->UmbrellaColour << 19 | IMAGE_TYPE_REMAP; + PaintAddImageAsChild(session, imageId, { 0, 0, peep->z }, { 1, 1, 11 }, { 0, 0, peep->z + 5 }); + return; + } } } diff --git a/src/openrct2/paint/sprite/Paint.Sprite.cpp b/src/openrct2/paint/sprite/Paint.Sprite.cpp index c27bb3c055..2db53b9db1 100644 --- a/src/openrct2/paint/sprite/Paint.Sprite.cpp +++ b/src/openrct2/paint/sprite/Paint.Sprite.cpp @@ -16,8 +16,16 @@ #include "../../ride/RideData.h" #include "../../ride/TrackDesign.h" #include "../../ride/VehiclePaint.h" +#include "../../world/Balloon.h" +#include "../../world/Climate.h" +#include "../../world/Duck.h" #include "../../world/EntityList.h" -#include "../../world/Sprite.h" +#include "../../world/Fountain.h" +#include "../../world/Litter.h" +#include "../../world/MapAnimation.h" +#include "../../world/MoneyEffect.h" +#include "../../world/Park.h" +#include "../../world/Particle.h" #include "../Paint.h" /** @@ -48,15 +56,15 @@ void sprite_paint_setup(paint_session* session, const uint16_t x, const uint16_t { if (highlightPathIssues) { - const auto peep = spr->As(); - if (peep != nullptr) + const auto staff = spr->As(); + if (staff != nullptr) { - if (!(peep->AssignedPeepType == PeepType::Staff && peep->AssignedStaffType == StaffType::Handyman)) + if (staff->AssignedStaffType != StaffType::Handyman) { continue; } } - else if (spr->sprite_identifier != SpriteIdentifier::Litter) + else if (spr->Type != EntityType::Litter) { continue; } @@ -100,10 +108,10 @@ void sprite_paint_setup(paint_session* session, const uint16_t x, const uint16_t session->SpritePosition.y = spr->y; session->InteractionType = ViewportInteractionItem::Entity; - switch (spr->sprite_identifier) + switch (spr->Type) { - case SpriteIdentifier::Vehicle: - vehicle_paint(session, spr->As(), image_direction); + case EntityType::Vehicle: + PaintEntity(session, spr->As(), image_direction); #ifdef __ENABLE_LIGHTFX__ if (lightfx_for_vehicles_is_available()) { @@ -111,15 +119,39 @@ void sprite_paint_setup(paint_session* session, const uint16_t x, const uint16_t } #endif break; - case SpriteIdentifier::Peep: - peep_paint(session, spr->As(), image_direction); + case EntityType::Guest: + case EntityType::Staff: + PaintEntity(session, spr->As(), image_direction); break; - case SpriteIdentifier::Misc: - // TODO: Update misc_paint to take a specific sprite type - misc_paint(session, spr->As(), image_direction); + case EntityType::SteamParticle: + PaintEntity(session, spr->As(), image_direction); break; - case SpriteIdentifier::Litter: - litter_paint(session, spr->As(), image_direction); + case EntityType::MoneyEffect: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::CrashedVehicleParticle: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::ExplosionCloud: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::CrashSplash: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::ExplosionFlare: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::JumpingFountain: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::Balloon: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::Duck: + PaintEntity(session, spr->As(), image_direction); + break; + case EntityType::Litter: + PaintEntity(session, spr->As(), image_direction); break; default: assert(false); diff --git a/src/openrct2/paint/sprite/Paint.Sprite.h b/src/openrct2/paint/sprite/Paint.Sprite.h index c69b31b8ef..1c038aa53a 100644 --- a/src/openrct2/paint/sprite/Paint.Sprite.h +++ b/src/openrct2/paint/sprite/Paint.Sprite.h @@ -13,15 +13,10 @@ #include "../../common.h" struct paint_session; -struct Litter; -struct MiscEntity; -struct Peep; void sprite_paint_setup(paint_session* session, const uint16_t x, const uint16_t y); -void misc_paint(paint_session* session, const MiscEntity* misc, int32_t imageDirection); -void litter_paint(paint_session* session, const Litter* litter, int32_t imageDirection); -void peep_paint(paint_session* session, const Peep* peep, int32_t imageDirection); +template void PaintEntity(paint_session* session, const T* entity, int32_t imageDirection); extern const uint32_t vehicle_particle_base_sprites[5]; diff --git a/src/openrct2/paint/tile_element/Paint.Banner.cpp b/src/openrct2/paint/tile_element/Paint.Banner.cpp index 6a388f068c..0b3f492ba6 100644 --- a/src/openrct2/paint/tile_element/Paint.Banner.cpp +++ b/src/openrct2/paint/tile_element/Paint.Banner.cpp @@ -55,8 +55,8 @@ void banner_paint(paint_session* session, uint8_t direction, int32_t height, con return; } - auto banner_scenery = get_banner_entry(banner->type); - if (banner_scenery == nullptr) + auto* bannerEntry = get_banner_entry(banner->type); + if (bannerEntry == nullptr) { return; } @@ -66,7 +66,7 @@ void banner_paint(paint_session* session, uint8_t direction, int32_t height, con CoordsXYZ boundBoxOffset = CoordsXYZ(BannerBoundBoxes[direction][0], height + 2); - uint32_t base_id = (direction << 1) + banner_scenery->image; + uint32_t base_id = (direction << 1) + bannerEntry->image; uint32_t image_id = base_id; if (tile_element->IsGhost()) // if being placed @@ -93,7 +93,7 @@ void banner_paint(paint_session* session, uint8_t direction, int32_t height, con if (direction >= 2 || (tile_element->IsGhost())) return; - uint16_t scrollingMode = banner_scenery->banner.scrolling_mode; + uint16_t scrollingMode = bannerEntry->scrolling_mode; if (scrollingMode >= MAX_SCROLLING_TEXT_MODES) { return; diff --git a/src/openrct2/paint/tile_element/Paint.Entrance.cpp b/src/openrct2/paint/tile_element/Paint.Entrance.cpp index c4165deac0..8a7b106617 100644 --- a/src/openrct2/paint/tile_element/Paint.Entrance.cpp +++ b/src/openrct2/paint/tile_element/Paint.Entrance.cpp @@ -164,7 +164,7 @@ static void ride_entrance_exit_paint(paint_session* session, uint8_t direction, auto ft = Formatter(); ft.Add(STR_RIDE_ENTRANCE_NAME); - if (ride->status == RIDE_STATUS_OPEN && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) + if (ride->status == RideStatus::Open && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { ride->FormatNameTo(ft); } diff --git a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp index b0d072d05b..155a442efb 100644 --- a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp @@ -67,7 +67,7 @@ static void large_scenery_paint_supports( paint_util_set_general_support_height(session, clearanceHeight, 0x20); } -static rct_large_scenery_text_glyph* large_scenery_sign_get_glyph(rct_large_scenery_text* text, uint32_t codepoint) +static rct_large_scenery_text_glyph* large_scenery_sign_get_glyph(LargeSceneryText* text, uint32_t codepoint) { if (codepoint >= std::size(text->glyphs)) { @@ -76,7 +76,7 @@ static rct_large_scenery_text_glyph* large_scenery_sign_get_glyph(rct_large_scen return &text->glyphs[codepoint]; } -static int32_t large_scenery_sign_text_width(const utf8* str, rct_large_scenery_text* text) +static int32_t large_scenery_sign_text_width(const utf8* str, LargeSceneryText* text) { int32_t width = 0; uint32_t codepoint; @@ -87,7 +87,7 @@ static int32_t large_scenery_sign_text_width(const utf8* str, rct_large_scenery_ return width; } -static int32_t large_scenery_sign_text_height(const utf8* str, rct_large_scenery_text* text) +static int32_t large_scenery_sign_text_height(const utf8* str, LargeSceneryText* text) { int32_t height = 0; uint32_t codepoint; @@ -98,7 +98,7 @@ static int32_t large_scenery_sign_text_height(const utf8* str, rct_large_scenery return height; } -static void large_scenery_sign_fit_text(const utf8* str, rct_large_scenery_text* text, bool height, utf8* fitStr, size_t bufLen) +static void large_scenery_sign_fit_text(const utf8* str, LargeSceneryText* text, bool height, utf8* fitStr, size_t bufLen) { utf8* fitStrEnd = fitStr; safe_strcpy(fitStr, str, bufLen); @@ -124,8 +124,8 @@ static int32_t div_to_minus_infinity(int32_t a, int32_t b) } static void large_scenery_sign_paint_line( - paint_session* session, const utf8* str, rct_large_scenery_text* text, int32_t textImage, int32_t textColour, - uint8_t direction, int32_t y_offset) + paint_session* session, const utf8* str, LargeSceneryText* text, int32_t textImage, int32_t textColour, uint8_t direction, + int32_t y_offset) { utf8 fitStr[32]; large_scenery_sign_fit_text(str, text, false, fitStr, sizeof(fitStr)); @@ -190,29 +190,29 @@ static void large_scenery_sign_paint_line( struct boundbox { - LocationXY16 offset; - LocationXY16 length; + CoordsXY offset; + CoordsXY length; }; // clang-format off static constexpr const boundbox s98E3C4[] = { - { 3, 3, 26, 26 }, - { 17, 17, 12, 12 }, - { 17, 3, 12, 12 }, - { 17, 3, 12, 26 }, - { 3, 3, 12, 12 }, - { 3, 3, 26, 26 }, - { 3, 3, 28, 12 }, - { 3, 3, 26, 26 }, - { 3, 17, 12, 12 }, - { 3, 17, 26, 12 }, - { 3, 3, 26, 26 }, - { 3, 3, 26, 26 }, - { 3, 3, 12, 28 }, - { 3, 3, 26, 26 }, - { 3, 3, 26, 26 }, - { 3, 3, 26, 26 }, - { 1, 1, 30, 30 }, + { { 3, 3 }, { 26, 26 } }, + { { 17, 17 }, { 12, 12 } }, + { { 17, 3 }, { 12, 12 } }, + { { 17, 3 }, { 12, 26 } }, + { { 3, 3 }, { 12, 12 } }, + { { 3, 3 }, { 26, 26 } }, + { { 3, 3 }, { 28, 12 } }, + { { 3, 3 }, { 26, 26 } }, + { { 3, 17 }, { 12, 12 } }, + { { 3, 17 }, { 26, 12 } }, + { { 3, 3 }, { 26, 26 } }, + { { 3, 3 }, { 26, 26 } }, + { { 3, 3 }, { 12, 28 } }, + { { 3, 3 }, { 26, 26 } }, + { { 3, 3 }, { 26, 26 } }, + { { 3, 3 }, { 26, 26 } }, + { { 1, 1 }, { 30, 30 } }, }; // clang-format on @@ -232,11 +232,11 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei if (object == nullptr) return; - const rct_scenery_entry* entry = tileElement->AsLargeScenery()->GetEntry(); - if (entry == nullptr) + const auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + if (sceneryEntry == nullptr) return; - uint32_t image_id = (sequenceNum << 2) + entry->image + 4 + direction; + uint32_t image_id = (sequenceNum << 2) + sceneryEntry->image + 4 + direction; const rct_large_scenery_tile* tile = object->GetTileForSequence(sequenceNum); if (tile == nullptr) return; @@ -244,8 +244,8 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei uint32_t dword_F4387C = 0; image_id |= SPRITE_ID_PALETTE_COLOUR_2( tileElement->AsLargeScenery()->GetPrimaryColour(), tileElement->AsLargeScenery()->GetSecondaryColour()); - LocationXYZ16 boxlength; - LocationXYZ16 boxoffset; + CoordsXYZ boxlength; + CoordsXYZ boxoffset; if (gTrackDesignSaveMode) { if (!track_design_save_contains_tile_element(tileElement)) @@ -264,12 +264,12 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei dword_F4387C = sequenceNum; image_id |= dword_F4387C; } - int32_t ah = tile->z_clearance; - if (ah > 0x80) + int32_t boxlengthZ = tile->z_clearance; + if (boxlengthZ > 0x80) { - ah = 0x80; + boxlengthZ = 0x80; } - ah -= 3; + boxlengthZ -= 3; uint16_t edi = tile->flags; int32_t esi = 16; if (edi & 0xF00) @@ -283,16 +283,17 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei boxoffset.z = height; boxlength.x = s98E3C4[esi].length.x; boxlength.y = s98E3C4[esi].length.y; - boxlength.z = ah; - PaintAddImageAsParent(session, image_id, 0, 0, boxlength.x, boxlength.y, ah, height, boxoffset.x, boxoffset.y, boxoffset.z); - if (entry->large_scenery.scrolling_mode == SCROLLING_MODE_NONE || direction == 1 || direction == 2) + boxlength.z = boxlengthZ; + PaintAddImageAsParent( + session, image_id, 0, 0, boxlength.x, boxlength.y, boxlengthZ, height, boxoffset.x, boxoffset.y, boxoffset.z); + if (sceneryEntry->scrolling_mode == SCROLLING_MODE_NONE || direction == 1 || direction == 2) { large_scenery_paint_supports(session, direction, height, tileElement, dword_F4387C, tile); return; } - if (entry->large_scenery.flags & LARGE_SCENERY_FLAG_3D_TEXT) + if (sceneryEntry->flags & LARGE_SCENERY_FLAG_3D_TEXT) { - if (entry->large_scenery.tiles[1].x_offset != static_cast(static_cast(0xFFFF))) + if (sceneryEntry->tiles[1].x_offset != static_cast(static_cast(0xFFFF))) { int32_t sequenceDirection = (tileElement->AsLargeScenery()->GetSequenceIndex() - 1) & 3; if (sequenceDirection != direction) @@ -322,7 +323,7 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei banner->FormatTextTo(ft); utf8 signString[256]; format_string(signString, sizeof(signString), STR_STRINGID, ft.Data()); - rct_large_scenery_text* text = entry->large_scenery.text; + LargeSceneryText* text = sceneryEntry->text; int32_t y_offset = (text->offset[(direction & 1)].y * 2); if (text->flags & LARGE_SCENERY_TEXT_FLAG_VERTICAL) { @@ -339,8 +340,7 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei utf8 str[5] = { 0 }; utf8_write_codepoint(str, codepoint); large_scenery_sign_paint_line( - session, str, entry->large_scenery.text, entry->large_scenery.text_image, textColour, direction, - y_offset - height2); + session, str, sceneryEntry->text, sceneryEntry->text_image, textColour, direction, y_offset - height2); y_offset += large_scenery_sign_get_glyph(text, codepoint)->height * 2; } } @@ -382,24 +382,21 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei src = spacesrc; } large_scenery_sign_paint_line( - session, str1, entry->large_scenery.text, entry->large_scenery.text_image, textColour, - direction, y_offset); + session, str1, sceneryEntry->text, sceneryEntry->text_image, textColour, direction, y_offset); y_offset += (large_scenery_sign_get_glyph(text, 'A')->height + 1) * 2; } } else { large_scenery_sign_paint_line( - session, signString, entry->large_scenery.text, entry->large_scenery.text_image, textColour, - direction, y_offset); + session, signString, sceneryEntry->text, sceneryEntry->text_image, textColour, direction, y_offset); } } else { // Draw one-line sign: large_scenery_sign_paint_line( - session, signString, entry->large_scenery.text, entry->large_scenery.text_image, textColour, direction, - y_offset); + session, signString, sceneryEntry->text, sceneryEntry->text_image, textColour, direction, y_offset); } } } @@ -432,7 +429,7 @@ void large_scenery_paint(paint_session* session, uint8_t direction, uint16_t hei textColour = ColourMapA[textColour].light; } // 6B809A: - uint16_t scrollMode = entry->large_scenery.scrolling_mode + ((direction + 1) & 0x3); + uint16_t scrollMode = sceneryEntry->scrolling_mode + ((direction + 1) & 0x3); auto banner = tileElement->AsLargeScenery()->GetBanner(); if (banner != nullptr) { diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 00cff7b966..1b6e59dfa2 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -13,14 +13,15 @@ #include "../../interface/Viewport.h" #include "../../localisation/Localisation.h" #include "../../object/ObjectList.h" +#include "../../peep/Peep.h" #include "../../peep/Staff.h" #include "../../ride/Track.h" #include "../../ride/TrackDesign.h" #include "../../ride/TrackPaint.h" +#include "../../world/Entity.h" #include "../../world/Footpath.h" #include "../../world/Map.h" #include "../../world/Scenery.h" -#include "../../world/Sprite.h" #include "../../world/Surface.h" #include "../Paint.h" #include "../Supports.h" @@ -90,7 +91,7 @@ void path_paint_pole_support( /* rct2: 0x006A5AE5 */ static void path_bit_lights_paint( - paint_session* session, rct_scenery_entry* pathBitEntry, const TileElement* tileElement, int32_t height, uint8_t edges, + paint_session* session, PathBitEntry* pathBitEntry, const TileElement* tileElement, int32_t height, uint8_t edges, uint32_t pathBitImageFlags) { if (tileElement->AsPath()->IsSloped()) @@ -107,7 +108,7 @@ static void path_bit_lights_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 2, 16, 1, 1, 23, height, 3, 16, height + 2); + PaintAddImageAsParent(session, imageId, { 2, 16, height }, { 1, 1, 23 }, { 3, 16, height + 2 }); } if (!(edges & EDGE_SE)) { @@ -118,7 +119,7 @@ static void path_bit_lights_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 16, 30, 1, 0, 23, height, 16, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 30, height }, { 1, 0, 23 }, { 16, 29, height + 2 }); } if (!(edges & EDGE_SW)) @@ -130,7 +131,7 @@ static void path_bit_lights_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 30, 16, 0, 1, 23, height, 29, 16, height + 2); + PaintAddImageAsParent(session, imageId, { 30, 16, height }, { 0, 1, 23 }, { 29, 16, height + 2 }); } if (!(edges & EDGE_NW)) @@ -142,13 +143,13 @@ static void path_bit_lights_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 16, 2, 1, 1, 23, height, 16, 3, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 2, height }, { 1, 1, 23 }, { 16, 3, height + 2 }); } } /* rct2: 0x006A5C94 */ static void path_bit_bins_paint( - paint_session* session, rct_scenery_entry* pathBitEntry, const TileElement* tileElement, int32_t height, uint8_t edges, + paint_session* session, PathBitEntry* pathBitEntry, const TileElement* tileElement, int32_t height, uint8_t edges, uint32_t pathBitImageFlags) { if (tileElement->AsPath()->IsSloped()) @@ -176,7 +177,7 @@ static void path_bit_bins_paint( } if (!(session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) || binIsFull || binsAreVandalised) - PaintAddImageAsParent(session, imageId, 7, 16, 1, 1, 7, height, 7, 16, height + 2); + PaintAddImageAsParent(session, imageId, { 7, 16, height }, { 1, 1, 7 }, { 7, 16, height + 2 }); } if (!(edges & EDGE_SE)) { @@ -197,7 +198,7 @@ static void path_bit_bins_paint( } if (!(session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) || binIsFull || binsAreVandalised) - PaintAddImageAsParent(session, imageId, 16, 25, 1, 1, 7, height, 16, 25, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 25, height }, { 1, 1, 7 }, { 16, 25, height + 2 }); } if (!(edges & EDGE_SW)) @@ -219,7 +220,7 @@ static void path_bit_bins_paint( } if (!(session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) || binIsFull || binsAreVandalised) - PaintAddImageAsParent(session, imageId, 25, 16, 1, 1, 7, height, 25, 16, height + 2); + PaintAddImageAsParent(session, imageId, { 25, 16, height }, { 1, 1, 7 }, { 25, 16, height + 2 }); } if (!(edges & EDGE_NW)) @@ -241,13 +242,13 @@ static void path_bit_bins_paint( } if (!(session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) || binIsFull || binsAreVandalised) - PaintAddImageAsParent(session, imageId, 16, 7, 1, 1, 7, height, 16, 7, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 7, height }, { 1, 1, 7 }, { 16, 7, height + 2 }); } } /* rct2: 0x006A5E81 */ static void path_bit_benches_paint( - paint_session* session, rct_scenery_entry* pathBitEntry, const TileElement* tileElement, int32_t height, uint8_t edges, + paint_session* session, PathBitEntry* pathBitEntry, const TileElement* tileElement, int32_t height, uint8_t edges, uint32_t pathBitImageFlags) { uint32_t imageId; @@ -261,7 +262,7 @@ static void path_bit_benches_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 7, 16, 0, 16, 7, height, 6, 8, height + 2); + PaintAddImageAsParent(session, imageId, { 7, 16, height }, { 0, 16, 7 }, { 6, 8, height + 2 }); } if (!(edges & EDGE_SE)) { @@ -272,7 +273,7 @@ static void path_bit_benches_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 16, 25, 16, 0, 7, height, 8, 23, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 25, height }, { 16, 0, 7 }, { 8, 23, height + 2 }); } if (!(edges & EDGE_SW)) @@ -284,7 +285,7 @@ static void path_bit_benches_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 25, 16, 0, 16, 7, height, 23, 8, height + 2); + PaintAddImageAsParent(session, imageId, { 25, 16, height }, { 0, 16, 7 }, { 23, 8, height + 2 }); } if (!(edges & EDGE_NW)) @@ -296,13 +297,13 @@ static void path_bit_benches_paint( imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId, 16, 7, 16, 0, 7, height, 8, 6, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 7, height }, { 16, 0, 7 }, { 8, 6, height + 2 }); } } /* rct2: 0x006A6008 */ static void path_bit_jumping_fountains_paint( - paint_session* session, rct_scenery_entry* pathBitEntry, int32_t height, uint32_t pathBitImageFlags, rct_drawpixelinfo* dpi) + paint_session* session, PathBitEntry* pathBitEntry, int32_t height, uint32_t pathBitImageFlags, rct_drawpixelinfo* dpi) { if (dpi->zoom_level > 0) return; @@ -310,10 +311,10 @@ static void path_bit_jumping_fountains_paint( uint32_t imageId = pathBitEntry->image; imageId |= pathBitImageFlags; - PaintAddImageAsParent(session, imageId + 1, 0, 0, 1, 1, 2, height, 3, 3, height + 2); - PaintAddImageAsParent(session, imageId + 2, 0, 0, 1, 1, 2, height, 3, 29, height + 2); - PaintAddImageAsParent(session, imageId + 3, 0, 0, 1, 1, 2, height, 29, 29, height + 2); - PaintAddImageAsParent(session, imageId + 4, 0, 0, 1, 1, 2, height, 29, 3, height + 2); + PaintAddImageAsParent(session, imageId + 1, { 0, 0, height }, { 1, 1, 2 }, { 3, 3, height + 2 }); + PaintAddImageAsParent(session, imageId + 2, { 0, 0, height }, { 1, 1, 2 }, { 3, 29, height + 2 }); + PaintAddImageAsParent(session, imageId + 3, { 0, 0, height }, { 1, 1, 2 }, { 29, 29, height + 2 }); + PaintAddImageAsParent(session, imageId + 4, { 0, 0, height }, { 1, 1, 2 }, { 29, 3, height + 2 }); } /** @@ -335,20 +336,20 @@ static void sub_6A4101( & FOOTPATH_PROPERTIES_SLOPE_DIRECTION_MASK) { case 0: - PaintAddImageAsParent(session, 22 + base_image_id, 0, 4, 32, 1, 23, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 22 + base_image_id, 0, 28, 32, 1, 23, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 22 + base_image_id, { 0, 4, height }, { 32, 1, 23 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 22 + base_image_id, { 0, 28, height }, { 32, 1, 23 }, { 0, 28, height + 2 }); break; case 1: - PaintAddImageAsParent(session, 21 + base_image_id, 4, 0, 1, 32, 23, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 21 + base_image_id, 28, 0, 1, 32, 23, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 21 + base_image_id, { 4, 0, height }, { 1, 32, 23 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 21 + base_image_id, { 28, 0, height }, { 1, 32, 23 }, { 28, 0, height + 2 }); break; case 2: - PaintAddImageAsParent(session, 23 + base_image_id, 0, 4, 32, 1, 23, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 23 + base_image_id, 0, 28, 32, 1, 23, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 23 + base_image_id, { 0, 4, height }, { 32, 1, 23 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 23 + base_image_id, { 0, 28, height }, { 32, 1, 23 }, { 0, 28, height + 2 }); break; case 3: - PaintAddImageAsParent(session, 20 + base_image_id, 4, 0, 1, 32, 23, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 20 + base_image_id, 28, 0, 1, 32, 23, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 20 + base_image_id, { 4, 0, height }, { 1, 32, 23 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 20 + base_image_id, { 28, 0, height }, { 1, 32, 23 }, { 28, 0, height + 2 }); break; } } @@ -357,52 +358,52 @@ static void sub_6A4101( switch (local_ebp) { case 1: - PaintAddImageAsParent(session, 17 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 17 + base_image_id, 0, 28, 28, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 17 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 17 + base_image_id, { 0, 28, height }, { 28, 1, 7 }, { 0, 28, height + 2 }); break; case 2: - PaintAddImageAsParent(session, 18 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 18 + base_image_id, 28, 0, 1, 28, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 18 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 18 + base_image_id, { 28, 0, height }, { 1, 28, 7 }, { 28, 0, height + 2 }); break; case 3: - PaintAddImageAsParent(session, 17 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); + PaintAddImageAsParent(session, 17 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); PaintAddImageAsParent( session, 18 + base_image_id, 28, 0, 1, 28, 7, height, 28, 4, height + 2); // bound_box_offset_y seems to be a bug - PaintAddImageAsParent(session, 25 + base_image_id, 0, 0, 4, 4, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 25 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 28, height + 2 }); break; case 4: - PaintAddImageAsParent(session, 19 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 19 + base_image_id, 0, 28, 28, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 19 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 19 + base_image_id, { 0, 28, height }, { 28, 1, 7 }, { 0, 28, height + 2 }); break; case 5: - PaintAddImageAsParent(session, 15 + base_image_id, 0, 4, 32, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 15 + base_image_id, 0, 28, 32, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 15 + base_image_id, { 0, 4, height }, { 32, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 15 + base_image_id, { 0, 28, height }, { 32, 1, 7 }, { 0, 28, height + 2 }); break; case 6: - PaintAddImageAsParent(session, 18 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 19 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 26 + base_image_id, 0, 0, 4, 4, 7, height, 28, 28, height + 2); + PaintAddImageAsParent(session, 18 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 19 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 26 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 28, height + 2 }); break; case 8: - PaintAddImageAsParent(session, 16 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 16 + base_image_id, 28, 0, 1, 28, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 16 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 16 + base_image_id, { 28, 0, height }, { 1, 28, 7 }, { 28, 0, height + 2 }); break; case 9: - PaintAddImageAsParent(session, 16 + base_image_id, 28, 0, 1, 28, 7, height, 28, 0, height + 2); - PaintAddImageAsParent(session, 17 + base_image_id, 0, 28, 28, 1, 7, height, 0, 28, height + 2); - PaintAddImageAsParent(session, 24 + base_image_id, 0, 0, 4, 4, 7, height, 0, 0, height + 2); + PaintAddImageAsParent(session, 16 + base_image_id, { 28, 0, height }, { 1, 28, 7 }, { 28, 0, height + 2 }); + PaintAddImageAsParent(session, 17 + base_image_id, { 0, 28, height }, { 28, 1, 7 }, { 0, 28, height + 2 }); + PaintAddImageAsParent(session, 24 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 0, height + 2 }); break; case 10: - PaintAddImageAsParent(session, 14 + base_image_id, 4, 0, 1, 32, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 14 + base_image_id, 28, 0, 1, 32, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 14 + base_image_id, { 4, 0, height }, { 1, 32, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 14 + base_image_id, { 28, 0, height }, { 1, 32, 7 }, { 28, 0, height + 2 }); break; case 12: - PaintAddImageAsParent(session, 16 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); + PaintAddImageAsParent(session, 16 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); PaintAddImageAsParent( session, 19 + base_image_id, 0, 28, 28, 1, 7, height, 4, 28, height + 2); // bound_box_offset_x seems to be a bug - PaintAddImageAsParent(session, 27 + base_image_id, 0, 0, 4, 4, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 27 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 0, height + 2 }); break; default: // purposely left empty @@ -451,7 +452,7 @@ static void sub_6A4101( auto ft = Formatter(); - if (ride->status == RIDE_STATUS_OPEN && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) + if (ride->status == RideStatus::Open && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { ft.Add(STR_RIDE_ENTRANCE_NAME); ride->FormatNameTo(ft); @@ -500,20 +501,20 @@ static void sub_6A4101( & FOOTPATH_PROPERTIES_SLOPE_DIRECTION_MASK) { case 0: - PaintAddImageAsParent(session, 8 + base_image_id, 0, 4, 32, 1, 23, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 8 + base_image_id, 0, 28, 32, 1, 23, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 8 + base_image_id, { 0, 4, height }, { 32, 1, 23 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 8 + base_image_id, { 0, 28, height }, { 32, 1, 23 }, { 0, 28, height + 2 }); break; case 1: - PaintAddImageAsParent(session, 7 + base_image_id, 4, 0, 1, 32, 23, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 7 + base_image_id, 28, 0, 1, 32, 23, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 7 + base_image_id, { 4, 0, height }, { 1, 32, 23 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 7 + base_image_id, { 28, 0, height }, { 1, 32, 23 }, { 28, 0, height + 2 }); break; case 2: - PaintAddImageAsParent(session, 9 + base_image_id, 0, 4, 32, 1, 23, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 9 + base_image_id, 0, 28, 32, 1, 23, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 9 + base_image_id, { 0, 4, height }, { 32, 1, 23 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 9 + base_image_id, { 0, 28, height }, { 32, 1, 23 }, { 0, 28, height + 2 }); break; case 3: - PaintAddImageAsParent(session, 6 + base_image_id, 4, 0, 1, 32, 23, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 6 + base_image_id, 28, 0, 1, 32, 23, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 6 + base_image_id, { 4, 0, height }, { 1, 32, 23 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 6 + base_image_id, { 28, 0, height }, { 1, 32, 23 }, { 28, 0, height + 2 }); break; } } @@ -530,128 +531,128 @@ static void sub_6A4101( // purposely left empty break; case 1: - PaintAddImageAsParent(session, 3 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 3 + base_image_id, 0, 28, 28, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 3 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 3 + base_image_id, { 0, 28, height }, { 28, 1, 7 }, { 0, 28, height + 2 }); break; case 2: - PaintAddImageAsParent(session, 4 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 4 + base_image_id, 28, 0, 1, 28, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 4 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 4 + base_image_id, { 28, 0, height }, { 1, 28, 7 }, { 28, 0, height + 2 }); break; case 4: - PaintAddImageAsParent(session, 5 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 5 + base_image_id, 0, 28, 28, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 5 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 5 + base_image_id, { 0, 28, height }, { 28, 1, 7 }, { 0, 28, height + 2 }); break; case 5: - PaintAddImageAsParent(session, 1 + base_image_id, 0, 4, 32, 1, 7, height, 0, 4, height + 2); - PaintAddImageAsParent(session, 1 + base_image_id, 0, 28, 32, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 1 + base_image_id, { 0, 4, height }, { 32, 1, 7 }, { 0, 4, height + 2 }); + PaintAddImageAsParent(session, 1 + base_image_id, { 0, 28, height }, { 32, 1, 7 }, { 0, 28, height + 2 }); break; case 8: - PaintAddImageAsParent(session, 2 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 2 + base_image_id, 28, 0, 1, 28, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 2 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 2 + base_image_id, { 28, 0, height }, { 1, 28, 7 }, { 28, 0, height + 2 }); break; case 10: - PaintAddImageAsParent(session, 0 + base_image_id, 4, 0, 1, 32, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 0 + base_image_id, 28, 0, 1, 32, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 0 + base_image_id, { 4, 0, height }, { 1, 32, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 0 + base_image_id, { 28, 0, height }, { 1, 32, 7 }, { 28, 0, height + 2 }); break; case 3: - PaintAddImageAsParent(session, 3 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); + PaintAddImageAsParent(session, 3 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); PaintAddImageAsParent( session, 4 + base_image_id, 28, 0, 1, 28, 7, height, 28, 4, height + 2); // bound_box_offset_y seems to be a bug if (!(drawnCorners & FOOTPATH_CORNER_0)) { - PaintAddImageAsParent(session, 11 + base_image_id, 0, 0, 4, 4, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 11 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 28, height + 2 }); } break; case 6: - PaintAddImageAsParent(session, 4 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); - PaintAddImageAsParent(session, 5 + base_image_id, 0, 4, 28, 1, 7, height, 0, 4, height + 2); + PaintAddImageAsParent(session, 4 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); + PaintAddImageAsParent(session, 5 + base_image_id, { 0, 4, height }, { 28, 1, 7 }, { 0, 4, height + 2 }); if (!(drawnCorners & FOOTPATH_CORNER_1)) { - PaintAddImageAsParent(session, 12 + base_image_id, 0, 0, 4, 4, 7, height, 28, 28, height + 2); + PaintAddImageAsParent(session, 12 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 28, height + 2 }); } break; case 9: - PaintAddImageAsParent(session, 2 + base_image_id, 28, 0, 1, 28, 7, height, 28, 0, height + 2); - PaintAddImageAsParent(session, 3 + base_image_id, 0, 28, 28, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 2 + base_image_id, { 28, 0, height }, { 1, 28, 7 }, { 28, 0, height + 2 }); + PaintAddImageAsParent(session, 3 + base_image_id, { 0, 28, height }, { 28, 1, 7 }, { 0, 28, height + 2 }); if (!(drawnCorners & FOOTPATH_CORNER_3)) { - PaintAddImageAsParent(session, 10 + base_image_id, 0, 0, 4, 4, 7, height, 0, 0, height + 2); + PaintAddImageAsParent(session, 10 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 0, height + 2 }); } break; case 12: - PaintAddImageAsParent(session, 2 + base_image_id, 4, 0, 1, 28, 7, height, 4, 0, height + 2); + PaintAddImageAsParent(session, 2 + base_image_id, { 4, 0, height }, { 1, 28, 7 }, { 4, 0, height + 2 }); PaintAddImageAsParent( session, 5 + base_image_id, 0, 28, 28, 1, 7, height, 4, 28, height + 2); // bound_box_offset_x seems to be a bug if (!(drawnCorners & FOOTPATH_CORNER_2)) { - PaintAddImageAsParent(session, 13 + base_image_id, 0, 0, 4, 4, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 13 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 0, height + 2 }); } break; case 7: - PaintAddImageAsParent(session, 1 + base_image_id, 0, 4, 32, 1, 7, height, 0, 4, height + 2); + PaintAddImageAsParent(session, 1 + base_image_id, { 0, 4, height }, { 32, 1, 7 }, { 0, 4, height + 2 }); if (!(drawnCorners & FOOTPATH_CORNER_0)) { - PaintAddImageAsParent(session, 11 + base_image_id, 0, 0, 4, 4, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 11 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 28, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_1)) { - PaintAddImageAsParent(session, 12 + base_image_id, 0, 0, 4, 4, 7, height, 28, 28, height + 2); + PaintAddImageAsParent(session, 12 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 28, height + 2 }); } break; case 13: - PaintAddImageAsParent(session, 1 + base_image_id, 0, 28, 32, 1, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 1 + base_image_id, { 0, 28, height }, { 32, 1, 7 }, { 0, 28, height + 2 }); if (!(drawnCorners & FOOTPATH_CORNER_2)) { - PaintAddImageAsParent(session, 13 + base_image_id, 0, 0, 4, 4, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 13 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 0, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_3)) { - PaintAddImageAsParent(session, 10 + base_image_id, 0, 0, 4, 4, 7, height, 0, 0, height + 2); + PaintAddImageAsParent(session, 10 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 0, height + 2 }); } break; case 14: - PaintAddImageAsParent(session, 0 + base_image_id, 4, 0, 1, 32, 7, height, 4, 0, height + 2); + PaintAddImageAsParent(session, 0 + base_image_id, { 4, 0, height }, { 1, 32, 7 }, { 4, 0, height + 2 }); if (!(drawnCorners & FOOTPATH_CORNER_1)) { - PaintAddImageAsParent(session, 12 + base_image_id, 0, 0, 4, 4, 7, height, 28, 28, height + 2); + PaintAddImageAsParent(session, 12 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 28, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_2)) { - PaintAddImageAsParent(session, 13 + base_image_id, 0, 0, 4, 4, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 13 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 0, height + 2 }); } break; case 11: - PaintAddImageAsParent(session, 0 + base_image_id, 28, 0, 1, 32, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 0 + base_image_id, { 28, 0, height }, { 1, 32, 7 }, { 28, 0, height + 2 }); if (!(drawnCorners & FOOTPATH_CORNER_0)) { - PaintAddImageAsParent(session, 11 + base_image_id, 0, 0, 4, 4, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 11 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 28, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_3)) { - PaintAddImageAsParent(session, 10 + base_image_id, 0, 0, 4, 4, 7, height, 0, 0, height + 2); + PaintAddImageAsParent(session, 10 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 0, height + 2 }); } break; case 15: if (!(drawnCorners & FOOTPATH_CORNER_0)) { - PaintAddImageAsParent(session, 11 + base_image_id, 0, 0, 4, 4, 7, height, 0, 28, height + 2); + PaintAddImageAsParent(session, 11 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 28, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_1)) { - PaintAddImageAsParent(session, 12 + base_image_id, 0, 0, 4, 4, 7, height, 28, 28, height + 2); + PaintAddImageAsParent(session, 12 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 28, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_2)) { - PaintAddImageAsParent(session, 13 + base_image_id, 0, 0, 4, 4, 7, height, 28, 0, height + 2); + PaintAddImageAsParent(session, 13 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 28, 0, height + 2 }); } if (!(drawnCorners & FOOTPATH_CORNER_3)) { - PaintAddImageAsParent(session, 10 + base_image_id, 0, 0, 4, 4, 7, height, 0, 0, height + 2); + PaintAddImageAsParent(session, 10 + base_image_id, { 0, 0, height }, { 4, 4, 7 }, { 0, 0, height + 2 }); } break; } @@ -699,40 +700,40 @@ static void sub_6A3F61( } // Draw additional path bits (bins, benches, lamps, queue screens) - rct_scenery_entry* sceneryEntry = tile_element->AsPath()->GetAdditionEntry(); + auto* pathAddEntry = tile_element->AsPath()->GetAdditionEntry(); // Can be null if the object is not loaded. - if (sceneryEntry == nullptr) + if (pathAddEntry == nullptr) { paintScenery = false; } else if ( (session->ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) && !(tile_element->AsPath()->IsBroken()) - && !(sceneryEntry->path_bit.draw_type == PATH_BIT_DRAW_TYPE_BINS)) + && pathAddEntry->draw_type != PathBitDrawType::Bin) { paintScenery = false; } else { - switch (sceneryEntry->path_bit.draw_type) + switch (pathAddEntry->draw_type) { - case PATH_BIT_DRAW_TYPE_LIGHTS: + case PathBitDrawType::Light: path_bit_lights_paint( - session, sceneryEntry, tile_element, height, static_cast(connectedEdges), + session, pathAddEntry, tile_element, height, static_cast(connectedEdges), sceneryImageFlags); break; - case PATH_BIT_DRAW_TYPE_BINS: + case PathBitDrawType::Bin: path_bit_bins_paint( - session, sceneryEntry, tile_element, height, static_cast(connectedEdges), + session, pathAddEntry, tile_element, height, static_cast(connectedEdges), sceneryImageFlags); break; - case PATH_BIT_DRAW_TYPE_BENCHES: + case PathBitDrawType::Bench: path_bit_benches_paint( - session, sceneryEntry, tile_element, height, static_cast(connectedEdges), + session, pathAddEntry, tile_element, height, static_cast(connectedEdges), sceneryImageFlags); break; - case PATH_BIT_DRAW_TYPE_JUMPING_FOUNTAINS: - path_bit_jumping_fountains_paint(session, sceneryEntry, height, sceneryImageFlags, dpi); + case PathBitDrawType::JumpingFountain: + path_bit_jumping_fountains_paint(session, pathAddEntry, height, sceneryImageFlags, dpi); break; } @@ -936,7 +937,7 @@ void path_paint(paint_session* session, uint16_t height, const TileElement* tile uint32_t imageId = (SPR_HEIGHT_MARKER_BASE + heightMarkerBaseZ / 16) | COLOUR_GREY << 19 | IMAGE_TYPE_REMAP; imageId += get_height_marker_offset(); imageId -= gMapBaseZ; - PaintAddImageAsParent(session, imageId, 16, 16, 1, 1, 0, heightMarkerBaseZ); + PaintAddImageAsParent(session, imageId, { 16, 16, heightMarkerBaseZ }, { 1, 1, 0 }); } PathSurfaceEntry* footpathEntry = tile_element->AsPath()->GetSurfaceEntry(); @@ -961,8 +962,8 @@ void path_paint(paint_session* session, uint16_t height, const TileElement* tile { if (tile_element->AsPath()->HasAddition() && !(tile_element->AsPath()->IsBroken())) { - rct_scenery_entry* sceneryEntry = tile_element->AsPath()->GetAdditionEntry(); - if (sceneryEntry != nullptr && sceneryEntry->path_bit.flags & PATH_BIT_FLAG_LAMP) + auto* pathAddEntry = tile_element->AsPath()->GetAdditionEntry(); + if (pathAddEntry != nullptr && pathAddEntry->flags & PATH_BIT_FLAG_LAMP) { if (!(tile_element->AsPath()->GetEdges() & EDGE_NE)) { @@ -1001,8 +1002,8 @@ void path_paint_box_support( uint8_t corners = (((tileElement->AsPath()->GetCorners()) << session->CurrentRotation) & 0xF) | (((tileElement->AsPath()->GetCorners()) << session->CurrentRotation) >> 4); - LocationXY16 boundBoxOffset = { stru_98D804[edges][0], stru_98D804[edges][1] }; - LocationXY16 boundBoxSize = { stru_98D804[edges][2], stru_98D804[edges][3] }; + CoordsXY boundBoxOffset = { stru_98D804[edges][0], stru_98D804[edges][1] }; + CoordsXY boundBoxSize = { stru_98D804[edges][2], stru_98D804[edges][3] }; uint16_t edi = edges | (corners << 4); @@ -1148,9 +1149,9 @@ void path_paint_pole_support( uint8_t edges = ((tileElement->AsPath()->GetEdges() << session->CurrentRotation) & 0xF) | (((tileElement->AsPath()->GetEdges()) << session->CurrentRotation) >> 4); - LocationXY16 boundBoxOffset = { stru_98D804[edges][0], stru_98D804[edges][1] }; + CoordsXY boundBoxOffset = { stru_98D804[edges][0], stru_98D804[edges][1] }; - LocationXY16 boundBoxSize = { stru_98D804[edges][2], stru_98D804[edges][3] }; + CoordsXY boundBoxSize = { stru_98D804[edges][2], stru_98D804[edges][3] }; uint8_t corners = (((tileElement->AsPath()->GetCorners()) << session->CurrentRotation) & 0xF) | (((tileElement->AsPath()->GetCorners()) << session->CurrentRotation) >> 4); diff --git a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp index 8fa089c548..e07c6bd115 100644 --- a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp @@ -20,7 +20,7 @@ #include "../Supports.h" #include "Paint.TileElement.h" -static constexpr const LocationXY16 lengths[] = { +static constexpr const CoordsXY lengths[] = { { 12, 26 }, { 26, 12 }, { 12, 26 }, @@ -39,8 +39,8 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co } const SmallSceneryElement* sceneryElement = tileElement->AsSmallScenery(); session->InteractionType = ViewportInteractionItem::Scenery; - LocationXYZ16 boxlength; - LocationXYZ16 boxoffset; + CoordsXYZ boxlength; + CoordsXYZ boxoffset; boxoffset.x = 0; boxoffset.y = 0; boxoffset.z = height; @@ -59,24 +59,24 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co marker = CONSTRUCTION_MARKER; } - rct_scenery_entry* entry = tileElement->AsSmallScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); - if (entry == nullptr) + if (sceneryEntry == nullptr) { return; } - int32_t baseImageid = entry->image + direction; + int32_t baseImageid = sceneryEntry->image + direction; boxlength.x = 2; boxlength.y = 2; int8_t x_offset = 0; int8_t y_offset = 0; - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_FULL_TILE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) { - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HALF_SPACE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HALF_SPACE)) { // 6DFFE3: - static constexpr const LocationXY16 scenery_half_tile_offsets[] = { + static constexpr const CoordsXY scenery_half_tile_offsets[] = { { 3, 3 }, { 3, 17 }, { 17, 3 }, @@ -93,13 +93,13 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co { x_offset = 15; y_offset = 15; - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) { x_offset = 3; y_offset = 3; boxlength.x = 26; boxlength.y = 26; - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_NO_WALLS)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_NO_WALLS)) { x_offset = 1; y_offset = 1; @@ -121,12 +121,12 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co boxoffset.y = y_offset; } // 6E007F: - boxlength.z = entry->small_scenery.height - 4; + boxlength.z = sceneryEntry->height - 4; if (boxlength.z > 128 || boxlength.z < 0) { boxlength.z = 128; } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_CAN_WITHER)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_CAN_WITHER)) { if (tileElement->AsSmallScenery()->GetAge() >= SCENERY_WITHER_AGE_THRESHOLD_1) { @@ -137,9 +137,9 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co baseImageid += 4; } } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) { - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR)) { baseImageid |= SPRITE_ID_PALETTE_COLOUR_2(sceneryElement->GetPrimaryColour(), sceneryElement->GetSecondaryColour()); } @@ -152,14 +152,14 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co { baseImageid = (baseImageid & 0x7FFFF) | marker; } - if (!(scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED))) + if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED))) { PaintAddImageAsParent( session, baseImageid, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HAS_GLASS)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_GLASS)) { if (marker == 0) { @@ -173,16 +173,16 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co } } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_ANIMATED)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_ANIMATED)) { rct_drawpixelinfo* dpi = &session->DPI; - if ((scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED)) || (dpi->zoom_level <= 1)) + if ((scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED)) || (dpi->zoom_level <= 1)) { // 6E01A9: - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_FOUNTAIN_SPRAY_1)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FOUNTAIN_SPRAY_1)) { // 6E0512: - int32_t image_id = ((gCurrentTicks / 2) & 0xF) + entry->image + 4; + int32_t image_id = ((gCurrentTicks / 2) & 0xF) + sceneryEntry->image + 4; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -191,10 +191,10 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); } - else if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_FOUNTAIN_SPRAY_4)) + else if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FOUNTAIN_SPRAY_4)) { // 6E043B: - int32_t image_id = ((gCurrentTicks / 2) & 0xF) + entry->image + 8; + int32_t image_id = ((gCurrentTicks / 2) & 0xF) + sceneryEntry->image + 8; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -203,7 +203,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); - image_id = direction + entry->image + 4; + image_id = direction + sceneryEntry->image + 4; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -212,7 +212,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); - image_id = ((gCurrentTicks / 2) & 0xF) + entry->image + 24; + image_id = ((gCurrentTicks / 2) & 0xF) + sceneryEntry->image + 24; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -221,7 +221,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); } - else if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_IS_CLOCK)) + else if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_IS_CLOCK)) { // 6E035C: int32_t minuteImageOffset = ((gRealTimeOfDay.minute + 6) * 17) / 256; @@ -241,7 +241,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co image_id -= 48; } - image_id = image_id + entry->image + 68; + image_id = image_id + sceneryEntry->image + 68; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -255,7 +255,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co { image_id -= 60; } - image_id = image_id + entry->image + 8; + image_id = image_id + sceneryEntry->image + 8; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -264,14 +264,14 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); } - else if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_SWAMP_GOO)) + else if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_SWAMP_GOO)) { // 6E02F6: int32_t image_id = gCurrentTicks; image_id += session->SpritePosition.x / 4; image_id += session->SpritePosition.y / 4; image_id = (image_id / 4) & 15; - image_id += entry->image; + image_id += sceneryEntry->image; if (marker != 0) { image_id = (image_id & 0x7FFFF) | marker; @@ -280,32 +280,32 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, boxoffset.y, boxoffset.z); } - else if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HAS_FRAME_OFFSETS)) + else if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_FRAME_OFFSETS)) { int32_t frame = gCurrentTicks; - if (!(scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_COG))) + if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_COG))) { // 6E01F8: frame += ((session->SpritePosition.x / 4) + (session->SpritePosition.y / 4)); frame += tileElement->AsSmallScenery()->GetSceneryQuadrant() << 2; } // 6E0222: - uint16_t delay = entry->small_scenery.animation_delay & 0xFF; + uint16_t delay = sceneryEntry->animation_delay & 0xFF; frame >>= delay; - frame &= entry->small_scenery.animation_mask; + frame &= sceneryEntry->animation_mask; int32_t image_id = 0; - if (frame < entry->small_scenery.num_frames) + if (frame < sceneryEntry->num_frames) { - image_id = entry->small_scenery.frame_offsets[frame]; + image_id = sceneryEntry->frame_offsets[frame]; } - image_id = (image_id * 4) + direction + entry->image; - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED | SMALL_SCENERY_FLAG17)) + image_id = (image_id * 4) + direction + sceneryEntry->image; + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED | SMALL_SCENERY_FLAG17)) { image_id += 4; } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR)) { - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR)) { image_id |= SPRITE_ID_PALETTE_COLOUR_2( sceneryElement->GetPrimaryColour(), sceneryElement->GetSecondaryColour()); @@ -319,7 +319,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co { image_id = (image_id & 0x7FFFF) | marker; } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED)) { PaintAddImageAsParent( session, image_id, x_offset, y_offset, boxlength.x, boxlength.y, boxlength.z - 1, height, boxoffset.x, @@ -337,7 +337,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co // 6E0556: Draw supports: if (sceneryElement->NeedsSupports()) { - if (!(scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_NO_SUPPORTS))) + if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_NO_SUPPORTS))) { int32_t ax = 0; int32_t supportHeight = height; @@ -347,7 +347,7 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co ax = 49; } uint32_t supportImageColourFlags = IMAGE_TYPE_REMAP; - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_PAINT_SUPPORTS)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_PAINT_SUPPORTS)) { supportImageColourFlags = SPRITE_ID_PALETTE_COLOUR_1(sceneryElement->GetPrimaryColour()); } @@ -366,23 +366,23 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co } } // 6E05D1: - height += entry->small_scenery.height; + height += sceneryEntry->height; paint_util_set_general_support_height(session, ceil2(height, 8), 0x20); // 6E05FF: - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_BUILD_DIRECTLY_ONTOP)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_BUILD_DIRECTLY_ONTOP)) { - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_FULL_TILE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) { // 6E0825: paint_util_set_segment_support_height(session, SEGMENT_C4, height, 0x20); - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) { paint_util_set_segment_support_height(session, SEGMENTS_ALL & ~SEGMENT_C4, height, 0x20); } return; } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) { // 6E075C: direction = (tileElement->AsSmallScenery()->GetSceneryQuadrant() + rotation) % 4; @@ -392,16 +392,16 @@ void scenery_paint(paint_session* session, uint8_t direction, int32_t height, co } return; } - if (scenery_small_entry_has_flag(entry, (SMALL_SCENERY_FLAG27 | SMALL_SCENERY_FLAG_FULL_TILE))) + if (scenery_small_entry_has_flag(sceneryEntry, (SMALL_SCENERY_FLAG27 | SMALL_SCENERY_FLAG_FULL_TILE))) { paint_util_set_segment_support_height(session, SEGMENT_C4, 0xFFFF, 0); - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) { paint_util_set_segment_support_height(session, SEGMENTS_ALL & ~SEGMENT_C4, 0xFFFF, 0); } return; } - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VOFFSET_CENTRE)) { direction = (tileElement->AsSmallScenery()->GetSceneryQuadrant() + rotation) % 4; paint_util_set_segment_support_height( diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index f3aab4c743..d25d25f660 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -21,10 +21,11 @@ #include "../../object/TerrainEdgeObject.h" #include "../../object/TerrainSurfaceObject.h" #include "../../paint/Paint.h" +#include "../../peep/Peep.h" #include "../../peep/Staff.h" #include "../../ride/TrackDesign.h" #include "../../sprites.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../../world/Surface.h" #include "Paint.TileElement.h" @@ -42,7 +43,7 @@ static constexpr const uint8_t byte_97B444[] = }; // rct2: 0x97B464, 0x97B474, 0x97B484, 0x97B494 -static constexpr const LocationXY16 viewport_surface_paint_data[][4] = { +static constexpr const CoordsXY viewport_surface_paint_data[][4] = { { { 32, 0 }, { -32, 32 }, @@ -304,7 +305,7 @@ static const TerrainSurfaceObject* get_surface_object(size_t index) } static uint32_t get_surface_image( - const paint_session* session, uint8_t index, int32_t offset, uint8_t rotation, int32_t grassLength, bool grid, + const paint_session* session, ObjectEntryIndex index, int32_t offset, uint8_t rotation, int32_t grassLength, bool grid, bool underground) { // Provide fallback for RCT1 surfaces if the user does have RCT1 linked. @@ -560,8 +561,8 @@ static void viewport_surface_draw_tile_side_bottom( CoordsXY offset = { 0, 0 }; CoordsXY bounds = { 0, 0 }; - LocationXY16 tunnelBounds = { 1, 1 }; - LocationXY16 tunnelTopBoundBoxOffset = { 0, 0 }; + CoordsXY tunnelBounds = { 1, 1 }; + CoordsXY tunnelTopBoundBoxOffset = { 0, 0 }; const tunnel_entry* tunnelArray; switch (edge) @@ -656,8 +657,7 @@ static void viewport_surface_draw_tile_side_bottom( if (curHeight != cornerHeight1 && curHeight != cornerHeight2) { uint32_t image_id = base_image_id + image_offset; - PaintAddImageAsParent( - session, image_id, offset.x, offset.y, bounds.x, bounds.y, 15, curHeight * COORDS_Z_PER_TINY_Z); + PaintAddImageAsParent(session, image_id, { offset, curHeight * COORDS_Z_PER_TINY_Z }, { bounds, 15 }); curHeight++; } } @@ -681,8 +681,7 @@ static void viewport_surface_draw_tile_side_bottom( } const uint32_t image_id = base_image_id + image_offset; - PaintAddImageAsParent( - session, image_id, offset.x, offset.y, bounds.x, bounds.y, 15, curHeight * COORDS_Z_PER_TINY_Z); + PaintAddImageAsParent(session, image_id, { offset, curHeight * COORDS_Z_PER_TINY_Z }, { bounds, 15 }); return; } @@ -697,8 +696,7 @@ static void viewport_surface_draw_tile_side_bottom( if (isWater || curHeight != tunnelArray[tunnelIndex].height) { - PaintAddImageAsParent( - session, base_image_id, offset.x, offset.y, bounds.x, bounds.y, 15, curHeight * COORDS_Z_PER_TINY_Z); + PaintAddImageAsParent(session, base_image_id, { offset, curHeight * COORDS_Z_PER_TINY_Z }, { bounds, 15 }); curHeight++; continue; @@ -727,8 +725,8 @@ static void viewport_surface_draw_tile_side_bottom( uint32_t image_id = get_tunnel_image(edgeStyle, tunnelType) + (edge == EDGE_BOTTOMRIGHT ? 2 : 0); PaintAddImageAsParent( - session, image_id, offset.x, offset.y, tunnelBounds.x, tunnelBounds.y, boundBoxLength - 1, zOffset, 0, 0, - boundBoxOffsetZ); + session, image_id, { offset, zOffset }, { tunnelBounds.x, tunnelBounds.y, boundBoxLength - 1 }, + { 0, 0, boundBoxOffsetZ }); boundBoxOffsetZ = curHeight * COORDS_Z_PER_TINY_Z; boundBoxLength = _tunnelHeights[tunnelType][1] * 16; @@ -741,8 +739,9 @@ static void viewport_surface_draw_tile_side_bottom( image_id = get_tunnel_image(edgeStyle, tunnelType) + (edge == EDGE_BOTTOMRIGHT ? 2 : 0) + 1; PaintAddImageAsParent( - session, image_id, offset.x, offset.y, tunnelBounds.x, tunnelBounds.y, boundBoxLength - 1, - curHeight * COORDS_Z_PER_TINY_Z, tunnelTopBoundBoxOffset.x, tunnelTopBoundBoxOffset.y, boundBoxOffsetZ); + session, image_id, { offset, curHeight * COORDS_Z_PER_TINY_Z }, + { tunnelBounds.x, tunnelBounds.y, boundBoxLength - 1 }, + { tunnelTopBoundBoxOffset.x, tunnelTopBoundBoxOffset.y, boundBoxOffsetZ }); curHeight += _tunnelHeights[tunnelType][0]; tunnelIndex++; @@ -876,7 +875,7 @@ static void viewport_surface_draw_tile_side_top( { const uint32_t image_id = base_image_id + image_offset; PaintAddImageAsParent( - session, image_id, offset.x, offset.y, bounds.x, bounds.y, 15, cur_height * COORDS_Z_PER_TINY_Z); + session, image_id, { offset.x, offset.y, cur_height * COORDS_Z_PER_TINY_Z }, { bounds.x, bounds.y, 15 }); cur_height++; } } @@ -891,8 +890,7 @@ static void viewport_surface_draw_tile_side_top( while (cur_height < cornerHeight1 && cur_height < neighbourCornerHeight1) { - PaintAddImageAsParent( - session, base_image_id, offset.x, offset.y, bounds.x, bounds.y, 15, cur_height * COORDS_Z_PER_TINY_Z); + PaintAddImageAsParent(session, base_image_id, { offset, cur_height * COORDS_Z_PER_TINY_Z }, { bounds, 15 }); cur_height++; } @@ -908,7 +906,7 @@ static void viewport_surface_draw_tile_side_top( } const uint32_t image_id = base_image_id + image_offset; - PaintAddImageAsParent(session, image_id, offset.x, offset.y, bounds.x, bounds.y, 15, cur_height * COORDS_Z_PER_TINY_Z); + PaintAddImageAsParent(session, image_id, { offset, cur_height * COORDS_Z_PER_TINY_Z }, { bounds, 15 }); } /** @@ -971,7 +969,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c const auto zoomLevel = dpi->zoom_level; const uint8_t rotation = session->CurrentRotation; - const uint32_t terrain_type = tileElement->AsSurface()->GetSurfaceStyle(); + const auto terrain_type = tileElement->AsSurface()->GetSurfaceStyle(); const uint8_t surfaceShape = viewport_surface_paint_setup_get_relative_slope(tileElement, rotation); const CoordsXY& base = session->SpritePosition; const corner_height& cornerHeights = corner_heights[surfaceShape]; @@ -994,11 +992,8 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c for (int32_t i = 0; i < 4; i++) { - const LocationXY16& offset = viewport_surface_paint_data[i][rotation]; - const CoordsXY position = { - static_cast(base.x + offset.x), - static_cast(base.y + offset.y), - }; + const CoordsXY& offset = viewport_surface_paint_data[i][rotation]; + const CoordsXY position = base + offset; tile_descriptor& descriptor = tileDescriptors[i + 1]; @@ -1048,10 +1043,10 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c if (session->VerticalTunnelHeight * COORDS_Z_PER_TINY_Z == height) { // Vertical tunnels - PaintAddImageAsParent(session, 1575, 0, 0, 1, 30, 39, height, -2, 1, height - 40); - PaintAddImageAsParent(session, 1576, 0, 0, 30, 1, 0, height, 1, 31, height); - PaintAddImageAsParent(session, 1577, 0, 0, 1, 30, 0, height, 31, 1, height); - PaintAddImageAsParent(session, 1578, 0, 0, 30, 1, 39, height, 1, -2, height - 40); + PaintAddImageAsParent(session, 1575, { 0, 0, height }, { 1, 30, 39 }, { -2, 1, height - 40 }); + PaintAddImageAsParent(session, 1576, { 0, 0, height }, { 30, 1, 0 }, { 1, 31, height }); + PaintAddImageAsParent(session, 1577, { 0, 0, height }, { 1, 30, 0 }, { 31, 1, height }); + PaintAddImageAsParent(session, 1578, { 0, 0, height }, { 30, 1, 39 }, { 1, -2, height - 40 }); } else { @@ -1080,7 +1075,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c imageId |= 0x41880000; } - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, -1, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, -1 }); has_surface = true; } @@ -1123,7 +1118,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c image_id |= patrolColour << 19; paint_struct* backup = session->LastPS; - PaintAddImageAsParent(session, image_id, 0, 0, 32, 32, 1, local_height); + PaintAddImageAsParent(session, image_id, { 0, 0, local_height }, { 32, 32, 1 }); session->LastPS = backup; } } @@ -1141,7 +1136,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c const int32_t offset = (direction_reverse(spawn.direction) + rotation) & 3; const uint32_t image_id = (PEEP_SPAWN_ARROW_0 + offset) | 0x20380000; - PaintAddImageAsParent(session, image_id, 0, 0, 32, 32, 19, spawn.z); + PaintAddImageAsParent(session, image_id, { 0, 0, spawn.z }, { 32, 32, 19 }); } } } @@ -1159,7 +1154,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c const CoordsXY& pos = session->MapPosition; const int32_t height2 = (tile_element_height({ pos.x + 16, pos.y + 16 })) + 3; paint_struct* backup = session->LastPS; - PaintAddImageAsParent(session, SPR_LAND_OWNERSHIP_AVAILABLE, 16, 16, 1, 1, 0, height2); + PaintAddImageAsParent(session, SPR_LAND_OWNERSHIP_AVAILABLE, { 16, 16, height2 }, { 1, 1, 0 }); session->LastPS = backup; } } @@ -1176,7 +1171,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c const CoordsXY& pos = session->MapPosition; const int32_t height2 = tile_element_height({ pos.x + 16, pos.y + 16 }); paint_struct* backup = session->LastPS; - PaintAddImageAsParent(session, SPR_LAND_CONSTRUCTION_RIGHTS_AVAILABLE, 16, 16, 1, 1, 0, height2 + 3); + PaintAddImageAsParent(session, SPR_LAND_CONSTRUCTION_RIGHTS_AVAILABLE, { 16, 16, height2 + 3 }, { 1, 1, 0 }); session->LastPS = backup; } } @@ -1231,7 +1226,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c const int32_t image_id = (SPR_TERRAIN_SELECTION_CORNER + byte_97B444[local_surfaceShape]) | 0x21300000; paint_struct* backup = session->LastPS; - PaintAddImageAsParent(session, image_id, 0, 0, 32, 32, 1, local_height); + PaintAddImageAsParent(session, image_id, { 0, 0, local_height }, { 32, 32, 1 }); session->LastPS = backup; } } @@ -1260,7 +1255,7 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c } } - if (zoomLevel == 0 && has_surface && !(session->ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) + if (zoomLevel <= 0 && has_surface && !(session->ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) && !(session->ViewFlags & VIEWPORT_FLAG_HIDE_BASE) && gConfigGeneral.landscape_smoothing) { viewport_surface_smoothen_edge(session, EDGE_TOPLEFT, tileDescriptors[0], tileDescriptors[3]); @@ -1279,8 +1274,8 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c if (!(session->ViewFlags & VIEWPORT_FLAG_HIDE_VERTICAL)) { - const uint32_t edgeStyle = tileElement->AsSurface()->GetEdgeStyle(); - if (edgeStyle >= TERRAIN_EDGE_COUNT) + const auto edgeStyle = tileElement->AsSurface()->GetEdgeStyle(); + if (static_cast(edgeStyle) >= object_entry_group_counts[EnumValue(ObjectType::TerrainEdge)]) { log_verbose("edgeStyle: %d", edgeStyle); } @@ -1313,9 +1308,11 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c const int32_t image_id = (SPR_WATER_MASK + image_offset) | IMAGE_TYPE_REMAP | IMAGE_TYPE_TRANSPARENT | EnumValue(FilterPaletteID::PaletteWater) << 19; - PaintAddImageAsParent(session, image_id, 0, 0, 32, 32, -1, waterHeight); + PaintAddImageAsParent(session, image_id, { 0, 0, waterHeight }, { 32, 32, -1 }); - PaintAttachToPreviousPS(session, SPR_WATER_OVERLAY + image_offset, 0, 0); + const bool transparent = gConfigGeneral.transparent_water || (session->ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); + const uint32_t overlayStart = transparent ? SPR_WATER_OVERLAY : SPR_RCT1_WATER_OVERLAY; + PaintAttachToPreviousPS(session, overlayStart + image_offset, 0, 0); if (!(session->ViewFlags & VIEWPORT_FLAG_HIDE_VERTICAL)) { @@ -1390,13 +1387,13 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c } PaintAddImageAsParent( - session, image_id, fenceData.offset.x, fenceData.offset.y, fenceData.box_size.x, fenceData.box_size.y, 9, - local_height, fenceData.box_offset.x, fenceData.box_offset.y, local_height + 1); + session, image_id, { fenceData.offset, local_height }, { fenceData.box_size, 9 }, + { fenceData.box_offset, local_height + 1 }); } } session->InteractionType = ViewportInteractionItem::Terrain; - session->Unk141E9DB |= G141E9DB_FLAG_1; + session->Unk141E9DB |= PaintSessionFlags::IsPassedSurface; switch (surfaceShape) { diff --git a/src/openrct2/paint/tile_element/Paint.Surface.h b/src/openrct2/paint/tile_element/Paint.Surface.h index 6b774390f8..15a7a6793e 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.h +++ b/src/openrct2/paint/tile_element/Paint.Surface.h @@ -100,6 +100,9 @@ enum SPR_TERRAIN_PATTERN_MARTIAN = 28995, SPR_TERRAIN_PATTERN_GRASS_CLUMPS = 29001, SPR_TERRAIN_PATTERN_ICE = 29007, + + SPR_RCT1_WATER_MASK = SPR_CSG_BEGIN + 46787, + SPR_RCT1_WATER_OVERLAY = SPR_CSG_BEGIN + 46792, }; #endif //_PAINT_SURFACE_H diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp index e0dddc72c5..cd7626c086 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp +++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp @@ -23,7 +23,6 @@ #include "../../world/Entrance.h" #include "../../world/Footpath.h" #include "../../world/Scenery.h" -#include "../../world/Sprite.h" #include "../../world/Surface.h" #include "../Paint.h" #include "../Supports.h" @@ -46,36 +45,15 @@ const int32_t SEGMENTS_ALL = SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | * * rct2: 0x0068B35F */ -void tile_element_paint_setup(paint_session* session, int32_t x, int32_t y) +void tile_element_paint_setup(paint_session* session, const CoordsXY& mapCoords, bool isTrackPiecePreview) { - if (x < gMapSizeUnits && y < gMapSizeUnits && x >= 32 && y >= 32) + if (!map_is_edge(mapCoords)) { paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0); paint_util_force_set_general_support_height(session, -1, 0); - session->Unk141E9DB = 0; + session->Unk141E9DB = isTrackPiecePreview ? PaintSessionFlags::IsTrackPiecePreview : 0; session->WaterHeight = 0xFFFF; - sub_68B3FB(session, x, y); - } - else if (!(session->ViewFlags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND)) - { - blank_tiles_paint(session, x, y); - } -} - -/** - * - * rct2: 0x0068B2B7 - */ -void sub_68B2B7(paint_session* session, const CoordsXY& mapCoords) -{ - if (mapCoords.x < gMapSizeUnits && mapCoords.y < gMapSizeUnits && mapCoords.x >= 32 && mapCoords.y >= 32) - { - paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0); - paint_util_force_set_general_support_height(session, -1, 0); - session->WaterHeight = 0xFFFF; - session->Unk141E9DB = G141E9DB_FLAG_2; - sub_68B3FB(session, mapCoords.x, mapCoords.y); } else if (!(session->ViewFlags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND)) @@ -125,7 +103,7 @@ static void blank_tiles_paint(paint_session* session, int32_t x, int32_t y) session->SpritePosition.x = x; session->SpritePosition.y = y; session->InteractionType = ViewportInteractionItem::None; - PaintAddImageAsParent(session, SPR_BLANK_TILE, 0, 0, 32, 32, -1, 16); + PaintAddImageAsParent(session, SPR_BLANK_TILE, { 0, 0, 16 }, { 32, 32, -1 }); } bool gShowSupportSegmentHeights = false; @@ -201,7 +179,7 @@ static void sub_68B3FB(paint_session* session, int32_t x, int32_t y) session->SpritePosition.y = y; session->InteractionType = ViewportInteractionItem::None; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, -1, arrowZ, 0, 0, arrowZ + 18); + PaintAddImageAsParent(session, imageId, { 0, 0, arrowZ }, { 32, 32, -1 }, { 0, 0, arrowZ + 18 }); } int32_t bx = dx + 52; @@ -372,8 +350,8 @@ static void sub_68B3FB(paint_session* session, int32_t x, int32_t y) int32_t xOffset = sy * 10; int32_t yOffset = -22 + sx * 10; paint_struct* ps = PaintAddImageAsParent( - session, 5504 | imageColourFlats, xOffset, yOffset, 10, 10, 1, segmentHeight, xOffset + 1, yOffset + 16, - segmentHeight); + session, 5504 | imageColourFlats, { xOffset, yOffset, segmentHeight }, { 10, 10, 1 }, + { xOffset + 1, yOffset + 16, segmentHeight }); if (ps != nullptr) { ps->flags &= PAINT_STRUCT_FLAG_IS_MASKED; diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.h b/src/openrct2/paint/tile_element/Paint.TileElement.h index c7cb5ecf06..3de26c34d4 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.h +++ b/src/openrct2/paint/tile_element/Paint.TileElement.h @@ -72,11 +72,12 @@ enum TUNNEL_TYPE_COUNT }; -enum +namespace PaintSessionFlags { - G141E9DB_FLAG_1 = 1, - G141E9DB_FLAG_2 = 2, -}; + // Unsure as to why this exists and DidPassSurface + constexpr uint8_t IsPassedSurface = 1; + constexpr uint8_t IsTrackPiecePreview = 2; +} // namespace PaintSessionFlags #ifdef __TESTPAINT__ extern uint16_t testPaintVerticalTunnelHeight; @@ -100,7 +101,7 @@ void paint_util_force_set_general_support_height(paint_session* session, int16_t void paint_util_set_segment_support_height(paint_session* session, int32_t segments, uint16_t height, uint8_t slope); uint16_t paint_util_rotate_segments(uint16_t segments, uint8_t rotation); -void tile_element_paint_setup(paint_session* session, int32_t x, int32_t y); +void tile_element_paint_setup(paint_session* session, const CoordsXY& mapCoords, bool isTrackPiecePreview = false); void entrance_paint(paint_session* session, uint8_t direction, int32_t height, const TileElement* tile_element); void banner_paint(paint_session* session, uint8_t direction, int32_t height, const TileElement* tile_element); diff --git a/src/openrct2/paint/tile_element/Paint.Wall.cpp b/src/openrct2/paint/tile_element/Paint.Wall.cpp index de9d78e352..fc66fae338 100644 --- a/src/openrct2/paint/tile_element/Paint.Wall.cpp +++ b/src/openrct2/paint/tile_element/Paint.Wall.cpp @@ -40,11 +40,11 @@ static constexpr const uint8_t byte_9A40CC[] = { }; static void fence_paint_door( - paint_session* session, uint32_t imageId, rct_scenery_entry* sceneryEntry, uint32_t imageColourFlags, - uint32_t tertiaryColour, uint32_t dword_141F710, LocationXYZ16 offset, LocationXYZ16 boundsR1, LocationXYZ16 boundsR1_, - LocationXYZ16 boundsR2, LocationXYZ16 boundsR2_, LocationXYZ16 boundsL1, LocationXYZ16 boundsL1_) + paint_session* session, uint32_t imageId, WallSceneryEntry* wallEntry, uint32_t imageColourFlags, uint32_t tertiaryColour, + uint32_t dword_141F710, CoordsXYZ offset, CoordsXYZ boundsR1, CoordsXYZ boundsR1_, CoordsXYZ boundsR2, CoordsXYZ boundsR2_, + CoordsXYZ boundsL1, CoordsXYZ boundsL1_) { - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) { imageId |= imageColourFlags; } @@ -54,7 +54,7 @@ static void fence_paint_door( imageId = (imageId & 0x7FFFF) | dword_141F710; } - if (sceneryEntry->wall.flags & WALL_SCENERY_IS_BANNER) + if (wallEntry->flags & WALL_SCENERY_IS_DOUBLE_SIDED) { paint_struct* ps; @@ -97,16 +97,16 @@ static void fence_paint_door( } static void fence_paint_wall( - paint_session* session, uint32_t frameNum, const rct_scenery_entry* sceneryEntry, uint32_t dword_141F710, - uint32_t imageColourFlags, uint32_t dword_141F718, uint32_t tertiaryColour, uint32_t imageOffset, LocationXYZ16 offset, - LocationXYZ16 bounds, LocationXYZ16 boundsOffset) + paint_session* session, uint32_t frameNum, const WallSceneryEntry* wallEntry, uint32_t dword_141F710, + uint32_t imageColourFlags, uint32_t dword_141F718, uint32_t tertiaryColour, uint32_t imageOffset, CoordsXYZ offset, + CoordsXYZ bounds, CoordsXYZ boundsOffset) { - uint32_t baseImageId = sceneryEntry->image + imageOffset + frameNum; + uint32_t baseImageId = wallEntry->image + imageOffset + frameNum; uint32_t imageId = baseImageId; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_GLASS) + if (wallEntry->flags & WALL_SCENERY_HAS_GLASS) { - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) { imageId |= imageColourFlags; } @@ -129,7 +129,7 @@ static void fence_paint_wall( } else { - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_PRIMARY_COLOUR) { imageId |= imageColourFlags; } @@ -158,14 +158,14 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons { session->InteractionType = ViewportInteractionItem::Wall; - rct_scenery_entry* sceneryEntry = tile_element->AsWall()->GetEntry(); - if (sceneryEntry == nullptr) + auto* wallEntry = tile_element->AsWall()->GetEntry(); + if (wallEntry == nullptr) { return; } uint32_t frameNum = 0; - if (sceneryEntry->wall.flags2 & WALL_SCENERY_2_ANIMATED) + if (wallEntry->flags2 & WALL_SCENERY_2_ANIMATED) { frameNum = (gCurrentTicks & 7) * 2; } @@ -174,14 +174,14 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons uint32_t imageColourFlags = SPRITE_ID_PALETTE_COLOUR_1(primaryColour); uint32_t dword_141F718 = imageColourFlags + 0x23800006; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) { uint8_t secondaryColour = tile_element->AsWall()->GetSecondaryColour(); imageColourFlags |= secondaryColour << 24 | IMAGE_TYPE_REMAP_2_PLUS; } uint32_t tertiaryColour = 0; - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR) + if (wallEntry->flags & WALL_SCENERY_HAS_TERNARY_COLOUR) { tertiaryColour = tile_element->AsWall()->GetTertiaryColour(); imageColourFlags &= 0x0DFFFFFFF; @@ -206,12 +206,12 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons // Save tile_element - uint8_t ah = sceneryEntry->wall.height * 8 - 2; + uint8_t ah = wallEntry->height * 8 - 2; - if (sceneryEntry->wall.flags & WALL_SCENERY_IS_DOOR) + if (wallEntry->flags & WALL_SCENERY_IS_DOOR) { - LocationXYZ16 offset; - LocationXYZ16 boundsR1, boundsR1_, boundsR2, boundsR2_, boundsL1, boundsL1_; + CoordsXYZ offset; + CoordsXYZ boundsR1, boundsR1_, boundsR2, boundsR2_, boundsL1, boundsL1_; uint8_t animationFrame = tile_element->AsWall()->GetAnimationFrame(); // Add the direction as well if (tile_element->AsWall()->AnimationIsBackwards()) @@ -220,7 +220,7 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons switch (direction) { case 0: - imageId = sceneryEntry->image + byte_9A406C[animationFrame]; + imageId = wallEntry->image + byte_9A406C[animationFrame]; boundsR1 = { 1, 3, static_cast(ah - 5) }; boundsR1_ = { 1, 1, static_cast(height + 1) }; @@ -233,12 +233,12 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons offset = { 0, 0, static_cast(height) }; fence_paint_door( - session, imageId, sceneryEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, - boundsR1_, boundsR2, boundsR2_, boundsL1, boundsL1_); + session, imageId, wallEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, boundsR1_, + boundsR2, boundsR2_, boundsL1, boundsL1_); break; case 1: - imageId = sceneryEntry->image + byte_9A408C[animationFrame]; + imageId = wallEntry->image + byte_9A408C[animationFrame]; boundsR1 = { 3, 3, static_cast(ah - 5) }; boundsR1_ = { 1, 30, static_cast(height + 1) }; @@ -251,12 +251,12 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons offset = { 1, 31, static_cast(height) }; fence_paint_door( - session, imageId, sceneryEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, - boundsR1_, boundsR2, boundsR2_, boundsL1, boundsL1_); + session, imageId, wallEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, boundsR1_, + boundsR2, boundsR2_, boundsL1, boundsL1_); break; case 2: - imageId = sceneryEntry->image + byte_9A40AC[animationFrame]; + imageId = wallEntry->image + byte_9A40AC[animationFrame]; boundsR1 = { 3, 3, static_cast(ah - 5) }; boundsR1_ = { 30, 1, static_cast(height + 1) }; @@ -269,12 +269,12 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons offset = { 31, 0, static_cast(height) }; fence_paint_door( - session, imageId, sceneryEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, - boundsR1_, boundsR2, boundsR2_, boundsL1, boundsL1_); + session, imageId, wallEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, boundsR1_, + boundsR2, boundsR2_, boundsL1, boundsL1_); break; case 3: - imageId = sceneryEntry->image + byte_9A40CC[animationFrame]; + imageId = wallEntry->image + byte_9A40CC[animationFrame]; boundsR1 = { 3, 1, static_cast(ah - 5) }; boundsR1_ = { 1, 1, static_cast(height + 1) }; @@ -287,8 +287,8 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons offset = { 2, 1, static_cast(height) }; fence_paint_door( - session, imageId, sceneryEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, - boundsR1_, boundsR2, boundsR2_, boundsL1, boundsL1_); + session, imageId, wallEntry, imageColourFlags, tertiaryColour, dword_141F710, offset, boundsR1, boundsR1_, + boundsR2, boundsR2_, boundsL1, boundsL1_); break; } @@ -296,7 +296,7 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons } uint32_t imageOffset = 0; - LocationXYZ16 offset = { 0, 0, 0 }, bounds = { 0, 0, 0 }, boundsOffset = { 0, 0, 0 }; + CoordsXYZ offset = { 0, 0, 0 }, bounds = { 0, 0, 0 }, boundsOffset = { 0, 0, 0 }; switch (direction) { @@ -333,16 +333,16 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons imageOffset = 0; } - if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_GLASS) + if (wallEntry->flags & WALL_SCENERY_HAS_GLASS) { - if (sceneryEntry->wall.flags & WALL_SCENERY_IS_BANNER) + if (wallEntry->flags & WALL_SCENERY_IS_DOUBLE_SIDED) { imageOffset += 12; } } else { - if (sceneryEntry->wall.flags & WALL_SCENERY_IS_BANNER) + if (wallEntry->flags & WALL_SCENERY_IS_DOUBLE_SIDED) { imageOffset += 6; } @@ -367,7 +367,7 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons imageOffset = 1; } - if (sceneryEntry->wall.flags & WALL_SCENERY_IS_BANNER) + if (wallEntry->flags & WALL_SCENERY_IS_DOUBLE_SIDED) { imageOffset += 6; } @@ -398,10 +398,10 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons } fence_paint_wall( - session, frameNum, sceneryEntry, dword_141F710, imageColourFlags, dword_141F718, tertiaryColour, imageOffset, offset, + session, frameNum, wallEntry, dword_141F710, imageColourFlags, dword_141F718, tertiaryColour, imageOffset, offset, bounds, boundsOffset); - if (sceneryEntry->wall.scrolling_mode == SCROLLING_MODE_NONE) + if (wallEntry->scrolling_mode == SCROLLING_MODE_NONE) { return; } @@ -425,7 +425,7 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons secondaryColour = ColourMapA[secondaryColour].light; } - uint16_t scrollingMode = sceneryEntry->wall.scrolling_mode + ((direction + 1) & 0x3); + uint16_t scrollingMode = wallEntry->scrolling_mode + ((direction + 1) & 0x3); if (scrollingMode >= MAX_SCROLLING_TEXT_MODES) { return; diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index a370acec78..828082215b 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -25,14 +25,20 @@ #include "../ride/ShopItem.h" #include "../ride/Station.h" #include "../ride/Track.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" +#include "../scripting/HookEngine.h" +#include "../scripting/ScriptEngine.h" #include "../util/Util.h" #include "../windows/Intent.h" +#include "../world/Balloon.h" #include "../world/Climate.h" #include "../world/Footpath.h" #include "../world/LargeScenery.h" #include "../world/Map.h" +#include "../world/MoneyEffect.h" #include "../world/Park.h" +#include "../world/Particle.h" #include "../world/Scenery.h" #include "../world/Sprite.h" #include "../world/Surface.h" @@ -42,6 +48,7 @@ #include "Staff.h" #include +#include #include using namespace OpenRCT2; @@ -204,43 +211,233 @@ static constexpr const char *gPeepEasterEggNames[] = { "DAVID ELLIS" }; +// Flags used by PeepThoughtToActionMap +enum PeepThoughtToActionFlag : uint8_t +{ + PEEP_THOUGHT_ACTION_NO_FLAGS = 0, + PEEP_THOUGHT_ACTION_FLAG_RIDE = (1 << 0), + PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_SINGULAR = (1 << 1), + PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE = (1 << 2), +}; + +/** rct2: 0x00981DB0 */ +static struct +{ + PeepActionType action; + PeepThoughtToActionFlag flags; +} PeepThoughtToActionMap[] = { + { PeepActionType::ShakeHead, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::EmptyPockets, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Wow, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_SINGULAR }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE }, + { PeepActionType::ShakeHead, PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Wave, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Joy, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::CheckTime, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Wave, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Wave, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Disgust, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::BeingWatched, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::ShakeHead, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Joy, PEEP_THOUGHT_ACTION_NO_FLAGS }, + { PeepActionType::Walking, PEEP_THOUGHT_ACTION_FLAG_RIDE }, +}; + // These arrays contain the base minimum and maximum nausea ratings for peeps, based on their nausea tolerance level. static constexpr const ride_rating NauseaMinimumThresholds[] = { 0, 0, 200, 400 }; // clang-format on -static bool peep_has_voucher_for_free_ride(Peep* peep, Ride* ride); +static bool peep_has_voucher_for_free_ride(Guest* peep, Ride* ride); static void peep_ride_is_too_intense(Guest* peep, Ride* ride, bool peepAtRide); -static void peep_reset_ride_heading(Peep* peep); -static void peep_tried_to_enter_full_queue(Peep* peep, Ride* ride); +static void peep_reset_ride_heading(Guest* peep); +static void peep_tried_to_enter_full_queue(Guest* peep, Ride* ride); static int16_t peep_calculate_ride_satisfaction(Guest* peep, Ride* ride); -static void peep_update_favourite_ride(Peep* peep, Ride* ride); -static int16_t peep_calculate_ride_value_satisfaction(Peep* peep, Ride* ride); -static int16_t peep_calculate_ride_intensity_nausea_satisfaction(Peep* peep, Ride* ride); -static void peep_update_ride_nausea_growth(Peep* peep, Ride* ride); -static bool peep_should_go_on_ride_again(Peep* peep, Ride* ride); -static bool peep_should_preferred_intensity_increase(Peep* peep); -static bool peep_really_liked_ride(Peep* peep, Ride* ride); +static void peep_update_favourite_ride(Guest* peep, Ride* ride); +static int16_t peep_calculate_ride_value_satisfaction(Guest* peep, Ride* ride); +static int16_t peep_calculate_ride_intensity_nausea_satisfaction(Guest* peep, Ride* ride); +static void peep_update_ride_nausea_growth(Guest* peep, Ride* ride); +static bool peep_should_go_on_ride_again(Guest* peep, Ride* ride); +static bool peep_should_preferred_intensity_increase(Guest* peep); +static bool peep_really_liked_ride(Guest* peep, Ride* ride); static PeepThoughtType peep_assess_surroundings(int16_t centre_x, int16_t centre_y, int16_t centre_z); -static void peep_update_hunger(Peep* peep); -static void peep_decide_whether_to_leave_park(Peep* peep); -static void peep_leave_park(Peep* peep); +static void peep_update_hunger(Guest* peep); +static void peep_decide_whether_to_leave_park(Guest* peep); +static void peep_leave_park(Guest* peep); static void peep_head_for_nearest_ride_type(Guest* peep, int32_t rideType); static void peep_head_for_nearest_ride_with_flags(Guest* peep, int32_t rideTypeFlags); -bool loc_690FD0(Peep* peep, uint8_t* rideToView, uint8_t* rideSeatToView, TileElement* tileElement); +bool loc_690FD0(Peep* peep, ride_id_t* rideToView, uint8_t* rideSeatToView, TileElement* tileElement); template<> bool SpriteBase::Is() const { - auto peep = As(); - return peep && peep->AssignedPeepType == PeepType::Guest; + return Type == EntityType::Guest; } -bool Guest::GuestHasValidXY() const +static bool IsValidLocation(const CoordsXYZ& coords) { - if (x != LOCATION_NULL) + if (coords.x != LOCATION_NULL) { - if (map_is_location_valid({ x, y })) + if (map_is_location_valid(coords)) { return true; } @@ -249,17 +446,23 @@ bool Guest::GuestHasValidXY() const return false; } -void Guest::ApplyEasterEggToNearbyGuests(easter_egg_function easter_egg) +template static void ApplyEasterEggToNearbyGuests(Guest* guest) { - if (!GuestHasValidXY()) + const auto guestLoc = guest->GetLocation(); + if (!IsValidLocation(guestLoc)) return; - for (auto* otherGuest : EntityTileList({ x, y })) + for (auto* otherGuest : EntityTileList(guestLoc)) { - auto zDiff = std::abs(otherGuest->z - z); + if (otherGuest == guest) + { + // Can not apply effect on self. + continue; + } + auto zDiff = std::abs(otherGuest->z - guestLoc.z); if (zDiff <= 32) { - (*this.*easter_egg)(otherGuest); + std::invoke(EasterEggFunc, *guest, otherGuest); } } } @@ -282,7 +485,7 @@ void Guest::GivePassingPeepsPizza(Guest* passingPeep) int32_t otherPeepOppositeDirection = passingPeep->sprite_direction >> 3; if (peepDirection == otherPeepOppositeDirection) { - if (passingPeep->Action == PeepActionType::None1 || passingPeep->Action == PeepActionType::None2) + if (passingPeep->IsActionInterruptable()) { passingPeep->Action = PeepActionType::Wave2; passingPeep->ActionFrame = 0; @@ -294,12 +497,10 @@ void Guest::GivePassingPeepsPizza(Guest* passingPeep) void Guest::MakePassingPeepsSick(Guest* passingPeep) { - if (this == passingPeep) - return; if (passingPeep->State != PeepState::Walking) return; - if (passingPeep->Action == PeepActionType::None1 || passingPeep->Action == PeepActionType::None2) + if (passingPeep->IsActionInterruptable()) { passingPeep->Action = PeepActionType::ThrowUp; passingPeep->ActionFrame = 0; @@ -310,8 +511,6 @@ void Guest::MakePassingPeepsSick(Guest* passingPeep) void Guest::GivePassingPeepsIceCream(Guest* passingPeep) { - if (this == passingPeep) - return; if (passingPeep->HasItem(ShopItem::IceCream)) return; @@ -327,24 +526,29 @@ void Guest::UpdateEasterEggInteractions() { if (PeepFlags & PEEP_FLAGS_PURPLE) { - ApplyEasterEggToNearbyGuests(&Guest::GivePassingPeepsPurpleClothes); + ApplyEasterEggToNearbyGuests<&Guest::GivePassingPeepsPurpleClothes>(this); } if (PeepFlags & PEEP_FLAGS_PIZZA) { - ApplyEasterEggToNearbyGuests(&Guest::GivePassingPeepsPizza); + ApplyEasterEggToNearbyGuests<&Guest::GivePassingPeepsPizza>(this); } if (PeepFlags & PEEP_FLAGS_CONTAGIOUS) { - ApplyEasterEggToNearbyGuests(&Guest::MakePassingPeepsSick); + ApplyEasterEggToNearbyGuests<&Guest::MakePassingPeepsSick>(this); + } + + if (PeepFlags & PEEP_FLAGS_ICE_CREAM) + { + ApplyEasterEggToNearbyGuests<&Guest::GivePassingPeepsIceCream>(this); } if (PeepFlags & PEEP_FLAGS_JOY) { if (scenario_rand() <= 1456) { - if (Action == PeepActionType::None1 || Action == PeepActionType::None2) + if (IsActionInterruptable()) { Action = PeepActionType::Joy; ActionFrame = 0; @@ -353,11 +557,6 @@ void Guest::UpdateEasterEggInteractions() } } } - - if (PeepFlags & PEEP_FLAGS_ICE_CREAM) - { - ApplyEasterEggToNearbyGuests(&Guest::GivePassingPeepsIceCream); - } } int32_t Guest::GetEasterEggNameId() const @@ -552,7 +751,7 @@ void Guest::loc_68F9F3() { if ((scenario_rand() & 0xFF) <= static_cast((Nausea - 128) / 2)) { - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { Action = PeepActionType::ThrowUp; ActionFrame = 0; @@ -699,8 +898,8 @@ void Guest::Tick128UpdateGuest(int32_t index) { OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Crash, { x, y, z }); - sprite_misc_explosion_cloud_create({ x, y, z + 16 }); - sprite_misc_explosion_flare_create({ x, y, z + 16 }); + ExplosionCloud::Create({ x, y, z + 16 }); + ExplosionFlare::Create({ x, y, z + 16 }); Remove(); return; @@ -952,9 +1151,8 @@ void Guest::Tick128UpdateGuest(int32_t index) // Check if the footpath has a queue line TV monitor on it if (pathElement->HasAddition() && !pathElement->AdditionIsGhost()) { - auto pathSceneryIndex = pathElement->GetAdditionEntryIndex(); - rct_scenery_entry* sceneryEntry = get_footpath_item_entry(pathSceneryIndex); - if (sceneryEntry != nullptr && (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN)) + auto* pathAddEntry = pathElement->GetAdditionEntry(); + if (pathAddEntry != nullptr && (pathAddEntry->flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN)) { found = true; } @@ -1044,7 +1242,7 @@ void Guest::UpdateSitting() MoveTo(loc); sprite_direction = ((Var37 + 2) & 3) * 8; - Action = PeepActionType::None1; + Action = PeepActionType::Idle; NextActionSpriteType = PeepActionSpriteType::SittingIdle; SwitchNextActionSpriteType(); @@ -1055,13 +1253,13 @@ void Guest::UpdateSitting() } else if (SittingSubState == PeepSittingSubState::SatDown) { - if (Action < PeepActionType::None1) + if (!IsActionInterruptable()) { UpdateAction(); - if (Action != PeepActionType::None2) + if (!IsActionWalking()) return; - Action = PeepActionType::None1; + Action = PeepActionType::Idle; TryGetUpFromSitting(); return; } @@ -1496,9 +1694,8 @@ bool Guest::DecideAndBuyItem(Ride* ride, ShopItem shopItem, money32 price) * ride's satisfaction value. * rct2: 0x0069545B */ -void Guest::OnEnterRide(ride_id_t rideIndex) +void Guest::OnEnterRide(Ride* ride) { - auto ride = get_ride(rideIndex); if (ride == nullptr) return; @@ -1530,13 +1727,12 @@ void Guest::OnEnterRide(ride_id_t rideIndex) * * rct2: 0x0069576E */ -void Guest::OnExitRide(ride_id_t rideIndex) +void Guest::OnExitRide(Ride* ride) { - auto ride = get_ride(rideIndex); if (PeepFlags & PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE) { PeepFlags &= ~PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE; - FavouriteRide = rideIndex; + FavouriteRide = ride->id; // TODO fix this flag name or add another one WindowInvalidateFlags |= PEEP_INVALIDATE_STAFF_STATS; } @@ -1549,7 +1745,7 @@ void Guest::OnExitRide(ride_id_t rideIndex) if (ride != nullptr && peep_should_go_on_ride_again(this, ride)) { - GuestHeadingToRideId = rideIndex; + GuestHeadingToRideId = ride->id; GuestIsLostCountdown = 200; ResetPathfindGoal(); WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_ACTION; @@ -1565,7 +1761,7 @@ void Guest::OnExitRide(ride_id_t rideIndex) if (ride != nullptr && peep_really_liked_ride(this, ride)) { - InsertNewThought(PeepThoughtType::WasGreat, rideIndex); + InsertNewThought(PeepThoughtType::WasGreat, ride->id); static constexpr OpenRCT2::Audio::SoundId laughs[3] = { OpenRCT2::Audio::SoundId::Laugh1, OpenRCT2::Audio::SoundId::Laugh2, @@ -1706,7 +1902,7 @@ bool Guest::ShouldGoOnRide(Ride* ride, int32_t entranceNum, bool atQueue, bool t // Indicates whether a peep is physically at the ride, or is just thinking about going on the ride. bool peepAtRide = !thinking; - if (ride->status == RIDE_STATUS_OPEN && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) + if (ride->status == RideStatus::Open && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { // Peeps that are leaving the park will refuse to go on any rides, with the exception of free transport rides. assert(ride->type < std::size(RideTypeDescriptors)); @@ -1748,7 +1944,7 @@ bool Guest::ShouldGoOnRide(Ride* ride, int32_t entranceNum, bool atQueue, bool t else { // Check if there's room in the queue for the peep to enter. - Peep* lastPeepInQueue = GetEntity(ride->stations[entranceNum].LastPeepInQueue); + Guest* lastPeepInQueue = GetEntity(ride->stations[entranceNum].LastPeepInQueue); if (lastPeepInQueue != nullptr && (abs(lastPeepInQueue->z - z) <= 6)) { int32_t dx = abs(lastPeepInQueue->x - x); @@ -2149,7 +2345,7 @@ void Guest::ChoseNotToGoOnRide(Ride* ride, bool peepAtRide, bool updateLastRide) void Guest::ReadMap() { - if (Action == PeepActionType::None1 || Action == PeepActionType::None2) + if (IsActionInterruptable()) { Action = PeepActionType::ReadMap; ActionFrame = 0; @@ -2158,7 +2354,7 @@ void Guest::ReadMap() } } -static bool peep_has_voucher_for_free_ride(Peep* peep, Ride* ride) +static bool peep_has_voucher_for_free_ride(Guest* peep, Ride* ride) { return peep->HasItem(ShopItem::Voucher) && peep->VoucherType == VOUCHER_TYPE_RIDE_FREE && peep->VoucherRideId == ride->id; } @@ -2168,7 +2364,7 @@ static bool peep_has_voucher_for_free_ride(Peep* peep, Ride* ride) * Does not effect peeps that walk up to the queue entrance. * This flag is reset the next time a peep successfully joins the queue. */ -static void peep_tried_to_enter_full_queue(Peep* peep, Ride* ride) +static void peep_tried_to_enter_full_queue(Guest* peep, Ride* ride) { ride->lifecycle_flags |= RIDE_LIFECYCLE_QUEUE_FULL; peep->PreviousRide = ride->id; @@ -2180,7 +2376,7 @@ static void peep_tried_to_enter_full_queue(Peep* peep, Ride* ride) } } -static void peep_reset_ride_heading(Peep* peep) +static void peep_reset_ride_heading(Guest* peep) { peep->GuestHeadingToRideId = RIDE_ID_NULL; peep->WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_ACTION; @@ -2240,7 +2436,7 @@ static void peep_choose_seat_from_car(Peep* peep, Ride* ride, Vehicle* vehicle) if (ride->mode == RideMode::ForwardRotation || ride->mode == RideMode::BackwardRotation) { - chosen_seat = (((~vehicle->vehicle_sprite_type + 1) >> 3) & 0xF) * 2; + chosen_seat = (((~vehicle->Pitch + 1) >> 3) & 0xF) * 2; if (vehicle->next_free_seat & 1) { chosen_seat++; @@ -2355,7 +2551,7 @@ bool Guest::FindVehicleToEnter(Ride* ride, std::vector& car_array) if (ride->mode == RideMode::ForwardRotation || ride->mode == RideMode::BackwardRotation) { - uint8_t position = (((~vehicle->vehicle_sprite_type + 1) >> 3) & 0xF) * 2; + uint8_t position = (((~vehicle->Pitch + 1) >> 3) & 0xF) * 2; if (vehicle->peep[position] != SPRITE_INDEX_NULL) continue; } @@ -2453,7 +2649,7 @@ static int16_t peep_calculate_ride_satisfaction(Guest* peep, Ride* ride) * the ride becomes the peep's favourite. (This doesn't happen right away, but will be updated once the peep * exits the ride.) */ -static void peep_update_favourite_ride(Peep* peep, Ride* ride) +static void peep_update_favourite_ride(Guest* peep, Ride* ride) { peep->PeepFlags &= ~PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE; uint8_t peepRideRating = std::clamp((ride->excitement / 4) + peep->Happiness, 0, PEEP_MAX_HAPPINESS); @@ -2468,7 +2664,7 @@ static void peep_update_favourite_ride(Peep* peep, Ride* ride) } /* rct2: 0x00695555 */ -static int16_t peep_calculate_ride_value_satisfaction(Peep* peep, Ride* ride) +static int16_t peep_calculate_ride_value_satisfaction(Guest* peep, Ride* ride) { if (gParkFlags & PARK_FLAGS_NO_MONEY) { @@ -2500,7 +2696,7 @@ static int16_t peep_calculate_ride_value_satisfaction(Peep* peep, Ride* ride) * of the ride fall exactly within the peep's preferences, but lower scores can still be achieved * if the peep's happiness is enough to offset it. */ -static int16_t peep_calculate_ride_intensity_nausea_satisfaction(Peep* peep, Ride* ride) +static int16_t peep_calculate_ride_intensity_nausea_satisfaction(Guest* peep, Ride* ride) { if (!ride_has_ratings(ride)) { @@ -2600,7 +2796,7 @@ static int16_t peep_calculate_ride_intensity_nausea_satisfaction(Peep* peep, Rid * - How hungry the peep is (+0% nausea at 50% hunger up to +100% nausea at 100% hunger) * - The peep's nausea tolerance (Final modifier: none: 100%, low: 50%, average: 25%, high: 12.5%) */ -static void peep_update_ride_nausea_growth(Peep* peep, Ride* ride) +static void peep_update_ride_nausea_growth(Guest* peep, Ride* ride) { uint32_t nauseaMultiplier = std::clamp(256 - peep->HappinessTarget, 64, 200); uint32_t nauseaGrowthRateChange = (ride->nausea * nauseaMultiplier) / 512; @@ -2609,7 +2805,7 @@ static void peep_update_ride_nausea_growth(Peep* peep, Ride* ride) peep->NauseaTarget = static_cast(std::min(peep->NauseaTarget + nauseaGrowthRateChange, 255u)); } -static bool peep_should_go_on_ride_again(Peep* peep, Ride* ride) +static bool peep_should_go_on_ride_again(Guest* peep, Ride* ride) { if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN)) return false; @@ -2642,7 +2838,7 @@ static bool peep_should_go_on_ride_again(Peep* peep, Ride* ride) return true; } -static bool peep_should_preferred_intensity_increase(Peep* peep) +static bool peep_should_preferred_intensity_increase(Guest* peep) { if (gParkFlags & PARK_FLAGS_PREF_LESS_INTENSE_RIDES) return false; @@ -2652,7 +2848,7 @@ static bool peep_should_preferred_intensity_increase(Peep* peep) return (scenario_rand() & 0xFF) >= static_cast(peep->Intensity); } -static bool peep_really_liked_ride(Peep* peep, Ride* ride) +static bool peep_really_liked_ride(Guest* peep, Ride* ride) { if (peep->Happiness < 215) return false; @@ -2691,24 +2887,23 @@ static PeepThoughtType peep_assess_surroundings(int16_t centre_x, int16_t centre for (auto* tileElement : TileElementsView({ x, y })) { Ride* ride; - rct_scenery_entry* scenery; switch (tileElement->GetType()) { case TILE_ELEMENT_TYPE_PATH: + { if (!tileElement->AsPath()->HasAddition()) break; - scenery = tileElement->AsPath()->GetAdditionEntry(); - if (scenery == nullptr) + auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); + if (pathAddEntry == nullptr) { return PeepThoughtType::None; } if (tileElement->AsPath()->AdditionIsGhost()) break; - if (scenery->path_bit.flags - & (PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER | PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW)) + if (pathAddEntry->flags & (PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER | PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW)) { num_fountains++; break; @@ -2718,6 +2913,7 @@ static PeepThoughtType peep_assess_surroundings(int16_t centre_x, int16_t centre num_rubbish++; } break; + } case TILE_ELEMENT_TYPE_LARGE_SCENERY: case TILE_ELEMENT_TYPE_SMALL_SCENERY: num_scenery++; @@ -2726,7 +2922,7 @@ static PeepThoughtType peep_assess_surroundings(int16_t centre_x, int16_t centre ride = get_ride(tileElement->AsTrack()->GetRideIndex()); if (ride != nullptr) { - if (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC && ride->status != RIDE_STATUS_CLOSED + if (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC && ride->status != RideStatus::Closed && !(ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED))) { if (ride->type == RIDE_TYPE_MERRY_GO_ROUND) @@ -2754,7 +2950,7 @@ static PeepThoughtType peep_assess_surroundings(int16_t centre_x, int16_t centre } } - for (auto litter : EntityList(EntityListId::Litter)) + for (auto litter : EntityList()) { int16_t dist_x = abs(litter->x - centre_x); int16_t dist_y = abs(litter->y - centre_y); @@ -2784,7 +2980,7 @@ static PeepThoughtType peep_assess_surroundings(int16_t centre_x, int16_t centre * * rct2: 0x0068F9A9 */ -static void peep_update_hunger(Peep* peep) +static void peep_update_hunger(Guest* peep) { if (peep->Hunger >= 3) { @@ -2801,7 +2997,7 @@ static void peep_update_hunger(Peep* peep) * * rct2: 0x0068F8CD */ -static void peep_decide_whether_to_leave_park(Peep* peep) +static void peep_decide_whether_to_leave_park(Guest* peep) { if (peep->EnergyTarget >= 33) { @@ -2853,7 +3049,7 @@ static void peep_decide_whether_to_leave_park(Peep* peep) * * rct2: 0x0068F93E */ -static void peep_leave_park(Peep* peep) +static void peep_leave_park(Guest* peep) { peep->GuestHeadingToRideId = RIDE_ID_NULL; if (peep->PeepFlags & PEEP_FLAGS_LEAVING_PARK) @@ -3056,7 +3252,7 @@ void Guest::StopPurchaseThought(uint8_t ride_type) * * rct2: 0x0069AEB7 */ -static bool peep_should_use_cash_machine(Peep* peep, ride_id_t rideIndex) +static bool peep_should_use_cash_machine(Guest* peep, ride_id_t rideIndex) { if (gParkFlags & PARK_FLAGS_NO_MONEY) return false; @@ -3090,7 +3286,7 @@ void Guest::UpdateBuying() return; auto ride = get_ride(CurrentRide); - if (ride == nullptr || ride->status != RIDE_STATUS_OPEN) + if (ride == nullptr || ride->status != RideStatus::Open) { SetState(PeepState::Falling); return; @@ -3098,7 +3294,7 @@ void Guest::UpdateBuying() if (SubState == 1) { - if (Action != PeepActionType::None2) + if (!IsActionWalking()) { UpdateAction(); Invalidate(); @@ -3240,7 +3436,7 @@ void Guest::UpdateRideAtEntrance() return; } - if (ride->status != RIDE_STATUS_OPEN || ride->vehicle_change_timeout != 0) + if (ride->status != RideStatus::Open || ride->vehicle_change_timeout != 0) { peep_update_ride_at_entrance_try_leave(this); return; @@ -3297,7 +3493,7 @@ static void peep_update_ride_leave_entrance_maze(Guest* peep, Ride* ride, Coords peep->SetDestination(entrance_loc, 3); ride->cur_num_customers++; - peep->OnEnterRide(peep->CurrentRide); + peep->OnEnterRide(ride); peep->RideSubState = PeepRideSubState::MazePathfinding; } @@ -3317,7 +3513,7 @@ static void peep_update_ride_leave_entrance_spiral_slide(Guest* peep, Ride* ride peep->CurrentCar = 0; ride->cur_num_customers++; - peep->OnEnterRide(peep->CurrentRide); + peep->OnEnterRide(ride); peep->RideSubState = PeepRideSubState::ApproachSpiralSlide; } @@ -3472,6 +3668,10 @@ void Guest::UpdateRideAdvanceThroughEntrance() } vehicle = vehicle->GetCar(CurrentCar); + if (vehicle == nullptr) + { + return; + } ride_entry = vehicle->GetRideEntry(); if (ride_entry == nullptr) @@ -3640,7 +3840,7 @@ void Guest::UpdateRideFreeVehicleEnterRide(Ride* ride) * * rct2: 0x00691FD4 */ -static void peep_update_ride_no_free_vehicle_rejoin_queue(Peep* peep, Ride* ride) +static void peep_update_ride_no_free_vehicle_rejoin_queue(Guest* peep, Ride* ride) { TileCoordsXYZD entranceLocation = ride_get_entrance_location(ride, peep->CurrentRideStation); @@ -3673,7 +3873,7 @@ void Guest::UpdateRideFreeVehicleCheck() if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) { - if (ride->status != RIDE_STATUS_OPEN || ride->vehicle_change_timeout != 0 || (++RejoinQueueTimeout) == 0) + if (ride->status != RideStatus::Open || ride->vehicle_change_timeout != 0 || (++RejoinQueueTimeout) == 0) { peep_update_ride_no_free_vehicle_rejoin_queue(this, ride); return; @@ -3752,7 +3952,7 @@ void Guest::UpdateRideFreeVehicleCheck() { return; } - if (ride->status == RIDE_STATUS_OPEN && ++RejoinQueueTimeout != 0 + if (ride->status == RideStatus::Open && ++RejoinQueueTimeout != 0 && !currentTrain->HasUpdateFlag(VEHICLE_UPDATE_FLAG_TRAIN_READY_DEPART)) { return; @@ -3789,6 +3989,10 @@ void Guest::UpdateRideEnterVehicle() if (vehicle != nullptr) { vehicle = vehicle->GetCar(CurrentCar); + if (vehicle == nullptr) + { + return; + } if (ride->mode != RideMode::ForwardRotation && ride->mode != RideMode::BackwardRotation) { @@ -3812,7 +4016,7 @@ void Guest::UpdateRideEnterVehicle() seatedGuest->SetState(PeepState::OnRide); seatedGuest->GuestTimeOnRide = 0; seatedGuest->RideSubState = PeepRideSubState::OnRide; - seatedGuest->OnEnterRide(CurrentRide); + seatedGuest->OnEnterRide(ride); } } @@ -3828,7 +4032,7 @@ void Guest::UpdateRideEnterVehicle() GuestTimeOnRide = 0; RideSubState = PeepRideSubState::OnRide; - OnEnterRide(CurrentRide); + OnEnterRide(ride); } } } @@ -4019,6 +4223,8 @@ void Guest::UpdateRideLeaveVehicle() rideEntry = vehicle->GetRideEntry(); rct_ride_entry_vehicle* vehicleEntry = &rideEntry->vehicles[vehicle->vehicle_type]; + if (vehicleEntry == nullptr) + return; Var37 = ((exitLocation.direction | peep_get_waypointed_seat_location(this, ride, vehicleEntry, station_direction) * 4) * 4) | 1; @@ -4350,7 +4556,7 @@ void Guest::UpdateRideApproachSpiralSlide() else if (waypoint == 2) { bool lastRide = false; - if (ride->status != RIDE_STATUS_OPEN) + if (ride->status != RideStatus::Open) lastRide = true; else if (CurrentCar++ != 0) { @@ -4579,7 +4785,7 @@ void Guest::UpdateRideMazePathfinding() return; } - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { if (Energy > 64 && (scenario_rand() & 0xFFFF) <= 2427) { @@ -4709,7 +4915,7 @@ void Guest::UpdateRideLeaveExit() return; } - OnExitRide(CurrentRide); + OnExitRide(ride); if (ride != nullptr && (PeepFlags & PEEP_FLAGS_TRACKING)) { @@ -4768,15 +4974,15 @@ void Guest::UpdateRideShopInteract() if (ride == nullptr) return; - const int16_t tileCenterX = NextLoc.x + 16; - const int16_t tileCenterY = NextLoc.y + 16; + const int16_t tileCentreX = NextLoc.x + 16; + const int16_t tileCentreY = NextLoc.y + 16; if (ride->type == RIDE_TYPE_FIRST_AID) { if (Nausea <= 35) { RideSubState = PeepRideSubState::LeaveShop; - SetDestination({ tileCenterX, tileCenterY }, 3); + SetDestination({ tileCentreX, tileCentreY }, 3); HappinessTarget = std::min(HappinessTarget + 30, PEEP_MAX_HAPPINESS); Happiness = HappinessTarget; } @@ -4802,7 +5008,7 @@ void Guest::UpdateRideShopInteract() RideSubState = PeepRideSubState::LeaveShop; - SetDestination({ tileCenterX, tileCenterY }, 3); + SetDestination({ tileCentreX, tileCentreY }, 3); HappinessTarget = std::min(HappinessTarget + 30, PEEP_MAX_HAPPINESS); Happiness = HappinessTarget; @@ -4958,8 +5164,8 @@ void Guest::UpdateRide() } } -static void peep_update_walking_break_scenery(Peep* peep); -static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToView, uint8_t* rideSeatToView); +static void peep_update_walking_break_scenery(Guest* peep); +static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, ride_id_t* rideToView, uint8_t* rideSeatToView); /** * @@ -4972,7 +5178,7 @@ void Guest::UpdateWalking() if (PeepFlags & PEEP_FLAGS_WAVING) { - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { if ((0xFFFF & scenario_rand()) < 936) { @@ -4987,7 +5193,7 @@ void Guest::UpdateWalking() if (PeepFlags & PEEP_FLAGS_PHOTO) { - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { if ((0xFFFF & scenario_rand()) < 936) { @@ -5002,7 +5208,7 @@ void Guest::UpdateWalking() if (PeepFlags & PEEP_FLAGS_PAINTING) { - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { if ((0xFFFF & scenario_rand()) < 936) { @@ -5021,18 +5227,18 @@ void Guest::UpdateWalking() { if ((0xFFFF & scenario_rand()) <= 4096) { - static constexpr const LitterType litter_types[] = { - LITTER_TYPE_EMPTY_CAN, - LITTER_TYPE_RUBBISH, - LITTER_TYPE_EMPTY_BURGER_BOX, - LITTER_TYPE_EMPTY_CUP, + static constexpr const Litter::Type litter_types[] = { + Litter::Type::EmptyCan, + Litter::Type::Rubbish, + Litter::Type::BurgerBox, + Litter::Type::EmptyCup, }; auto litterType = litter_types[scenario_rand() & 0x3]; int32_t litterX = x + (scenario_rand() & 0x7) - 3; int32_t litterY = y + (scenario_rand() & 0x7) - 3; Direction litterDirection = (scenario_rand() & 0x3); - litter_create({ litterX, litterY, z, litterDirection }, litterType); + Litter::Create({ litterX, litterY, z, litterDirection }, litterType); } } } @@ -5042,13 +5248,13 @@ void Guest::UpdateWalking() && ((0xFFFF & scenario_rand()) <= 4096)) { int32_t container = bitscanforward(GetEmptyContainerFlags()); - LitterType litterType = LITTER_TYPE_SICK; + auto litterType = Litter::Type::Vomit; if (container != -1) { auto item = static_cast(container); RemoveItem(item); - litterType = LitterType(GetShopItemDescriptor(item).LitterType); + litterType = Litter::Type(GetShopItemDescriptor(item).Type); } WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; @@ -5058,7 +5264,7 @@ void Guest::UpdateWalking() int32_t litterY = y + (scenario_rand() & 0x7) - 3; Direction litterDirection = (scenario_rand() & 0x3); - litter_create({ litterX, litterY, z, litterDirection }, litterType); + Litter::Create({ litterX, litterY, z, litterDirection }, litterType); } } @@ -5153,13 +5359,13 @@ void Guest::UpdateWalking() { if (!tileElement->AsPath()->AdditionIsGhost()) { - rct_scenery_entry* sceneryEntry = tileElement->AsPath()->GetAdditionEntry(); - if (sceneryEntry == nullptr) + auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); + if (pathAddEntry == nullptr) { return; } - if (!(sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BENCH)) + if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BENCH)) positions_free = 9; } } @@ -5173,7 +5379,8 @@ void Guest::UpdateWalking() for (; !(edges & (1 << chosen_edge));) chosen_edge = (chosen_edge + 1) & 3; - uint8_t ride_to_view, ride_seat_to_view; + ride_id_t ride_to_view; + uint8_t ride_seat_to_view; if (!peep_find_ride_to_look_at(this, chosen_edge, &ride_to_view, &ride_seat_to_view)) return; @@ -5234,7 +5441,7 @@ void Guest::UpdateQueuing() return; } auto ride = get_ride(CurrentRide); - if (ride == nullptr || ride->status != RIDE_STATUS_OPEN) + if (ride == nullptr || ride->status != RideStatus::Open) { RemoveFromQueue(); SetState(PeepState::One); @@ -5278,7 +5485,7 @@ void Guest::UpdateQueuing() uint8_t pathingResult; PerformNextAction(pathingResult); - if (Action < PeepActionType::None1) + if (!IsActionInterruptable()) return; if (SpriteType == PeepSpriteType::Normal) { @@ -5298,7 +5505,7 @@ void Guest::UpdateQueuing() } else { - if (!(TimeInQueue & 0x3F) && Action == PeepActionType::None1 && NextActionSpriteType == PeepActionSpriteType::WatchRide) + if (!(TimeInQueue & 0x3F) && IsActionIdle() && NextActionSpriteType == PeepActionSpriteType::WatchRide) { switch (SpriteType) { @@ -5435,7 +5642,7 @@ void Guest::UpdateWatching() sprite_direction = (Var37 & 3) * 8; - Action = PeepActionType::None1; + Action = PeepActionType::Idle; NextActionSpriteType = PeepActionSpriteType::WatchRide; SwitchNextActionSpriteType(); @@ -5447,14 +5654,14 @@ void Guest::UpdateWatching() } else if (SubState == 1) { - if (Action < PeepActionType::None1) + if (!IsActionInterruptable()) { // 6917F6 UpdateAction(); Invalidate(); - if (Action != PeepActionType::None2) + if (!IsActionWalking()) return; - Action = PeepActionType::None1; + Action = PeepActionType::Idle; } else { @@ -5533,7 +5740,7 @@ void Guest::UpdateUsingBin() } case PeepUsingBinSubState::GoingBack: { - if (Action != PeepActionType::None2) + if (!IsActionWalking()) { UpdateAction(); Invalidate(); @@ -5549,8 +5756,8 @@ void Guest::UpdateUsingBin() if (!pathElement->HasAddition()) break; - rct_scenery_entry* sceneryEntry = pathElement->GetAdditionEntry(); - if (!(sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BIN)) + auto* pathAddEntry = pathElement->GetAdditionEntry(); + if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN)) break; if (pathElement->IsBroken()) @@ -5595,12 +5802,12 @@ void Guest::UpdateUsingBin() continue; } - LitterType litterType = LitterType(GetShopItemDescriptor(item).LitterType); + auto litterType = Litter::Type(GetShopItemDescriptor(item).Type); int32_t litterX = x + (scenario_rand() & 7) - 3; int32_t litterY = y + (scenario_rand() & 7) - 3; - litter_create({ litterX, litterY, z, static_cast(scenario_rand() & 3) }, litterType); + Litter::Create({ litterX, litterY, z, static_cast(scenario_rand() & 3) }, litterType); RemoveItem(item); WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; @@ -5661,8 +5868,8 @@ static PathElement* FindBench(const CoordsXYZ& loc) if (!pathElement->HasAddition()) continue; - rct_scenery_entry* sceneryEntry = pathElement->GetAdditionEntry(); - if (sceneryEntry == nullptr || !(sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BENCH)) + auto* pathAddEntry = pathElement->GetAdditionEntry(); + if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_BIT_FLAG_IS_BENCH)) continue; if (pathElement->IsBroken()) @@ -5750,8 +5957,8 @@ static PathElement* FindBin(const CoordsXYZ& loc) if (!pathElement->HasAddition()) continue; - rct_scenery_entry* sceneryEntry = pathElement->GetAdditionEntry(); - if (sceneryEntry == nullptr || !(sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BIN)) + auto* pathAddEntry = pathElement->GetAdditionEntry(); + if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN)) continue; if (pathElement->IsBroken()) @@ -5828,8 +6035,8 @@ static PathElement* FindBreakableElement(const CoordsXYZ& loc) if (!pathElement->HasAddition()) continue; - rct_scenery_entry* sceneryEntry = pathElement->GetAdditionEntry(); - if (sceneryEntry == nullptr || !(sceneryEntry->path_bit.flags & PATH_BIT_FLAG_BREAKABLE)) + auto* pathAddEntry = pathElement->GetAdditionEntry(); + if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_BIT_FLAG_BREAKABLE)) continue; if (pathElement->IsBroken()) @@ -5848,7 +6055,7 @@ static PathElement* FindBreakableElement(const CoordsXYZ& loc) * * rct2: 0x00690848 */ -static void peep_update_walking_break_scenery(Peep* peep) +static void peep_update_walking_break_scenery(Guest* peep) { if (gCheatsDisableVandalism) return; @@ -5891,7 +6098,7 @@ static void peep_update_walking_break_scenery(Peep* peep) return; } - for (auto inner_peep : EntityList(EntityListId::Peep)) + for (auto inner_peep : EntityList()) { if (inner_peep->AssignedStaffType != StaffType::Security) continue; @@ -5903,7 +6110,10 @@ static void peep_update_walking_break_scenery(Peep* peep) int32_t y_diff = abs(inner_peep->y - peep->y); if (std::max(x_diff, y_diff) < 224) + { + inner_peep->StaffVandalsStopped++; return; + } } tileElement->SetIsBroken(true); @@ -5972,7 +6182,7 @@ static bool peep_should_watch_ride(TileElement* tileElement) return true; } -bool loc_690FD0(Peep* peep, uint8_t* rideToView, uint8_t* rideSeatToView, TileElement* tileElement) +bool loc_690FD0(Peep* peep, ride_id_t* rideToView, uint8_t* rideSeatToView, TileElement* tileElement) { auto ride = get_ride(tileElement->AsTrack()->GetRideIndex()); if (ride == nullptr) @@ -5982,7 +6192,7 @@ bool loc_690FD0(Peep* peep, uint8_t* rideToView, uint8_t* rideSeatToView, TileEl if (ride->excitement == RIDE_RATING_UNDEFINED) { *rideSeatToView = 1; - if (ride->status != RIDE_STATUS_OPEN) + if (ride->status != RideStatus::Open) { if (tileElement->GetClearanceZ() > peep->NextLoc.z + (8 * COORDS_Z_STEP)) { @@ -5995,7 +6205,7 @@ bool loc_690FD0(Peep* peep, uint8_t* rideToView, uint8_t* rideSeatToView, TileEl else { *rideSeatToView = 0; - if (ride->status == RIDE_STATUS_OPEN && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) + if (ride->status == RideStatus::Open && !(ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { if (tileElement->GetClearanceZ() > peep->NextLoc.z + (8 * COORDS_Z_STEP)) { @@ -6019,7 +6229,7 @@ bool loc_690FD0(Peep* peep, uint8_t* rideToView, uint8_t* rideSeatToView, TileEl * @param[out] rideSeatToView (ch) * @return !CF */ -static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToView, uint8_t* rideSeatToView) +static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, ride_id_t* rideToView, uint8_t* rideSeatToView) { TileElement* tileElement; @@ -6045,7 +6255,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (tileElement->GetDirection() != edge) continue; auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry == nullptr || (wallEntry->wall.flags2 & WALL_SCENERY_2_IS_OPAQUE)) + if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) continue; if (peep->NextLoc.z + (4 * COORDS_Z_STEP) <= tileElement->GetBaseZ()) continue; @@ -6084,7 +6294,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (direction_reverse(tileElement->GetDirection()) != edge) continue; auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry == nullptr || (wallEntry->wall.flags2 & WALL_SCENERY_2_IS_OPAQUE)) + if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) continue; // TODO: Check whether this shouldn't be <=, as the other loops use. If so, also extract as loop A. if (peep->NextLoc.z + (4 * COORDS_Z_STEP) >= tileElement->GetBaseZ()) @@ -6123,7 +6333,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (tileElement->GetType() == TILE_ELEMENT_TYPE_LARGE_SCENERY) { const auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); - if (sceneryEntry == nullptr || !(sceneryEntry->large_scenery.flags & LARGE_SCENERY_FLAG_PHOTOGENIC)) + if (sceneryEntry == nullptr || !(sceneryEntry->flags & LARGE_SCENERY_FLAG_PHOTOGENIC)) { continue; } @@ -6163,7 +6373,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (tileElement->GetType() == TILE_ELEMENT_TYPE_WALL) { auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry == nullptr || (wallEntry->wall.flags2 & WALL_SCENERY_2_IS_OPAQUE)) + if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) { continue; } @@ -6203,7 +6413,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (direction_reverse(tileElement->GetDirection()) != edge) continue; auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry == nullptr || (wallEntry->wall.flags2 & WALL_SCENERY_2_IS_OPAQUE)) + if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) continue; if (peep->NextLoc.z + (6 * COORDS_Z_STEP) <= tileElement->GetBaseZ()) continue; @@ -6239,8 +6449,8 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (tileElement->GetType() == TILE_ELEMENT_TYPE_LARGE_SCENERY) { - auto sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); - if (!(sceneryEntry == nullptr || sceneryEntry->large_scenery.flags & LARGE_SCENERY_FLAG_PHOTOGENIC)) + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + if (!(sceneryEntry == nullptr || sceneryEntry->flags & LARGE_SCENERY_FLAG_PHOTOGENIC)) { continue; } @@ -6280,7 +6490,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (tileElement->GetType() == TILE_ELEMENT_TYPE_WALL) { auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry == nullptr || (wallEntry->wall.flags2 & WALL_SCENERY_2_IS_OPAQUE)) + if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) { continue; } @@ -6319,7 +6529,7 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (direction_reverse(tileElement->GetDirection()) != edge) continue; auto wallEntry = tileElement->AsWall()->GetEntry(); - if (wallEntry == nullptr || (wallEntry->wall.flags2 & WALL_SCENERY_2_IS_OPAQUE)) + if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) continue; if (peep->NextLoc.z + (8 * COORDS_Z_STEP) <= tileElement->GetBaseZ()) continue; @@ -6355,8 +6565,8 @@ static bool peep_find_ride_to_look_at(Peep* peep, uint8_t edge, uint8_t* rideToV if (tileElement->GetType() == TILE_ELEMENT_TYPE_LARGE_SCENERY) { - const auto* entry = tileElement->AsLargeScenery()->GetEntry(); - if (entry == nullptr || !(entry->large_scenery.flags & LARGE_SCENERY_FLAG_PHOTOGENIC)) + const auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + if (sceneryEntry == nullptr || !(sceneryEntry->flags & LARGE_SCENERY_FLAG_PHOTOGENIC)) { continue; } @@ -6386,8 +6596,8 @@ void Guest::SetSpriteType(PeepSpriteType new_sprite_type) ActionSpriteImageOffset = 0; WalkingFrameNum = 0; - if (Action >= PeepActionType::None1) - Action = PeepActionType::None2; + if (IsActionInterruptable()) + Action = PeepActionType::Walking; PeepFlags &= ~PEEP_FLAGS_SLOW_WALK; Guard::Assert(EnumValue(new_sprite_type) < std::size(gSpriteTypeToSlowWalkMap)); @@ -6401,13 +6611,13 @@ void Guest::SetSpriteType(PeepSpriteType new_sprite_type) if (State == PeepState::Sitting) { - Action = PeepActionType::None1; + Action = PeepActionType::Idle; NextActionSpriteType = PeepActionSpriteType::SittingIdle; SwitchNextActionSpriteType(); } if (State == PeepState::Watching) { - Action = PeepActionType::None1; + Action = PeepActionType::Idle; NextActionSpriteType = PeepActionSpriteType::WatchRide; SwitchNextActionSpriteType(); } @@ -6471,7 +6681,7 @@ void Guest::UpdateSpriteType() isBalloonPopped = true; OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::BalloonPop, { x, y, z }); } - create_balloon({ x, y, z + 9 }, BalloonColour, isBalloonPopped); + Balloon::Create({ x, y, z + 9 }, BalloonColour, isBalloonPopped); } RemoveItem(ShopItem::Balloon); WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; @@ -6552,3 +6762,597 @@ bool Guest::HeadingForRideOrParkExit() const { return (PeepFlags & PEEP_FLAGS_LEAVING_PARK) || (GuestHeadingToRideId != RIDE_ID_NULL); } + +/** + * rct2: 0x00698342 + * thought.item (eax) + * thought.type (ebx) + * argument_1 (esi & ebx) + * argument_2 (esi+2) + */ +void peep_thought_set_format_args(const rct_peep_thought* thought, Formatter& ft) +{ + ft.Add(PeepThoughts[EnumValue(thought->type)]); + + PeepThoughtToActionFlag flags = PeepThoughtToActionMap[EnumValue(thought->type)].flags; + if (flags & PEEP_THOUGHT_ACTION_FLAG_RIDE) + { + auto ride = get_ride(thought->item); + if (ride != nullptr) + { + ride->FormatNameTo(ft); + } + else + { + ft.Add(STR_NONE); + } + } + else if (flags & PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_SINGULAR) + { + ft.Add(GetShopItemDescriptor(ShopItem(thought->item)).Naming.Singular); + } + else if (flags & PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE) + { + ft.Add(GetShopItemDescriptor(ShopItem(thought->item)).Naming.Indefinite); + } +} + +/** + * + * rct2: 0x699F5A + * al:thoughtType + * ah:thoughtArguments + * esi: peep + */ +void Guest::InsertNewThought(PeepThoughtType thoughtType, uint8_t thoughtArguments) +{ + PeepActionType newAction = PeepThoughtToActionMap[EnumValue(thoughtType)].action; + if (newAction != PeepActionType::Walking && IsActionInterruptable()) + { + Action = newAction; + ActionFrame = 0; + ActionSpriteImageOffset = 0; + UpdateCurrentActionSpriteType(); + } + + for (int32_t i = 0; i < PEEP_MAX_THOUGHTS; ++i) + { + rct_peep_thought* thought = &Thoughts[i]; + // Remove the oldest thought by setting it to NONE. + if (thought->type == PeepThoughtType::None) + break; + + if (thought->type == thoughtType && thought->item == thoughtArguments) + { + // If the thought type has not changed then we need to move + // it to the top of the thought list. This is done by first removing the + // existing thought and placing it at the top. + if (i < PEEP_MAX_THOUGHTS - 2) + { + memmove(thought, thought + 1, sizeof(rct_peep_thought) * (PEEP_MAX_THOUGHTS - i - 1)); + } + break; + } + } + + memmove(&Thoughts[1], &Thoughts[0], sizeof(rct_peep_thought) * (PEEP_MAX_THOUGHTS - 1)); + + Thoughts[0].type = thoughtType; + Thoughts[0].item = thoughtArguments; + Thoughts[0].freshness = 0; + Thoughts[0].fresh_timeout = 0; + + WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_THOUGHTS; +} + +// clang-format off +/** rct2: 0x009823A0 */ +static constexpr const PeepNauseaTolerance nausea_tolerance_distribution[] = { + PeepNauseaTolerance::None, + PeepNauseaTolerance::Low, PeepNauseaTolerance::Low, + PeepNauseaTolerance::Average, PeepNauseaTolerance::Average, PeepNauseaTolerance::Average, + PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, +}; + +/** rct2: 0x009823BC */ +static constexpr const uint8_t trouser_colours[] = { + COLOUR_BLACK, + COLOUR_GREY, + COLOUR_LIGHT_BROWN, + COLOUR_SATURATED_BROWN, + COLOUR_DARK_BROWN, + COLOUR_SALMON_PINK, + COLOUR_BLACK, + COLOUR_GREY, + COLOUR_LIGHT_BROWN, + COLOUR_SATURATED_BROWN, + COLOUR_DARK_BROWN, + COLOUR_SALMON_PINK, + COLOUR_BLACK, + COLOUR_GREY, + COLOUR_LIGHT_BROWN, + COLOUR_SATURATED_BROWN, + COLOUR_DARK_BROWN, + COLOUR_SALMON_PINK, + COLOUR_DARK_PURPLE, + COLOUR_LIGHT_PURPLE, + COLOUR_DARK_BLUE, + COLOUR_SATURATED_GREEN, + COLOUR_SATURATED_RED, + COLOUR_DARK_ORANGE, + COLOUR_BORDEAUX_RED, +}; + +/** rct2: 0x009823D5 */ +static constexpr const uint8_t tshirt_colours[] = { + COLOUR_BLACK, + COLOUR_GREY, + COLOUR_LIGHT_BROWN, + COLOUR_SATURATED_BROWN, + COLOUR_DARK_BROWN, + COLOUR_SALMON_PINK, + COLOUR_BLACK, + COLOUR_GREY, + COLOUR_LIGHT_BROWN, + COLOUR_SATURATED_BROWN, + COLOUR_DARK_BROWN, + COLOUR_SALMON_PINK, + COLOUR_DARK_PURPLE, + COLOUR_LIGHT_PURPLE, + COLOUR_DARK_BLUE, + COLOUR_SATURATED_GREEN, + COLOUR_SATURATED_RED, + COLOUR_DARK_ORANGE, + COLOUR_BORDEAUX_RED, + COLOUR_WHITE, + COLOUR_BRIGHT_PURPLE, + COLOUR_LIGHT_BLUE, + COLOUR_TEAL, + COLOUR_DARK_GREEN, + COLOUR_MOSS_GREEN, + COLOUR_BRIGHT_GREEN, + COLOUR_OLIVE_GREEN, + COLOUR_DARK_OLIVE_GREEN, + COLOUR_YELLOW, + COLOUR_LIGHT_ORANGE, + COLOUR_BRIGHT_RED, + COLOUR_DARK_PINK, + COLOUR_BRIGHT_PINK, +}; +// clang-format on + +/** + * + * rct2: 0x0069A05D + */ +Guest* Guest::Generate(const CoordsXYZ& coords) +{ + if (GetNumFreeEntities() < 400) + return nullptr; + + Guest* peep = CreateEntity(); + peep->SpriteType = PeepSpriteType::Normal; + peep->OutsideOfPark = true; + peep->State = PeepState::Falling; + peep->Action = PeepActionType::Walking; + peep->SpecialSprite = 0; + peep->ActionSpriteImageOffset = 0; + peep->WalkingFrameNum = 0; + peep->ActionSpriteType = PeepActionSpriteType::None; + peep->PeepFlags = 0; + peep->FavouriteRide = RIDE_ID_NULL; + peep->FavouriteRideRating = 0; + + const rct_sprite_bounds* spriteBounds = &GetSpriteBounds(peep->SpriteType, peep->ActionSpriteType); + peep->sprite_width = spriteBounds->sprite_width; + peep->sprite_height_negative = spriteBounds->sprite_height_negative; + peep->sprite_height_positive = spriteBounds->sprite_height_positive; + + peep->MoveTo(coords); + peep->sprite_direction = 0; + peep->Mass = (scenario_rand() & 0x1F) + 45; + peep->PathCheckOptimisation = 0; + peep->InteractionRideIndex = RIDE_ID_NULL; + peep->PreviousRide = RIDE_ID_NULL; + peep->Thoughts[0].type = PeepThoughtType::None; + peep->WindowInvalidateFlags = 0; + + uint8_t intensityHighest = (scenario_rand() & 0x7) + 3; + uint8_t intensityLowest = std::min(intensityHighest, static_cast(7)) - 3; + + if (intensityHighest >= 7) + intensityHighest = 15; + + /* Check which intensity boxes are enabled + * and apply the appropriate intensity settings. */ + if (gParkFlags & PARK_FLAGS_PREF_LESS_INTENSE_RIDES) + { + if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) + { + intensityLowest = 0; + intensityHighest = 15; + } + else + { + intensityLowest = 0; + intensityHighest = 4; + } + } + else if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) + { + intensityLowest = 9; + intensityHighest = 15; + } + + peep->Intensity = IntensityRange(intensityLowest, intensityHighest); + + uint8_t nauseaTolerance = scenario_rand() & 0x7; + if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) + { + nauseaTolerance += 4; + } + + peep->NauseaTolerance = nausea_tolerance_distribution[nauseaTolerance]; + + /* Scenario editor limits initial guest happiness to between 37..253. + * To be on the safe side, assume the value could have been hacked + * to any value 0..255. */ + peep->Happiness = gGuestInitialHappiness; + /* Assume a default initial happiness of 0 is wrong and set + * to 128 (50%) instead. */ + if (gGuestInitialHappiness == 0) + peep->Happiness = 128; + /* Initial value will vary by -15..16 */ + int8_t happinessDelta = (scenario_rand() & 0x1F) - 15; + /* Adjust by the delta, clamping at min=0 and max=255. */ + peep->Happiness = std::clamp(peep->Happiness + happinessDelta, 0, PEEP_MAX_HAPPINESS); + peep->HappinessTarget = peep->Happiness; + peep->Nausea = 0; + peep->NauseaTarget = 0; + + /* Scenario editor limits initial guest hunger to between 37..253. + * To be on the safe side, assume the value could have been hacked + * to any value 0..255. */ + peep->Hunger = gGuestInitialHunger; + /* Initial value will vary by -15..16 */ + int8_t hungerDelta = (scenario_rand() & 0x1F) - 15; + /* Adjust by the delta, clamping at min=0 and max=255. */ + peep->Hunger = std::clamp(peep->Hunger + hungerDelta, 0, PEEP_MAX_HUNGER); + + /* Scenario editor limits initial guest thirst to between 37..253. + * To be on the safe side, assume the value could have been hacked + * to any value 0..255. */ + peep->Thirst = gGuestInitialThirst; + /* Initial value will vary by -15..16 */ + int8_t thirstDelta = (scenario_rand() & 0x1F) - 15; + /* Adjust by the delta, clamping at min=0 and max=255. */ + peep->Thirst = std::clamp(peep->Thirst + thirstDelta, 0, PEEP_MAX_THIRST); + + peep->Toilet = 0; + peep->TimeToConsume = 0; + std::fill_n(peep->RidesBeenOn, 32, 0x00); + + peep->GuestNumRides = 0; + std::fill_n(peep->RideTypesBeenOn, 16, 0x00); + peep->Id = gNextGuestNumber++; + peep->Name = nullptr; + + money32 cash = (scenario_rand() & 0x3) * 100 - 100 + gGuestInitialCash; + if (cash < 0) + cash = 0; + + if (gGuestInitialCash == 0) + { + cash = 500; + } + + if (gParkFlags & PARK_FLAGS_NO_MONEY) + { + cash = 0; + } + + if (gGuestInitialCash == MONEY16_UNDEFINED) + { + cash = 0; + } + + peep->CashInPocket = cash; + peep->CashSpent = 0; + peep->ParkEntryTime = -1; + peep->ResetPathfindGoal(); + peep->RemoveAllItems(); + peep->GuestHeadingToRideId = RIDE_ID_NULL; + peep->LitterCount = 0; + peep->DisgustingCount = 0; + peep->VandalismSeen = 0; + peep->PaidToEnter = 0; + peep->PaidOnRides = 0; + peep->PaidOnFood = 0; + peep->PaidOnDrink = 0; + peep->PaidOnSouvenirs = 0; + peep->AmountOfFood = 0; + peep->AmountOfDrinks = 0; + peep->AmountOfSouvenirs = 0; + peep->SurroundingsThoughtTimeout = 0; + peep->Angriness = 0; + peep->TimeLost = 0; + + uint8_t tshirtColour = static_cast(scenario_rand() % std::size(tshirt_colours)); + peep->TshirtColour = tshirt_colours[tshirtColour]; + + uint8_t trousersColour = static_cast(scenario_rand() % std::size(trouser_colours)); + peep->TrousersColour = trouser_colours[trousersColour]; + + /* Minimum energy is capped at 32 and maximum at 128, so this initialises + * a peep with approx 34%-100% energy. (65 - 32) / (128 - 32) ≈ 34% */ + uint8_t energy = (scenario_rand() % 64) + 65; + peep->Energy = energy; + peep->EnergyTarget = energy; + + increment_guests_heading_for_park(); + +#ifdef ENABLE_SCRIPTING + auto& hookEngine = OpenRCT2::GetContext()->GetScriptEngine().GetHookEngine(); + if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HOOK_TYPE::GUEST_GENERATION)) + { + auto ctx = OpenRCT2::GetContext()->GetScriptEngine().GetContext(); + + // Create event args object + auto obj = OpenRCT2::Scripting::DukObject(ctx); + obj.Set("id", peep->sprite_index); + + // Call the subscriptions + auto e = obj.Take(); + hookEngine.Call(OpenRCT2::Scripting::HOOK_TYPE::GUEST_GENERATION, e, true); + } +#endif + + return peep; +} + +enum +{ + PEEP_FACE_OFFSET_ANGRY = 0, + PEEP_FACE_OFFSET_VERY_VERY_SICK, + PEEP_FACE_OFFSET_VERY_SICK, + PEEP_FACE_OFFSET_SICK, + PEEP_FACE_OFFSET_VERY_TIRED, + PEEP_FACE_OFFSET_TIRED, + PEEP_FACE_OFFSET_VERY_VERY_UNHAPPY, + PEEP_FACE_OFFSET_VERY_UNHAPPY, + PEEP_FACE_OFFSET_UNHAPPY, + PEEP_FACE_OFFSET_NORMAL, + PEEP_FACE_OFFSET_HAPPY, + PEEP_FACE_OFFSET_VERY_HAPPY, + PEEP_FACE_OFFSET_VERY_VERY_HAPPY, +}; + +static constexpr const int32_t face_sprite_small[] = { + SPR_PEEP_SMALL_FACE_ANGRY, + SPR_PEEP_SMALL_FACE_VERY_VERY_SICK, + SPR_PEEP_SMALL_FACE_VERY_SICK, + SPR_PEEP_SMALL_FACE_SICK, + SPR_PEEP_SMALL_FACE_VERY_TIRED, + SPR_PEEP_SMALL_FACE_TIRED, + SPR_PEEP_SMALL_FACE_VERY_VERY_UNHAPPY, + SPR_PEEP_SMALL_FACE_VERY_UNHAPPY, + SPR_PEEP_SMALL_FACE_UNHAPPY, + SPR_PEEP_SMALL_FACE_NORMAL, + SPR_PEEP_SMALL_FACE_HAPPY, + SPR_PEEP_SMALL_FACE_VERY_HAPPY, + SPR_PEEP_SMALL_FACE_VERY_VERY_HAPPY, +}; + +static constexpr const int32_t face_sprite_large[] = { + SPR_PEEP_LARGE_FACE_ANGRY_0, + SPR_PEEP_LARGE_FACE_VERY_VERY_SICK_0, + SPR_PEEP_LARGE_FACE_VERY_SICK_0, + SPR_PEEP_LARGE_FACE_SICK, + SPR_PEEP_LARGE_FACE_VERY_TIRED, + SPR_PEEP_LARGE_FACE_TIRED, + SPR_PEEP_LARGE_FACE_VERY_VERY_UNHAPPY, + SPR_PEEP_LARGE_FACE_VERY_UNHAPPY, + SPR_PEEP_LARGE_FACE_UNHAPPY, + SPR_PEEP_LARGE_FACE_NORMAL, + SPR_PEEP_LARGE_FACE_HAPPY, + SPR_PEEP_LARGE_FACE_VERY_HAPPY, + SPR_PEEP_LARGE_FACE_VERY_VERY_HAPPY, +}; + +static int32_t get_face_sprite_offset(Guest* peep) +{ + // ANGRY + if (peep->Angriness > 0) + return PEEP_FACE_OFFSET_ANGRY; + + // VERY_VERY_SICK + if (peep->Nausea > 200) + return PEEP_FACE_OFFSET_VERY_VERY_SICK; + + // VERY_SICK + if (peep->Nausea > 170) + return PEEP_FACE_OFFSET_VERY_SICK; + + // SICK + if (peep->Nausea > 140) + return PEEP_FACE_OFFSET_SICK; + + // VERY_TIRED + if (peep->Energy < 46) + return PEEP_FACE_OFFSET_VERY_TIRED; + + // TIRED + if (peep->Energy < 70) + return PEEP_FACE_OFFSET_TIRED; + + int32_t offset = PEEP_FACE_OFFSET_VERY_VERY_UNHAPPY; + // There are 7 different happiness based faces + for (int32_t i = 37; peep->Happiness >= i; i += 37) + { + offset++; + } + + return offset; +} + +/** + * Function split into large and small sprite + * rct2: 0x00698721 + */ +int32_t get_peep_face_sprite_small(Guest* peep) +{ + return face_sprite_small[get_face_sprite_offset(peep)]; +} + +/** + * Function split into large and small sprite + * rct2: 0x00698721 + */ +int32_t get_peep_face_sprite_large(Guest* peep) +{ + return face_sprite_large[get_face_sprite_offset(peep)]; +} + +/** + * + * rct2: 0x00693CBB + */ +bool Guest::UpdateQueuePosition(PeepActionType previous_action) +{ + TimeInQueue++; + + auto* guestNext = GetEntity(GuestNextInQueue); + if (guestNext == nullptr) + { + return false; + } + + int16_t x_diff = abs(guestNext->x - x); + int16_t y_diff = abs(guestNext->y - y); + int16_t z_diff = abs(guestNext->z - z); + + if (z_diff > 10) + return false; + + if (x_diff < y_diff) + { + int16_t temp_x = x_diff; + x_diff = y_diff; + y_diff = temp_x; + } + + x_diff += y_diff / 2; + if (x_diff > 7) + { + if (x_diff > 13) + { + if ((x & 0xFFE0) != (guestNext->x & 0xFFE0) || (y & 0xFFE0) != (guestNext->y & 0xFFE0)) + return false; + } + + if (sprite_direction != guestNext->sprite_direction) + return false; + + switch (guestNext->sprite_direction / 8) + { + case 0: + if (x >= guestNext->x) + return false; + break; + case 1: + if (y <= guestNext->y) + return false; + break; + case 2: + if (x <= guestNext->x) + return false; + break; + case 3: + if (y >= guestNext->y) + return false; + break; + } + } + + if (!IsActionInterruptable()) + UpdateAction(); + + if (!IsActionWalking()) + return true; + + Action = PeepActionType::Idle; + NextActionSpriteType = PeepActionSpriteType::WatchRide; + if (previous_action != PeepActionType::Idle) + Invalidate(); + return true; +} + +/** + * + * rct2: 0x006966A9 + */ +void Guest::RemoveFromQueue() +{ + auto ride = get_ride(CurrentRide); + if (ride == nullptr) + return; + + auto& station = ride->stations[CurrentRideStation]; + // Make sure we don't underflow, building while paused might reset it to 0 where peeps have + // not yet left the queue. + if (station.QueueLength > 0) + { + station.QueueLength--; + } + + if (sprite_index == station.LastPeepInQueue) + { + station.LastPeepInQueue = GuestNextInQueue; + return; + } + + auto* otherGuest = GetEntity(station.LastPeepInQueue); + if (otherGuest == nullptr) + { + log_error("Invalid Guest Queue list!"); + return; + } + for (; otherGuest != nullptr; otherGuest = GetEntity(otherGuest->GuestNextInQueue)) + { + if (sprite_index == otherGuest->GuestNextInQueue) + { + otherGuest->GuestNextInQueue = GuestNextInQueue; + return; + } + } +} + +uint64_t Guest::GetItemFlags() const +{ + return ItemFlags; +} + +void Guest::SetItemFlags(uint64_t itemFlags) +{ + ItemFlags = itemFlags; +} + +void Guest::RemoveAllItems() +{ + ItemFlags = 0; +} + +void Guest::RemoveItem(ShopItem item) +{ + ItemFlags &= ~EnumToFlag(item); +} + +void Guest::GiveItem(ShopItem item) +{ + ItemFlags |= EnumToFlag(item); +} + +bool Guest::HasItem(ShopItem peepItem) const +{ + return GetItemFlags() & EnumToFlag(peepItem); +} diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 3fc313fd9b..9bf83c9a7f 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -34,9 +34,9 @@ ride_id_t gPeepPathFindQueueRideIndex; #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 // Use to guard calls to log messages -bool gPathFindDebug = false; +static bool _pathFindDebug = false; // Use to put the peep name in the log message -utf8 gPathFindDebugPeepName[256]; +static utf8 _pathFindDebugPeepName[256]; #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 static int32_t guest_surface_path_finding(Peep* peep); @@ -135,18 +135,18 @@ static int32_t peep_move_one_tile(Direction direction, Peep* peep) if (peep->State != PeepState::Queuing) { // When peeps are walking along a path, we would like them to be spread out across the width of the path, - // instead of all walking along the exact center line of the path. + // instead of all walking along the exact centre line of the path. // // Setting a random DestinationTolerance does not work very well for this. It means that peeps will make // their new pathfinding decision at a random time, and so will distribute a bit when they are turning // corners (which is good); but, as they walk along a straight path, they will - eventually - have had a - // low tolerance value which forced them back to the center of the path, where they stay until they turn + // low tolerance value which forced them back to the centre of the path, where they stay until they turn // a corner. // // What we want instead is to apply that randomness in the direction they are walking ONLY, and keep their // other coordinate constant. // - // However, we have also seen some situations where guests end up too far from the center of paths. We've + // However, we have also seen some situations where guests end up too far from the centre of paths. We've // not identified exactly what causes this yet, but to limit the impact of it, we don't just keep the other // coordinate constant, but instead clamp it to an acceptable range. This brings in 'outlier' guests from // the edges of the path, while allowing guests who are already in an acceptable position to stay there. @@ -481,7 +481,7 @@ static int32_t guest_path_find_aimless(Peep* peep, uint8_t edges) */ static uint8_t peep_pathfind_get_max_number_junctions(Peep* peep) { - if (peep->AssignedPeepType == PeepType::Staff) + if (peep->Is()) return 8; // PEEP_FLAGS_2? It's cleared here but not set anywhere! @@ -493,15 +493,19 @@ static uint8_t peep_pathfind_get_max_number_junctions(Peep* peep) return 8; } - if (peep->PeepFlags & PEEP_FLAGS_LEAVING_PARK && peep->GuestIsLostCountdown < 90) + auto* guest = peep->As(); + if (guest == nullptr) + return 8; + + if (guest->PeepFlags & PEEP_FLAGS_LEAVING_PARK && guest->GuestIsLostCountdown < 90) { return 8; } - if (peep->HasItem(ShopItem::Map)) + if (guest->HasItem(ShopItem::Map)) return 7; - if (peep->PeepFlags & PEEP_FLAGS_LEAVING_PARK) + if (guest->PeepFlags & PEEP_FLAGS_LEAVING_PARK) return 7; return 5; @@ -846,7 +850,7 @@ static void peep_pathfind_heuristic_search( if (tileElement->AsPath()->IsQueue() && tileElement->AsPath()->GetRideIndex() != gPeepPathFindQueueRideIndex) { - if (gPeepPathFindIgnoreForeignQueues && (tileElement->AsPath()->GetRideIndex() != 0xFF)) + if (gPeepPathFindIgnoreForeignQueues && (tileElement->AsPath()->GetRideIndex() != RIDE_ID_NULL)) { // Path is a queue we aren't interested in /* The rideIndex will be useful for @@ -1262,17 +1266,17 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) /* The max number of tiles to check - a whole-search limit. * Mainly to limit the performance impact of the path finding. */ - int32_t maxTilesChecked = (peep->AssignedPeepType == PeepType::Staff) ? 50000 : 15000; + int32_t maxTilesChecked = (peep->Is()) ? 50000 : 15000; // Used to allow walking through no entry banners - _peepPathFindIsStaff = (peep->AssignedPeepType == PeepType::Staff); + _peepPathFindIsStaff = peep->Is(); TileCoordsXYZ goal = gPeepPathFindGoalPosition; #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose( - "Choose direction for %s for goal %d,%d,%d from %d,%d,%d", gPathFindDebugPeepName, goal.x, goal.y, goal.z, loc.x, + "Choose direction for %s for goal %d,%d,%d from %d,%d,%d", _pathFindDebugPeepName, goal.x, goal.y, goal.z, loc.x, loc.y, loc.z); } #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -1362,7 +1366,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) edges = pathfindHistory.direction; #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose( "Getting untried edges from pf_history for %d,%d,%d: %s,%s,%s,%s", loc.x, loc.y, loc.z, @@ -1384,7 +1388,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) edges = pathfindHistory.direction; #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose("All edges tried for %d,%d,%d - resetting to all untried", loc.x, loc.y, loc.z); } @@ -1406,9 +1410,9 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) peep->PathfindGoal.direction = 0; // Clear pathfinding history - std::fill_n(reinterpret_cast(peep->PathfindHistory), sizeof(peep->PathfindHistory), 0xFF); + std::fill(std::begin(peep->PathfindHistory), std::end(peep->PathfindHistory), rct12_xyzd8{ 0xFF, 0xFF, 0xFF, 0xFF }); #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose("New goal; clearing pf_history."); } @@ -1433,7 +1437,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) uint8_t bestDirectionList[16]; TileCoordsXYZ bestXYZ; - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose("Pathfind start for goal %d,%d,%d from %d,%d,%d", goal.x, goal.y, goal.z, loc.x, loc.y, loc.z); } @@ -1515,7 +1519,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) endJunctionList, endDirectionList, &endXYZ, &endSteps); #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose( "Pathfind test edge: %d score: %d steps: %d end: %d,%d,%d junctions: %d", test_edge, score, endSteps, @@ -1556,7 +1560,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) if (best_score == 0xFFFF) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose("Pathfind heuristic search failed."); } @@ -1564,7 +1568,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) return INVALID_DIRECTION; } #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose("Pathfind best edge %d with score %d steps %d", chosen_edge, best_score, best_sub); for (uint8_t listIdx = 0; listIdx < bestJunctions; listIdx++) @@ -1592,7 +1596,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) * entered the junction from those left to try. */ peep->PathfindHistory[i].direction &= ~(1 << direction_reverse(peep->PeepDirection)); #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose( "Updating existing pf_history (in index: %d) for %d,%d,%d without entry edge %d & exit edge %d.", i, @@ -1617,7 +1621,7 @@ Direction peep_pathfind_choose_direction(const TileCoordsXYZ& loc, Peep* peep) * entered the junction from those left to try. */ peep->PathfindHistory[i].direction &= ~(1 << direction_reverse(peep->PeepDirection)); #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_verbose( "Storing new pf_history (in index: %d) for %d,%d,%d without entry edge %d & exit edge %d.", i, loc.x, loc.y, @@ -1980,9 +1984,9 @@ int32_t guest_path_finding(Guest* peep) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 PathfindLoggingEnable(peep); - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Starting guest_path_finding for %s", gPathFindDebugPeepName); + log_info("Starting guest_path_finding for %s", _pathFindDebugPeepName); } #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2050,10 +2054,10 @@ int32_t guest_path_finding(Guest* peep) if ((edges & ~(1 << direction)) == 0) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_info( - "Completed guest_path_finding for %s - taking only direction available: %d.", gPathFindDebugPeepName, + "Completed guest_path_finding for %s - taking only direction available: %d.", _pathFindDebugPeepName, direction); } PathfindLoggingDisable(); @@ -2068,9 +2072,9 @@ int32_t guest_path_finding(Guest* peep) if (peep->OutsideOfPark) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Completed guest_path_finding for %s - peep is outside the park.", gPathFindDebugPeepName); + log_info("Completed guest_path_finding for %s - peep is outside the park.", _pathFindDebugPeepName); } PathfindLoggingDisable(); #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2138,9 +2142,9 @@ int32_t guest_path_finding(Guest* peep) if (peep->PeepFlags & PEEP_FLAGS_LEAVING_PARK) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Completed guest_path_finding for %s - peep is leaving the park.", gPathFindDebugPeepName); + log_info("Completed guest_path_finding for %s - peep is leaving the park.", _pathFindDebugPeepName); } PathfindLoggingDisable(); #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2150,9 +2154,9 @@ int32_t guest_path_finding(Guest* peep) if (peep->GuestHeadingToRideId == RIDE_ID_NULL) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Completed guest_path_finding for %s - peep is aimless.", gPathFindDebugPeepName); + log_info("Completed guest_path_finding for %s - peep is aimless.", _pathFindDebugPeepName); } PathfindLoggingDisable(); #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2162,13 +2166,13 @@ int32_t guest_path_finding(Guest* peep) // Peep is heading for a ride. ride_id_t rideIndex = peep->GuestHeadingToRideId; auto ride = get_ride(rideIndex); - if (ride == nullptr || ride->status != RIDE_STATUS_OPEN) + if (ride == nullptr || ride->status != RideStatus::Open) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { log_info( - "Completed guest_path_finding for %s - peep is heading to closed ride == aimless.", gPathFindDebugPeepName); + "Completed guest_path_finding for %s - peep is heading to closed ride == aimless.", _pathFindDebugPeepName); } PathfindLoggingDisable(); #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2249,9 +2253,9 @@ int32_t guest_path_finding(Guest* peep) peep->ResetPathfindGoal(); #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Completed guest_path_finding for %s - failed to choose a direction == aimless.", gPathFindDebugPeepName); + log_info("Completed guest_path_finding for %s - failed to choose a direction == aimless.", _pathFindDebugPeepName); } PathfindLoggingDisable(); #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2259,9 +2263,9 @@ int32_t guest_path_finding(Guest* peep) return guest_path_find_aimless(peep, edges); } #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Completed guest_path_finding for %s - direction chosen: %d.", gPathFindDebugPeepName, direction); + log_info("Completed guest_path_finding for %s - direction chosen: %d.", _pathFindDebugPeepName, direction); } PathfindLoggingDisable(); #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 @@ -2302,9 +2306,9 @@ bool IsValidPathZAndDirection(TileElement* tileElement, int32_t currentZ, int32_ void Peep::ResetPathfindGoal() { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 - if (gPathFindDebug) + if (_pathFindDebug) { - log_info("Resetting PathfindGoal for %s", gPathFindDebugPeepName); + log_info("Resetting PathfindGoal for %s", _pathFindDebugPeepName); } #endif // defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 diff --git a/src/openrct2/peep/Peep.cpp b/src/openrct2/peep/Peep.cpp index d53c1c37b1..6e7fff074e 100644 --- a/src/openrct2/peep/Peep.cpp +++ b/src/openrct2/peep/Peep.cpp @@ -34,7 +34,9 @@ #include "../sprites.h" #include "../util/Util.h" #include "../windows/Intent.h" +#include "../world/Balloon.h" #include "../world/Climate.h" +#include "../world/EntityTweener.h" #include "../world/Entrance.h" #include "../world/Footpath.h" #include "../world/LargeScenery.h" @@ -74,197 +76,6 @@ static void peep_128_tick_update(Peep* peep, int32_t index); static void peep_release_balloon(Guest* peep, int16_t spawn_height); // clang-format off -// Flags used by PeepThoughtToActionMap -enum PeepThoughtToActionFlag : uint8_t -{ - PEEP_THOUGHT_ACTION_NO_FLAGS = 0, - PEEP_THOUGHT_ACTION_FLAG_RIDE = (1 << 0), - PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_SINGULAR = (1 << 1), - PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE = (1 << 2), -}; - -/** rct2: 0x00981DB0 */ -static struct -{ - PeepActionType action; - PeepThoughtToActionFlag flags; -} PeepThoughtToActionMap[] = { - { PeepActionType::ShakeHead, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::EmptyPockets, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::Wow, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_SINGULAR }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE }, - { PeepActionType::ShakeHead, PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::Wave, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::Joy, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::CheckTime, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::Wave, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::Wave, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::Disgust, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::BeingWatched, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::ShakeHead, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::Joy, PEEP_THOUGHT_ACTION_NO_FLAGS }, - { PeepActionType::None2, PEEP_THOUGHT_ACTION_FLAG_RIDE }, -}; - static PeepActionSpriteType PeepSpecialSpriteToSpriteTypeMap[] = { PeepActionSpriteType::None, PeepActionSpriteType::HoldMat, @@ -318,7 +129,7 @@ const bool gSpriteTypeToSlowWalkMap[] = { template<> bool SpriteBase::Is() const { - return sprite_identifier == SpriteIdentifier::Peep; + return Type == EntityType::Guest || Type == EntityType::Staff; } uint8_t Peep::GetNextDirection() const @@ -377,17 +188,9 @@ bool Peep::CanBePickedUp() const return false; } -Peep* try_get_guest(uint16_t spriteIndex) -{ - return TryGetEntity(spriteIndex); -} - int32_t peep_get_staff_count() { - auto list = EntityList(EntityListId::Peep); - auto count = std::distance(list.begin(), list.end()); - - return count; + return GetEntityListCount(EntityType::Staff); } /** @@ -401,7 +204,7 @@ void peep_update_all() int32_t i = 0; // Warning this loop can delete peeps - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (static_cast(i & 0x7F) != (gCurrentTicks & 0x7F)) { @@ -411,7 +214,7 @@ void peep_update_all() { peep_128_tick_update(peep, i); // 128 tick can delete so double check its not deleted - if (peep->sprite_identifier == SpriteIdentifier::Peep) + if (peep->Type == EntityType::Guest) { peep->Update(); } @@ -420,7 +223,7 @@ void peep_update_all() i++; } - for (auto staff : EntityList(EntityListId::Peep)) + for (auto staff : EntityList()) { if (static_cast(i & 0x7F) != (gCurrentTicks & 0x7F)) { @@ -430,7 +233,7 @@ void peep_update_all() { peep_128_tick_update(staff, i); // 128 tick can delete so double check its not deleted - if (staff->sprite_identifier == SpriteIdentifier::Peep) + if (staff->Type == EntityType::Staff) { staff->Update(); } @@ -506,7 +309,7 @@ bool Peep::CheckForPath() PeepActionSpriteType Peep::GetActionSpriteType() { - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { // PeepActionType::None1 or PeepActionType::None2 return PeepSpecialSpriteToSpriteTypeMap[SpecialSprite]; } @@ -517,7 +320,7 @@ PeepActionSpriteType Peep::GetActionSpriteType() else { openrct2_assert( - EnumValue(Action) >= std::size(PeepActionToSpriteTypeMap) && Action < PeepActionType::None1, + EnumValue(Action) >= std::size(PeepActionToSpriteTypeMap) && Action < PeepActionType::Idle, "Invalid peep action %u", EnumValue(Action)); return PeepActionSpriteType::None; } @@ -557,8 +360,7 @@ void Peep::SwitchToSpecialSprite(uint8_t special_sprite_id) SpecialSprite = special_sprite_id; - // If NONE_1 or NONE_2 - if (Action >= PeepActionType::None1) + if (IsActionInterruptable()) { ActionSpriteImageOffset = 0; } @@ -591,9 +393,9 @@ std::optional Peep::UpdateAction() std::optional Peep::UpdateAction(int16_t& xy_distance) { _unk_F1AEF0 = ActionSpriteImageOffset; - if (Action == PeepActionType::None1) + if (Action == PeepActionType::Idle) { - Action = PeepActionType::None2; + Action = PeepActionType::Walking; } CoordsXY differenceLoc = GetLocation(); @@ -604,7 +406,7 @@ std::optional Peep::UpdateAction(int16_t& xy_distance) xy_distance = x_delta + y_delta; - if (Action == PeepActionType::None1 || Action == PeepActionType::None2) + if (IsActionWalking()) { if (xy_distance <= DestinationTolerance) { @@ -648,31 +450,32 @@ std::optional Peep::UpdateAction(int16_t& xy_distance) if (ActionFrame >= peepAnimation[EnumValue(ActionSpriteType)].num_frames) { ActionSpriteImageOffset = 0; - Action = PeepActionType::None2; + Action = PeepActionType::Walking; UpdateCurrentActionSpriteType(); return { { x, y } }; } ActionSpriteImageOffset = peepAnimation[EnumValue(ActionSpriteType)].frame_offsets[ActionFrame]; + auto* guest = As(); // If not throwing up and not at the frame where sick appears. - if (Action != PeepActionType::ThrowUp || ActionFrame != 15) + if (Action != PeepActionType::ThrowUp || ActionFrame != 15 || guest == nullptr) { return { { x, y } }; } // We are throwing up - Hunger /= 2; - NauseaTarget /= 2; + guest->Hunger /= 2; + guest->NauseaTarget /= 2; - if (Nausea < 30) - Nausea = 0; + if (guest->Nausea < 30) + guest->Nausea = 0; else - Nausea -= 30; + guest->Nausea -= 30; WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_2; // Create sick at location - litter_create({ x, y, z, sprite_direction }, (sprite_index & 1) ? LITTER_TYPE_SICK_ALT : LITTER_TYPE_SICK); + Litter::Create({ x, y, z, sprite_direction }, (sprite_index & 1) ? Litter::Type::VomitAlt : Litter::Type::Vomit); static constexpr OpenRCT2::Audio::SoundId coughs[4] = { OpenRCT2::Audio::SoundId::Cough1, OpenRCT2::Audio::SoundId::Cough2, OpenRCT2::Audio::SoundId::Cough3, @@ -711,7 +514,7 @@ void peep_window_state_update(Peep* peep) if (w != nullptr) window_event_invalidate_call(w); - if (peep->AssignedPeepType == PeepType::Guest) + if (peep->Is()) { if (peep->State == PeepState::OnRide || peep->State == PeepState::EnteringRide) { @@ -755,7 +558,7 @@ void Peep::PickupAbort(int32_t old_x) if (x != LOCATION_NULL) { SetState(PeepState::Falling); - Action = PeepActionType::None2; + Action = PeepActionType::Walking; SpecialSprite = 0; ActionSpriteImageOffset = 0; ActionSpriteType = PeepActionSpriteType::None; @@ -806,17 +609,17 @@ std::unique_ptr Peep::Place(const TileCoordsXYZ& location, { MoveTo(destination); SetState(PeepState::Falling); - Action = PeepActionType::None2; + Action = PeepActionType::Walking; SpecialSprite = 0; ActionSpriteImageOffset = 0; ActionSpriteType = PeepActionSpriteType::None; PathCheckOptimisation = 0; EntityTweener::Get().Reset(); - - if (AssignedPeepType == PeepType::Guest) + auto* guest = As(); + if (guest != nullptr) { ActionSpriteType = PeepActionSpriteType::Invalid; - HappinessTarget = std::max(HappinessTarget - 10, 0); + guest->HappinessTarget = std::max(guest->HappinessTarget - 10, 0); UpdateCurrentActionSpriteType(); } } @@ -839,22 +642,21 @@ void peep_sprite_remove(Peep* peep) window_close_by_number(WC_PEEP, peep->sprite_index); - window_close_by_number(WC_FIRE_PROMPT, EnumValue(peep->sprite_identifier)); + window_close_by_number(WC_FIRE_PROMPT, EnumValue(peep->Type)); + auto* staff = peep->As(); // Needed for invalidations after sprite removal - bool wasGuest = peep->AssignedPeepType == PeepType::Guest; - if (peep->AssignedPeepType == PeepType::Guest) + bool wasGuest = staff == nullptr; + if (wasGuest) { News::DisableNewsItems(News::ItemType::PeepOnRide, peep->sprite_index); } else { - gStaffModes[peep->StaffId] = StaffMode::None; - peep->AssignedPeepType = PeepType::Invalid; + gStaffModes[staff->StaffId] = StaffMode::None; staff_update_greyed_patrol_areas(); - peep->AssignedPeepType = PeepType::Staff; - News::DisableNewsItems(News::ItemType::Peep, peep->sprite_index); + News::DisableNewsItems(News::ItemType::Peep, staff->sprite_index); } sprite_remove(peep); @@ -867,9 +669,10 @@ void peep_sprite_remove(Peep* peep) */ void Peep::Remove() { - if (AssignedPeepType == PeepType::Guest) + auto* guest = As(); + if (guest != nullptr) { - if (!OutsideOfPark) + if (!guest->OutsideOfPark) { decrement_guests_in_park(); auto intent = Intent(INTENT_ACTION_UPDATE_GUEST_COUNT); @@ -949,10 +752,9 @@ void Peep::UpdateFalling() { // Drop balloon if held peep_release_balloon(guest, height); + guest->InsertNewThought(PeepThoughtType::Drowning, PEEP_THOUGHT_ITEM_NONE); } - InsertNewThought(PeepThoughtType::Drowning, PEEP_THOUGHT_ITEM_NONE); - Action = PeepActionType::Drowning; ActionFrame = 0; ActionSpriteImageOffset = 0; @@ -1010,7 +812,7 @@ void Peep::Update1() if (!CheckForPath()) return; - if (AssignedPeepType == PeepType::Guest) + if (Is()) { SetState(PeepState::Walking); } @@ -1039,14 +841,15 @@ void Peep::UpdatePicked() if (gCurrentTicks & 0x1F) return; SubState++; - if (SubState == 13) + auto* guest = As(); + if (SubState == 13 && guest != nullptr) { - InsertNewThought(PeepThoughtType::Help, PEEP_THOUGHT_ITEM_NONE); + guest->InsertNewThought(PeepThoughtType::Help, PEEP_THOUGHT_ITEM_NONE); } } /* From peep_update */ -static void peep_update_thoughts(Peep* peep) +static void peep_update_thoughts(Guest* peep) { // Thoughts must always have a gap of at least // 220 ticks in age between them. In order to @@ -1112,13 +915,14 @@ static void peep_update_thoughts(Peep* peep) */ void Peep::Update() { - if (AssignedPeepType == PeepType::Guest) + auto* guest = As(); + if (guest != nullptr) { - if (PreviousRide != RIDE_ID_NULL) - if (++PreviousRideTimeOut >= 720) - PreviousRide = RIDE_ID_NULL; + if (guest->PreviousRide != RIDE_ID_NULL) + if (++guest->PreviousRideTimeOut >= 720) + guest->PreviousRide = RIDE_ID_NULL; - peep_update_thoughts(this); + peep_update_thoughts(guest); } // Walking speed logic @@ -1127,7 +931,7 @@ void Peep::Update() stepsToTake = 95; if ((PeepFlags & PEEP_FLAGS_SLOW_WALK) && State != PeepState::Queuing) stepsToTake /= 2; - if (Action == PeepActionType::None2 && (GetNextIsSloped())) + if (IsActionWalking() && GetNextIsSloped()) { stepsToTake /= 2; if (State == PeepState::Queuing) @@ -1138,7 +942,6 @@ void Peep::Update() StepProgress = carryCheck; if (carryCheck <= 255) { - auto* guest = As(); if (guest != nullptr) { guest->UpdateEasterEggInteractions(); @@ -1163,7 +966,6 @@ void Peep::Update() break; default: { - auto* guest = As(); if (guest != nullptr) { guest->UpdateGuest(); @@ -1197,7 +999,7 @@ void peep_problem_warnings_update() disgust_counter = 0, toilet_counter = 0, vandalism_counter = 0; uint8_t* warning_throttle = gPeepWarningThrottle; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark || peep->Thoughts[0].freshness > 5) continue; @@ -1375,7 +1177,7 @@ void peep_update_crowd_noise() // Count the number of peeps visible auto visiblePeeps = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->sprite_left == LOCATION_NULL) continue; @@ -1438,7 +1240,7 @@ void peep_update_crowd_noise() */ void peep_applause() { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->OutsideOfPark) continue; @@ -1447,7 +1249,7 @@ void peep_applause() peep_release_balloon(peep, peep->z + 9); // Clap - if ((peep->State == PeepState::Walking || peep->State == PeepState::Queuing) && peep->Action >= PeepActionType::None1) + if ((peep->State == PeepState::Walking || peep->State == PeepState::Queuing) && peep->IsActionInterruptable()) { peep->Action = PeepActionType::Clap; peep->ActionFrame = 0; @@ -1466,7 +1268,7 @@ void peep_applause() */ void peep_update_days_in_queue() { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (!peep->OutsideOfPark && peep->State == PeepState::Queuing) { @@ -1478,305 +1280,6 @@ void peep_update_days_in_queue() } } -// clang-format off -/** rct2: 0x009823A0 */ -static constexpr const PeepNauseaTolerance nausea_tolerance_distribution[] = { - PeepNauseaTolerance::None, - PeepNauseaTolerance::Low, PeepNauseaTolerance::Low, - PeepNauseaTolerance::Average, PeepNauseaTolerance::Average, PeepNauseaTolerance::Average, - PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, PeepNauseaTolerance::High, -}; - -/** rct2: 0x009823BC */ -static constexpr const uint8_t trouser_colours[] = { - COLOUR_BLACK, - COLOUR_GREY, - COLOUR_LIGHT_BROWN, - COLOUR_SATURATED_BROWN, - COLOUR_DARK_BROWN, - COLOUR_SALMON_PINK, - COLOUR_BLACK, - COLOUR_GREY, - COLOUR_LIGHT_BROWN, - COLOUR_SATURATED_BROWN, - COLOUR_DARK_BROWN, - COLOUR_SALMON_PINK, - COLOUR_BLACK, - COLOUR_GREY, - COLOUR_LIGHT_BROWN, - COLOUR_SATURATED_BROWN, - COLOUR_DARK_BROWN, - COLOUR_SALMON_PINK, - COLOUR_DARK_PURPLE, - COLOUR_LIGHT_PURPLE, - COLOUR_DARK_BLUE, - COLOUR_SATURATED_GREEN, - COLOUR_SATURATED_RED, - COLOUR_DARK_ORANGE, - COLOUR_BORDEAUX_RED, -}; - -/** rct2: 0x009823D5 */ -static constexpr const uint8_t tshirt_colours[] = { - COLOUR_BLACK, - COLOUR_GREY, - COLOUR_LIGHT_BROWN, - COLOUR_SATURATED_BROWN, - COLOUR_DARK_BROWN, - COLOUR_SALMON_PINK, - COLOUR_BLACK, - COLOUR_GREY, - COLOUR_LIGHT_BROWN, - COLOUR_SATURATED_BROWN, - COLOUR_DARK_BROWN, - COLOUR_SALMON_PINK, - COLOUR_DARK_PURPLE, - COLOUR_LIGHT_PURPLE, - COLOUR_DARK_BLUE, - COLOUR_SATURATED_GREEN, - COLOUR_SATURATED_RED, - COLOUR_DARK_ORANGE, - COLOUR_BORDEAUX_RED, - COLOUR_WHITE, - COLOUR_BRIGHT_PURPLE, - COLOUR_LIGHT_BLUE, - COLOUR_TEAL, - COLOUR_DARK_GREEN, - COLOUR_MOSS_GREEN, - COLOUR_BRIGHT_GREEN, - COLOUR_OLIVE_GREEN, - COLOUR_DARK_OLIVE_GREEN, - COLOUR_YELLOW, - COLOUR_LIGHT_ORANGE, - COLOUR_BRIGHT_RED, - COLOUR_DARK_PINK, - COLOUR_BRIGHT_PINK, -}; -// clang-format on - -/** - * - * rct2: 0x699F5A - * al:thoughtType - * ah:thoughtArguments - * esi: peep - */ -void Peep::InsertNewThought(PeepThoughtType thoughtType, uint8_t thoughtArguments) -{ - PeepActionType newAction = PeepThoughtToActionMap[EnumValue(thoughtType)].action; - if (newAction != PeepActionType::None2 && this->Action >= PeepActionType::None1) - { - Action = newAction; - ActionFrame = 0; - ActionSpriteImageOffset = 0; - UpdateCurrentActionSpriteType(); - } - - for (int32_t i = 0; i < PEEP_MAX_THOUGHTS; ++i) - { - rct_peep_thought* thought = &Thoughts[i]; - // Remove the oldest thought by setting it to NONE. - if (thought->type == PeepThoughtType::None) - break; - - if (thought->type == thoughtType && thought->item == thoughtArguments) - { - // If the thought type has not changed then we need to move - // it to the top of the thought list. This is done by first removing the - // existing thought and placing it at the top. - if (i < PEEP_MAX_THOUGHTS - 2) - { - memmove(thought, thought + 1, sizeof(rct_peep_thought) * (PEEP_MAX_THOUGHTS - i - 1)); - } - break; - } - } - - memmove(&Thoughts[1], &Thoughts[0], sizeof(rct_peep_thought) * (PEEP_MAX_THOUGHTS - 1)); - - Thoughts[0].type = thoughtType; - Thoughts[0].item = thoughtArguments; - Thoughts[0].freshness = 0; - Thoughts[0].fresh_timeout = 0; - - WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_THOUGHTS; -} - -/** - * - * rct2: 0x0069A05D - */ -Peep* Peep::Generate(const CoordsXYZ& coords) -{ - if (GetNumFreeEntities() < 400) - return nullptr; - - Peep* peep = &create_sprite(SpriteIdentifier::Peep)->peep; - peep->sprite_identifier = SpriteIdentifier::Peep; - peep->SpriteType = PeepSpriteType::Normal; - peep->OutsideOfPark = true; - peep->State = PeepState::Falling; - peep->Action = PeepActionType::None2; - peep->SpecialSprite = 0; - peep->ActionSpriteImageOffset = 0; - peep->WalkingFrameNum = 0; - peep->ActionSpriteType = PeepActionSpriteType::None; - peep->PeepFlags = 0; - peep->FavouriteRide = RIDE_ID_NULL; - peep->FavouriteRideRating = 0; - - const rct_sprite_bounds* spriteBounds = &GetSpriteBounds(peep->SpriteType, peep->ActionSpriteType); - peep->sprite_width = spriteBounds->sprite_width; - peep->sprite_height_negative = spriteBounds->sprite_height_negative; - peep->sprite_height_positive = spriteBounds->sprite_height_positive; - - peep->MoveTo(coords); - peep->sprite_direction = 0; - peep->Mass = (scenario_rand() & 0x1F) + 45; - peep->PathCheckOptimisation = 0; - peep->InteractionRideIndex = RIDE_ID_NULL; - peep->AssignedPeepType = PeepType::Guest; - peep->PreviousRide = RIDE_ID_NULL; - peep->Thoughts->type = PeepThoughtType::None; - peep->WindowInvalidateFlags = 0; - - uint8_t intensityHighest = (scenario_rand() & 0x7) + 3; - uint8_t intensityLowest = std::min(intensityHighest, static_cast(7)) - 3; - - if (intensityHighest >= 7) - intensityHighest = 15; - - /* Check which intensity boxes are enabled - * and apply the appropriate intensity settings. */ - if (gParkFlags & PARK_FLAGS_PREF_LESS_INTENSE_RIDES) - { - if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) - { - intensityLowest = 0; - intensityHighest = 15; - } - else - { - intensityLowest = 0; - intensityHighest = 4; - } - } - else if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) - { - intensityLowest = 9; - intensityHighest = 15; - } - - peep->Intensity = IntensityRange(intensityLowest, intensityHighest); - - uint8_t nauseaTolerance = scenario_rand() & 0x7; - if (gParkFlags & PARK_FLAGS_PREF_MORE_INTENSE_RIDES) - { - nauseaTolerance += 4; - } - - peep->NauseaTolerance = nausea_tolerance_distribution[nauseaTolerance]; - - /* Scenario editor limits initial guest happiness to between 37..253. - * To be on the safe side, assume the value could have been hacked - * to any value 0..255. */ - peep->Happiness = gGuestInitialHappiness; - /* Assume a default initial happiness of 0 is wrong and set - * to 128 (50%) instead. */ - if (gGuestInitialHappiness == 0) - peep->Happiness = 128; - /* Initial value will vary by -15..16 */ - int8_t happinessDelta = (scenario_rand() & 0x1F) - 15; - /* Adjust by the delta, clamping at min=0 and max=255. */ - peep->Happiness = std::clamp(peep->Happiness + happinessDelta, 0, PEEP_MAX_HAPPINESS); - peep->HappinessTarget = peep->Happiness; - peep->Nausea = 0; - peep->NauseaTarget = 0; - - /* Scenario editor limits initial guest hunger to between 37..253. - * To be on the safe side, assume the value could have been hacked - * to any value 0..255. */ - peep->Hunger = gGuestInitialHunger; - /* Initial value will vary by -15..16 */ - int8_t hungerDelta = (scenario_rand() & 0x1F) - 15; - /* Adjust by the delta, clamping at min=0 and max=255. */ - peep->Hunger = std::clamp(peep->Hunger + hungerDelta, 0, PEEP_MAX_HUNGER); - - /* Scenario editor limits initial guest thirst to between 37..253. - * To be on the safe side, assume the value could have been hacked - * to any value 0..255. */ - peep->Thirst = gGuestInitialThirst; - /* Initial value will vary by -15..16 */ - int8_t thirstDelta = (scenario_rand() & 0x1F) - 15; - /* Adjust by the delta, clamping at min=0 and max=255. */ - peep->Thirst = std::clamp(peep->Thirst + thirstDelta, 0, PEEP_MAX_THIRST); - - peep->Toilet = 0; - peep->TimeToConsume = 0; - std::fill_n(peep->RidesBeenOn, 32, 0x00); - - peep->GuestNumRides = 0; - std::fill_n(peep->RideTypesBeenOn, 16, 0x00); - peep->Id = gNextGuestNumber++; - peep->Name = nullptr; - - money32 cash = (scenario_rand() & 0x3) * 100 - 100 + gGuestInitialCash; - if (cash < 0) - cash = 0; - - if (gGuestInitialCash == 0) - { - cash = 500; - } - - if (gParkFlags & PARK_FLAGS_NO_MONEY) - { - cash = 0; - } - - if (gGuestInitialCash == MONEY16_UNDEFINED) - { - cash = 0; - } - - peep->CashInPocket = cash; - peep->CashSpent = 0; - peep->ParkEntryTime = -1; - peep->ResetPathfindGoal(); - peep->RemoveAllItems(); - peep->GuestHeadingToRideId = RIDE_ID_NULL; - peep->LitterCount = 0; - peep->DisgustingCount = 0; - peep->VandalismSeen = 0; - peep->PaidToEnter = 0; - peep->PaidOnRides = 0; - peep->PaidOnFood = 0; - peep->PaidOnDrink = 0; - peep->PaidOnSouvenirs = 0; - peep->AmountOfFood = 0; - peep->AmountOfDrinks = 0; - peep->AmountOfSouvenirs = 0; - peep->SurroundingsThoughtTimeout = 0; - peep->Angriness = 0; - peep->TimeLost = 0; - - uint8_t tshirtColour = static_cast(scenario_rand() % std::size(tshirt_colours)); - peep->TshirtColour = tshirt_colours[tshirtColour]; - - uint8_t trousersColour = static_cast(scenario_rand() % std::size(trouser_colours)); - peep->TrousersColour = trouser_colours[trousersColour]; - - /* Minimum energy is capped at 32 and maximum at 128, so this initialises - * a peep with approx 34%-100% energy. (65 - 32) / (128 - 32) ≈ 34% */ - uint8_t energy = (scenario_rand() % 64) + 65; - peep->Energy = energy; - peep->EnergyTarget = energy; - - increment_guests_heading_for_park(); - - return peep; -} - void Peep::FormatActionTo(Formatter& ft) const { switch (State) @@ -1820,20 +1323,26 @@ void Peep::FormatActionTo(Formatter& ft) const } case PeepState::Walking: case PeepState::UsingBin: - if (GuestHeadingToRideId != RIDE_ID_NULL) + { + auto* guest = As(); + if (guest != nullptr) { - auto ride = get_ride(GuestHeadingToRideId); - if (ride != nullptr) + if (guest->GuestHeadingToRideId != RIDE_ID_NULL) { - ft.Add(STR_HEADING_FOR); - ride->FormatNameTo(ft); + auto ride = get_ride(guest->GuestHeadingToRideId); + if (ride != nullptr) + { + ft.Add(STR_HEADING_FOR); + ride->FormatNameTo(ft); + } + } + else + { + ft.Add((PeepFlags & PEEP_FLAGS_LEAVING_PARK) ? STR_LEAVING_PARK : STR_WALKING); } } - else - { - ft.Add((PeepFlags & PEEP_FLAGS_LEAVING_PARK) ? STR_LEAVING_PARK : STR_WALKING); - } break; + } case PeepState::QueuingFront: case PeepState::Queuing: { @@ -1955,7 +1464,8 @@ void Peep::FormatNameTo(Formatter& ft) const { if (Name == nullptr) { - if (AssignedPeepType == PeepType::Staff) + auto* staff = As(); + if (staff != nullptr) { static constexpr const rct_string_id staffNames[] = { STR_HANDYMAN_X, @@ -1964,7 +1474,7 @@ void Peep::FormatNameTo(Formatter& ft) const STR_ENTERTAINER_X, }; - auto staffNameIndex = static_cast(AssignedStaffType); + auto staffNameIndex = static_cast(staff->AssignedStaffType); if (staffNameIndex > sizeof(staffNames)) { staffNameIndex = 0; @@ -2019,152 +1529,31 @@ bool Peep::SetName(std::string_view value) return false; } -/** - * rct2: 0x00698342 - * thought.item (eax) - * thought.type (ebx) - * argument_1 (esi & ebx) - * argument_2 (esi+2) - */ -void peep_thought_set_format_args(const rct_peep_thought* thought, Formatter& ft) +bool Peep::IsActionWalking() const { - ft.Add(PeepThoughts[EnumValue(thought->type)]); - - PeepThoughtToActionFlag flags = PeepThoughtToActionMap[EnumValue(thought->type)].flags; - if (flags & PEEP_THOUGHT_ACTION_FLAG_RIDE) - { - auto ride = get_ride(thought->item); - if (ride != nullptr) - { - ride->FormatNameTo(ft); - } - else - { - ft.Add(STR_NONE); - } - } - else if (flags & PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_SINGULAR) - { - ft.Add(GetShopItemDescriptor(ShopItem(thought->item)).Naming.Singular); - } - else if (flags & PEEP_THOUGHT_ACTION_FLAG_SHOP_ITEM_INDEFINITE) - { - ft.Add(GetShopItemDescriptor(ShopItem(thought->item)).Naming.Indefinite); - } + return Action == PeepActionType::Walking; } -enum +bool Peep::IsActionIdle() const { - PEEP_FACE_OFFSET_ANGRY = 0, - PEEP_FACE_OFFSET_VERY_VERY_SICK, - PEEP_FACE_OFFSET_VERY_SICK, - PEEP_FACE_OFFSET_SICK, - PEEP_FACE_OFFSET_VERY_TIRED, - PEEP_FACE_OFFSET_TIRED, - PEEP_FACE_OFFSET_VERY_VERY_UNHAPPY, - PEEP_FACE_OFFSET_VERY_UNHAPPY, - PEEP_FACE_OFFSET_UNHAPPY, - PEEP_FACE_OFFSET_NORMAL, - PEEP_FACE_OFFSET_HAPPY, - PEEP_FACE_OFFSET_VERY_HAPPY, - PEEP_FACE_OFFSET_VERY_VERY_HAPPY, -}; - -static constexpr const int32_t face_sprite_small[] = { - SPR_PEEP_SMALL_FACE_ANGRY, - SPR_PEEP_SMALL_FACE_VERY_VERY_SICK, - SPR_PEEP_SMALL_FACE_VERY_SICK, - SPR_PEEP_SMALL_FACE_SICK, - SPR_PEEP_SMALL_FACE_VERY_TIRED, - SPR_PEEP_SMALL_FACE_TIRED, - SPR_PEEP_SMALL_FACE_VERY_VERY_UNHAPPY, - SPR_PEEP_SMALL_FACE_VERY_UNHAPPY, - SPR_PEEP_SMALL_FACE_UNHAPPY, - SPR_PEEP_SMALL_FACE_NORMAL, - SPR_PEEP_SMALL_FACE_HAPPY, - SPR_PEEP_SMALL_FACE_VERY_HAPPY, - SPR_PEEP_SMALL_FACE_VERY_VERY_HAPPY, -}; - -static constexpr const int32_t face_sprite_large[] = { - SPR_PEEP_LARGE_FACE_ANGRY_0, - SPR_PEEP_LARGE_FACE_VERY_VERY_SICK_0, - SPR_PEEP_LARGE_FACE_VERY_SICK_0, - SPR_PEEP_LARGE_FACE_SICK, - SPR_PEEP_LARGE_FACE_VERY_TIRED, - SPR_PEEP_LARGE_FACE_TIRED, - SPR_PEEP_LARGE_FACE_VERY_VERY_UNHAPPY, - SPR_PEEP_LARGE_FACE_VERY_UNHAPPY, - SPR_PEEP_LARGE_FACE_UNHAPPY, - SPR_PEEP_LARGE_FACE_NORMAL, - SPR_PEEP_LARGE_FACE_HAPPY, - SPR_PEEP_LARGE_FACE_VERY_HAPPY, - SPR_PEEP_LARGE_FACE_VERY_VERY_HAPPY, -}; - -static int32_t get_face_sprite_offset(Peep* peep) -{ - // ANGRY - if (peep->Angriness > 0) - return PEEP_FACE_OFFSET_ANGRY; - - // VERY_VERY_SICK - if (peep->Nausea > 200) - return PEEP_FACE_OFFSET_VERY_VERY_SICK; - - // VERY_SICK - if (peep->Nausea > 170) - return PEEP_FACE_OFFSET_VERY_SICK; - - // SICK - if (peep->Nausea > 140) - return PEEP_FACE_OFFSET_SICK; - - // VERY_TIRED - if (peep->Energy < 46) - return PEEP_FACE_OFFSET_VERY_TIRED; - - // TIRED - if (peep->Energy < 70) - return PEEP_FACE_OFFSET_TIRED; - - int32_t offset = PEEP_FACE_OFFSET_VERY_VERY_UNHAPPY; - // There are 7 different happiness based faces - for (int32_t i = 37; peep->Happiness >= i; i += 37) - { - offset++; - } - - return offset; + return Action == PeepActionType::Idle; } -/** - * Function split into large and small sprite - * rct2: 0x00698721 - */ -int32_t get_peep_face_sprite_small(Peep* peep) +bool Peep::IsActionInterruptable() const { - return face_sprite_small[get_face_sprite_offset(peep)]; -} - -/** - * Function split into large and small sprite - * rct2: 0x00698721 - */ -int32_t get_peep_face_sprite_large(Peep* peep) -{ - return face_sprite_large[get_face_sprite_offset(peep)]; + return IsActionIdle() || IsActionWalking(); } void peep_set_map_tooltip(Peep* peep) { auto ft = Formatter(); - if (peep->AssignedPeepType == PeepType::Guest) + auto* guest = peep->As(); + if (guest != nullptr) { ft.Add((peep->PeepFlags & PEEP_FLAGS_TRACKING) ? STR_TRACKED_GUEST_MAP_TIP : STR_GUEST_MAP_TIP); - ft.Add(get_peep_face_sprite_small(peep)); - peep->FormatNameTo(ft); - peep->FormatActionTo(ft); + ft.Add(get_peep_face_sprite_small(guest)); + guest->FormatNameTo(ft); + guest->FormatActionTo(ft); } else { @@ -2196,80 +1585,6 @@ void Peep::SwitchNextActionSpriteType() } } -/** - * - * rct2: 0x00693CBB - */ -static bool peep_update_queue_position(Peep* peep, PeepActionType previous_action) -{ - peep->TimeInQueue++; - - auto* guestNext = GetEntity(peep->GuestNextInQueue); - if (guestNext == nullptr) - { - return false; - } - - int16_t x_diff = abs(guestNext->x - peep->x); - int16_t y_diff = abs(guestNext->y - peep->y); - int16_t z_diff = abs(guestNext->z - peep->z); - - if (z_diff > 10) - return false; - - if (x_diff < y_diff) - { - int16_t temp_x = x_diff; - x_diff = y_diff; - y_diff = temp_x; - } - - x_diff += y_diff / 2; - if (x_diff > 7) - { - if (x_diff > 13) - { - if ((peep->x & 0xFFE0) != (guestNext->x & 0xFFE0) || (peep->y & 0xFFE0) != (guestNext->y & 0xFFE0)) - return false; - } - - if (peep->sprite_direction != guestNext->sprite_direction) - return false; - - switch (guestNext->sprite_direction / 8) - { - case 0: - if (peep->x >= guestNext->x) - return false; - break; - case 1: - if (peep->y <= guestNext->y) - return false; - break; - case 2: - if (peep->x <= guestNext->x) - return false; - break; - case 3: - if (peep->y >= guestNext->y) - return false; - break; - } - } - - if (peep->Action < PeepActionType::None1) - peep->UpdateAction(); - - if (peep->Action != PeepActionType::None2) - return true; - - peep->Action = PeepActionType::None1; - peep->NextActionSpriteType = PeepActionSpriteType::WatchRide; - if (previous_action != PeepActionType::None1) - peep->Invalidate(); - return true; -} - /** * * rct2: 0x00693EF2 @@ -2339,26 +1654,26 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin return true; } - if (peep->State == PeepState::Queuing) + if (guest->State == PeepState::Queuing) { // Guest is in the ride queue. - peep->RideSubState = PeepRideSubState::AtQueueFront; - peep->ActionSpriteImageOffset = _unk_F1AEF0; + guest->RideSubState = PeepRideSubState::AtQueueFront; + guest->ActionSpriteImageOffset = _unk_F1AEF0; return true; } // Guest is on a normal path, i.e. ride has no queue. - if (peep->InteractionRideIndex == rideIndex) + if (guest->InteractionRideIndex == rideIndex) { // Peep is retrying the ride entrance without leaving // the path tile and without trying any other ride // attached to this path tile. i.e. stick with the // peeps previous decision not to go on the ride. - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } - peep->TimeLost = 0; + guest->TimeLost = 0; auto stationNum = tile_element->AsEntrance()->GetStationIndex(); // Guest walks up to the ride for the first time since entering // the path tile or since considering another ride attached to @@ -2367,35 +1682,35 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin { // Peep remembers that this is the last ride they // considered while on this path tile. - peep->InteractionRideIndex = rideIndex; - peep_return_to_centre_of_tile(peep); + guest->InteractionRideIndex = rideIndex; + peep_return_to_centre_of_tile(guest); return true; } // Guest has decided to go on the ride. - peep->ActionSpriteImageOffset = _unk_F1AEF0; - peep->InteractionRideIndex = rideIndex; + guest->ActionSpriteImageOffset = _unk_F1AEF0; + guest->InteractionRideIndex = rideIndex; uint16_t previous_last = ride->stations[stationNum].LastPeepInQueue; - ride->stations[stationNum].LastPeepInQueue = peep->sprite_index; - peep->GuestNextInQueue = previous_last; + ride->stations[stationNum].LastPeepInQueue = guest->sprite_index; + guest->GuestNextInQueue = previous_last; ride->stations[stationNum].QueueLength++; - peep->CurrentRide = rideIndex; - peep->CurrentRideStation = stationNum; - peep->DaysInQueue = 0; - peep->SetState(PeepState::Queuing); - peep->RideSubState = PeepRideSubState::AtQueueFront; - peep->TimeInQueue = 0; - if (peep->PeepFlags & PEEP_FLAGS_TRACKING) + guest->CurrentRide = rideIndex; + guest->CurrentRideStation = stationNum; + guest->DaysInQueue = 0; + guest->SetState(PeepState::Queuing); + guest->RideSubState = PeepRideSubState::AtQueueFront; + guest->TimeInQueue = 0; + if (guest->PeepFlags & PEEP_FLAGS_TRACKING) { auto ft = Formatter(); - peep->FormatNameTo(ft); + guest->FormatNameTo(ft); ride->FormatNameTo(ft); if (gConfigNotifications.guest_queuing_for_ride) { News::AddItemToQueue( - News::ItemType::PeepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, peep->sprite_index, ft); + News::ItemType::PeepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->sprite_index, ft); } } } @@ -2413,49 +1728,49 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin // If not the centre of the entrance arch if (tile_element->AsEntrance()->GetSequenceIndex() != 0) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } uint8_t entranceDirection = tile_element->GetDirection(); - if (entranceDirection != peep->PeepDirection) + if (entranceDirection != guest->PeepDirection) { - if (direction_reverse(entranceDirection) != peep->PeepDirection) + if (direction_reverse(entranceDirection) != guest->PeepDirection) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } // Peep is leaving the park. - if (peep->State != PeepState::Walking) + if (guest->State != PeepState::Walking) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } - if (!(peep->PeepFlags & PEEP_FLAGS_LEAVING_PARK)) + if (!(guest->PeepFlags & PEEP_FLAGS_LEAVING_PARK)) { // If the park is open and leaving flag isn't set return to centre if (gParkFlags & PARK_FLAGS_PARK_OPEN) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } } - auto destination = peep->GetDestination() + CoordsDirectionDelta[peep->PeepDirection]; - peep->SetDestination(destination, 9); - peep->MoveTo({ coords, peep->z }); - peep->SetState(PeepState::LeavingPark); + auto destination = guest->GetDestination() + CoordsDirectionDelta[guest->PeepDirection]; + guest->SetDestination(destination, 9); + guest->MoveTo({ coords, guest->z }); + guest->SetState(PeepState::LeavingPark); - peep->Var37 = 0; - if (peep->PeepFlags & PEEP_FLAGS_TRACKING) + guest->Var37 = 0; + if (guest->PeepFlags & PEEP_FLAGS_TRACKING) { auto ft = Formatter(); - peep->FormatNameTo(ft); + guest->FormatNameTo(ft); if (gConfigNotifications.guest_left_park) { - News::AddItemToQueue(News::ItemType::PeepOnRide, STR_PEEP_TRACKING_LEFT_PARK, peep->sprite_index, ft); + News::AddItemToQueue(News::ItemType::PeepOnRide, STR_PEEP_TRACKING_LEFT_PARK, guest->sprite_index, ft); } } return true; @@ -2463,19 +1778,19 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin // Peep is entering the park. - if (peep->State != PeepState::EnteringPark) + if (guest->State != PeepState::EnteringPark) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } if (!(gParkFlags & PARK_FLAGS_PARK_OPEN)) { - peep->State = PeepState::LeavingPark; - peep->Var37 = 1; + guest->State = PeepState::LeavingPark; + guest->Var37 = 1; decrement_guests_heading_for_park(); - peep_window_state_update(peep); - peep_return_to_centre_of_tile(peep); + peep_window_state_update(guest); + peep_return_to_centre_of_tile(guest); return true; } @@ -2535,55 +1850,55 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin if (!found) { - peep->State = PeepState::LeavingPark; - peep->Var37 = 1; + guest->State = PeepState::LeavingPark; + guest->Var37 = 1; decrement_guests_heading_for_park(); - peep_window_state_update(peep); - peep_return_to_centre_of_tile(peep); + peep_window_state_update(guest); + peep_return_to_centre_of_tile(guest); return true; } money16 entranceFee = park_get_entrance_fee(); if (entranceFee != 0) { - if (peep->HasItem(ShopItem::Voucher)) + if (guest->HasItem(ShopItem::Voucher)) { - if (peep->VoucherType == VOUCHER_TYPE_PARK_ENTRY_HALF_PRICE) + if (guest->VoucherType == VOUCHER_TYPE_PARK_ENTRY_HALF_PRICE) { entranceFee /= 2; - peep->RemoveItem(ShopItem::Voucher); - peep->WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; + guest->RemoveItem(ShopItem::Voucher); + guest->WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; } - else if (peep->VoucherType == VOUCHER_TYPE_PARK_ENTRY_FREE) + else if (guest->VoucherType == VOUCHER_TYPE_PARK_ENTRY_FREE) { entranceFee = 0; - peep->RemoveItem(ShopItem::Voucher); - peep->WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; + guest->RemoveItem(ShopItem::Voucher); + guest->WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; } } - if (entranceFee > peep->CashInPocket) + if (entranceFee > guest->CashInPocket) { - peep->State = PeepState::LeavingPark; - peep->Var37 = 1; + guest->State = PeepState::LeavingPark; + guest->Var37 = 1; decrement_guests_heading_for_park(); - peep_window_state_update(peep); - peep_return_to_centre_of_tile(peep); + peep_window_state_update(guest); + peep_return_to_centre_of_tile(guest); return true; } gTotalIncomeFromAdmissions += entranceFee; - guest->SpendMoney(peep->PaidToEnter, entranceFee, ExpenditureType::ParkEntranceTickets); - peep->PeepFlags |= PEEP_FLAGS_HAS_PAID_FOR_PARK_ENTRY; + guest->SpendMoney(guest->PaidToEnter, entranceFee, ExpenditureType::ParkEntranceTickets); + guest->PeepFlags |= PEEP_FLAGS_HAS_PAID_FOR_PARK_ENTRY; } gTotalAdmissions++; window_invalidate_by_number(WC_PARK_INFORMATION, 0); - peep->Var37 = 1; - auto destination = peep->GetDestination(); - destination += CoordsDirectionDelta[peep->PeepDirection]; - peep->SetDestination(destination, 7); - peep->MoveTo({ coords, peep->z }); + guest->Var37 = 1; + auto destination = guest->GetDestination(); + destination += CoordsDirectionDelta[guest->PeepDirection]; + guest->SetDestination(destination, 7); + guest->MoveTo({ coords, guest->z }); } return true; } @@ -2600,15 +1915,16 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool int16_t z = peep->GetZOnSlope(coords.x, coords.y); - if (peep->AssignedPeepType == PeepType::Staff) + auto* guest = peep->As(); + if (guest == nullptr) { peep->MoveTo({ coords, z }); return; } - uint8_t vandalThoughtTimeout = (peep->VandalismSeen & 0xC0) >> 6; + uint8_t vandalThoughtTimeout = (guest->VandalismSeen & 0xC0) >> 6; // Advance the vandalised tiles by 1 - uint8_t vandalisedTiles = (peep->VandalismSeen * 2) & 0x3F; + uint8_t vandalisedTiles = (guest->VandalismSeen * 2) & 0x3F; if (vandalism) { @@ -2619,8 +1935,8 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool { if ((scenario_rand() & 0xFFFF) <= 10922) { - peep->InsertNewThought(PeepThoughtType::Vandalism, PEEP_THOUGHT_ITEM_NONE); - peep->HappinessTarget = std::max(0, peep->HappinessTarget - 17); + guest->InsertNewThought(PeepThoughtType::Vandalism, PEEP_THOUGHT_ITEM_NONE); + guest->HappinessTarget = std::max(0, guest->HappinessTarget - 17); } vandalThoughtTimeout = 3; } @@ -2631,7 +1947,7 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool vandalThoughtTimeout--; } - peep->VandalismSeen = (vandalThoughtTimeout << 6) | vandalisedTiles; + guest->VandalismSeen = (vandalThoughtTimeout << 6) | vandalisedTiles; uint16_t crowded = 0; uint8_t litter_count = 0; uint8_t sick_count = 0; @@ -2643,18 +1959,18 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool if (other_peep->State != PeepState::Walking) continue; - if (abs(other_peep->z - peep->NextLoc.z) > 16) + if (abs(other_peep->z - guest->NextLoc.z) > 16) continue; crowded++; continue; } else if (auto litter = entity->As(); litter != nullptr) { - if (abs(litter->z - peep->NextLoc.z) > 16) + if (abs(litter->z - guest->NextLoc.z) > 16) continue; litter_count++; - if (litter->SubType != LITTER_TYPE_SICK && litter->SubType != LITTER_TYPE_SICK_ALT) + if (litter->SubType != Litter::Type::Vomit && litter->SubType != Litter::Type::VomitAlt) continue; litter_count--; @@ -2662,23 +1978,23 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool } } - if (crowded >= 10 && peep->State == PeepState::Walking && (scenario_rand() & 0xFFFF) <= 21845) + if (crowded >= 10 && guest->State == PeepState::Walking && (scenario_rand() & 0xFFFF) <= 21845) { - peep->InsertNewThought(PeepThoughtType::Crowded, PEEP_THOUGHT_ITEM_NONE); - peep->HappinessTarget = std::max(0, peep->HappinessTarget - 14); + guest->InsertNewThought(PeepThoughtType::Crowded, PEEP_THOUGHT_ITEM_NONE); + guest->HappinessTarget = std::max(0, guest->HappinessTarget - 14); } litter_count = std::min(static_cast(3), litter_count); sick_count = std::min(static_cast(3), sick_count); - uint8_t disgusting_time = peep->DisgustingCount & 0xC0; - uint8_t disgusting_count = ((peep->DisgustingCount & 0xF) << 2) | sick_count; - peep->DisgustingCount = disgusting_count | disgusting_time; + uint8_t disgusting_time = guest->DisgustingCount & 0xC0; + uint8_t disgusting_count = ((guest->DisgustingCount & 0xF) << 2) | sick_count; + guest->DisgustingCount = disgusting_count | disgusting_time; if (disgusting_time & 0xC0 && (scenario_rand() & 0xFFFF) <= 4369) { // Reduce the disgusting time - peep->DisgustingCount -= 0x40; + guest->DisgustingCount -= 0x40; } else { @@ -2690,21 +2006,21 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool if (total_sick >= 3 && (scenario_rand() & 0xFFFF) <= 10922) { - peep->InsertNewThought(PeepThoughtType::PathDisgusting, PEEP_THOUGHT_ITEM_NONE); - peep->HappinessTarget = std::max(0, peep->HappinessTarget - 17); + guest->InsertNewThought(PeepThoughtType::PathDisgusting, PEEP_THOUGHT_ITEM_NONE); + guest->HappinessTarget = std::max(0, guest->HappinessTarget - 17); // Reset disgusting time - peep->DisgustingCount |= 0xC0; + guest->DisgustingCount |= 0xC0; } } - uint8_t litter_time = peep->LitterCount & 0xC0; - litter_count = ((peep->LitterCount & 0xF) << 2) | litter_count; - peep->LitterCount = litter_count | litter_time; + uint8_t litter_time = guest->LitterCount & 0xC0; + litter_count = ((guest->LitterCount & 0xF) << 2) | litter_count; + guest->LitterCount = litter_count | litter_time; if (litter_time & 0xC0 && (scenario_rand() & 0xFFFF) <= 4369) { // Reduce the litter time - peep->LitterCount -= 0x40; + guest->LitterCount -= 0x40; } else { @@ -2716,14 +2032,14 @@ static void peep_footpath_move_forward(Peep* peep, const CoordsXYE& coords, bool if (total_litter >= 3 && (scenario_rand() & 0xFFFF) <= 10922) { - peep->InsertNewThought(PeepThoughtType::BadLitter, PEEP_THOUGHT_ITEM_NONE); - peep->HappinessTarget = std::max(0, peep->HappinessTarget - 17); + guest->InsertNewThought(PeepThoughtType::BadLitter, PEEP_THOUGHT_ITEM_NONE); + guest->HappinessTarget = std::max(0, guest->HappinessTarget - 17); // Reset litter time - peep->LitterCount |= 0xC0; + guest->LitterCount |= 0xC0; } } - peep->MoveTo({ coords, z }); + guest->MoveTo({ coords, z }); } /** @@ -2742,54 +2058,54 @@ static void peep_interact_with_path(Peep* peep, const CoordsXYE& coords) } int16_t z = tile_element->GetBaseZ(); + auto* guest = peep->As(); if (map_is_location_owned({ coords, z })) { - if (peep->OutsideOfPark) + if (guest && guest->OutsideOfPark) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return; } } else { - if (!peep->OutsideOfPark) + if (guest == nullptr || !guest->OutsideOfPark) { peep_return_to_centre_of_tile(peep); return; } } - auto* guest = peep->As(); if (guest != nullptr && tile_element->AsPath()->IsQueue()) { auto rideIndex = tile_element->AsPath()->GetRideIndex(); - if (peep->State == PeepState::Queuing) + if (guest->State == PeepState::Queuing) { // Check if this queue is connected to the ride the // peep is queuing for, i.e. the player hasn't edited // the queue, rebuilt the ride, etc. - if (peep->CurrentRide == rideIndex) + if (guest->CurrentRide == rideIndex) { - peep_footpath_move_forward(peep, { coords, tile_element }, vandalism_present); + peep_footpath_move_forward(guest, { coords, tile_element }, vandalism_present); } else { // Queue got disconnected from the original ride. - peep->InteractionRideIndex = RIDE_ID_NULL; + guest->InteractionRideIndex = RIDE_ID_NULL; guest->RemoveFromQueue(); - peep->SetState(PeepState::One); - peep_footpath_move_forward(peep, { coords, tile_element }, vandalism_present); + guest->SetState(PeepState::One); + peep_footpath_move_forward(guest, { coords, tile_element }, vandalism_present); } } else { // Peep is not queuing. - peep->TimeLost = 0; + guest->TimeLost = 0; auto stationNum = tile_element->AsPath()->GetStationIndex(); if ((tile_element->AsPath()->HasQueueBanner()) && (tile_element->AsPath()->GetQueueBannerDirection() - == direction_reverse(peep->PeepDirection)) // Ride sign is facing the direction the peep is walking + == direction_reverse(guest->PeepDirection)) // Ride sign is facing the direction the peep is walking ) { /* Peep is approaching the entrance of a ride queue. @@ -2798,59 +2114,59 @@ static void peep_interact_with_path(Peep* peep, const CoordsXYE& coords) if (ride != nullptr && guest->ShouldGoOnRide(ride, stationNum, true, false)) { // Peep has decided to go on the ride at the queue. - peep->InteractionRideIndex = rideIndex; + guest->InteractionRideIndex = rideIndex; // Add the peep to the ride queue. uint16_t old_last_peep = ride->stations[stationNum].LastPeepInQueue; - ride->stations[stationNum].LastPeepInQueue = peep->sprite_index; - peep->GuestNextInQueue = old_last_peep; + ride->stations[stationNum].LastPeepInQueue = guest->sprite_index; + guest->GuestNextInQueue = old_last_peep; ride->stations[stationNum].QueueLength++; - peep_decrement_num_riders(peep); - peep->CurrentRide = rideIndex; - peep->CurrentRideStation = stationNum; - peep->State = PeepState::Queuing; - peep->DaysInQueue = 0; - peep_window_state_update(peep); + peep_decrement_num_riders(guest); + guest->CurrentRide = rideIndex; + guest->CurrentRideStation = stationNum; + guest->State = PeepState::Queuing; + guest->DaysInQueue = 0; + peep_window_state_update(guest); - peep->RideSubState = PeepRideSubState::InQueue; - peep->DestinationTolerance = 2; - peep->TimeInQueue = 0; - if (peep->PeepFlags & PEEP_FLAGS_TRACKING) + guest->RideSubState = PeepRideSubState::InQueue; + guest->DestinationTolerance = 2; + guest->TimeInQueue = 0; + if (guest->PeepFlags & PEEP_FLAGS_TRACKING) { auto ft = Formatter(); - peep->FormatNameTo(ft); + guest->FormatNameTo(ft); ride->FormatNameTo(ft); if (gConfigNotifications.guest_queuing_for_ride) { News::AddItemToQueue( - News::ItemType::PeepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, peep->sprite_index, ft); + News::ItemType::PeepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->sprite_index, ft); } } - peep_footpath_move_forward(peep, { coords, tile_element }, vandalism_present); + peep_footpath_move_forward(guest, { coords, tile_element }, vandalism_present); } else { // Peep has decided not to go on the ride. - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); } } else { /* Peep is approaching a queue tile without a ride * sign facing the peep. */ - peep_footpath_move_forward(peep, { coords, tile_element }, vandalism_present); + peep_footpath_move_forward(guest, { coords, tile_element }, vandalism_present); } } } else { peep->InteractionRideIndex = RIDE_ID_NULL; - if (peep->State == PeepState::Queuing) + if (guest != nullptr && peep->State == PeepState::Queuing) { - peep->RemoveFromQueue(); - peep->SetState(PeepState::One); + guest->RemoveFromQueue(); + guest->SetState(PeepState::One); } peep_footpath_move_forward(peep, { coords, tile_element }, vandalism_present); } @@ -2876,37 +2192,37 @@ static bool peep_interact_with_shop(Peep* peep, const CoordsXYE& coords) // If we are queuing ignore the 'shop' // This can happen when paths clip through track - if (peep->State == PeepState::Queuing) + if (guest->State == PeepState::Queuing) { return false; } - peep->TimeLost = 0; + guest->TimeLost = 0; - if (ride->status != RIDE_STATUS_OPEN) + if (ride->status != RideStatus::Open) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } - if (peep->InteractionRideIndex == rideIndex) + if (guest->InteractionRideIndex == rideIndex) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } - if (peep->PeepFlags & PEEP_FLAGS_LEAVING_PARK) + if (guest->PeepFlags & PEEP_FLAGS_LEAVING_PARK) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY)) { - peep->TimeLost = 0; + guest->TimeLost = 0; if (!guest->ShouldGoOnRide(ride, 0, false, false)) { - peep_return_to_centre_of_tile(peep); + peep_return_to_centre_of_tile(guest); return true; } @@ -2922,35 +2238,35 @@ static bool peep_interact_with_shop(Peep* peep, const CoordsXYE& coords) } auto coordsCentre = coords.ToTileCentre(); - peep->SetDestination(coordsCentre, 3); - peep->CurrentRide = rideIndex; - peep->SetState(PeepState::EnteringRide); - peep->RideSubState = PeepRideSubState::ApproachShop; + guest->SetDestination(coordsCentre, 3); + guest->CurrentRide = rideIndex; + guest->SetState(PeepState::EnteringRide); + guest->RideSubState = PeepRideSubState::ApproachShop; - peep->GuestTimeOnRide = 0; + guest->GuestTimeOnRide = 0; ride->cur_num_customers++; - if (peep->PeepFlags & PEEP_FLAGS_TRACKING) + if (guest->PeepFlags & PEEP_FLAGS_TRACKING) { auto ft = Formatter(); - peep->FormatNameTo(ft); + guest->FormatNameTo(ft); ride->FormatNameTo(ft); rct_string_id string_id = ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IN_RIDE) ? STR_PEEP_TRACKING_PEEP_IS_IN_X : STR_PEEP_TRACKING_PEEP_IS_ON_X; if (gConfigNotifications.guest_used_facility) { - News::AddItemToQueue(News::ItemType::PeepOnRide, string_id, peep->sprite_index, ft); + News::AddItemToQueue(News::ItemType::PeepOnRide, string_id, guest->sprite_index, ft); } } } else { - if (peep->GuestHeadingToRideId == rideIndex) - peep->GuestHeadingToRideId = RIDE_ID_NULL; - peep->ActionSpriteImageOffset = _unk_F1AEF0; - peep->SetState(PeepState::Buying); - peep->CurrentRide = rideIndex; - peep->SubState = 0; + if (guest->GuestHeadingToRideId == rideIndex) + guest->GuestHeadingToRideId = RIDE_ID_NULL; + guest->ActionSpriteImageOffset = _unk_F1AEF0; + guest->SetState(PeepState::Buying); + guest->CurrentRide = rideIndex; + guest->SubState = 0; } return true; @@ -2971,12 +2287,13 @@ void Peep::PerformNextAction(uint8_t& pathing_result, TileElement*& tile_result) pathing_result = 0; PeepActionType previousAction = Action; - if (Action == PeepActionType::None1) - Action = PeepActionType::None2; + if (Action == PeepActionType::Idle) + Action = PeepActionType::Walking; - if (State == PeepState::Queuing) + auto* guest = As(); + if (State == PeepState::Queuing && guest != nullptr) { - if (peep_update_queue_position(this, previousAction)) + if (guest->UpdateQueuePosition(previousAction)) return; } @@ -2986,7 +2303,6 @@ void Peep::PerformNextAction(uint8_t& pathing_result, TileElement*& tile_result) pathing_result |= PATHING_DESTINATION_REACHED; uint8_t result = 0; - auto* guest = As(); if (guest != nullptr) { result = guest_path_finding(guest); @@ -3015,7 +2331,7 @@ void Peep::PerformNextAction(uint8_t& pathing_result, TileElement*& tile_result) if (map_is_edge(newLoc)) { - if (OutsideOfPark) + if (guest != nullptr && guest->OutsideOfPark) { pathing_result |= PATHING_OUTSIDE_PARK; } @@ -3062,15 +2378,15 @@ void Peep::PerformNextAction(uint8_t& pathing_result, TileElement*& tile_result) } } while (!(tileElement++)->IsLastForTile()); - if (AssignedPeepType == PeepType::Staff || (GetNextIsSurface())) + if (Is() || (GetNextIsSurface())) { int16_t height = abs(tile_element_height(newLoc) - z); - if (height <= 3 || (AssignedPeepType == PeepType::Staff && height <= 32)) + if (height <= 3 || (Is() && height <= 32)) { InteractionRideIndex = RIDE_ID_NULL; - if (State == PeepState::Queuing) + if (guest != nullptr && State == PeepState::Queuing) { - RemoveFromQueue(); + guest->RemoveFromQueue(); SetState(PeepState::One); } @@ -3094,12 +2410,13 @@ void Peep::PerformNextAction(uint8_t& pathing_result, TileElement*& tile_result) return; } - if (AssignedPeepType == PeepType::Staff && !GetNextIsSurface()) + auto* staff = As(); + if (staff != nullptr && !GetNextIsSurface()) { // Prevent staff from leaving the path on their own unless they're allowed to mow. - if (!((this->StaffOrders & STAFF_ORDERS_MOWING) && this->StaffMowingTimeout >= 12)) + if (!((staff->StaffOrders & STAFF_ORDERS_MOWING) && staff->StaffMowingTimeout >= 12)) { - peep_return_to_centre_of_tile(this); + peep_return_to_centre_of_tile(staff); return; } } @@ -3169,9 +2486,9 @@ int32_t peep_compare(const uint16_t sprite_index_a, const uint16_t sprite_index_ } // Compare types - if (peep_a->AssignedPeepType != peep_b->AssignedPeepType) + if (peep_a->Type != peep_b->Type) { - return static_cast(peep_a->AssignedPeepType) - static_cast(peep_b->AssignedPeepType); + return static_cast(peep_a->Type) - static_cast(peep_b->Type); } if (peep_a->Name == nullptr && peep_b->Name == nullptr) @@ -3278,96 +2595,27 @@ static void peep_release_balloon(Guest* peep, int16_t spawn_height) if (peep->SpriteType == PeepSpriteType::Balloon && peep->x != LOCATION_NULL) { - create_balloon({ peep->x, peep->y, spawn_height }, peep->BalloonColour, false); + Balloon::Create({ peep->x, peep->y, spawn_height }, peep->BalloonColour, false); peep->WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; peep->UpdateSpriteType(); } } } -/** - * - * rct2: 0x006966A9 - */ -void Peep::RemoveFromQueue() -{ - auto ride = get_ride(CurrentRide); - if (ride == nullptr) - return; - - auto& station = ride->stations[CurrentRideStation]; - // Make sure we don't underflow, building while paused might reset it to 0 where peeps have - // not yet left the queue. - if (station.QueueLength > 0) - { - station.QueueLength--; - } - - if (sprite_index == station.LastPeepInQueue) - { - station.LastPeepInQueue = GuestNextInQueue; - return; - } - - auto* otherGuest = GetEntity(station.LastPeepInQueue); - if (otherGuest == nullptr) - { - log_error("Invalid Guest Queue list!"); - return; - } - for (; otherGuest != nullptr; otherGuest = GetEntity(otherGuest->GuestNextInQueue)) - { - if (sprite_index == otherGuest->GuestNextInQueue) - { - otherGuest->GuestNextInQueue = GuestNextInQueue; - return; - } - } -} - /** * * rct2: 0x0069A512 */ void Peep::RemoveFromRide() { - if (State == PeepState::Queuing) + auto* guest = As(); + if (guest != nullptr && State == PeepState::Queuing) { - RemoveFromQueue(); + guest->RemoveFromQueue(); } StateReset(); } -uint64_t Peep::GetItemFlags() const -{ - return ItemFlags; -} - -void Peep::SetItemFlags(uint64_t itemFlags) -{ - ItemFlags = itemFlags; -} - -void Peep::RemoveAllItems() -{ - ItemFlags = 0; -} - -void Peep::RemoveItem(ShopItem item) -{ - ItemFlags &= ~EnumToFlag(item); -} - -void Peep::GiveItem(ShopItem item) -{ - ItemFlags |= EnumToFlag(item); -} - -bool Peep::HasItem(ShopItem peepItem) const -{ - return GetItemFlags() & EnumToFlag(peepItem); -} - void Peep::SetDestination(const CoordsXY& coords) { DestinationX = static_cast(coords.x); diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 0feb0e1250..a43542e449 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -50,20 +50,14 @@ constexpr auto PEEP_CLEARANCE_HEIGHT = 4 * COORDS_Z_STEP; class Formatter; struct TileElement; struct Ride; +class DataSerialiser; + namespace GameActions { class Result; } using ParkEntranceIndex = uint8_t; -enum class PeepType : uint8_t -{ - Guest, - Staff, - - Invalid = 0xFF -}; - enum class StaffType : uint8_t { Handyman, @@ -320,8 +314,8 @@ enum class PeepActionType : uint8_t BeingWatched = 29, WithdrawMoney = 30, - None1 = 254, - None2 = 255, + Idle = 254, + Walking = 255, }; enum class PeepActionSpriteType : uint8_t @@ -560,7 +554,6 @@ struct Peep : SpriteBase char* Name; CoordsXYZ NextLoc; uint8_t NextFlags; - bool OutsideOfPark; PeepState State; union { @@ -570,12 +563,6 @@ struct Peep : SpriteBase PeepUsingBinSubState UsingBinSubState; }; PeepSpriteType SpriteType; - PeepType AssignedPeepType; - union - { - StaffType AssignedStaffType; - uint8_t GuestNumRides; - }; uint8_t TshirtColour; uint8_t TrousersColour; uint16_t DestinationX; // Location that the peep is trying to get to @@ -584,23 +571,8 @@ struct Peep : SpriteBase uint8_t Var37; uint8_t Energy; uint8_t EnergyTarget; - uint8_t Happiness; - uint8_t HappinessTarget; - uint8_t Nausea; - uint8_t NauseaTarget; - uint8_t Hunger; - uint8_t Thirst; - uint8_t Toilet; uint8_t Mass; - uint8_t TimeToConsume; - IntensityRange Intensity{ 0 }; - PeepNauseaTolerance NauseaTolerance; uint8_t WindowInvalidateFlags; - money16 PaidOnDrink; - uint8_t RideTypesBeenOn[16]; - ride_id_t Photo2RideRef; - ride_id_t Photo3RideRef; - ride_id_t Photo4RideRef; union { ride_id_t CurrentRide; @@ -633,99 +605,17 @@ struct Peep : SpriteBase uint8_t ActionFrame; uint8_t StepProgress; union - { - uint16_t MechanicTimeSinceCall; // time getting to ride to fix - uint16_t GuestNextInQueue; - }; - union { uint8_t MazeLastEdge; Direction PeepDirection; // Direction ? }; ride_id_t InteractionRideIndex; - uint16_t TimeInQueue; - uint8_t RidesBeenOn[32]; - // 255 bit bitmap of every ride the peep has been on see - // window_peep_rides_update for how to use. uint32_t Id; - money32 CashInPocket; - money32 CashSpent; - union - { - int32_t ParkEntryTime; - int32_t HireDate; - }; - int8_t RejoinQueueTimeout; // whilst waiting for a free vehicle (or pair) in the entrance - ride_id_t PreviousRide; - uint16_t PreviousRideTimeOut; - rct_peep_thought Thoughts[PEEP_MAX_THOUGHTS]; uint8_t PathCheckOptimisation; // see peep.checkForPath - union - { - uint8_t StaffId; - ride_id_t GuestHeadingToRideId; - }; - union - { - uint8_t StaffOrders; - uint8_t GuestIsLostCountdown; - }; - ride_id_t Photo1RideRef; - uint32_t PeepFlags; rct12_xyzd8 PathfindGoal; - rct12_xyzd8 PathfindHistory[4]; + std::array PathfindHistory; uint8_t WalkingFrameNum; - // 0x3F Litter Count split into lots of 3 with time, 0xC0 Time since last recalc - uint8_t LitterCount; - union - { - uint8_t GuestTimeOnRide; - uint8_t StaffMowingTimeout; - }; - // 0x3F Sick Count split into lots of 3 with time, 0xC0 Time since last recalc - uint8_t DisgustingCount; - union - { - money16 PaidToEnter; - uint16_t StaffLawnsMown; - uint16_t StaffRidesFixed; - }; - union - { - money16 PaidOnRides; - uint16_t StaffGardensWatered; - uint16_t StaffRidesInspected; - }; - union - { - money16 PaidOnFood; - uint16_t StaffLitterSwept; - }; - union - { - money16 PaidOnSouvenirs; - uint16_t StaffBinsEmptied; - }; - uint8_t AmountOfFood; - uint8_t AmountOfDrinks; - uint8_t AmountOfSouvenirs; - uint8_t VandalismSeen; // 0xC0 vandalism thought timeout, 0x3F vandalism tiles seen - uint8_t VoucherType; - union - { - ride_id_t VoucherRideId; - ShopItemIndex VoucherShopItem; - }; - uint8_t SurroundingsThoughtTimeout; - uint8_t Angriness; - uint8_t TimeLost; // the time the peep has been lost when it reaches 254 generates the lost thought - uint8_t DaysInQueue; - uint8_t BalloonColour; - uint8_t UmbrellaColour; - uint8_t HatColour; - ride_id_t FavouriteRide; - uint8_t FavouriteRideRating; - uint64_t ItemFlags; + uint32_t PeepFlags; public: // Peep void Update(); @@ -744,24 +634,18 @@ public: // Peep void Pickup(); void PickupAbort(int32_t old_x); std::unique_ptr Place(const TileCoordsXYZ& location, bool apply); - static Peep* Generate(const CoordsXYZ& coords); - void RemoveFromQueue(); void RemoveFromRide(); - void InsertNewThought(PeepThoughtType thought_type, uint8_t thought_arguments); void FormatActionTo(Formatter&) const; void FormatNameTo(Formatter&) const; std::string GetName() const; bool SetName(std::string_view value); + bool IsActionWalking() const; + bool IsActionIdle() const; + bool IsActionInterruptable() const; // Reset the peep's stored goal, which means they will forget any stored pathfinding history // on the next peep_pathfind_choose_direction call. void ResetPathfindGoal(); - uint64_t GetItemFlags() const; - void SetItemFlags(uint64_t itemFlags); - void RemoveAllItems(); - void RemoveItem(ShopItem item); - void GiveItem(ShopItem item); - bool HasItem(ShopItem peepItem) const; void SetDestination(const CoordsXY& coords); void SetDestination(const CoordsXY& coords, int32_t tolerance); @@ -784,7 +668,72 @@ private: struct Guest : Peep { + static constexpr auto cEntityType = EntityType::Guest; + public: + uint8_t GuestNumRides; + uint16_t GuestNextInQueue; + int32_t ParkEntryTime; + ride_id_t GuestHeadingToRideId; + uint8_t GuestIsLostCountdown; + uint8_t GuestTimeOnRide; + money16 PaidToEnter; + money16 PaidOnRides; + money16 PaidOnFood; + money16 PaidOnDrink; + money16 PaidOnSouvenirs; + bool OutsideOfPark; + uint8_t Happiness; + uint8_t HappinessTarget; + uint8_t Nausea; + uint8_t NauseaTarget; + uint8_t Hunger; + uint8_t Thirst; + uint8_t Toilet; + uint8_t TimeToConsume; + IntensityRange Intensity{ 0 }; + PeepNauseaTolerance NauseaTolerance; + uint8_t RideTypesBeenOn[16]; + uint16_t TimeInQueue; + // 255 bit bitmap of every ride the peep has been on see + // window_peep_rides_update for how to use. + uint8_t RidesBeenOn[32]; + money32 CashInPocket; + money32 CashSpent; + ride_id_t Photo1RideRef; + ride_id_t Photo2RideRef; + ride_id_t Photo3RideRef; + ride_id_t Photo4RideRef; + + int8_t RejoinQueueTimeout; // whilst waiting for a free vehicle (or pair) in the entrance + ride_id_t PreviousRide; + uint16_t PreviousRideTimeOut; + std::array Thoughts; + // 0x3F Litter Count split into lots of 3 with time, 0xC0 Time since last recalc + uint8_t LitterCount; + // 0x3F Sick Count split into lots of 3 with time, 0xC0 Time since last recalc + uint8_t DisgustingCount; + uint8_t AmountOfFood; + uint8_t AmountOfDrinks; + uint8_t AmountOfSouvenirs; + uint8_t VandalismSeen; // 0xC0 vandalism thought timeout, 0x3F vandalism tiles seen + uint8_t VoucherType; + union + { + ride_id_t VoucherRideId; + ShopItemIndex VoucherShopItem; + }; + uint8_t SurroundingsThoughtTimeout; + uint8_t Angriness; + uint8_t TimeLost; // the time the peep has been lost when it reaches 254 generates the lost thought + uint8_t DaysInQueue; + uint8_t BalloonColour; + uint8_t UmbrellaColour; + uint8_t HatColour; + ride_id_t FavouriteRide; + uint8_t FavouriteRideRating; + uint64_t ItemFlags; + void UpdateGuest(); void Tick128UpdateGuest(int32_t index); int64_t GetFoodOrDrinkFlags() const; @@ -792,8 +741,8 @@ public: bool HasDrink() const; bool HasFoodOrDrink() const; bool HasEmptyContainer() const; - void OnEnterRide(ride_id_t rideIndex); - void OnExitRide(ride_id_t rideIndex); + void OnEnterRide(Ride* ride); + void OnExitRide(Ride* ride); void UpdateSpriteType(); bool HeadingForRideOrParkExit() const; void StopPurchaseThought(uint8_t ride_type); @@ -822,6 +771,18 @@ public: void HandleEasterEggName(); int32_t GetEasterEggNameId() const; void UpdateEasterEggInteractions(); + void InsertNewThought(PeepThoughtType thought_type, uint8_t thought_arguments); + static Guest* Generate(const CoordsXYZ& coords); + bool UpdateQueuePosition(PeepActionType previous_action); + void RemoveFromQueue(); + + uint64_t GetItemFlags() const; + void SetItemFlags(uint64_t itemFlags); + void RemoveAllItems(); + void RemoveItem(ShopItem item); + void GiveItem(ShopItem item); + bool HasItem(ShopItem peepItem) const; + void Serialise(DataSerialiser& stream); private: void UpdateRide(); @@ -855,9 +816,7 @@ private: void UpdateRideShopLeave(); void loc_68F9F3(); void loc_68FA89(); - using easter_egg_function = void (Guest::*)(Guest* otherGuest); int32_t CheckEasterEggName(int32_t index) const; - void ApplyEasterEggToNearbyGuests(easter_egg_function easter_egg); bool GuestHasValidXY() const; void GivePassingPeepsPurpleClothes(Guest* passingPeep); void GivePassingPeepsPizza(Guest* passingPeep); @@ -871,7 +830,32 @@ private: struct Staff : Peep { + static constexpr auto cEntityType = EntityType::Staff; + public: + StaffType AssignedStaffType; + uint16_t MechanicTimeSinceCall; // time getting to ride to fix + int32_t HireDate; + uint8_t StaffId; + uint8_t StaffOrders; + uint8_t StaffMowingTimeout; + union + { + uint16_t StaffLawnsMown; + uint16_t StaffRidesFixed; + }; + union + { + uint16_t StaffGardensWatered; + uint16_t StaffRidesInspected; + }; + union + { + uint16_t StaffLitterSwept; + uint16_t StaffVandalsStopped; + }; + uint16_t StaffBinsEmptied; + void UpdateStaff(uint32_t stepsToTake); void Tick128UpdateStaff(); bool IsMechanic() const; @@ -887,6 +871,7 @@ public: bool CanIgnoreWideFlag(const CoordsXYZ& staffPos, TileElement* path) const; static void ResetStats(); + void Serialise(DataSerialiser& stream); private: void UpdatePatrolling(); @@ -934,7 +919,8 @@ private: bool UpdatePatrollingFindGrass(); }; -static_assert(sizeof(Peep) <= 512); +static_assert(sizeof(Guest) <= 512); +static_assert(sizeof(Staff) <= 512); struct rct_sprite_bounds { @@ -1010,7 +996,6 @@ extern uint32_t gNextGuestNumber; extern uint8_t gPeepWarningThrottle[16]; -Peep* try_get_guest(uint16_t spriteIndex); int32_t peep_get_staff_count(); void peep_update_all(); void peep_problem_warnings_update(); @@ -1019,8 +1004,8 @@ void peep_update_crowd_noise(); void peep_update_days_in_queue(); void peep_applause(); void peep_thought_set_format_args(const rct_peep_thought* thought, Formatter& ft); -int32_t get_peep_face_sprite_small(Peep* peep); -int32_t get_peep_face_sprite_large(Peep* peep); +int32_t get_peep_face_sprite_small(Guest* peep); +int32_t get_peep_face_sprite_large(Guest* peep); void peep_sprite_remove(Peep* peep); void peep_window_state_update(Peep* peep); diff --git a/src/openrct2/peep/PeepData.cpp b/src/openrct2/peep/PeepData.cpp index eb851b3308..8887c59d80 100644 --- a/src/openrct2/peep/PeepData.cpp +++ b/src/openrct2/peep/PeepData.cpp @@ -7,7 +7,7 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include "../world/Sprite.h" +#include "Peep.h" #include diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index 735effbf5e..c981d22b5e 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -29,6 +29,7 @@ #include "../ride/RideData.h" #include "../ride/Station.h" #include "../ride/Track.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" #include "../util/Util.h" #include "../windows/Intent.h" @@ -74,8 +75,7 @@ const uint16_t MAX_LITTER_DISTANCE = 3 * COORDS_XY_STEP; template<> bool SpriteBase::Is() const { - auto peep = As(); - return peep && peep->AssignedPeepType == PeepType::Staff; + return Type == EntityType::Staff; } /** @@ -125,9 +125,9 @@ bool staff_hire_new_member(StaffType staffType, EntertainerCostume entertainerTy return; // Open window for new staff. - auto peep = GetEntity(res->peepSriteIndex); + auto* staff = GetEntity(res->peepSriteIndex); auto intent = Intent(WC_PEEP); - intent.putExtra(INTENT_EXTRA_PEEP, peep); + intent.putExtra(INTENT_EXTRA_PEEP, staff); context_open_intent(&intent); }); @@ -149,7 +149,7 @@ void staff_update_greyed_patrol_areas() gStaffPatrolAreas[staffPatrolOffset + i] = 0; } - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (static_cast(peep->AssignedStaffType) == staff_type) { @@ -349,7 +349,7 @@ uint8_t Staff::GetValidPatrolDirections(const CoordsXY& loc) const */ void Staff::ResetStats() { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { peep->SetHireDate(gDateMonthsElapsed); peep->StaffLawnsMown = 0; @@ -357,6 +357,7 @@ void Staff::ResetStats() peep->StaffGardensWatered = 0; peep->StaffRidesInspected = 0; peep->StaffLitterSwept = 0; + peep->StaffVandalsStopped = 0; peep->StaffBinsEmptied = 0; } } @@ -423,7 +424,7 @@ Direction Staff::HandymanDirectionToNearestLitter() const { uint16_t nearestLitterDist = 0xFFFF; Litter* nearestLitter = nullptr; - for (auto litter : EntityList(EntityListId::Litter)) + for (auto litter : EntityList()) { uint16_t distance = abs(litter->x - x) + abs(litter->y - y) + abs(litter->z - z) * 4; @@ -960,7 +961,7 @@ bool Staff::DoMiscPathFinding() */ void Staff::EntertainerUpdateNearbyPeeps() const { - for (auto guest : EntityList(EntityListId::Peep)) + for (auto guest : EntityList()) { if (guest->x == LOCATION_NULL) continue; @@ -996,7 +997,7 @@ void Staff::EntertainerUpdateNearbyPeeps() const */ bool Staff::DoEntertainerPathFinding() { - if (((scenario_rand() & 0xFFFF) <= 0x4000) && (Action == PeepActionType::None1 || Action == PeepActionType::None2)) + if (((scenario_rand() & 0xFFFF) <= 0x4000) && IsActionInterruptable()) { Action = (scenario_rand() & 1) ? PeepActionType::Wave2 : PeepActionType::Joy; ActionFrame = 0; @@ -1213,7 +1214,7 @@ void Staff::UpdateWatering() } else if (SubState == 1) { - if (Action != PeepActionType::None2) + if (!IsActionWalking()) { UpdateAction(); Invalidate(); @@ -1234,9 +1235,9 @@ void Staff::UpdateWatering() if (abs(NextLoc.z - tile_element->GetBaseZ()) > 4 * COORDS_Z_STEP) continue; - rct_scenery_entry* scenery_entry = tile_element->AsSmallScenery()->GetEntry(); + auto* sceneryEntry = tile_element->AsSmallScenery()->GetEntry(); - if (!scenery_small_entry_has_flag(scenery_entry, SMALL_SCENERY_FLAG_CAN_BE_WATERED)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_CAN_BE_WATERED)) continue; tile_element->AsSmallScenery()->SetAge(0); @@ -1277,7 +1278,7 @@ void Staff::UpdateEmptyingBin() } else if (SubState == 1) { - if (Action == PeepActionType::None2) + if (IsActionWalking()) { StateReset(); return; @@ -1313,8 +1314,8 @@ void Staff::UpdateEmptyingBin() return; } - rct_scenery_entry* scenery_entry = tile_element->AsPath()->GetAdditionEntry(); - if (!(scenery_entry->path_bit.flags & PATH_BIT_FLAG_IS_BIN) || tile_element->AsPath()->IsBroken() + auto* pathAddEntry = tile_element->AsPath()->GetAdditionEntry(); + if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN) || tile_element->AsPath()->IsBroken() || tile_element->AsPath()->AdditionIsGhost()) { StateReset(); @@ -1343,7 +1344,7 @@ void Staff::UpdateSweeping() if (Action == PeepActionType::StaffSweep && ActionFrame == 8) { // Remove sick at this location - litter_remove_at({ x, y, z }); + Litter::RemoveAt({ x, y, z }); StaffLitterSwept++; WindowInvalidateFlags |= PEEP_INVALIDATE_STAFF_STATS; } @@ -1496,7 +1497,7 @@ void Staff::UpdateAnswering() } else if (SubState == 1) { - if (Action == PeepActionType::None2) + if (IsActionWalking()) { SubState = 2; peep_window_state_update(this); @@ -1621,7 +1622,7 @@ bool Staff::UpdatePatrollingFindWatering() continue; } - rct_scenery_entry* sceneryEntry = tile_element->AsSmallScenery()->GetEntry(); + auto* sceneryEntry = tile_element->AsSmallScenery()->GetEntry(); if (sceneryEntry == nullptr || !scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_CAN_BE_WATERED)) { @@ -1681,11 +1682,11 @@ bool Staff::UpdatePatrollingFindBin() if (!tileElement->AsPath()->HasAddition()) return false; - rct_scenery_entry* sceneryEntry = tileElement->AsPath()->GetAdditionEntry(); - if (sceneryEntry == nullptr) + auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); + if (pathAddEntry == nullptr) return false; - if (!(sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BIN)) + if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN)) return false; if (tileElement->AsPath()->IsBroken()) @@ -1791,8 +1792,8 @@ void Staff::Tick128UpdateStaff() SpriteType = newSpriteType; ActionSpriteImageOffset = 0; WalkingFrameNum = 0; - if (Action < PeepActionType::None1) - Action = PeepActionType::None2; + if (Action < PeepActionType::Idle) + Action = PeepActionType::Walking; PeepFlags &= ~PEEP_FLAGS_SLOW_WALK; if (gSpriteTypeToSlowWalkMap[EnumValue(newSpriteType)]) @@ -2184,7 +2185,7 @@ bool Staff::UpdateFixingFixVehicle(bool firstRun, const Ride* ride) UpdateCurrentActionSpriteType(); } - if (Action == PeepActionType::None2) + if (IsActionWalking()) { return true; } @@ -2226,7 +2227,7 @@ bool Staff::UpdateFixingFixVehicleMalfunction(bool firstRun, const Ride* ride) UpdateCurrentActionSpriteType(); } - if (Action == PeepActionType::None2) + if (IsActionWalking()) { return true; } @@ -2331,7 +2332,7 @@ bool Staff::UpdateFixingFixStationEnd(bool firstRun) UpdateCurrentActionSpriteType(); } - if (Action == PeepActionType::None2) + if (IsActionWalking()) { return true; } @@ -2444,7 +2445,7 @@ bool Staff::UpdateFixingFixStationStart(bool firstRun, const Ride* ride) UpdateCurrentActionSpriteType(); } - if (Action == PeepActionType::None2) + if (IsActionWalking()) { return true; } @@ -2472,7 +2473,7 @@ bool Staff::UpdateFixingFixStationBrakes(bool firstRun, Ride* ride) UpdateCurrentActionSpriteType(); } - if (Action == PeepActionType::None2) + if (IsActionWalking()) { return true; } @@ -2564,7 +2565,7 @@ bool Staff::UpdateFixingFinishFixOrInspect(bool firstRun, int32_t steps, Ride* r UpdateCurrentActionSpriteType(); } - if (Action != PeepActionType::None2) + if (!IsActionWalking()) { UpdateAction(); Invalidate(); diff --git a/src/openrct2/platform/Crash.cpp b/src/openrct2/platform/Crash.cpp index 251ffe8f77..67c845b7ee 100644 --- a/src/openrct2/platform/Crash.cpp +++ b/src/openrct2/platform/Crash.cpp @@ -52,6 +52,8 @@ const wchar_t* _wszCommitSha1Short = WSZ(""); // OPENRCT2_ARCHITECTURE is required to be defined in version.h const wchar_t* _wszArchitecture = WSZ(OPENRCT2_ARCHITECTURE); +# define BACKTRACE_TOKEN L"3c7c2c6de378d59819d6755369f4d099bfe1a0d990b065f2ae427ab096cd6f40" + // Note: uploading gzipped crash dumps manually requires specifying // 'Content-Encoding: gzip' header in HTTP request, but we cannot do that, // so just hope the file name with '.gz' suffix is enough. @@ -64,7 +66,7 @@ static bool UploadMinidump(const std::map& files, in wprintf(L"files[%s] = %s\n", file.first.c_str(), file.second.c_str()); } std::wstring url(L"https://openrct2.sp.backtrace.io:6098/" - L"post?format=minidump&token=98675313b384d2fb1d3d3ce8ad9cab3ed61b9e08186ae47b0e3342adc3ff0714"); + L"post?format=minidump&token=" BACKTRACE_TOKEN); std::map parameters; parameters[L"product_name"] = L"openrct2"; // In case of releases this can be empty diff --git a/src/openrct2/platform/Platform.Posix.cpp b/src/openrct2/platform/Platform.Posix.cpp index aee87c5764..dc1184564d 100644 --- a/src/openrct2/platform/Platform.Posix.cpp +++ b/src/openrct2/platform/Platform.Posix.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -9,6 +9,8 @@ #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__FreeBSD__) +# include "../core/Memory.hpp" +# include "../core/Path.hpp" # include "../core/String.hpp" # include "Platform2.h" # include "platform.h" @@ -17,7 +19,9 @@ # include # include # include +# include # include +# include namespace Platform { @@ -159,6 +163,101 @@ namespace Platform return -1; # endif // __EMSCRIPTEN__ } + + uint64_t GetLastModified(const std::string& path) + { + uint64_t lastModified = 0; + struct stat statInfo + { + }; + if (stat(path.c_str(), &statInfo) == 0) + { + lastModified = statInfo.st_mtime; + } + return lastModified; + } + + uint64_t GetFileSize(std::string_view path) + { + uint64_t size = 0; + struct stat statInfo + { + }; + if (stat(std::string(path).c_str(), &statInfo) == 0) + { + size = statInfo.st_size; + } + return size; + } + + bool ShouldIgnoreCase() + { + return false; + } + + bool IsPathSeparator(char c) + { + return c == '/'; + } + + utf8* GetAbsolutePath(utf8* buffer, size_t bufferSize, const utf8* relativePath) + { + utf8* absolutePath = realpath(relativePath, nullptr); + if (absolutePath == nullptr) + { + return String::Set(buffer, bufferSize, relativePath); + } + else + { + String::Set(buffer, bufferSize, absolutePath); + Memory::Free(absolutePath); + return buffer; + } + } + + std::string ResolveCasing(const std::string& path, bool fileExists) + { + std::string result; + if (fileExists) + { + // Windows is case insensitive so it will exist and that is all that matters + // for now. We can properly resolve the casing if we ever need to. + result = path; + } + else + { + std::string fileName = Path::GetFileName(path); + std::string directory = Path::GetDirectory(path); + + struct dirent** files; + auto count = scandir(directory.c_str(), &files, nullptr, alphasort); + if (count != -1) + { + // Find a file which matches by name (case insensitive) + for (int32_t i = 0; i < count; i++) + { + if (String::Equals(files[i]->d_name, fileName.c_str(), true)) + { + result = Path::Combine(directory, std::string(files[i]->d_name)); + break; + } + } + + // Free memory + for (int32_t i = 0; i < count; i++) + { + free(files[i]); + } + free(files); + } + } + return result; + } + + bool RequireNewWindow(bool openGL) + { + return true; + } } // namespace Platform #endif diff --git a/src/openrct2/platform/Platform.Win32.cpp b/src/openrct2/platform/Platform.Win32.cpp index 08e029887e..4a7f203e96 100644 --- a/src/openrct2/platform/Platform.Win32.cpp +++ b/src/openrct2/platform/Platform.Win32.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -535,6 +535,86 @@ namespace Platform log_warning("Execute() not implemented for Windows!"); return -1; } + + uint64_t GetLastModified(const std::string& path) + { + uint64_t lastModified = 0; + auto pathW = String::ToWideChar(path); + auto hFile = CreateFileW(pathW.c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, 0, nullptr); + if (hFile != INVALID_HANDLE_VALUE) + { + FILETIME ftCreate, ftAccess, ftWrite; + if (GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite)) + { + lastModified = (static_cast(ftWrite.dwHighDateTime) << 32ULL) + | static_cast(ftWrite.dwLowDateTime); + } + CloseHandle(hFile); + } + return lastModified; + } + + uint64_t GetFileSize(std::string_view path) + { + uint64_t size = 0; + auto pathW = String::ToWideChar(path); + WIN32_FILE_ATTRIBUTE_DATA attributes; + if (GetFileAttributesExW(pathW.c_str(), GetFileExInfoStandard, &attributes) != FALSE) + { + ULARGE_INTEGER fileSize; + fileSize.LowPart = attributes.nFileSizeLow; + fileSize.HighPart = attributes.nFileSizeHigh; + size = fileSize.QuadPart; + } + return size; + } + + bool ShouldIgnoreCase() + { + return true; + } + + bool IsPathSeparator(char c) + { + return c == '\\' || c == '/'; + } + + utf8* GetAbsolutePath(utf8* buffer, size_t bufferSize, const utf8* relativePath) + { + auto relativePathW = String::ToWideChar(relativePath); + wchar_t absolutePathW[MAX_PATH]; + DWORD length = GetFullPathNameW( + relativePathW.c_str(), static_cast(std::size(absolutePathW)), absolutePathW, nullptr); + if (length == 0) + { + return String::Set(buffer, bufferSize, relativePath); + } + else + { + auto absolutePath = String::ToUtf8(absolutePathW); + String::Set(buffer, bufferSize, absolutePath.c_str()); + return buffer; + } + } + + std::string ResolveCasing(const std::string& path, bool fileExists) + { + std::string result; + if (fileExists) + { + // Windows is case insensitive so it will exist and that is all that matters + // for now. We can properly resolve the casing if we ever need to. + result = path; + } + return result; + } + + bool RequireNewWindow(bool openGL) + { + // Windows is apparently able to switch to hardware rendering on the fly although + // using the same window in an unaccelerated and accelerated context is unsupported by SDL2 + return openGL; + } } // namespace Platform #endif diff --git a/src/openrct2/platform/Platform2.h b/src/openrct2/platform/Platform2.h index 2c73971df0..98d886d282 100644 --- a/src/openrct2/platform/Platform2.h +++ b/src/openrct2/platform/Platform2.h @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -34,7 +34,13 @@ namespace Platform std::string GetDocsPath(); std::string GetCurrentExecutablePath(); std::string GetCurrentExecutableDirectory(); + bool ShouldIgnoreCase(); bool FileExists(const std::string path); + bool IsPathSeparator(char c); + utf8* GetAbsolutePath(utf8* buffer, size_t bufferSize, const utf8* relativePath); + uint64_t GetLastModified(const std::string& path); + uint64_t GetFileSize(std::string_view path); + std::string ResolveCasing(const std::string& path, bool fileExists); rct2_time GetTimeLocal(); rct2_date GetDateLocal(); bool FindApp(const std::string& app, std::string* output); @@ -61,4 +67,5 @@ namespace Platform bool IsColourTerminalSupported(); bool HandleSpecialCommandLineArgument(const char* argument); utf8* StrDecompToPrecomp(utf8* input); + bool RequireNewWindow(bool openGL); } // namespace Platform diff --git a/src/openrct2/rct1/RCT1.h b/src/openrct2/rct1/RCT1.h index 3f3c951144..87e20d2334 100644 --- a/src/openrct2/rct1/RCT1.h +++ b/src/openrct2/rct1/RCT1.h @@ -29,6 +29,9 @@ constexpr const uint16_t RCT1_MAX_ANIMATED_OBJECTS = 1000; constexpr const uint8_t RCT1_MAX_BANNERS = 100; constexpr int32_t RCT1_COORDS_Z_STEP = 4; constexpr const uint32_t RCT1_NUM_LL_CSG_ENTRIES = 69917; +constexpr const uint32_t RCT1_LL_CSG1_DAT_FILE_SIZE = 41402869; +constexpr const uint32_t RCT1_NUM_TERRAIN_SURFACES = 16; +constexpr const uint32_t RCT1_NUM_TERRAIN_EDGES = 15; struct ParkLoadResult; @@ -221,8 +224,8 @@ struct rct1_unk_sprite : RCT12SpriteBase struct rct1_vehicle : RCT12SpriteBase { - uint8_t vehicle_sprite_type; // 0x1F - uint8_t bank_rotation; // 0x20 + uint8_t Pitch; // 0x1F + uint8_t bank_rotation; // 0x20 uint8_t pad_21[3]; int32_t remaining_distance; // 0x24 int32_t velocity; // 0x28 @@ -1237,6 +1240,8 @@ enum WATER_COASTER_BOAT = 99, WATER_COASTER_INVISIBLE = 101, RIVER_RAFT = 103, + MINIATURE_RAILWAY_AMERICAN_TENDER = 104, + MINIATURE_RAILWAY_AMERICAN_LOCOMOTIVE = 105, }; enum diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 39da1b9539..d5e96e1f2f 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -37,17 +37,26 @@ #include "../ride/RideData.h" #include "../ride/Station.h" #include "../ride/Track.h" +#include "../ride/TrainManager.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" #include "../scenario/ScenarioRepository.h" #include "../scenario/ScenarioSources.h" #include "../util/SawyerCoding.h" #include "../util/Util.h" +#include "../world/Balloon.h" #include "../world/Climate.h" +#include "../world/Duck.h" +#include "../world/EntityList.h" #include "../world/Entrance.h" #include "../world/Footpath.h" +#include "../world/Fountain.h" #include "../world/LargeScenery.h" +#include "../world/Litter.h" #include "../world/MapAnimation.h" +#include "../world/MoneyEffect.h" #include "../world/Park.h" +#include "../world/Particle.h" #include "../world/Scenery.h" #include "../world/SmallScenery.h" #include "../world/Sprite.h" @@ -574,7 +583,7 @@ private: void AddEntryForRideType(uint8_t rideType) { assert(rideType < std::size(_rideTypeToRideEntryMap)); - if (_rideTypeToRideEntryMap[rideType] == RIDE_ENTRY_INDEX_NULL) + if (_rideTypeToRideEntryMap[rideType] == OBJECT_ENTRY_INDEX_NULL) { const char* entryName = RCT1::GetRideTypeObject(rideType); if (!String::Equals(entryName, " ")) @@ -588,7 +597,7 @@ private: void AddEntryForVehicleType(uint8_t rideType, uint8_t vehicleType) { assert(vehicleType < std::size(_vehicleTypeToRideEntryMap)); - if (_vehicleTypeToRideEntryMap[vehicleType] == RIDE_ENTRY_INDEX_NULL) + if (_vehicleTypeToRideEntryMap[vehicleType] == OBJECT_ENTRY_INDEX_NULL) { const char* entryName = RCT1::GetVehicleObject(vehicleType); if (!String::Equals(entryName, " ")) @@ -745,7 +754,7 @@ private: dst->custom_name = GetUserString(src->name); } - dst->status = src->status; + dst->status = static_cast(src->status); // Flags dst->lifecycle_flags = src->lifecycle_flags; @@ -1068,28 +1077,13 @@ private: } } - void FixRideVehicleLinks(const uint16_t* spriteIndexMap) - { - for (auto& ride : GetRideManager()) - { - for (uint8_t j = 0; j < std::size(ride.vehicles); j++) - { - uint16_t originalIndex = ride.vehicles[j]; - if (originalIndex != SPRITE_INDEX_NULL) - { - ride.vehicles[j] = spriteIndexMap[originalIndex]; - } - } - } - } - void ImportRideMeasurements() { for (const auto& src : _s4.ride_measurements) { if (src.ride_index != RCT12_RIDE_ID_NULL) { - auto ride = get_ride(src.ride_index); + auto ride = get_ride(RCT12RideIdToOpenRCT2RideId(src.ride_index)); if (ride != nullptr) { ride->measurement = std::make_unique(); @@ -1116,160 +1110,19 @@ private: } } + void ImportEntity(const RCT12SpriteBase& src); + template void ImportEntity(const RCT12SpriteBase& src); + void ImportSprites() { - ImportVehicles(); - ImportPeeps(); - ImportLitter(); - ImportMiscSprites(); - } - - void ImportVehicles() - { - std::vector vehicles; - uint16_t spriteIndexMap[RCT1_MAX_SPRITES]; for (int i = 0; i < RCT1_MAX_SPRITES; i++) { - spriteIndexMap[i] = SPRITE_INDEX_NULL; - if (_s4.sprites[i].unknown.sprite_identifier == SpriteIdentifier::Vehicle) - { - rct1_vehicle* srcVehicle = &_s4.sprites[i].vehicle; - if (srcVehicle->x != LOCATION_NULL) - { - // If vehicle is the first car on a train add to train list - auto isFirstCar = srcVehicle->type == static_cast(Vehicle::Type::Head); - auto llt = isFirstCar ? EntityListId::TrainHead : EntityListId::Vehicle; - - Vehicle* vehicle = reinterpret_cast(create_sprite(SpriteIdentifier::Vehicle, llt)); - spriteIndexMap[i] = vehicle->sprite_index; - vehicles.push_back(vehicle); - - ImportVehicle(vehicle, srcVehicle); - } - } + ImportEntity(_s4.sprites[i].unknown); } - for (auto vehicle : vehicles) - { - FixVehicleLinks(vehicle, spriteIndexMap); - } - FixRideVehicleLinks(spriteIndexMap); + FixImportStaff(); } - void ImportVehicle(Vehicle* dst, rct1_vehicle* src) - { - const auto* ride = get_ride(src->ride); - if (ride == nullptr) - return; - - uint8_t vehicleEntryIndex = RCT1::GetVehicleSubEntryIndex(src->vehicle_type); - - dst->sprite_identifier = SpriteIdentifier::Vehicle; - dst->ride = src->ride; - dst->ride_subtype = RCTEntryIndexToOpenRCT2EntryIndex(ride->subtype); - - dst->vehicle_type = vehicleEntryIndex; - dst->SubType = Vehicle::Type(src->type); - dst->var_44 = src->var_44; - dst->remaining_distance = src->remaining_distance; - - // Properties from vehicle entry - dst->sprite_width = src->sprite_width; - dst->sprite_height_negative = src->sprite_height_negative; - dst->sprite_height_positive = src->sprite_height_positive; - dst->sprite_direction = src->sprite_direction; - - dst->sprite_left = src->sprite_left; - dst->sprite_top = src->sprite_top; - dst->sprite_right = src->sprite_right; - dst->sprite_bottom = src->sprite_bottom; - - dst->mass = src->mass; - dst->num_seats = src->num_seats; - dst->speed = src->speed; - dst->powered_acceleration = src->powered_acceleration; - dst->brake_speed = src->brake_speed; - - dst->velocity = src->velocity; - dst->acceleration = src->acceleration; - dst->SwingSprite = src->SwingSprite; - dst->SwingPosition = src->SwingPosition; - dst->SwingSpeed = src->SwingSpeed; - dst->restraints_position = src->restraints_position; - dst->spin_sprite = src->spin_sprite; - dst->sound_vector_factor = src->sound_vector_factor; - dst->spin_speed = src->spin_speed; - dst->sound2_flags = src->sound2_flags; - dst->sound1_id = OpenRCT2::Audio::SoundId::Null; - dst->sound2_id = OpenRCT2::Audio::SoundId::Null; - dst->var_C0 = src->var_C0; - dst->var_C4 = src->var_C4; - dst->animation_frame = src->animation_frame; - dst->var_C8 = src->var_C8; - dst->var_CA = src->var_CA; - dst->var_CE = src->var_CE; - dst->var_D3 = src->var_D3; - dst->scream_sound_id = OpenRCT2::Audio::SoundId::Null; - dst->vehicle_sprite_type = src->vehicle_sprite_type; - dst->bank_rotation = src->bank_rotation; - - // Seat rotation was not in RCT1 - dst->target_seat_rotation = DEFAULT_SEAT_ROTATION; - dst->seat_rotation = DEFAULT_SEAT_ROTATION; - - // Vehicle links (indexes converted later) - dst->prev_vehicle_on_ride = src->prev_vehicle_on_ride; - dst->next_vehicle_on_ride = src->next_vehicle_on_ride; - dst->next_vehicle_on_train = src->next_vehicle_on_train; - - // Guests (indexes converted later) - for (int i = 0; i < 32; i++) - { - uint16_t spriteIndex = src->peep[i]; - dst->peep[i] = spriteIndex; - if (spriteIndex != SPRITE_INDEX_NULL) - { - dst->peep_tshirt_colours[i] = RCT1::GetColour(src->peep_tshirt_colours[i]); - } - } - - Vehicle::Status statusSrc = Vehicle::Status::MovingToEndOfStation; - if (src->status <= static_cast(Vehicle::Status::StoppedByBlockBrakes)) - { - statusSrc = static_cast(src->status); - } - dst->status = statusSrc; - dst->TrackSubposition = VehicleTrackSubposition{ src->TrackSubposition }; - dst->TrackLocation = { src->track_x, src->track_y, src->track_z }; - dst->current_station = src->current_station; - if (src->boat_location.isNull() || ride->mode != RideMode::BoatHire || statusSrc != Vehicle::Status::TravellingBoat) - { - dst->BoatLocation.setNull(); - dst->SetTrackDirection(src->GetTrackDirection()); - dst->SetTrackType(RCT1TrackTypeToOpenRCT2(src->GetTrackType(), ride->type)); - } - else - { - dst->BoatLocation = TileCoordsXY{ src->boat_location.x, src->boat_location.y }.ToCoordsXY(); - dst->SetTrackDirection(0); - dst->SetTrackType(0); - } - dst->track_progress = src->track_progress; - dst->vertical_drop_countdown = src->vertical_drop_countdown; - dst->sub_state = src->sub_state; - dst->update_flags = src->update_flags; - - SetVehicleColours(dst, src); - - dst->mini_golf_current_animation = src->mini_golf_current_animation; - dst->mini_golf_flags = src->mini_golf_flags; - - dst->MoveTo({ src->x, src->y, src->z }); - - dst->num_peeps = src->num_peeps; - dst->next_free_seat = src->next_free_seat; - } - - void SetVehicleColours(Vehicle* dst, rct1_vehicle* src) + void SetVehicleColours(Vehicle* dst, const rct1_vehicle* src) { rct1_ride* srcRide = &_s4.rides[src->ride]; uint8_t vehicleTypeIndex = srcRide->vehicle_type; @@ -1317,77 +1170,8 @@ private: } } - void FixVehicleLinks(Vehicle* vehicle, const uint16_t* spriteIndexMap) + void FixImportStaff() { - if (vehicle->prev_vehicle_on_ride != SPRITE_INDEX_NULL) - { - vehicle->prev_vehicle_on_ride = spriteIndexMap[vehicle->prev_vehicle_on_ride]; - } - if (vehicle->next_vehicle_on_ride != SPRITE_INDEX_NULL) - { - vehicle->next_vehicle_on_ride = spriteIndexMap[vehicle->next_vehicle_on_ride]; - } - if (vehicle->next_vehicle_on_train != SPRITE_INDEX_NULL) - { - vehicle->next_vehicle_on_train = spriteIndexMap[vehicle->next_vehicle_on_train]; - } - } - - void FixVehiclePeepLinks(Vehicle* vehicle, const uint16_t* spriteIndexMap) - { - for (auto& peep : vehicle->peep) - { - peep = MapSpriteIndex(peep, spriteIndexMap); - } - } - - void ImportPeeps() - { - uint16_t spriteIndexMap[RCT1_MAX_SPRITES]; - for (size_t i = 0; i < RCT1_MAX_SPRITES; i++) - { - spriteIndexMap[i] = SPRITE_INDEX_NULL; - if (_s4.sprites[i].unknown.sprite_identifier == SpriteIdentifier::Peep) - { - rct1_peep* srcPeep = &_s4.sprites[i].peep; - Peep* peep = reinterpret_cast(create_sprite(SpriteIdentifier::Peep)); - spriteIndexMap[i] = peep->sprite_index; - - ImportPeep(peep, srcPeep); - } - } - for (size_t i = 0; i < MAX_ENTITIES; i++) - { - auto vehicle = GetEntity(i); - if (vehicle != nullptr) - { - FixVehiclePeepLinks(vehicle, spriteIndexMap); - } - } - - for (auto& ride : GetRideManager()) - { - FixRidePeepLinks(&ride, spriteIndexMap); - } - - { - for (auto peep : EntityList(EntityListId::Peep)) - { - FixPeepNextInQueue(peep, spriteIndexMap); - } - } - // Fix the news items in advance - for (auto i = 0; i < News::MaxItems; i++) - { - rct12_news_item* newsItem = &_s4.messages[i]; - News::ItemType type = static_cast(newsItem->Type); - - if (type == News::ItemType::Peep || type == News::ItemType::PeepOnRide) - { - newsItem->Assoc = MapSpriteIndex(newsItem->Assoc, spriteIndexMap); - } - } - // The RCT2/OpenRCT2 structures are bigger than in RCT1, so initialise them to zero std::fill(std::begin(gStaffModes), std::end(gStaffModes), StaffMode::None); std::fill(std::begin(gStaffPatrolAreas), std::end(gStaffPatrolAreas), 0); @@ -1397,7 +1181,7 @@ private: gStaffModes[i] = static_cast(_s4.staff_modes[i]); } - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { ImportStaffPatrolArea(peep); } @@ -1405,9 +1189,8 @@ private: staff_update_greyed_patrol_areas(); } - void ImportPeep(Peep* dst, rct1_peep* src) + void ImportPeep(Peep* dst, const rct1_peep* src) { - dst->sprite_identifier = SpriteIdentifier::Peep; // Peep vs. staff (including which kind) dst->SpriteType = RCT1::GetPeepSpriteType(src->sprite_type); dst->Action = static_cast(src->action); @@ -1433,177 +1216,38 @@ private: dst->SetName(GetUserString(src->name_string_idx)); } - dst->OutsideOfPark = static_cast(src->outside_of_park); - dst->State = static_cast(src->state); dst->SubState = src->sub_state; dst->NextLoc = { src->next_x, src->next_y, src->next_z * RCT1_COORDS_Z_STEP }; dst->NextFlags = src->next_flags; dst->Var37 = src->var_37; - dst->TimeToConsume = src->time_to_consume; dst->StepProgress = src->step_progress; - dst->VandalismSeen = src->vandalism_seen; - - dst->AssignedPeepType = static_cast(src->type); - dst->TshirtColour = RCT1::GetColour(src->tshirt_colour); dst->TrousersColour = RCT1::GetColour(src->trousers_colour); - dst->UmbrellaColour = RCT1::GetColour(src->umbrella_colour); - dst->HatColour = RCT1::GetColour(src->hat_colour); - - // Balloons were always blue in RCT1 without AA/LL - if (_gameVersion == FILE_VERSION_RCT1) - { - dst->BalloonColour = COLOUR_LIGHT_BLUE; - } - else - { - dst->BalloonColour = RCT1::GetColour(src->balloon_colour); - } - dst->DestinationX = src->destination_x; dst->DestinationY = src->destination_y; dst->DestinationTolerance = src->destination_tolerance; dst->PeepDirection = src->direction; - dst->Energy = src->energy; dst->EnergyTarget = src->energy_target; - dst->Happiness = src->happiness; - dst->HappinessTarget = src->happiness_target; - dst->Nausea = src->nausea; - dst->NauseaTarget = src->nausea_target; - dst->Hunger = src->hunger; - dst->Thirst = src->thirst; - dst->Toilet = src->toilet; dst->Mass = src->mass; - - dst->LitterCount = src->litter_count; - dst->DisgustingCount = src->disgusting_count; - - dst->Intensity = static_cast(src->intensity); - dst->NauseaTolerance = static_cast(src->nausea_tolerance); dst->WindowInvalidateFlags = 0; - dst->CurrentRide = RCT12RideIdToOpenRCT2RideId(src->current_ride); dst->CurrentRideStation = src->current_ride_station; dst->CurrentTrain = src->current_train; dst->CurrentCar = src->current_car; dst->CurrentSeat = src->current_seat; - dst->GuestTimeOnRide = src->time_on_ride; - dst->DaysInQueue = src->days_in_queue; - dst->InteractionRideIndex = RCT12RideIdToOpenRCT2RideId(src->interaction_ride_index); - dst->Id = src->id; - dst->CashInPocket = src->cash_in_pocket; - dst->CashSpent = src->cash_spent; - // This doubles as staff hire date - dst->ParkEntryTime = src->park_entry_time; - - // This doubles as staff type - dst->GuestNumRides = src->no_of_rides; - - dst->AmountOfDrinks = src->no_of_drinks; - dst->AmountOfFood = src->no_of_food; - dst->AmountOfSouvenirs = src->no_of_souvenirs; - - dst->PaidToEnter = src->paid_to_enter; - dst->PaidOnRides = src->paid_on_rides; - dst->PaidOnDrink = src->paid_on_drink; - dst->PaidOnFood = src->paid_on_food; - dst->PaidOnSouvenirs = src->paid_on_souvenirs; - - dst->VoucherRideId = RCT12RideIdToOpenRCT2RideId(src->voucher_arguments); - dst->VoucherType = src->voucher_type; - - dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; - dst->Angriness = src->angriness; - dst->TimeLost = src->time_lost; - - for (size_t i = 0; i < 32; i++) - { - dst->RidesBeenOn[i] = src->rides_been_on[i]; - } - for (size_t i = 0; i < 16; i++) - { - dst->RideTypesBeenOn[i] = src->ride_types_been_on[i]; - } - - dst->Photo1RideRef = RCT12RideIdToOpenRCT2RideId(src->photo1_ride_ref); - - for (size_t i = 0; i < std::size(src->thoughts); i++) - { - auto srcThought = &src->thoughts[i]; - auto dstThought = &dst->Thoughts[i]; - dstThought->type = static_cast(srcThought->type); - dstThought->item = srcThought->item; - dstThought->freshness = srcThought->freshness; - dstThought->fresh_timeout = srcThought->fresh_timeout; - } - - dst->PreviousRide = RCT12RideIdToOpenRCT2RideId(src->previous_ride); - dst->PreviousRideTimeOut = src->previous_ride_time_out; - dst->PathCheckOptimisation = 0; - dst->GuestHeadingToRideId = RCT12RideIdToOpenRCT2RideId(src->guest_heading_to_ride_id); - // Doubles as staff orders - dst->GuestIsLostCountdown = src->peep_is_lost_countdown; - // The ID is fixed later - dst->GuestNextInQueue = src->next_in_queue; - dst->PeepFlags = 0; dst->PathfindGoal.x = 0xFF; dst->PathfindGoal.y = 0xFF; dst->PathfindGoal.z = 0xFF; dst->PathfindGoal.direction = INVALID_DIRECTION; - - // Guests' favourite ride was only saved in LL. - // Set it to N/A if the save comes from the original or AA. - if (_gameVersion == FILE_VERSION_RCT1_LL) - { - dst->FavouriteRide = RCT12RideIdToOpenRCT2RideId(src->favourite_ride); - dst->FavouriteRideRating = src->favourite_ride_rating; - } - else - { - dst->FavouriteRide = RIDE_ID_NULL; - dst->FavouriteRideRating = 0; - } - - dst->SetItemFlags(src->GetItemFlags()); - - if (dst->AssignedPeepType == PeepType::Guest) - { - if (dst->OutsideOfPark && dst->State != PeepState::LeavingPark) - { - increment_guests_heading_for_park(); - } - else - { - increment_guests_in_park(); - } - } } - void FixRidePeepLinks(Ride* ride, const uint16_t* spriteIndexMap) - { - for (auto& station : ride->stations) - { - station.LastPeepInQueue = MapSpriteIndex(station.LastPeepInQueue, spriteIndexMap); - } - ride->mechanic = MapSpriteIndex(ride->mechanic, spriteIndexMap); - if (ride->type == RIDE_TYPE_SPIRAL_SLIDE) - { - ride->slide_peep = MapSpriteIndex(ride->slide_peep, spriteIndexMap); - } - } - - void FixPeepNextInQueue(Peep* peep, const uint16_t* spriteIndexMap) - { - peep->GuestNextInQueue = MapSpriteIndex(peep->GuestNextInQueue, spriteIndexMap); - } - - void ImportStaffPatrolArea(Peep* staffmember) + void ImportStaffPatrolArea(Staff* staffmember) { // The patrol areas in RCT1 are encoded as follows, for coordinates x and y, separately for every staff member: // - Chop off the 7 lowest bits of the x and y coordinates, which leaves 5 bits per coordinate. @@ -1644,155 +1288,15 @@ private: } } - void ImportLitter() + void ImportEntityCommonProperties(SpriteBase* dst, const RCT12SpriteBase* src) { - for (auto& sprite : _s4.sprites) - { - if (sprite.unknown.sprite_identifier == SpriteIdentifier::Litter) - { - const auto* srcLitter = &sprite.litter; - - Litter* litter = reinterpret_cast(create_sprite(SpriteIdentifier::Litter)); - litter->sprite_identifier = srcLitter->sprite_identifier; - litter->SubType = LitterType(srcLitter->type); - - litter->x = srcLitter->x; - litter->y = srcLitter->y; - litter->z = srcLitter->z; - litter->sprite_direction = srcLitter->sprite_direction; - litter->sprite_width = srcLitter->sprite_width; - litter->sprite_height_positive = srcLitter->sprite_height_positive; - litter->sprite_height_negative = srcLitter->sprite_height_negative; - - litter->MoveTo({ srcLitter->x, srcLitter->y, srcLitter->z }); - } - } - } - - void ImportMiscSprites() - { - for (auto& sprite : _s4.sprites) - { - if (sprite.unknown.sprite_identifier == SpriteIdentifier::Misc) - { - rct1_unk_sprite* src = &sprite.unknown; - MiscEntity* dst = reinterpret_cast(create_sprite(SpriteIdentifier::Misc)); - if (dst == nullptr) - { - log_warning("SV4 has too many misc entities. No more misc entities will be imported!"); - break; - } - dst->sprite_identifier = src->sprite_identifier; - dst->SubType = MiscEntityType(src->type); - dst->flags = src->flags; - dst->sprite_direction = src->sprite_direction; - dst->sprite_width = src->sprite_width; - dst->sprite_height_negative = src->sprite_height_negative; - dst->sprite_height_positive = src->sprite_height_positive; - - dst->MoveTo({ src->x, src->y, src->z }); - - switch (static_cast(src->type)) - { - case MiscEntityType::SteamParticle: - ImportSteamParticle(dst->As(), reinterpret_cast(src)); - break; - case MiscEntityType::MoneyEffect: - ImportMoneyEffect(dst->As(), reinterpret_cast(src)); - break; - case MiscEntityType::CrashedVehicleParticle: - break; - case MiscEntityType::ExplosionCloud: - break; - case MiscEntityType::CrashSplash: - break; - case MiscEntityType::ExplosionFlare: - break; - case MiscEntityType::JumpingFountainWater: - ImportJumpingFountainWater( - dst->As(), reinterpret_cast(src)); - break; - case MiscEntityType::Balloon: - ImportBalloon(dst->As(), reinterpret_cast(src)); - break; - case MiscEntityType::Duck: - ImportDuck(dst->As(), reinterpret_cast(src)); - break; - default: - break; - } - - dst->MoveTo({ src->x, src->y, src->z }); - } - } - } - - void ImportMoneyEffect(MoneyEffect* dst, RCT12SpriteMoneyEffect* src) - { - if (dst == nullptr) - return; - dst->MoveDelay = src->move_delay; - dst->NumMovements = src->num_movements; - dst->Value = src->value; - dst->OffsetX = src->offset_x; - dst->Wiggle = src->wiggle; - } - - void ImportSteamParticle(SteamParticle* dst, RCT12SpriteSteamParticle* src) - { - if (dst == nullptr) - return; - dst->frame = src->frame; - } - - void ImportJumpingFountainWater(JumpingFountain* dst, RCT12SpriteJumpingFountain* src) - { - if (dst == nullptr) - return; - dst->FountainFlags = src->fountain_flags; - dst->Iteration = src->iteration; - dst->NumTicksAlive = src->num_ticks_alive; - dst->frame = src->frame; - } - - void ImportBalloon(Balloon* dst, RCT12SpriteBalloon* src) - { - if (dst == nullptr) - return; - // Balloons were always blue in RCT1 without AA/LL - if (_gameVersion == FILE_VERSION_RCT1) - { - dst->colour = COLOUR_LIGHT_BLUE; - } - else - { - dst->colour = RCT1::GetColour(src->colour); - } - } - - void ImportDuck(Duck* dst, RCT12SpriteDuck* src) - { - if (dst == nullptr) - return; - dst->frame = src->frame; - dst->state = static_cast(src->state); - } - - uint16_t MapSpriteIndex(uint16_t originalSpriteIndex, const uint16_t* spriteIndexMap) - { - uint16_t newSpriteIndex = SPRITE_INDEX_NULL; - if (originalSpriteIndex != SPRITE_INDEX_NULL) - { - if (originalSpriteIndex >= RCT1_MAX_SPRITES) - { - log_warning("Incorrect sprite index: %d", originalSpriteIndex); - } - else - { - newSpriteIndex = spriteIndexMap[originalSpriteIndex]; - } - } - return newSpriteIndex; + dst->sprite_direction = src->sprite_direction; + dst->sprite_width = src->sprite_width; + dst->sprite_height_negative = src->sprite_height_negative; + dst->sprite_height_positive = src->sprite_height_positive; + dst->x = src->x; + dst->y = src->y; + dst->z = src->z; } void ImportPeepSpawns() @@ -1859,7 +1363,7 @@ private: campaign.WeeksLeft = _s4.marketing_status[i] & ~CAMPAIGN_ACTIVE_FLAG; if (campaign.Type == ADVERTISING_CAMPAIGN_RIDE_FREE || campaign.Type == ADVERTISING_CAMPAIGN_RIDE) { - campaign.RideId = _s4.marketing_assoc[i]; + campaign.RideId = RCT12RideIdToOpenRCT2RideId(_s4.marketing_assoc[i]); } else if (campaign.Type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) { @@ -1979,38 +1483,44 @@ private: // Build tile pointer cache (needed to get the first element at a certain location) auto tilePointerIndex = TilePointerIndex(RCT1_MAX_MAP_SIZE, _s4.tile_elements); - TileElement* dstElement = gTileElements; - + std::vector tileElements; for (TileCoordsXY coords = { 0, 0 }; coords.y < MAXIMUM_MAP_SIZE_TECHNICAL; coords.y++) { for (coords.x = 0; coords.x < MAXIMUM_MAP_SIZE_TECHNICAL; coords.x++) { if (coords.x >= RCT1_MAX_MAP_SIZE || coords.y >= RCT1_MAX_MAP_SIZE) { - dstElement->ClearAs(TILE_ELEMENT_TYPE_SURFACE); - dstElement->SetLastForTile(true); - dstElement++; - continue; + auto& dstElement = tileElements.emplace_back(); + dstElement.ClearAs(TILE_ELEMENT_TYPE_SURFACE); + dstElement.SetLastForTile(true); } - - // This is the equivalent of map_get_first_element_at(x, y), but on S4 data. - RCT12TileElement* srcElement = tilePointerIndex.GetFirstElementAt(coords); - do + else { - if (srcElement->base_height == RCT12_MAX_ELEMENT_HEIGHT) - continue; + // This is the equivalent of map_get_first_element_at(x, y), but on S4 data. + RCT12TileElement* srcElement = tilePointerIndex.GetFirstElementAt(coords); + do + { + if (srcElement->base_height == RCT12_MAX_ELEMENT_HEIGHT) + continue; - auto numAddedElements = ImportTileElement(dstElement, srcElement); - dstElement += numAddedElements; - } while (!(srcElement++)->IsLastForTile()); + // Reserve 8 elements for import + auto originalSize = tileElements.size(); + tileElements.resize(originalSize + 16); + auto dstElement = tileElements.data() + originalSize; + auto numAddedElements = ImportTileElement(dstElement, srcElement); + tileElements.resize(originalSize + numAddedElements); + } while (!(srcElement++)->IsLastForTile()); - // Set last element flag in case the original last element was never added - (dstElement - 1)->SetLastForTile(true); + // Set last element flag in case the original last element was never added + if (tileElements.size() > 0) + { + tileElements.back().SetLastForTile(true); + } + } } } - map_update_tile_pointers(); - + SetTileElements(std::move(tileElements)); FixEntrancePositions(); } @@ -2056,7 +1566,7 @@ private: dst2->SetQueueBannerDirection(src2->GetQueueBannerDirection()); dst2->SetSloped(src2->IsSloped()); dst2->SetSlopeDirection(src2->GetSlopeDirection()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetWide(src2->IsWide()); dst2->SetHasQueueBanner(src2->HasQueueBanner()); @@ -2123,12 +1633,12 @@ private: { auto dst2 = dst->AsTrack(); auto src2 = src->AsTrack(); - const auto* ride = get_ride(src2->GetRideIndex()); + const auto* ride = get_ride(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); auto rideType = (ride != nullptr) ? ride->type : RIDE_TYPE_NULL; dst2->SetTrackType(RCT1TrackTypeToOpenRCT2(src2->GetTrackType(), rideType)); dst2->SetSequenceIndex(src2->GetSequenceIndex()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); dst2->SetColourScheme(src2->GetColourScheme()); dst2->SetHasChain(src2->HasChain()); dst2->SetHasCableLift(false); @@ -2206,7 +1716,7 @@ private: auto src2 = src->AsEntrance(); dst2->SetEntranceType(src2->GetEntranceType()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetSequenceIndex(src2->GetSequenceIndex()); @@ -2379,7 +1889,8 @@ private: _researchRideTypeUsed[rct1RideType] = true; auto ownRideEntryIndex = _rideTypeToRideEntryMap[rct1RideType]; - Guard::Assert(ownRideEntryIndex != RIDE_ENTRY_INDEX_NULL, "ownRideEntryIndex was RIDE_ENTRY_INDEX_NULL"); + Guard::Assert( + ownRideEntryIndex != OBJECT_ENTRY_INDEX_NULL, "ownRideEntryIndex was OBJECT_ENTRY_INDEX_NULL"); bool foundOwnType = false; // If the ride type does not use vehicles, no point looking for them in the research list. @@ -2675,7 +2186,7 @@ private: { auto entryIndex = _rideTypeToRideEntryMap[srcItem]; - if (entryIndex != RIDE_ENTRY_INDEX_NULL) + if (entryIndex != OBJECT_ENTRY_INDEX_NULL) { rct_ride_entry* rideEntry = get_ride_entry(entryIndex); @@ -2694,7 +2205,7 @@ private: { auto entryIndex = _vehicleTypeToRideEntryMap[srcItem]; - if (entryIndex != RIDE_ENTRY_INDEX_NULL) + if (entryIndex != OBJECT_ENTRY_INDEX_NULL) { rct_ride_entry* rideEntry = get_ride_entry(entryIndex); @@ -2968,7 +2479,7 @@ private: if (_s4.scenario_slot_index == SC_URBAN_PARK && _isScenario) { // First, make the queuing peep exit - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->State == PeepState::QueuingFront && peep->CurrentRide == 0) { @@ -3083,6 +2594,454 @@ private: } }; +// Very similar but not the same as S6Importer version (due to peeps) +constexpr EntityType GetEntityTypeFromRCT1Sprite(const RCT12SpriteBase& src) +{ + EntityType output = EntityType::Null; + switch (src.sprite_identifier) + { + case RCT12SpriteIdentifier::Vehicle: + output = EntityType::Vehicle; + break; + case RCT12SpriteIdentifier::Peep: + if (RCT12PeepType(static_cast(&src)->type) == RCT12PeepType::Guest) + { + output = EntityType::Guest; + } + else + { + output = EntityType::Staff; + } + break; + case RCT12SpriteIdentifier::Misc: + + switch (RCT12MiscEntityType(src.type)) + { + case RCT12MiscEntityType::SteamParticle: + output = EntityType::SteamParticle; + break; + case RCT12MiscEntityType::MoneyEffect: + output = EntityType::MoneyEffect; + break; + case RCT12MiscEntityType::CrashedVehicleParticle: + output = EntityType::CrashedVehicleParticle; + break; + case RCT12MiscEntityType::ExplosionCloud: + output = EntityType::ExplosionCloud; + break; + case RCT12MiscEntityType::CrashSplash: + output = EntityType::CrashSplash; + break; + case RCT12MiscEntityType::ExplosionFlare: + output = EntityType::ExplosionFlare; + break; + case RCT12MiscEntityType::JumpingFountainWater: + case RCT12MiscEntityType::JumpingFountainSnow: + output = EntityType::JumpingFountain; + break; + case RCT12MiscEntityType::Balloon: + output = EntityType::Balloon; + break; + case RCT12MiscEntityType::Duck: + output = EntityType::Duck; + break; + default: + break; + } + break; + case RCT12SpriteIdentifier::Litter: + output = EntityType::Litter; + break; + default: + break; + } + return output; +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + const auto* ride = get_ride(src->ride); + if (ride == nullptr) + return; + + uint8_t vehicleEntryIndex = RCT1::GetVehicleSubEntryIndex(src->vehicle_type); + + dst->ride = src->ride; + dst->ride_subtype = RCTEntryIndexToOpenRCT2EntryIndex(ride->subtype); + + dst->vehicle_type = vehicleEntryIndex; + dst->SubType = Vehicle::Type(src->type); + dst->var_44 = src->var_44; + dst->remaining_distance = src->remaining_distance; + + // Properties from vehicle entry + dst->sprite_width = src->sprite_width; + dst->sprite_height_negative = src->sprite_height_negative; + dst->sprite_height_positive = src->sprite_height_positive; + dst->sprite_direction = src->sprite_direction; + + dst->sprite_left = src->sprite_left; + dst->sprite_top = src->sprite_top; + dst->sprite_right = src->sprite_right; + dst->sprite_bottom = src->sprite_bottom; + + dst->mass = src->mass; + dst->num_seats = src->num_seats; + dst->speed = src->speed; + dst->powered_acceleration = src->powered_acceleration; + dst->brake_speed = src->brake_speed; + + dst->velocity = src->velocity; + dst->acceleration = src->acceleration; + dst->SwingSprite = src->SwingSprite; + dst->SwingPosition = src->SwingPosition; + dst->SwingSpeed = src->SwingSpeed; + dst->restraints_position = src->restraints_position; + dst->spin_sprite = src->spin_sprite; + dst->sound_vector_factor = src->sound_vector_factor; + dst->spin_speed = src->spin_speed; + dst->sound2_flags = src->sound2_flags; + dst->sound1_id = OpenRCT2::Audio::SoundId::Null; + dst->sound2_id = OpenRCT2::Audio::SoundId::Null; + dst->var_C0 = src->var_C0; + dst->var_C4 = src->var_C4; + dst->animation_frame = src->animation_frame; + dst->var_C8 = src->var_C8; + dst->var_CA = src->var_CA; + dst->var_CE = src->var_CE; + dst->var_D3 = src->var_D3; + dst->scream_sound_id = OpenRCT2::Audio::SoundId::Null; + dst->Pitch = src->Pitch; + dst->bank_rotation = src->bank_rotation; + + // Seat rotation was not in RCT1 + dst->target_seat_rotation = DEFAULT_SEAT_ROTATION; + dst->seat_rotation = DEFAULT_SEAT_ROTATION; + + // Vehicle links (indexes converted later) + dst->prev_vehicle_on_ride = src->prev_vehicle_on_ride; + dst->next_vehicle_on_ride = src->next_vehicle_on_ride; + dst->next_vehicle_on_train = src->next_vehicle_on_train; + + // Guests (indexes converted later) + for (int i = 0; i < 32; i++) + { + uint16_t spriteIndex = src->peep[i]; + dst->peep[i] = spriteIndex; + if (spriteIndex != SPRITE_INDEX_NULL) + { + dst->peep_tshirt_colours[i] = RCT1::GetColour(src->peep_tshirt_colours[i]); + } + } + + Vehicle::Status statusSrc = Vehicle::Status::MovingToEndOfStation; + if (src->status <= static_cast(Vehicle::Status::StoppedByBlockBrakes)) + { + statusSrc = static_cast(src->status); + } + dst->status = statusSrc; + dst->TrackSubposition = VehicleTrackSubposition{ src->TrackSubposition }; + dst->TrackLocation = { src->track_x, src->track_y, src->track_z }; + dst->current_station = src->current_station; + if (src->boat_location.isNull() || ride->mode != RideMode::BoatHire || statusSrc != Vehicle::Status::TravellingBoat) + { + dst->BoatLocation.setNull(); + dst->SetTrackDirection(src->GetTrackDirection()); + dst->SetTrackType(RCT1TrackTypeToOpenRCT2(src->GetTrackType(), ride->type)); + } + else + { + dst->BoatLocation = TileCoordsXY{ src->boat_location.x, src->boat_location.y }.ToCoordsXY(); + dst->SetTrackDirection(0); + dst->SetTrackType(0); + } + dst->track_progress = src->track_progress; + dst->vertical_drop_countdown = src->vertical_drop_countdown; + dst->sub_state = src->sub_state; + dst->update_flags = src->update_flags; + + SetVehicleColours(dst, src); + + dst->mini_golf_current_animation = src->mini_golf_current_animation; + dst->mini_golf_flags = src->mini_golf_flags; + + dst->MoveTo({ src->x, src->y, src->z }); + + dst->num_peeps = src->num_peeps; + dst->next_free_seat = src->next_free_seat; + dst->IsCrashedVehicle = src->flags & RCT12_SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE; +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportPeep(dst, src); + + dst->OutsideOfPark = static_cast(src->outside_of_park); + dst->TimeToConsume = src->time_to_consume; + dst->VandalismSeen = src->vandalism_seen; + dst->UmbrellaColour = RCT1::GetColour(src->umbrella_colour); + dst->HatColour = RCT1::GetColour(src->hat_colour); + + // Balloons were always blue in RCT1 without AA/LL + if (_gameVersion == FILE_VERSION_RCT1) + { + dst->BalloonColour = COLOUR_LIGHT_BLUE; + } + else + { + dst->BalloonColour = RCT1::GetColour(src->balloon_colour); + } + dst->Happiness = src->happiness; + dst->HappinessTarget = src->happiness_target; + dst->Nausea = src->nausea; + dst->NauseaTarget = src->nausea_target; + dst->Hunger = src->hunger; + dst->Thirst = src->thirst; + dst->Toilet = src->toilet; + dst->LitterCount = src->litter_count; + dst->DisgustingCount = src->disgusting_count; + dst->Intensity = static_cast(src->intensity); + dst->NauseaTolerance = static_cast(src->nausea_tolerance); + dst->GuestTimeOnRide = src->time_on_ride; + dst->DaysInQueue = src->days_in_queue; + dst->CashInPocket = src->cash_in_pocket; + dst->CashSpent = src->cash_spent; + dst->ParkEntryTime = src->park_entry_time; + dst->GuestNumRides = src->no_of_rides; + dst->AmountOfDrinks = src->no_of_drinks; + dst->AmountOfFood = src->no_of_food; + dst->AmountOfSouvenirs = src->no_of_souvenirs; + dst->PaidToEnter = src->paid_to_enter; + dst->PaidOnRides = src->paid_on_rides; + dst->PaidOnDrink = src->paid_on_drink; + dst->PaidOnFood = src->paid_on_food; + dst->PaidOnSouvenirs = src->paid_on_souvenirs; + dst->VoucherRideId = RCT12RideIdToOpenRCT2RideId(src->voucher_arguments); + dst->VoucherType = src->voucher_type; + dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; + dst->Angriness = src->angriness; + dst->TimeLost = src->time_lost; + + for (size_t i = 0; i < 32; i++) + { + dst->RidesBeenOn[i] = src->rides_been_on[i]; + } + for (size_t i = 0; i < 16; i++) + { + dst->RideTypesBeenOn[i] = src->ride_types_been_on[i]; + } + + dst->Photo1RideRef = RCT12RideIdToOpenRCT2RideId(src->photo1_ride_ref); + + for (size_t i = 0; i < std::size(src->thoughts); i++) + { + auto srcThought = &src->thoughts[i]; + auto dstThought = &dst->Thoughts[i]; + dstThought->type = static_cast(srcThought->type); + dstThought->item = srcThought->item; + dstThought->freshness = srcThought->freshness; + dstThought->fresh_timeout = srcThought->fresh_timeout; + } + + dst->PreviousRide = RCT12RideIdToOpenRCT2RideId(src->previous_ride); + dst->PreviousRideTimeOut = src->previous_ride_time_out; + dst->GuestHeadingToRideId = RCT12RideIdToOpenRCT2RideId(src->guest_heading_to_ride_id); + dst->GuestIsLostCountdown = src->peep_is_lost_countdown; + dst->GuestNextInQueue = src->next_in_queue; + // Guests' favourite ride was only saved in LL. + // Set it to N/A if the save comes from the original or AA. + if (_gameVersion == FILE_VERSION_RCT1_LL) + { + dst->FavouriteRide = RCT12RideIdToOpenRCT2RideId(src->favourite_ride); + dst->FavouriteRideRating = src->favourite_ride_rating; + } + else + { + dst->FavouriteRide = RIDE_ID_NULL; + dst->FavouriteRideRating = 0; + } + + dst->SetItemFlags(src->GetItemFlags()); + + if (dst->OutsideOfPark && dst->State != PeepState::LeavingPark) + { + increment_guests_heading_for_park(); + } + else + { + increment_guests_in_park(); + } +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportPeep(dst, src); + dst->AssignedStaffType = StaffType(src->staff_type); + dst->MechanicTimeSinceCall = src->mechanic_time_since_call; + dst->HireDate = src->park_entry_time; + dst->StaffId = src->staff_id; + dst->StaffOrders = src->staff_orders; + dst->StaffMowingTimeout = src->staff_mowing_timeout; + dst->StaffLawnsMown = src->paid_to_enter; + dst->StaffGardensWatered = src->paid_on_rides; + dst->StaffLitterSwept = src->paid_on_food; + dst->StaffBinsEmptied = src->paid_on_souvenirs; +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportEntityCommonProperties(dst, src); + + dst->SubType = Litter::Type(src->type); +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + + ImportEntityCommonProperties(dst, src); + dst->MoveDelay = src->move_delay; + dst->NumMovements = src->num_movements; + dst->Value = src->value; + dst->OffsetX = src->offset_x; + dst->Wiggle = src->wiggle; +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportEntityCommonProperties(dst, src); +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportEntityCommonProperties(dst, src); +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportEntityCommonProperties(dst, src); +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + ImportEntityCommonProperties(dst, src); +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + + ImportEntityCommonProperties(dst, src); + dst->FountainFlags = src->fountain_flags; + dst->Iteration = src->iteration; + dst->NumTicksAlive = src->num_ticks_alive; + dst->frame = src->frame; + dst->FountainType = JumpingFountainType::Water; +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + + ImportEntityCommonProperties(dst, src); + // Balloons were always blue in RCT1 without AA/LL + if (_gameVersion == FILE_VERSION_RCT1) + { + dst->colour = COLOUR_LIGHT_BLUE; + } + else + { + dst->colour = RCT1::GetColour(src->colour); + } +} + +template<> void S4Importer::ImportEntity(const RCT12SpriteBase& srcBase) +{ + auto* dst = CreateEntityAt(srcBase.sprite_index); + auto* src = static_cast(&srcBase); + + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; + dst->state = static_cast(src->state); +} + +void S4Importer::ImportEntity(const RCT12SpriteBase& src) +{ + switch (GetEntityTypeFromRCT1Sprite(src)) + { + case EntityType::Vehicle: + ImportEntity(src); + break; + case EntityType::Guest: + ImportEntity(src); + break; + case EntityType::Staff: + ImportEntity(src); + break; + case EntityType::SteamParticle: + ImportEntity(src); + break; + case EntityType::MoneyEffect: + ImportEntity(src); + break; + case EntityType::CrashedVehicleParticle: + ImportEntity(src); + break; + case EntityType::ExplosionCloud: + ImportEntity(src); + break; + case EntityType::ExplosionFlare: + ImportEntity(src); + break; + case EntityType::CrashSplash: + ImportEntity(src); + break; + case EntityType::JumpingFountain: + ImportEntity(src); + break; + case EntityType::Balloon: + ImportEntity(src); + break; + case EntityType::Duck: + ImportEntity(src); + break; + case EntityType::Litter: + ImportEntity(src); + break; + default: + // Null elements do not need imported + break; + } +} + std::unique_ptr ParkImporter::CreateS4() { return std::make_unique(); diff --git a/src/openrct2/rct1/T4Importer.cpp b/src/openrct2/rct1/T4Importer.cpp index 9f2a1579dd..dc11084497 100644 --- a/src/openrct2/rct1/T4Importer.cpp +++ b/src/openrct2/rct1/T4Importer.cpp @@ -212,7 +212,7 @@ private: } } // Set remaining vehicles to same colour as first vehicle - for (int32_t i = RCT1_MAX_TRAINS_PER_RIDE; i <= MAX_VEHICLES_PER_RIDE; i++) + for (size_t i = RCT1_MAX_TRAINS_PER_RIDE; i < std::size(td->vehicle_colours); i++) { td->vehicle_colours[i] = td->vehicle_colours[0]; td->vehicle_additional_colour[i] = td->vehicle_additional_colour[0]; diff --git a/src/openrct2/rct1/Tables.cpp b/src/openrct2/rct1/Tables.cpp index b0882fd014..586834a7c9 100644 --- a/src/openrct2/rct1/Tables.cpp +++ b/src/openrct2/rct1/Tables.cpp @@ -12,6 +12,7 @@ #include "../common.h" #include "../core/Guard.hpp" #include "../interface/Colour.h" +#include "../object/ObjectManager.h" #include "../ride/Ride.h" #include "../ride/RideData.h" #include "../world/Surface.h" @@ -115,54 +116,63 @@ namespace RCT1 return map[rct1SpriteType]; } - uint8_t GetTerrain(uint8_t terrain) + ObjectEntryIndex GetTerrain(uint8_t terrainSurface) { - static constexpr const uint8_t map[] = + static constexpr std::string_view map[RCT1_NUM_TERRAIN_SURFACES] = { - TERRAIN_GRASS, - TERRAIN_SAND, - TERRAIN_DIRT, - TERRAIN_ROCK, - TERRAIN_MARTIAN, - TERRAIN_CHECKERBOARD, - TERRAIN_GRASS_CLUMPS, - TERRAIN_ROOF_BROWN, - TERRAIN_ICE, - TERRAIN_ROOF_LOG, - TERRAIN_ROOF_IRON, - TERRAIN_ROOF_GREY, - TERRAIN_GRID_RED, - TERRAIN_GRID_YELLOW, - TERRAIN_GRID_BLUE, - TERRAIN_GRID_GREEN + "rct2.surface.grass", + "rct2.surface.sand", + "rct2.surface.dirt", + "rct2.surface.rock", + "rct2.surface.martian", + "rct2.surface.chequerboard", + "rct2.surface.grassclumps", + "rct1.aa.surface.roofred", + "rct2.surface.ice", + "rct1.ll.surface.wood", + "rct1.ll.surface.rust", + "rct1.ll.surface.roofgrey", + "rct2.surface.gridred", + "rct2.surface.gridyellow", + "rct2.surface.gridpurple", + "rct2.surface.gridgreen", }; - Guard::ArgumentInRange(terrain, 0, std::size(map), "Unsupported RCT1 terrain type."); - return map[terrain]; + std::string selectedSurface = "rct2.surface.grass"; + if (terrainSurface < std::size(map)) + { + selectedSurface = map[terrainSurface]; + } + + return object_manager_get_loaded_object_entry_index(ObjectEntryDescriptor(selectedSurface)); } - uint8_t GetTerrainEdge(uint8_t terrainEdge) + ObjectEntryIndex GetTerrainEdge(uint8_t terrainEdge) { - static constexpr const uint8_t map[] = + static constexpr std::string_view map[RCT1_NUM_TERRAIN_EDGES] = { - TERRAIN_EDGE_ROCK, // rct2.edge.rock - TERRAIN_EDGE_BRICK, // rct1.edge.brick - TERRAIN_EDGE_IRON, // rct1.edge.iron - TERRAIN_EDGE_WOOD_RED, // rct2.edge.woodred - TERRAIN_EDGE_GREY, // rct1.aa.edge.grey - TERRAIN_EDGE_YELLOW, // rct1.aa.edge.yellow - TERRAIN_EDGE_WOOD_BLACK, // rct2.edge.woodblack - TERRAIN_EDGE_RED, // rct1.aa.edge.red - TERRAIN_EDGE_ICE, // rct2.edge.ice - TERRAIN_EDGE_PURPLE, // rct1.ll.edge.purple - TERRAIN_EDGE_GREEN, // rct1.ll.edge.green - TERRAIN_EDGE_STONE_BROWN, // rct1.ll.edge.stonebrown - TERRAIN_EDGE_STONE_GREY, // rct1.ll.edge.stonegrey - TERRAIN_EDGE_SKYSCRAPER_A, // rct1.ll.edge.skyscrapera - TERRAIN_EDGE_SKYSCRAPER_B, // rct1.ll.edge.skyscraperb - TERRAIN_EDGE_ROCK // rct2.edge.rock (Unused) + "rct2.edge.rock", + "rct1.edge.brick", + "rct1.edge.iron", + "rct2.edge.woodred", + "rct1.aa.edge.grey", + "rct1.aa.edge.yellow", + "rct2.edge.woodblack", + "rct1.aa.edge.red", + "rct2.edge.ice", + "rct1.ll.edge.purple", + "rct1.ll.edge.green", + "rct1.ll.edge.stonebrown", + "rct1.ll.edge.stonegrey", + "rct1.ll.edge.skyscrapera", + "rct1.ll.edge.skyscraperb", }; - Guard::ArgumentInRange(terrainEdge, 0, std::size(map), "Unsupported RCT1 terrain edge."); - return map[terrainEdge]; + std::string selectedEdge = "rct2.edge.rock"; + if (terrainEdge < std::size(map)) + { + selectedEdge = map[terrainEdge]; + } + + return object_manager_get_loaded_object_entry_index(ObjectEntryDescriptor(selectedEdge)); } uint8_t GetRideType(uint8_t rideType, uint8_t vehicleType) @@ -354,7 +364,7 @@ namespace RCT1 { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_FACEOFF_CARS, { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_JET_SKIS, { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_RAFT_BOATS, - { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_AMERICAN_STYLE_STEAM_TRAIN, + { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_YELLOW }, // RCT1_VEHICLE_TYPE_AMERICAN_STYLE_STEAM_TRAIN, { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_AIR_POWERED_COASTER_TRAIN, { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_SUSPENDED_WILD_MOUSE_CARS, // Inverted Hairpin in RCT2 { COPY_COLOUR_1, COPY_COLOUR_2, COLOUR_BLACK }, // RCT1_VEHICLE_TYPE_ENTERPRISE_WHEEL @@ -530,8 +540,8 @@ namespace RCT1 1, // WATER_COASTER_INVISIBLE 0, 0, // RIVER_RAFT - 0, - 0, + 1, // MINIATURE_RAILWAY_AMERICAN_TENDER + 0, // MINIATURE_RAILWAY_AMERICAN_LOCOMOTIVE 0, 0, 0, diff --git a/src/openrct2/rct1/Tables.h b/src/openrct2/rct1/Tables.h index 708fbadeb9..acb0db2006 100644 --- a/src/openrct2/rct1/Tables.h +++ b/src/openrct2/rct1/Tables.h @@ -23,8 +23,8 @@ namespace RCT1 colour_t GetColour(colour_t colour); PeepSpriteType GetPeepSpriteType(uint8_t rct1SpriteType); - uint8_t GetTerrain(uint8_t terrain); - uint8_t GetTerrainEdge(uint8_t terrainEdge); + ObjectEntryIndex GetTerrain(uint8_t terrain); + ObjectEntryIndex GetTerrainEdge(uint8_t terrainEdge); uint8_t GetRideType(uint8_t rideType, uint8_t vehicleType); RCT1VehicleColourSchemeCopyDescriptor GetColourSchemeCopyDescriptor(uint8_t vehicleType); diff --git a/src/openrct2/rct12/RCT12.cpp b/src/openrct2/rct12/RCT12.cpp index 10bd0012ee..3612b761e1 100644 --- a/src/openrct2/rct12/RCT12.cpp +++ b/src/openrct2/rct12/RCT12.cpp @@ -498,22 +498,24 @@ bool is_user_string_id(rct_string_id stringId) uint8_t RCT12TileElement::GetBannerIndex() { - rct_scenery_entry* sceneryEntry; - switch (GetType()) { case TILE_ELEMENT_TYPE_LARGE_SCENERY: - sceneryEntry = get_large_scenery_entry(AsLargeScenery()->GetEntryIndex()); - if (sceneryEntry->large_scenery.scrolling_mode == SCROLLING_MODE_NONE) + { + auto* sceneryEntry = get_large_scenery_entry(AsLargeScenery()->GetEntryIndex()); + if (sceneryEntry->scrolling_mode == SCROLLING_MODE_NONE) return RCT12_BANNER_INDEX_NULL; return AsLargeScenery()->GetBannerIndex(); + } case TILE_ELEMENT_TYPE_WALL: - sceneryEntry = get_wall_entry(AsWall()->GetEntryIndex()); - if (sceneryEntry == nullptr || sceneryEntry->wall.scrolling_mode == SCROLLING_MODE_NONE) + { + auto* wallEntry = get_wall_entry(AsWall()->GetEntryIndex()); + if (wallEntry == nullptr || wallEntry->scrolling_mode == SCROLLING_MODE_NONE) return RCT12_BANNER_INDEX_NULL; return AsWall()->GetBannerIndex(); + } case TILE_ELEMENT_TYPE_BANNER: return AsBanner()->GetIndex(); default: diff --git a/src/openrct2/rct12/RCT12.h b/src/openrct2/rct12/RCT12.h index a42485c035..7d25590af7 100644 --- a/src/openrct2/rct12/RCT12.h +++ b/src/openrct2/rct12/RCT12.h @@ -85,8 +85,6 @@ constexpr const uint16_t RCT12_PEEP_SPAWN_UNDEFINED = 0xFFFF; constexpr const uint16_t RCT12VehicleTrackDirectionMask = 0b0000000000000011; constexpr const uint16_t RCT12VehicleTrackTypeMask = 0b1111111111111100; -enum class SpriteIdentifier : uint8_t; - enum class RCT12TrackDesignVersion : uint8_t { TD4, @@ -175,6 +173,11 @@ enum RCT12_STATION_STYLE_INVISIBLE, // Added by OpenRCT2 }; +enum +{ + RCT12_SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE = 1 << 7, +}; + #pragma pack(push, 1) struct RCT12xy8 @@ -692,9 +695,40 @@ enum class RCT12EntityLinkListOffset : uint8_t Vehicle = 5 * sizeof(uint16_t), }; +enum class RCT12SpriteIdentifier : uint8_t +{ + Vehicle = 0, + Peep = 1, + Misc = 2, + Litter = 3, + Null = 255 +}; + +enum class RCT12MiscEntityType : uint8_t +{ + SteamParticle, + MoneyEffect, + CrashedVehicleParticle, + ExplosionCloud, + CrashSplash, + ExplosionFlare, + JumpingFountainWater, + Balloon, + Duck, + JumpingFountainSnow +}; + +enum class RCT12PeepType : uint8_t +{ + Guest, + Staff, + + Invalid = 0xFF +}; + struct RCT12SpriteBase { - SpriteIdentifier sprite_identifier; // 0x00 + RCT12SpriteIdentifier sprite_identifier; // 0x00 uint8_t type; // 0x01 uint16_t next_in_quadrant; // 0x02 uint16_t next; // 0x04 diff --git a/src/openrct2/rct12/SawyerChunk.cpp b/src/openrct2/rct12/SawyerChunk.cpp index b5db22a579..6873c94924 100644 --- a/src/openrct2/rct12/SawyerChunk.cpp +++ b/src/openrct2/rct12/SawyerChunk.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -10,6 +10,7 @@ #include "SawyerChunk.h" #include "../core/Memory.hpp" +#include "SawyerChunkReader.h" SawyerChunk::SawyerChunk(SAWYER_ENCODING encoding, void* data, size_t length) { @@ -20,5 +21,5 @@ SawyerChunk::SawyerChunk(SAWYER_ENCODING encoding, void* data, size_t length) SawyerChunk::~SawyerChunk() { - Memory::Free(_data); + SawyerChunkReader::FreeChunk(_data); } diff --git a/src/openrct2/rct12/SawyerChunkReader.cpp b/src/openrct2/rct12/SawyerChunkReader.cpp index f1bf44933f..cf03dfdc5b 100644 --- a/src/openrct2/rct12/SawyerChunkReader.cpp +++ b/src/openrct2/rct12/SawyerChunkReader.cpp @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -27,8 +27,9 @@ constexpr const char* EXCEPTION_MSG_DESTINATION_TOO_SMALL = "Chunk data larger t constexpr const char* EXCEPTION_MSG_INVALID_CHUNK_ENCODING = "Invalid chunk encoding."; constexpr const char* EXCEPTION_MSG_ZERO_SIZED_CHUNK = "Encountered zero-sized chunk."; -SawyerChunkReader::SawyerChunkReader(OpenRCT2::IStream* stream) +SawyerChunkReader::SawyerChunkReader(OpenRCT2::IStream* stream, bool persistentChunks) : _stream(stream) + , _createsPersistentChunks(persistentChunks) { } @@ -78,7 +79,10 @@ std::shared_ptr SawyerChunkReader::ReadChunk() { throw SawyerChunkException(EXCEPTION_MSG_ZERO_SIZED_CHUNK); } - buffer = static_cast(FinaliseLargeTempBuffer(buffer, uncompressedLength)); + if (_createsPersistentChunks) + { + buffer = static_cast(FinaliseLargeTempBuffer(buffer, uncompressedLength)); + } return std::make_shared( static_cast(header.encoding), buffer, uncompressedLength); } @@ -126,7 +130,10 @@ std::shared_ptr SawyerChunkReader::ReadChunkTrack() { throw SawyerChunkException(EXCEPTION_MSG_ZERO_SIZED_CHUNK); } - buffer = static_cast(FinaliseLargeTempBuffer(buffer, uncompressedLength)); + if (_createsPersistentChunks) + { + buffer = static_cast(FinaliseLargeTempBuffer(buffer, uncompressedLength)); + } return std::make_shared(SAWYER_ENCODING::RLE, buffer, uncompressedLength); } catch (const std::exception&) @@ -158,6 +165,11 @@ void SawyerChunkReader::ReadChunk(void* dst, size_t length) } } +void SawyerChunkReader::FreeChunk(void* data) +{ + FreeLargeTempBuffer(data); +} + size_t SawyerChunkReader::DecodeChunk(void* dst, size_t dstCapacity, const void* src, const sawyercoding_chunk_header& header) { size_t resultLength; @@ -315,9 +327,7 @@ void* SawyerChunkReader::AllocateLargeTempBuffer() void* SawyerChunkReader::FinaliseLargeTempBuffer(void* buffer, size_t len) { #ifdef __USE_HEAP_ALLOC__ - auto finalBuffer = std::malloc(len); - std::memcpy(finalBuffer, buffer, len); - HeapFree(GetProcessHeap(), 0, buffer); + auto finalBuffer = HeapReAlloc(GetProcessHeap(), 0, buffer, len); #else auto finalBuffer = static_cast(std::realloc(buffer, len)); #endif diff --git a/src/openrct2/rct12/SawyerChunkReader.h b/src/openrct2/rct12/SawyerChunkReader.h index 8fb370b25e..0873c8b845 100644 --- a/src/openrct2/rct12/SawyerChunkReader.h +++ b/src/openrct2/rct12/SawyerChunkReader.h @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2014-2020 OpenRCT2 developers + * Copyright (c) 2014-2021 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 @@ -36,15 +36,17 @@ namespace OpenRCT2 /** * Reads sawyer encoding chunks from a data stream. This can be used to read - * SC6, SV6 and RCT2 objects. + * SC6, SV6 and RCT2 objects. persistentChunks is a hint to the reader that the chunk will be preserved, + * and thus the chunk memory should be shrunk. */ class SawyerChunkReader final { private: OpenRCT2::IStream* const _stream = nullptr; + const bool _createsPersistentChunks = false; public: - explicit SawyerChunkReader(OpenRCT2::IStream* stream); + explicit SawyerChunkReader(OpenRCT2::IStream* stream, bool persistentChunks = false); /** * Skips the next chunk in the stream without decoding or reading its data @@ -84,6 +86,11 @@ public: return result; } + /** + * Frees the chunk data, to be used when destructing SawyerChunks + */ + static void FreeChunk(void* data); + private: static size_t DecodeChunk(void* dst, size_t dstCapacity, const void* src, const sawyercoding_chunk_header& header); static size_t DecodeChunkRLERepeat(void* dst, size_t dstCapacity, const void* src, size_t srcLength); diff --git a/src/openrct2/rct2/RCT2.h b/src/openrct2/rct2/RCT2.h index afd33e7285..10003fb038 100644 --- a/src/openrct2/rct2/RCT2.h +++ b/src/openrct2/rct2/RCT2.h @@ -453,8 +453,8 @@ assert_struct_size(rct_scores_entry, 0x02B0); struct RCT2SpriteVehicle : RCT12SpriteBase { - uint8_t vehicle_sprite_type; // 0x1F - uint8_t bank_rotation; // 0x20 + uint8_t Pitch; // 0x1F + uint8_t bank_rotation; // 0x20 uint8_t pad_21[3]; int32_t remaining_distance; // 0x24 int32_t velocity; // 0x28 diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index 888dfc0e1b..a612e6af35 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -31,6 +31,7 @@ #include "../object/ObjectLimits.h" #include "../object/ObjectManager.h" #include "../object/ObjectRepository.h" +#include "../peep/Peep.h" #include "../peep/Staff.h" #include "../rct12/SawyerChunkWriter.h" #include "../ride/Ride.h" @@ -39,12 +40,20 @@ #include "../ride/ShopItem.h" #include "../ride/Station.h" #include "../ride/TrackData.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" #include "../util/SawyerCoding.h" #include "../util/Util.h" +#include "../world/Balloon.h" #include "../world/Climate.h" +#include "../world/Duck.h" +#include "../world/EntityList.h" +#include "../world/Fountain.h" +#include "../world/Litter.h" #include "../world/MapAnimation.h" +#include "../world/MoneyEffect.h" #include "../world/Park.h" +#include "../world/Particle.h" #include "../world/Sprite.h" #include @@ -186,7 +195,7 @@ void S6Exporter::Export() _s6.scenario_srand_1 = state.s1; // Map elements must be reorganised prior to saving otherwise save may be invalid - map_reorganise_elements(); + ReorganiseTileElements(); ExportTileElements(); ExportEntities(); ExportParkName(); @@ -410,8 +419,8 @@ void S6Exporter::Export() // pad_13CE730 // rct1_scenario_flags - _s6.wide_path_tile_loop_x = gWidePathTileLoopX; - _s6.wide_path_tile_loop_y = gWidePathTileLoopY; + _s6.wide_path_tile_loop_x = gWidePathTileLoopPosition.x; + _s6.wide_path_tile_loop_y = gWidePathTileLoopPosition.y; // pad_13CE778 String::Set(_s6.scenario_filename, sizeof(_s6.scenario_filename), gScenarioFileName); @@ -512,7 +521,7 @@ void S6Exporter::ExportRide(rct2_ride* dst, const Ride* src) } // pad_046; - dst->status = src->status; + dst->status = EnumValue(src->status); bool useDefaultName = true; if (!src->custom_name.empty()) @@ -770,7 +779,7 @@ void S6Exporter::ExportRide(rct2_ride* dst, const Ride* src) void S6Exporter::ExportRideRatingsCalcData() { - const auto& src = gRideRatingsCalcData; + const auto& src = gRideRatingUpdateState; auto& dst = _s6.ride_ratings_calc_data; dst.proximity_x = src.Proximity.x; dst.proximity_y = src.Proximity.y; @@ -778,7 +787,7 @@ void S6Exporter::ExportRideRatingsCalcData() dst.proximity_start_x = src.ProximityStart.x; dst.proximity_start_y = src.ProximityStart.y; dst.proximity_start_z = src.ProximityStart.z; - dst.current_ride = src.CurrentRide; + dst.current_ride = OpenRCT2RideIdToRCT12RideId(src.CurrentRide); dst.state = src.State; if (src.ProximityTrackType == TrackElemType::None) dst.proximity_track_type = 0xFF; @@ -928,7 +937,7 @@ void S6Exporter::ExportMarketingCampaigns() _s6.campaign_weeks_left[campaign.Type] |= CAMPAIGN_FIRST_WEEK_FLAG; if (campaign.Type == ADVERTISING_CAMPAIGN_RIDE_FREE || campaign.Type == ADVERTISING_CAMPAIGN_RIDE) { - _s6.campaign_ride_index[campaign.Type] = campaign.RideId; + _s6.campaign_ride_index[campaign.Type] = OpenRCT2RideIdToRCT12RideId(campaign.RideId); } else if (campaign.Type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) { @@ -990,9 +999,9 @@ void S6Exporter::RebuildEntityLinks() constexpr RCT12EntityLinkListOffset GetRCT2LinkListOffset(const SpriteBase* src) { RCT12EntityLinkListOffset output = RCT12EntityLinkListOffset::Free; - switch (src->sprite_identifier) + switch (src->Type) { - case SpriteIdentifier::Vehicle: + case EntityType::Vehicle: { auto veh = src->As(); if (veh && veh->IsHead()) @@ -1005,13 +1014,22 @@ constexpr RCT12EntityLinkListOffset GetRCT2LinkListOffset(const SpriteBase* src) } } break; - case SpriteIdentifier::Peep: + case EntityType::Guest: + case EntityType::Staff: output = RCT12EntityLinkListOffset::Peep; break; - case SpriteIdentifier::Misc: + case EntityType::SteamParticle: + case EntityType::MoneyEffect: + case EntityType::CrashedVehicleParticle: + case EntityType::ExplosionCloud: + case EntityType::CrashSplash: + case EntityType::ExplosionFlare: + case EntityType::JumpingFountain: + case EntityType::Balloon: + case EntityType::Duck: output = RCT12EntityLinkListOffset::Misc; break; - case SpriteIdentifier::Litter: + case EntityType::Litter: output = RCT12EntityLinkListOffset::Litter; break; default: @@ -1020,14 +1038,46 @@ constexpr RCT12EntityLinkListOffset GetRCT2LinkListOffset(const SpriteBase* src) return output; } +constexpr RCT12SpriteIdentifier GetRCT2SpriteIdentifier(const SpriteBase* src) +{ + RCT12SpriteIdentifier output = RCT12SpriteIdentifier::Null; + switch (src->Type) + { + case EntityType::Vehicle: + output = RCT12SpriteIdentifier::Vehicle; + break; + case EntityType::Guest: + case EntityType::Staff: + output = RCT12SpriteIdentifier::Peep; + break; + case EntityType::SteamParticle: + case EntityType::MoneyEffect: + case EntityType::CrashedVehicleParticle: + case EntityType::ExplosionCloud: + case EntityType::CrashSplash: + case EntityType::ExplosionFlare: + case EntityType::JumpingFountain: + case EntityType::Balloon: + case EntityType::Duck: + output = RCT12SpriteIdentifier::Misc; + break; + case EntityType::Litter: + output = RCT12SpriteIdentifier::Litter; + break; + default: + break; + } + return output; +} + void S6Exporter::ExportEntityCommonProperties(RCT12SpriteBase* dst, const SpriteBase* src) { - dst->sprite_identifier = src->sprite_identifier; + dst->sprite_identifier = GetRCT2SpriteIdentifier(src); dst->linked_list_type_offset = GetRCT2LinkListOffset(src); dst->next_in_quadrant = SPRITE_INDEX_NULL; dst->sprite_height_negative = src->sprite_height_negative; dst->sprite_index = src->sprite_index; - dst->flags = src->flags; + dst->flags = 0; dst->x = src->x; dst->y = src->y; dst->z = src->z; @@ -1046,7 +1096,7 @@ template<> void S6Exporter::ExportEntity(RCT2SpriteVehicle* dst, const Vehicle* ExportEntityCommonProperties(dst, src); dst->type = EnumValue(src->SubType); - dst->vehicle_sprite_type = src->vehicle_sprite_type; + dst->Pitch = src->Pitch; dst->bank_rotation = src->bank_rotation; dst->remaining_distance = src->remaining_distance; dst->velocity = src->velocity; @@ -1126,77 +1176,14 @@ template<> void S6Exporter::ExportEntity(RCT2SpriteVehicle* dst, const Vehicle* dst->colours_extended = src->colours_extended; dst->seat_rotation = src->seat_rotation; dst->target_seat_rotation = src->target_seat_rotation; + dst->flags = src->IsCrashedVehicle ? RCT12_SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE : 0; } template<> void S6Exporter::ExportEntity(RCT2SpritePeep* dst, const Guest* src) { ExportEntityPeep(dst, src); -} -template<> void S6Exporter::ExportEntity(RCT2SpritePeep* dst, const Staff* src) -{ - ExportEntityPeep(dst, src); -} - -void S6Exporter::ExportEntityPeep(RCT2SpritePeep* dst, const Peep* src) -{ - ExportEntityCommonProperties(dst, src); - - auto generateName = true; - if (src->Name != nullptr) - { - auto stringId = AllocateUserString(src->Name); - if (stringId != std::nullopt) - { - dst->name_string_idx = *stringId; - generateName = false; - } - else - { - log_warning( - "Unable to allocate user string for peep #%d (%s) during S6 export.", static_cast(src->sprite_index), - src->Name); - } - } - if (generateName) - { - if (src->AssignedPeepType == PeepType::Staff) - { - static constexpr const rct_string_id staffNames[] = { - STR_HANDYMAN_X, - STR_MECHANIC_X, - STR_SECURITY_GUARD_X, - STR_ENTERTAINER_X, - }; - dst->name_string_idx = staffNames[static_cast(src->AssignedStaffType) % sizeof(staffNames)]; - } - else if (gParkFlags & PARK_FLAGS_SHOW_REAL_GUEST_NAMES) - { - dst->name_string_idx = get_real_name_string_id_from_id(src->Id); - } - else - { - dst->name_string_idx = STR_GUEST_X; - } - } - - dst->next_x = src->NextLoc.x; - dst->next_y = src->NextLoc.y; - dst->next_z = src->NextLoc.z / COORDS_Z_STEP; - dst->next_flags = src->NextFlags; dst->outside_of_park = static_cast(src->OutsideOfPark); - dst->state = static_cast(src->State); - dst->sub_state = src->SubState; - dst->sprite_type = static_cast(src->SpriteType); - dst->peep_type = static_cast(src->AssignedPeepType); dst->no_of_rides = src->GuestNumRides; - dst->tshirt_colour = src->TshirtColour; - dst->trousers_colour = src->TrousersColour; - dst->destination_x = src->DestinationX; - dst->destination_y = src->DestinationY; - dst->destination_tolerance = src->DestinationTolerance; - dst->var_37 = src->Var37; - dst->energy = src->Energy; - dst->energy_target = src->EnergyTarget; dst->happiness = src->Happiness; dst->happiness_target = src->HappinessTarget; dst->nausea = src->Nausea; @@ -1204,40 +1191,25 @@ void S6Exporter::ExportEntityPeep(RCT2SpritePeep* dst, const Peep* src) dst->hunger = src->Hunger; dst->thirst = src->Thirst; dst->toilet = src->Toilet; - dst->mass = src->Mass; dst->time_to_consume = src->TimeToConsume; dst->intensity = static_cast(src->Intensity); dst->nausea_tolerance = EnumValue(src->NauseaTolerance); - dst->window_invalidate_flags = src->WindowInvalidateFlags; dst->paid_on_drink = src->PaidOnDrink; for (size_t i = 0; i < std::size(src->RideTypesBeenOn); i++) { dst->ride_types_been_on[i] = src->RideTypesBeenOn[i]; } dst->item_extra_flags = static_cast(src->GetItemFlags() >> 32); + dst->photo1_ride_ref = OpenRCT2RideIdToRCT12RideId(src->Photo1RideRef); dst->photo2_ride_ref = OpenRCT2RideIdToRCT12RideId(src->Photo2RideRef); dst->photo3_ride_ref = OpenRCT2RideIdToRCT12RideId(src->Photo3RideRef); dst->photo4_ride_ref = OpenRCT2RideIdToRCT12RideId(src->Photo4RideRef); - dst->current_ride = OpenRCT2RideIdToRCT12RideId(src->CurrentRide); - dst->current_ride_station = src->CurrentRideStation; - dst->current_train = src->CurrentTrain; - dst->time_to_sitdown = src->TimeToSitdown; - dst->special_sprite = src->SpecialSprite; - dst->action_sprite_type = static_cast(src->ActionSpriteType); - dst->next_action_sprite_type = static_cast(src->NextActionSpriteType); - dst->action_sprite_image_offset = src->ActionSpriteImageOffset; - dst->action = static_cast(src->Action); - dst->action_frame = src->ActionFrame; - dst->step_progress = src->StepProgress; dst->next_in_queue = src->GuestNextInQueue; - dst->direction = src->PeepDirection; - dst->interaction_ride_index = OpenRCT2RideIdToRCT12RideId(src->InteractionRideIndex); dst->time_in_queue = src->TimeInQueue; for (size_t i = 0; i < std::size(src->RidesBeenOn); i++) { dst->rides_been_on[i] = src->RidesBeenOn[i]; } - dst->id = src->Id; dst->cash_in_pocket = src->CashInPocket; dst->cash_spent = src->CashSpent; dst->park_entry_time = src->ParkEntryTime; @@ -1253,17 +1225,8 @@ void S6Exporter::ExportEntityPeep(RCT2SpritePeep* dst, const Peep* src) dstThought->freshness = srcThought->freshness; dstThought->fresh_timeout = srcThought->fresh_timeout; } - dst->path_check_optimisation = src->PathCheckOptimisation; dst->guest_heading_to_ride_id = OpenRCT2RideIdToRCT12RideId(src->GuestHeadingToRideId); dst->peep_is_lost_countdown = src->GuestIsLostCountdown; - dst->photo1_ride_ref = OpenRCT2RideIdToRCT12RideId(src->Photo1RideRef); - dst->peep_flags = src->PeepFlags; - dst->pathfind_goal = src->PathfindGoal; - for (size_t i = 0; i < std::size(src->PathfindHistory); i++) - { - dst->pathfind_history[i] = src->PathfindHistory[i]; - } - dst->no_action_frame_num = src->WalkingFrameNum; dst->litter_count = src->LitterCount; dst->time_on_ride = src->GuestTimeOnRide; dst->disgusting_count = src->DisgustingCount; @@ -1288,18 +1251,117 @@ void S6Exporter::ExportEntityPeep(RCT2SpritePeep* dst, const Peep* src) dst->favourite_ride_rating = src->FavouriteRideRating; dst->item_standard_flags = static_cast(src->GetItemFlags()); } +template<> void S6Exporter::ExportEntity(RCT2SpritePeep* dst, const Staff* src) +{ + ExportEntityPeep(dst, src); + dst->staff_type = static_cast(src->AssignedStaffType); + dst->mechanic_time_since_call = src->MechanicTimeSinceCall; + dst->park_entry_time = src->HireDate; + dst->staff_id = src->StaffId; + dst->staff_orders = src->StaffOrders; + dst->staff_mowing_timeout = src->StaffMowingTimeout; + dst->paid_to_enter = src->StaffLawnsMown; + dst->paid_on_rides = src->StaffGardensWatered; + dst->paid_on_food = src->StaffLitterSwept; + dst->paid_on_souvenirs = src->StaffBinsEmptied; +} + +void S6Exporter::ExportEntityPeep(RCT2SpritePeep* dst, const Peep* src) +{ + ExportEntityCommonProperties(dst, src); + + auto generateName = true; + if (src->Name != nullptr) + { + auto stringId = AllocateUserString(src->Name); + if (stringId != std::nullopt) + { + dst->name_string_idx = *stringId; + generateName = false; + } + else + { + log_warning( + "Unable to allocate user string for peep #%d (%s) during S6 export.", static_cast(src->sprite_index), + src->Name); + } + } + if (generateName) + { + auto* staff = src->As(); + if (staff != nullptr) + { + static constexpr const rct_string_id staffNames[] = { + STR_HANDYMAN_X, + STR_MECHANIC_X, + STR_SECURITY_GUARD_X, + STR_ENTERTAINER_X, + }; + dst->name_string_idx = staffNames[static_cast(staff->AssignedStaffType) % sizeof(staffNames)]; + } + else if (gParkFlags & PARK_FLAGS_SHOW_REAL_GUEST_NAMES) + { + dst->name_string_idx = get_real_name_string_id_from_id(src->Id); + } + else + { + dst->name_string_idx = STR_GUEST_X; + } + } + + dst->next_x = src->NextLoc.x; + dst->next_y = src->NextLoc.y; + dst->next_z = src->NextLoc.z / COORDS_Z_STEP; + dst->next_flags = src->NextFlags; + dst->state = static_cast(src->State); + dst->sub_state = src->SubState; + dst->sprite_type = static_cast(src->SpriteType); + dst->peep_type = static_cast(src->Type == EntityType::Staff ? RCT12PeepType::Staff : RCT12PeepType::Guest); + dst->tshirt_colour = src->TshirtColour; + dst->trousers_colour = src->TrousersColour; + dst->destination_x = src->DestinationX; + dst->destination_y = src->DestinationY; + dst->destination_tolerance = src->DestinationTolerance; + dst->var_37 = src->Var37; + dst->energy = src->Energy; + dst->energy_target = src->EnergyTarget; + dst->mass = src->Mass; + dst->window_invalidate_flags = src->WindowInvalidateFlags; + dst->current_ride = OpenRCT2RideIdToRCT12RideId(src->CurrentRide); + dst->current_ride_station = src->CurrentRideStation; + dst->current_train = src->CurrentTrain; + dst->time_to_sitdown = src->TimeToSitdown; + dst->special_sprite = src->SpecialSprite; + dst->action_sprite_type = static_cast(src->ActionSpriteType); + dst->next_action_sprite_type = static_cast(src->NextActionSpriteType); + dst->action_sprite_image_offset = src->ActionSpriteImageOffset; + dst->action = static_cast(src->Action); + dst->action_frame = src->ActionFrame; + dst->step_progress = src->StepProgress; + dst->direction = src->PeepDirection; + dst->interaction_ride_index = OpenRCT2RideIdToRCT12RideId(src->InteractionRideIndex); + dst->id = src->Id; + dst->path_check_optimisation = src->PathCheckOptimisation; + dst->peep_flags = src->PeepFlags; + dst->pathfind_goal = src->PathfindGoal; + for (size_t i = 0; i < std::size(src->PathfindHistory); i++) + { + dst->pathfind_history[i] = src->PathfindHistory[i]; + } + dst->no_action_frame_num = src->WalkingFrameNum; +} template<> void S6Exporter::ExportEntity(RCT12SpriteSteamParticle* dst, const SteamParticle* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::SteamParticle); dst->time_to_move = src->time_to_move; dst->frame = src->frame; } template<> void S6Exporter::ExportEntity(RCT12SpriteMoneyEffect* dst, const MoneyEffect* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::MoneyEffect); dst->move_delay = src->MoveDelay; dst->num_movements = src->NumMovements; dst->vertical = src->Vertical; @@ -1310,7 +1372,7 @@ template<> void S6Exporter::ExportEntity(RCT12SpriteMoneyEffect* dst, const Mone template<> void S6Exporter::ExportEntity(RCT12SpriteCrashedVehicleParticle* dst, const VehicleCrashParticle* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::CrashedVehicleParticle); dst->frame = src->frame; dst->time_to_live = src->time_to_live; dst->frame = src->frame; @@ -1327,7 +1389,9 @@ template<> void S6Exporter::ExportEntity(RCT12SpriteCrashedVehicleParticle* dst, template<> void S6Exporter::ExportEntity(RCT12SpriteJumpingFountain* dst, const JumpingFountain* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue( + src->FountainType == JumpingFountainType::Snow ? RCT12MiscEntityType::JumpingFountainSnow + : RCT12MiscEntityType::JumpingFountainWater); dst->num_ticks_alive = src->NumTicksAlive; dst->frame = src->frame; dst->fountain_flags = src->FountainFlags; @@ -1339,7 +1403,7 @@ template<> void S6Exporter::ExportEntity(RCT12SpriteJumpingFountain* dst, const template<> void S6Exporter::ExportEntity(RCT12SpriteBalloon* dst, const Balloon* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::Balloon); dst->popped = src->popped; dst->time_to_move = src->time_to_move; dst->frame = src->frame; @@ -1348,7 +1412,7 @@ template<> void S6Exporter::ExportEntity(RCT12SpriteBalloon* dst, const Balloon* template<> void S6Exporter::ExportEntity(RCT12SpriteDuck* dst, const Duck* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::Duck); dst->frame = src->frame; dst->target_x = src->target_x; dst->target_y = src->target_y; @@ -1357,19 +1421,19 @@ template<> void S6Exporter::ExportEntity(RCT12SpriteDuck* dst, const Duck* src) template<> void S6Exporter::ExportEntity(RCT12SpriteParticle* dst, const ExplosionCloud* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::ExplosionCloud); dst->frame = src->frame; } template<> void S6Exporter::ExportEntity(RCT12SpriteParticle* dst, const ExplosionFlare* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::ExplosionFlare); dst->frame = src->frame; } template<> void S6Exporter::ExportEntity(RCT12SpriteParticle* dst, const CrashSplashParticle* src) { ExportEntityCommonProperties(dst, src); - dst->type = EnumValue(src->SubType); + dst->type = EnumValue(RCT12MiscEntityType::CrashSplash); dst->frame = src->frame; } @@ -1387,64 +1451,60 @@ void S6Exporter::ExportEntities() { auto& entity = _s6.sprites[i]; std::memset(&entity, 0, sizeof(entity)); - entity.unknown.sprite_identifier = SpriteIdentifier::Null; + entity.unknown.sprite_identifier = RCT12SpriteIdentifier::Null; entity.unknown.sprite_index = i; entity.unknown.linked_list_type_offset = RCT12EntityLinkListOffset::Free; } - for (auto* entity : EntityList(EntityListId::Peep)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].peep, entity); } - for (auto* entity : EntityList(EntityListId::Peep)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].peep, entity); } - for (auto* entity : EntityList(EntityListId::Vehicle)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].vehicle, entity); } - for (auto* entity : EntityList(EntityListId::TrainHead)) - { - ExportEntity(&_s6.sprites[entity->sprite_index].vehicle, entity); - } - for (auto* entity : EntityList(EntityListId::Litter)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].litter, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].duck, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].steam_particle, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].money_effect, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].crashed_vehicle_particle, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].jumping_fountain, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].balloon, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].misc_particle, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].misc_particle, entity); } - for (auto* entity : EntityList(EntityListId::Misc)) + for (auto* entity : EntityList()) { ExportEntity(&_s6.sprites[entity->sprite_index].misc_particle, entity); } @@ -1489,7 +1549,7 @@ void S6Exporter::ExportBanner(RCT12Banner& dst, const Banner& src) if (src.flags & BANNER_FLAG_LINKED_TO_RIDE) { - dst.ride_index = src.ride_index; + dst.ride_index = OpenRCT2RideIdToRCT12RideId(src.ride_index); } else { @@ -1520,10 +1580,16 @@ void S6Exporter::ExportMapAnimations() void S6Exporter::ExportTileElements() { + const auto& tileElements = GetTileElements(); for (uint32_t index = 0; index < RCT2_MAX_TILE_ELEMENTS; index++) { - auto src = &gTileElements[index]; auto dst = &_s6.tile_elements[index]; + if (index >= tileElements.size()) + { + dst = {}; + continue; + } + auto src = &tileElements[index]; if (src->base_height == MAX_ELEMENT_HEIGHT) { std::memcpy(dst, src, sizeof(*dst)); @@ -1538,10 +1604,10 @@ void S6Exporter::ExportTileElements() ExportTileElement(dst, src); } } - _s6.next_free_tile_element_pointer_index = gNextFreeTileElementPointerIndex; + _s6.next_free_tile_element_pointer_index = static_cast(tileElements.size()); } -void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src) +void S6Exporter::ExportTileElement(RCT12TileElement* dst, const TileElement* src) { // Todo: allow for changing definition of OpenRCT2 tile element types - replace with a map uint8_t tileElementType = src->GetType(); @@ -1582,7 +1648,7 @@ void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src) dst2->SetQueueBannerDirection(src2->GetQueueBannerDirection()); dst2->SetSloped(src2->IsSloped()); dst2->SetSlopeDirection(src2->GetSlopeDirection()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(OpenRCT2RideIdToRCT12RideId(src2->GetRideIndex())); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetWide(src2->IsWide()); dst2->SetIsQueue(src2->IsQueue()); @@ -1605,7 +1671,7 @@ void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src) auto trackType = OpenRCT2TrackTypeToRCT2(src2->GetTrackType()); dst2->SetTrackType(static_cast(trackType)); dst2->SetSequenceIndex(src2->GetSequenceIndex()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(OpenRCT2RideIdToRCT12RideId(src2->GetRideIndex())); dst2->SetColourScheme(src2->GetColourScheme()); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetHasGreenLight(src2->HasGreenLight()); @@ -1666,7 +1732,7 @@ void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src) auto src2 = src->AsEntrance(); dst2->SetEntranceType(src2->GetEntranceType()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(OpenRCT2RideIdToRCT12RideId(src2->GetRideIndex())); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetSequenceIndex(src2->GetSequenceIndex()); dst2->SetPathType(src2->GetPathType()); @@ -1688,7 +1754,7 @@ void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src) dst2->SetAnimationIsBackwards(src2->AnimationIsBackwards()); auto entry = src2->GetEntry(); - if (entry != nullptr && entry->wall.scrolling_mode != SCROLLING_MODE_NONE) + if (entry != nullptr && entry->scrolling_mode != SCROLLING_MODE_NONE) { auto bannerIndex = src2->GetBannerIndex(); if (bannerIndex != BANNER_INDEX_NULL) @@ -1710,7 +1776,7 @@ void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src) dst2->SetSecondaryColour(src2->GetSecondaryColour()); auto entry = src2->GetEntry(); - if (entry != nullptr && entry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (entry != nullptr && entry->scrolling_mode != SCROLLING_MODE_NONE) { auto bannerIndex = src2->GetBannerIndex(); if (bannerIndex != BANNER_INDEX_NULL) @@ -1792,7 +1858,6 @@ int32_t scenario_save(const utf8* path, int32_t flags) window_close_construction_windows(); } - map_reorganise_elements(); viewport_set_saved_view(); bool result = false; diff --git a/src/openrct2/rct2/S6Exporter.h b/src/openrct2/rct2/S6Exporter.h index 96485063c5..bc673854b7 100644 --- a/src/openrct2/rct2/S6Exporter.h +++ b/src/openrct2/rct2/S6Exporter.h @@ -73,7 +73,7 @@ private: void ExportMapAnimations(); void ExportTileElements(); - void ExportTileElement(RCT12TileElement* dst, TileElement* src); + void ExportTileElement(RCT12TileElement* dst, const TileElement* src); std::optional AllocateUserString(std::string_view value); void ExportUserStrings(); diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index ca69b1fa8f..d4120c213b 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -32,6 +32,7 @@ #include "../object/ObjectLimits.h" #include "../object/ObjectManager.h" #include "../object/ObjectRepository.h" +#include "../peep/Peep.h" #include "../peep/Staff.h" #include "../rct12/RCT12.h" #include "../rct12/SawyerChunkReader.h" @@ -43,14 +44,24 @@ #include "../ride/ShopItem.h" #include "../ride/Station.h" #include "../ride/Track.h" +#include "../ride/TrainManager.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" #include "../scenario/ScenarioRepository.h" #include "../util/SawyerCoding.h" #include "../util/Util.h" +#include "../world/Balloon.h" #include "../world/Climate.h" +#include "../world/Duck.h" +#include "../world/EntityList.h" +#include "../world/EntityTweener.h" #include "../world/Entrance.h" +#include "../world/Fountain.h" +#include "../world/Litter.h" #include "../world/MapAnimation.h" +#include "../world/MoneyEffect.h" #include "../world/Park.h" +#include "../world/Particle.h" #include "../world/Scenery.h" #include "../world/Sprite.h" #include "../world/Surface.h" @@ -217,7 +228,7 @@ public: scenario_rand_seed(_s6.scenario_srand_0, _s6.scenario_srand_1); ImportTileElements(); - ImportSprites(); + ImportEntities(); gInitialCash = _s6.initial_cash; gBankLoan = _s6.current_loan; @@ -448,13 +459,12 @@ public: // pad_13CE730 // rct1_scenario_flags - gWidePathTileLoopX = _s6.wide_path_tile_loop_x; - gWidePathTileLoopY = _s6.wide_path_tile_loop_y; + gWidePathTileLoopPosition.x = _s6.wide_path_tile_loop_x; + gWidePathTileLoopPosition.y = _s6.wide_path_tile_loop_y; // pad_13CE778 // Fix and set dynamic variables map_strip_ghost_flag_from_elements(); - map_update_tile_pointers(); game_convert_strings_to_utf8(); map_count_remaining_land_rights(); determine_ride_entrance_and_exit_locations(); @@ -527,7 +537,7 @@ public: } // pad_046; - dst->status = src->status; + dst->status = static_cast(src->status); dst->default_name_number = src->name_arguments_number; if (is_user_string_id(src->name)) @@ -797,11 +807,11 @@ public: void ImportRideRatingsCalcData() { const auto& src = _s6.ride_ratings_calc_data; - auto& dst = gRideRatingsCalcData; + auto& dst = gRideRatingUpdateState; dst = {}; dst.Proximity = { src.proximity_x, src.proximity_y, src.proximity_z }; dst.ProximityStart = { src.proximity_start_x, src.proximity_start_y, src.proximity_start_z }; - dst.CurrentRide = src.current_ride; + dst.CurrentRide = RCT12RideIdToOpenRCT2RideId(src.current_ride); dst.State = src.state; if (src.current_ride < RCT12_MAX_RIDES_IN_PARK && _s6.rides[src.current_ride].type < std::size(RideTypeDescriptors)) dst.ProximityTrackType = RCT2TrackTypeToOpenRCT2(src.proximity_track_type, _s6.rides[src.current_ride].type); @@ -941,7 +951,7 @@ public: if (src->flags & BANNER_FLAG_LINKED_TO_RIDE) { - dst->ride_index = src->ride_index; + dst->ride_index = RCT12RideIdToOpenRCT2RideId(src->ride_index); } else { @@ -1011,7 +1021,7 @@ public: uint16_t numRiders = 0; for (const auto& sprite : _s6.sprites) { - if (sprite.unknown.sprite_identifier == SpriteIdentifier::Peep) + if (sprite.unknown.sprite_identifier == RCT12SpriteIdentifier::Peep) { if (sprite.peep.current_ride == rideIndex && (static_cast(sprite.peep.state) == PeepState::OnRide @@ -1029,16 +1039,16 @@ public: // Build tile pointer cache (needed to get the first element at a certain location) auto tilePointerIndex = TilePointerIndex(RCT2_MAXIMUM_MAP_SIZE_TECHNICAL, _s6.tile_elements); - TileElement* dstElement = gTileElements; + std::vector tileElements; for (TileCoordsXY coords = { 0, 0 }; coords.y < MAXIMUM_MAP_SIZE_TECHNICAL; coords.y++) { for (coords.x = 0; coords.x < MAXIMUM_MAP_SIZE_TECHNICAL; coords.x++) { if (coords.x >= RCT2_MAXIMUM_MAP_SIZE_TECHNICAL || coords.y >= RCT2_MAXIMUM_MAP_SIZE_TECHNICAL) { - dstElement->ClearAs(TILE_ELEMENT_TYPE_SURFACE); - dstElement->SetLastForTile(true); - dstElement++; + auto& dstElement = tileElements.emplace_back(); + dstElement.ClearAs(TILE_ELEMENT_TYPE_SURFACE); + dstElement.SetLastForTile(true); continue; } @@ -1046,17 +1056,18 @@ public: // This might happen with damaged parks. Make sure there is *something* to avoid crashes. if (srcElement == nullptr) { - dstElement->ClearAs(TILE_ELEMENT_TYPE_SURFACE); - dstElement->SetLastForTile(true); - dstElement++; + auto& dstElement = tileElements.emplace_back(); + dstElement.ClearAs(TILE_ELEMENT_TYPE_SURFACE); + dstElement.SetLastForTile(true); continue; } do { + auto& dstElement = tileElements.emplace_back(); if (srcElement->base_height == RCT12_MAX_ELEMENT_HEIGHT) { - std::memcpy(dstElement, srcElement, sizeof(*srcElement)); + std::memcpy(&dstElement, srcElement, sizeof(*srcElement)); } else { @@ -1065,19 +1076,20 @@ public: if (tileElementType == RCT12TileElementType::Corrupt || tileElementType == RCT12TileElementType::EightCarsCorrupt14 || tileElementType == RCT12TileElementType::EightCarsCorrupt15) - std::memcpy(dstElement, srcElement, sizeof(*srcElement)); + std::memcpy(&dstElement, srcElement, sizeof(*srcElement)); else - ImportTileElement(dstElement, srcElement); + ImportTileElement(&dstElement, srcElement); } - - dstElement++; } while (!(srcElement++)->IsLastForTile()); + + // Set last element flag in case the original last element was never added + if (tileElements.size() > 0) + { + tileElements.back().SetLastForTile(true); + } } } - - gNextFreeTileElementPointerIndex = _s6.next_free_tile_element_pointer_index; - - map_update_tile_pointers(); + SetTileElements(std::move(tileElements)); } void ImportTileElement(TileElement* dst, const RCT12TileElement* src) @@ -1121,7 +1133,7 @@ public: dst2->SetQueueBannerDirection(src2->GetQueueBannerDirection()); dst2->SetSloped(src2->IsSloped()); dst2->SetSlopeDirection(src2->GetSlopeDirection()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetWide(src2->IsWide()); dst2->SetIsQueue(src2->IsQueue()); @@ -1146,7 +1158,7 @@ public: dst2->SetTrackType(RCT2TrackTypeToOpenRCT2(trackType, _s6.rides[src2->GetRideIndex()].type)); dst2->SetSequenceIndex(src2->GetSequenceIndex()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); dst2->SetColourScheme(src2->GetColourScheme()); dst2->SetHasChain(src2->HasChain()); dst2->SetHasCableLift(src2->HasCableLift()); @@ -1204,7 +1216,7 @@ public: auto src2 = src->AsEntrance(); dst2->SetEntranceType(src2->GetEntranceType()); - dst2->SetRideIndex(src2->GetRideIndex()); + dst2->SetRideIndex(RCT12RideIdToOpenRCT2RideId(src2->GetRideIndex())); dst2->SetStationIndex(src2->GetStationIndex()); dst2->SetSequenceIndex(src2->GetSequenceIndex()); dst2->SetPathType(src2->GetPathType()); @@ -1228,7 +1240,7 @@ public: // Import banner information dst2->SetBannerIndex(BANNER_INDEX_NULL); auto entry = dst2->GetEntry(); - if (entry != nullptr && entry->wall.scrolling_mode != SCROLLING_MODE_NONE) + if (entry != nullptr && entry->scrolling_mode != SCROLLING_MODE_NONE) { auto bannerIndex = src2->GetBannerIndex(); if (bannerIndex < std::size(_s6.banners)) @@ -1254,7 +1266,7 @@ public: // Import banner information dst2->SetBannerIndex(BANNER_INDEX_NULL); auto entry = dst2->GetEntry(); - if (entry != nullptr && entry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE) + if (entry != nullptr && entry->scrolling_mode != SCROLLING_MODE_NONE) { auto bannerIndex = src2->GetBannerIndex(); if (bannerIndex < std::size(_s6.banners)) @@ -1309,7 +1321,7 @@ public: } if (campaign.Type == ADVERTISING_CAMPAIGN_RIDE_FREE || campaign.Type == ADVERTISING_CAMPAIGN_RIDE) { - campaign.RideId = _s6.campaign_ride_index[i]; + campaign.RideId = RCT12RideIdToOpenRCT2RideId(_s6.campaign_ride_index[i]); } else if (campaign.Type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) { @@ -1320,165 +1332,28 @@ public: } } - void ImportSprites() + void ImportEntities() { for (int32_t i = 0; i < RCT2_MAX_SPRITES; i++) { - auto src = &_s6.sprites[i]; - auto dst = GetEntity(i); - ImportSprite(reinterpret_cast(dst), src); - } - RebuildEntityLists(); - } - - void ImportSprite(rct_sprite* dst, const RCT2Sprite* src) - { - std::memset(&dst->pad_00, 0, sizeof(rct_sprite)); - switch (src->unknown.sprite_identifier) - { - case SpriteIdentifier::Null: - ImportSpriteCommonProperties(reinterpret_cast(dst), &src->unknown); - break; - case SpriteIdentifier::Vehicle: - ImportSpriteVehicle(&dst->vehicle, &src->vehicle); - break; - case SpriteIdentifier::Peep: - ImportSpritePeep(&dst->peep, &src->peep); - break; - case SpriteIdentifier::Misc: - ImportSpriteMisc(&dst->misc, &src->unknown); - break; - case SpriteIdentifier::Litter: - ImportSpriteLitter(&dst->litter, &src->litter); - break; - default: - ImportSpriteCommonProperties(reinterpret_cast(dst), reinterpret_cast(src)); - log_warning("Sprite identifier %d can not be imported.", src->unknown.sprite_identifier); - break; + ImportEntity(_s6.sprites[i].unknown); } } - void ImportSpriteVehicle(Vehicle* dst, const RCT2SpriteVehicle* src) + template void ImportEntity(const RCT12SpriteBase& src); + + void ImportEntityPeep(Peep* dst, const RCT2SpritePeep* src) { - const auto& ride = _s6.rides[src->ride]; - - ImportSpriteCommonProperties(static_cast(dst), src); - dst->SubType = Vehicle::Type(src->type); - dst->vehicle_sprite_type = src->vehicle_sprite_type; - dst->bank_rotation = src->bank_rotation; - dst->remaining_distance = src->remaining_distance; - dst->velocity = src->velocity; - dst->acceleration = src->acceleration; - dst->ride = src->ride; - dst->vehicle_type = src->vehicle_type; - dst->colours = src->colours; - dst->track_progress = src->track_progress; - dst->TrackLocation = { src->track_x, src->track_y, src->track_z }; - if (src->boat_location.isNull() || static_cast(ride.mode) != RideMode::BoatHire - || src->status != static_cast(Vehicle::Status::TravellingBoat)) - { - dst->BoatLocation.setNull(); - dst->SetTrackDirection(src->GetTrackDirection()); - dst->SetTrackType(src->GetTrackType()); - // RotationControlToggle and Booster are saved as the same track piece ID - // Which one the vehicle is using must be determined - if (GetRideTypeDescriptor(ride.type).HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE)) - { - dst->SetTrackType(RCT12FlatTrackTypeToOpenRCT2(src->GetTrackType())); - } - else if (src->GetTrackType() == TrackElemType::RotationControlToggleAlias) - { - // Merging hacks mean the track type that's appropriate for the ride type is not necessarily the track type the - // ride is on. It's possible to create unwanted behavior if a user layers spinning control track on top of - // booster track but this is unlikely since only two rides have spinning control track - by default they load as - // booster - TileElement* tileElement2 = map_get_track_element_at_of_type_seq( - dst->TrackLocation, TrackElemType::RotationControlToggle, 0); - - if (tileElement2 != nullptr) - dst->SetTrackType(TrackElemType::RotationControlToggle); - } - } - else - { - dst->BoatLocation = TileCoordsXY{ src->boat_location.x, src->boat_location.y }.ToCoordsXY(); - dst->SetTrackDirection(0); - dst->SetTrackType(0); - } - - dst->next_vehicle_on_train = src->next_vehicle_on_train; - dst->prev_vehicle_on_ride = src->prev_vehicle_on_ride; - dst->next_vehicle_on_ride = src->next_vehicle_on_ride; - dst->var_44 = src->var_44; - dst->mass = src->mass; - dst->update_flags = src->update_flags; - dst->SwingSprite = src->SwingSprite; - dst->current_station = src->current_station; - dst->current_time = src->current_time; - dst->crash_z = src->crash_z; - - Vehicle::Status statusSrc = Vehicle::Status::MovingToEndOfStation; - if (src->status <= static_cast(Vehicle::Status::StoppedByBlockBrakes)) - { - statusSrc = static_cast(src->status); - } - - dst->status = statusSrc; - dst->sub_state = src->sub_state; - for (size_t i = 0; i < std::size(src->peep); i++) - { - dst->peep[i] = src->peep[i]; - dst->peep_tshirt_colours[i] = src->peep_tshirt_colours[i]; - } - dst->num_seats = src->num_seats; - dst->num_peeps = src->num_peeps; - dst->next_free_seat = src->next_free_seat; - dst->restraints_position = src->restraints_position; - dst->crash_x = src->crash_x; - dst->sound2_flags = src->sound2_flags; - dst->spin_sprite = src->spin_sprite; - dst->sound1_id = static_cast(src->sound1_id); - dst->sound1_volume = src->sound1_volume; - dst->sound2_id = static_cast(src->sound2_id); - dst->sound2_volume = src->sound2_volume; - dst->sound_vector_factor = src->sound_vector_factor; - dst->time_waiting = src->time_waiting; - dst->speed = src->speed; - dst->powered_acceleration = src->powered_acceleration; - dst->dodgems_collision_direction = src->dodgems_collision_direction; - dst->animation_frame = src->animation_frame; - dst->var_C8 = src->var_C8; - dst->var_CA = src->var_CA; - dst->scream_sound_id = static_cast(src->scream_sound_id); - dst->TrackSubposition = VehicleTrackSubposition{ src->TrackSubposition }; - dst->var_CE = src->var_CE; - dst->var_CF = src->var_CF; - dst->lost_time_out = src->lost_time_out; - dst->vertical_drop_countdown = src->vertical_drop_countdown; - dst->var_D3 = src->var_D3; - dst->mini_golf_current_animation = src->mini_golf_current_animation; - dst->mini_golf_flags = src->mini_golf_flags; - dst->ride_subtype = RCTEntryIndexToOpenRCT2EntryIndex(src->ride_subtype); - dst->colours_extended = src->colours_extended; - dst->seat_rotation = src->seat_rotation; - dst->target_seat_rotation = src->target_seat_rotation; - } - - void ImportSpritePeep(Peep* dst, const RCT2SpritePeep* src) - { - ImportSpriteCommonProperties(static_cast(dst), src); + ImportEntityCommonProperties(static_cast(dst), src); if (is_user_string_id(src->name_string_idx)) { dst->SetName(GetUserString(src->name_string_idx)); } dst->NextLoc = { src->next_x, src->next_y, src->next_z * COORDS_Z_STEP }; dst->NextFlags = src->next_flags; - dst->OutsideOfPark = static_cast(src->outside_of_park); dst->State = static_cast(src->state); dst->SubState = src->sub_state; dst->SpriteType = static_cast(src->sprite_type); - dst->AssignedPeepType = static_cast(src->peep_type); - dst->GuestNumRides = src->no_of_rides; dst->TshirtColour = src->tshirt_colour; dst->TrousersColour = src->trousers_colour; dst->DestinationX = src->destination_x; @@ -1487,27 +1362,8 @@ public: dst->Var37 = src->var_37; dst->Energy = src->energy; dst->EnergyTarget = src->energy_target; - dst->Happiness = src->happiness; - dst->HappinessTarget = src->happiness_target; - dst->Nausea = src->nausea; - dst->NauseaTarget = src->nausea_target; - dst->Hunger = src->hunger; - dst->Thirst = src->thirst; - dst->Toilet = src->toilet; dst->Mass = src->mass; - dst->TimeToConsume = src->time_to_consume; - dst->Intensity = static_cast(src->intensity); - dst->NauseaTolerance = static_cast(src->nausea_tolerance); dst->WindowInvalidateFlags = src->window_invalidate_flags; - dst->PaidOnDrink = src->paid_on_drink; - for (size_t i = 0; i < std::size(src->ride_types_been_on); i++) - { - dst->RideTypesBeenOn[i] = src->ride_types_been_on[i]; - } - dst->SetItemFlags(src->GetItemFlags()); - dst->Photo2RideRef = RCT12RideIdToOpenRCT2RideId(src->photo2_ride_ref); - dst->Photo3RideRef = RCT12RideIdToOpenRCT2RideId(src->photo3_ride_ref); - dst->Photo4RideRef = RCT12RideIdToOpenRCT2RideId(src->photo4_ride_ref); dst->CurrentRide = RCT12RideIdToOpenRCT2RideId(src->current_ride); dst->CurrentRideStation = src->current_ride_station; dst->CurrentTrain = src->current_train; @@ -1519,34 +1375,10 @@ public: dst->Action = static_cast(src->action); dst->ActionFrame = src->action_frame; dst->StepProgress = src->step_progress; - dst->GuestNextInQueue = src->next_in_queue; dst->PeepDirection = src->direction; dst->InteractionRideIndex = RCT12RideIdToOpenRCT2RideId(src->interaction_ride_index); - dst->TimeInQueue = src->time_in_queue; - for (size_t i = 0; i < std::size(src->rides_been_on); i++) - { - dst->RidesBeenOn[i] = src->rides_been_on[i]; - } dst->Id = src->id; - dst->CashInPocket = src->cash_in_pocket; - dst->CashSpent = src->cash_spent; - dst->ParkEntryTime = src->park_entry_time; - dst->RejoinQueueTimeout = src->rejoin_queue_timeout; - dst->PreviousRide = RCT12RideIdToOpenRCT2RideId(src->previous_ride); - dst->PreviousRideTimeOut = src->previous_ride_time_out; - for (size_t i = 0; i < std::size(src->thoughts); i++) - { - auto srcThought = &src->thoughts[i]; - auto dstThought = &dst->Thoughts[i]; - dstThought->type = static_cast(srcThought->type); - dstThought->item = srcThought->item; - dstThought->freshness = srcThought->freshness; - dstThought->fresh_timeout = srcThought->fresh_timeout; - } dst->PathCheckOptimisation = src->path_check_optimisation; - dst->GuestHeadingToRideId = RCT12RideIdToOpenRCT2RideId(src->guest_heading_to_ride_id); - dst->GuestIsLostCountdown = src->peep_is_lost_countdown; - dst->Photo1RideRef = RCT12RideIdToOpenRCT2RideId(src->photo1_ride_ref); dst->PeepFlags = src->peep_flags; dst->PathfindGoal = src->pathfind_goal; for (size_t i = 0; i < std::size(src->pathfind_history); i++) @@ -1554,136 +1386,76 @@ public: dst->PathfindHistory[i] = src->pathfind_history[i]; } dst->WalkingFrameNum = src->no_action_frame_num; - dst->LitterCount = src->litter_count; - dst->GuestTimeOnRide = src->time_on_ride; - dst->DisgustingCount = src->disgusting_count; - dst->PaidToEnter = src->paid_to_enter; - dst->PaidOnRides = src->paid_on_rides; - dst->PaidOnFood = src->paid_on_food; - dst->PaidOnSouvenirs = src->paid_on_souvenirs; - dst->AmountOfFood = src->no_of_food; - dst->AmountOfDrinks = src->no_of_drinks; - dst->AmountOfSouvenirs = src->no_of_souvenirs; - dst->VandalismSeen = src->vandalism_seen; - dst->VoucherType = src->voucher_type; - dst->VoucherRideId = RCT12RideIdToOpenRCT2RideId(src->voucher_arguments); - dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; - dst->Angriness = src->angriness; - dst->TimeLost = src->time_lost; - dst->DaysInQueue = src->days_in_queue; - dst->BalloonColour = src->balloon_colour; - dst->UmbrellaColour = src->umbrella_colour; - dst->HatColour = src->hat_colour; - dst->FavouriteRide = RCT12RideIdToOpenRCT2RideId(src->favourite_ride); - dst->FavouriteRideRating = src->favourite_ride_rating; } - void ImportSpriteMisc(MiscEntity* cdst, const RCT12SpriteBase* csrc) + constexpr EntityType GetEntityTypeFromRCT2Sprite(const RCT12SpriteBase* src) { - ImportSpriteCommonProperties(cdst, csrc); - cdst->SubType = MiscEntityType(csrc->type); - switch (cdst->SubType) + EntityType output = EntityType::Null; + switch (src->sprite_identifier) { - case MiscEntityType::SteamParticle: - { - auto src = static_cast(csrc); - auto dst = static_cast(cdst); - dst->time_to_move = src->time_to_move; - dst->frame = src->frame; + case RCT12SpriteIdentifier::Vehicle: + output = EntityType::Vehicle; break; - } - case MiscEntityType::MoneyEffect: - { - auto src = static_cast(csrc); - auto dst = static_cast(cdst); - dst->MoveDelay = src->move_delay; - dst->NumMovements = src->num_movements; - dst->Vertical = src->vertical; - dst->Value = src->value; - dst->OffsetX = src->offset_x; - dst->Wiggle = src->wiggle; + case RCT12SpriteIdentifier::Peep: + if (RCT12PeepType(static_cast(src)->peep_type) == RCT12PeepType::Guest) + { + output = EntityType::Guest; + } + else + { + output = EntityType::Staff; + } break; - } - case MiscEntityType::CrashedVehicleParticle: - { - auto src = static_cast(csrc); - auto dst = static_cast(cdst); - dst->frame = src->frame; - dst->time_to_live = src->time_to_live; - dst->frame = src->frame; - dst->colour[0] = src->colour[0]; - dst->colour[1] = src->colour[1]; - dst->crashed_sprite_base = src->crashed_sprite_base; - dst->velocity_x = src->velocity_x; - dst->velocity_y = src->velocity_y; - dst->velocity_z = src->velocity_z; - dst->acceleration_x = src->acceleration_x; - dst->acceleration_y = src->acceleration_y; - dst->acceleration_z = src->acceleration_z; + case RCT12SpriteIdentifier::Misc: + + switch (RCT12MiscEntityType(src->type)) + { + case RCT12MiscEntityType::SteamParticle: + output = EntityType::SteamParticle; + break; + case RCT12MiscEntityType::MoneyEffect: + output = EntityType::MoneyEffect; + break; + case RCT12MiscEntityType::CrashedVehicleParticle: + output = EntityType::CrashedVehicleParticle; + break; + case RCT12MiscEntityType::ExplosionCloud: + output = EntityType::ExplosionCloud; + break; + case RCT12MiscEntityType::CrashSplash: + output = EntityType::CrashSplash; + break; + case RCT12MiscEntityType::ExplosionFlare: + output = EntityType::ExplosionFlare; + break; + case RCT12MiscEntityType::JumpingFountainWater: + case RCT12MiscEntityType::JumpingFountainSnow: + output = EntityType::JumpingFountain; + break; + case RCT12MiscEntityType::Balloon: + output = EntityType::Balloon; + break; + case RCT12MiscEntityType::Duck: + output = EntityType::Duck; + break; + default: + break; + } break; - } - case MiscEntityType::ExplosionCloud: - case MiscEntityType::ExplosionFlare: - case MiscEntityType::CrashSplash: - { - auto src = static_cast(csrc); - auto dst = static_cast(cdst); - dst->frame = src->frame; + case RCT12SpriteIdentifier::Litter: + output = EntityType::Litter; break; - } - case MiscEntityType::JumpingFountainWater: - case MiscEntityType::JumpingFountainSnow: - { - auto* src = static_cast(csrc); - auto* dst = static_cast(cdst); - dst->NumTicksAlive = src->num_ticks_alive; - dst->frame = src->frame; - dst->FountainFlags = src->fountain_flags; - dst->TargetX = src->target_x; - dst->TargetY = src->target_y; - dst->Iteration = src->iteration; - break; - } - case MiscEntityType::Balloon: - { - auto src = static_cast(csrc); - auto dst = static_cast(cdst); - dst->popped = src->popped; - dst->time_to_move = src->time_to_move; - dst->frame = src->frame; - dst->colour = src->colour; - break; - } - case MiscEntityType::Duck: - { - auto src = static_cast(csrc); - auto dst = static_cast(cdst); - dst->frame = src->frame; - dst->target_x = src->target_x; - dst->target_y = src->target_y; - dst->state = static_cast(src->state); - break; - } default: - log_warning("Misc. sprite type %d can not be imported.", cdst->SubType); break; } + return output; } - void ImportSpriteLitter(Litter* dst, const RCT12SpriteLitter* src) + void ImportEntityCommonProperties(SpriteBase* dst, const RCT12SpriteBase* src) { - ImportSpriteCommonProperties(dst, src); - dst->SubType = LitterType(src->type); - dst->creationTick = src->creationTick; - } - - void ImportSpriteCommonProperties(SpriteBase* dst, const RCT12SpriteBase* src) - { - dst->sprite_identifier = src->sprite_identifier; - dst->linked_list_index = static_cast(EnumValue(src->linked_list_type_offset) >> 1); + dst->Type = GetEntityTypeFromRCT2Sprite(src); dst->sprite_height_negative = src->sprite_height_negative; dst->sprite_index = src->sprite_index; - dst->flags = src->flags; dst->x = src->x; dst->y = src->y; dst->z = src->z; @@ -1696,6 +1468,8 @@ public: dst->sprite_direction = src->sprite_direction; } + void ImportEntity(const RCT12SpriteBase& src); + std::string GetUserString(rct_string_id stringId) { const auto originalString = _s6.custom_strings[(stringId - USER_STRING_START) % 1024]; @@ -1729,6 +1503,368 @@ public: } }; +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + const auto& ride = _s6.rides[src->ride]; + + ImportEntityCommonProperties(dst, src); + dst->SubType = Vehicle::Type(src->type); + dst->Pitch = src->Pitch; + dst->bank_rotation = src->bank_rotation; + dst->remaining_distance = src->remaining_distance; + dst->velocity = src->velocity; + dst->acceleration = src->acceleration; + dst->ride = src->ride; + dst->vehicle_type = src->vehicle_type; + dst->colours = src->colours; + dst->track_progress = src->track_progress; + dst->TrackLocation = { src->track_x, src->track_y, src->track_z }; + if (src->boat_location.isNull() || static_cast(ride.mode) != RideMode::BoatHire + || src->status != static_cast(Vehicle::Status::TravellingBoat)) + { + dst->BoatLocation.setNull(); + dst->SetTrackDirection(src->GetTrackDirection()); + dst->SetTrackType(src->GetTrackType()); + // RotationControlToggle and Booster are saved as the same track piece ID + // Which one the vehicle is using must be determined + if (GetRideTypeDescriptor(ride.type).HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE)) + { + dst->SetTrackType(RCT12FlatTrackTypeToOpenRCT2(src->GetTrackType())); + } + else if (src->GetTrackType() == TrackElemType::RotationControlToggleAlias) + { + // Merging hacks mean the track type that's appropriate for the ride type is not necessarily the track type the + // ride is on. It's possible to create unwanted behavior if a user layers spinning control track on top of + // booster track but this is unlikely since only two rides have spinning control track - by default they load as + // booster + TileElement* tileElement2 = map_get_track_element_at_of_type_seq( + dst->TrackLocation, TrackElemType::RotationControlToggle, 0); + + if (tileElement2 != nullptr) + dst->SetTrackType(TrackElemType::RotationControlToggle); + } + } + else + { + dst->BoatLocation = TileCoordsXY{ src->boat_location.x, src->boat_location.y }.ToCoordsXY(); + dst->SetTrackDirection(0); + dst->SetTrackType(0); + } + + dst->next_vehicle_on_train = src->next_vehicle_on_train; + dst->prev_vehicle_on_ride = src->prev_vehicle_on_ride; + dst->next_vehicle_on_ride = src->next_vehicle_on_ride; + dst->var_44 = src->var_44; + dst->mass = src->mass; + dst->update_flags = src->update_flags; + dst->SwingSprite = src->SwingSprite; + dst->current_station = src->current_station; + dst->current_time = src->current_time; + dst->crash_z = src->crash_z; + + Vehicle::Status statusSrc = Vehicle::Status::MovingToEndOfStation; + if (src->status <= static_cast(Vehicle::Status::StoppedByBlockBrakes)) + { + statusSrc = static_cast(src->status); + } + + dst->status = statusSrc; + dst->sub_state = src->sub_state; + for (size_t i = 0; i < std::size(src->peep); i++) + { + dst->peep[i] = src->peep[i]; + dst->peep_tshirt_colours[i] = src->peep_tshirt_colours[i]; + } + dst->num_seats = src->num_seats; + dst->num_peeps = src->num_peeps; + dst->next_free_seat = src->next_free_seat; + dst->restraints_position = src->restraints_position; + dst->crash_x = src->crash_x; + dst->sound2_flags = src->sound2_flags; + dst->spin_sprite = src->spin_sprite; + dst->sound1_id = static_cast(src->sound1_id); + dst->sound1_volume = src->sound1_volume; + dst->sound2_id = static_cast(src->sound2_id); + dst->sound2_volume = src->sound2_volume; + dst->sound_vector_factor = src->sound_vector_factor; + dst->time_waiting = src->time_waiting; + dst->speed = src->speed; + dst->powered_acceleration = src->powered_acceleration; + dst->dodgems_collision_direction = src->dodgems_collision_direction; + dst->animation_frame = src->animation_frame; + dst->var_C8 = src->var_C8; + dst->var_CA = src->var_CA; + dst->scream_sound_id = static_cast(src->scream_sound_id); + dst->TrackSubposition = VehicleTrackSubposition{ src->TrackSubposition }; + dst->var_CE = src->var_CE; + dst->var_CF = src->var_CF; + dst->lost_time_out = src->lost_time_out; + dst->vertical_drop_countdown = src->vertical_drop_countdown; + dst->var_D3 = src->var_D3; + dst->mini_golf_current_animation = src->mini_golf_current_animation; + dst->mini_golf_flags = src->mini_golf_flags; + dst->ride_subtype = RCTEntryIndexToOpenRCT2EntryIndex(src->ride_subtype); + dst->colours_extended = src->colours_extended; + dst->seat_rotation = src->seat_rotation; + dst->target_seat_rotation = src->target_seat_rotation; + dst->IsCrashedVehicle = src->flags & RCT12_SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityPeep(dst, src); + + dst->OutsideOfPark = static_cast(src->outside_of_park); + dst->GuestNumRides = src->no_of_rides; + dst->Happiness = src->happiness; + dst->HappinessTarget = src->happiness_target; + dst->Nausea = src->nausea; + dst->NauseaTarget = src->nausea_target; + dst->Hunger = src->hunger; + dst->Thirst = src->thirst; + dst->Toilet = src->toilet; + dst->TimeToConsume = src->time_to_consume; + dst->Intensity = static_cast(src->intensity); + dst->NauseaTolerance = static_cast(src->nausea_tolerance); + dst->PaidOnDrink = src->paid_on_drink; + for (size_t i = 0; i < std::size(src->ride_types_been_on); i++) + { + dst->RideTypesBeenOn[i] = src->ride_types_been_on[i]; + } + dst->SetItemFlags(src->GetItemFlags()); + dst->Photo1RideRef = RCT12RideIdToOpenRCT2RideId(src->photo1_ride_ref); + dst->Photo2RideRef = RCT12RideIdToOpenRCT2RideId(src->photo2_ride_ref); + dst->Photo3RideRef = RCT12RideIdToOpenRCT2RideId(src->photo3_ride_ref); + dst->Photo4RideRef = RCT12RideIdToOpenRCT2RideId(src->photo4_ride_ref); + dst->GuestNextInQueue = src->next_in_queue; + dst->TimeInQueue = src->time_in_queue; + for (size_t i = 0; i < std::size(src->rides_been_on); i++) + { + dst->RidesBeenOn[i] = src->rides_been_on[i]; + } + dst->CashInPocket = src->cash_in_pocket; + dst->CashSpent = src->cash_spent; + dst->ParkEntryTime = src->park_entry_time; + dst->RejoinQueueTimeout = src->rejoin_queue_timeout; + dst->PreviousRide = RCT12RideIdToOpenRCT2RideId(src->previous_ride); + dst->PreviousRideTimeOut = src->previous_ride_time_out; + for (size_t i = 0; i < std::size(src->thoughts); i++) + { + auto srcThought = &src->thoughts[i]; + auto dstThought = &dst->Thoughts[i]; + dstThought->type = static_cast(srcThought->type); + dstThought->item = srcThought->item; + dstThought->freshness = srcThought->freshness; + dstThought->fresh_timeout = srcThought->fresh_timeout; + } + dst->GuestHeadingToRideId = RCT12RideIdToOpenRCT2RideId(src->guest_heading_to_ride_id); + dst->GuestIsLostCountdown = src->peep_is_lost_countdown; + dst->LitterCount = src->litter_count; + dst->GuestTimeOnRide = src->time_on_ride; + dst->DisgustingCount = src->disgusting_count; + dst->PaidToEnter = src->paid_to_enter; + dst->PaidOnRides = src->paid_on_rides; + dst->PaidOnFood = src->paid_on_food; + dst->PaidOnSouvenirs = src->paid_on_souvenirs; + dst->AmountOfFood = src->no_of_food; + dst->AmountOfDrinks = src->no_of_drinks; + dst->AmountOfSouvenirs = src->no_of_souvenirs; + dst->VandalismSeen = src->vandalism_seen; + dst->VoucherType = src->voucher_type; + dst->VoucherRideId = RCT12RideIdToOpenRCT2RideId(src->voucher_arguments); + dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; + dst->Angriness = src->angriness; + dst->TimeLost = src->time_lost; + dst->DaysInQueue = src->days_in_queue; + dst->BalloonColour = src->balloon_colour; + dst->UmbrellaColour = src->umbrella_colour; + dst->HatColour = src->hat_colour; + dst->FavouriteRide = RCT12RideIdToOpenRCT2RideId(src->favourite_ride); + dst->FavouriteRideRating = src->favourite_ride_rating; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityPeep(dst, src); + + dst->AssignedStaffType = StaffType(src->staff_type); + dst->MechanicTimeSinceCall = src->mechanic_time_since_call; + dst->HireDate = src->park_entry_time; + dst->StaffId = src->staff_id; + dst->StaffOrders = src->staff_orders; + dst->StaffMowingTimeout = src->staff_mowing_timeout; + dst->StaffLawnsMown = src->paid_to_enter; + dst->StaffGardensWatered = src->paid_on_rides; + dst->StaffLitterSwept = src->paid_on_food; + dst->StaffBinsEmptied = src->paid_on_souvenirs; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->time_to_move = src->time_to_move; + dst->frame = src->frame; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->MoveDelay = src->move_delay; + dst->NumMovements = src->num_movements; + dst->Vertical = src->vertical; + dst->Value = src->value; + dst->OffsetX = src->offset_x; + dst->Wiggle = src->wiggle; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; + dst->time_to_live = src->time_to_live; + dst->frame = src->frame; + dst->colour[0] = src->colour[0]; + dst->colour[1] = src->colour[1]; + dst->crashed_sprite_base = src->crashed_sprite_base; + dst->velocity_x = src->velocity_x; + dst->velocity_y = src->velocity_y; + dst->velocity_z = src->velocity_z; + dst->acceleration_x = src->acceleration_x; + dst->acceleration_y = src->acceleration_y; + dst->acceleration_z = src->acceleration_z; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->NumTicksAlive = src->num_ticks_alive; + dst->frame = src->frame; + dst->FountainFlags = src->fountain_flags; + dst->TargetX = src->target_x; + dst->TargetY = src->target_y; + dst->Iteration = src->iteration; + dst->FountainType = RCT12MiscEntityType(src->type) == RCT12MiscEntityType::JumpingFountainSnow ? JumpingFountainType::Snow + : JumpingFountainType::Water; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->popped = src->popped; + dst->time_to_move = src->time_to_move; + dst->frame = src->frame; + dst->colour = src->colour; +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->frame = src->frame; + dst->target_x = src->target_x; + dst->target_y = src->target_y; + dst->state = static_cast(src->state); +} + +template<> void S6Importer::ImportEntity(const RCT12SpriteBase& baseSrc) +{ + auto dst = CreateEntityAt(baseSrc.sprite_index); + auto src = static_cast(&baseSrc); + ImportEntityCommonProperties(dst, src); + dst->SubType = Litter::Type(src->type); + dst->creationTick = src->creationTick; +} + +void S6Importer::ImportEntity(const RCT12SpriteBase& src) +{ + switch (GetEntityTypeFromRCT2Sprite(&src)) + { + case EntityType::Vehicle: + ImportEntity(src); + break; + case EntityType::Guest: + ImportEntity(src); + break; + case EntityType::Staff: + ImportEntity(src); + break; + case EntityType::SteamParticle: + ImportEntity(src); + break; + case EntityType::MoneyEffect: + ImportEntity(src); + break; + case EntityType::CrashedVehicleParticle: + ImportEntity(src); + break; + case EntityType::ExplosionCloud: + ImportEntity(src); + break; + case EntityType::ExplosionFlare: + ImportEntity(src); + break; + case EntityType::CrashSplash: + ImportEntity(src); + break; + case EntityType::JumpingFountain: + ImportEntity(src); + break; + case EntityType::Balloon: + ImportEntity(src); + break; + case EntityType::Duck: + ImportEntity(src); + break; + case EntityType::Litter: + ImportEntity(src); + break; + default: + // Null elements do not need imported + break; + } +} + std::unique_ptr ParkImporter::CreateS6(IObjectRepository& objectRepository) { return std::make_unique(objectRepository); diff --git a/src/openrct2/ride/CableLift.cpp b/src/openrct2/ride/CableLift.cpp index 55c599b786..913f395a80 100644 --- a/src/openrct2/ride/CableLift.cpp +++ b/src/openrct2/ride/CableLift.cpp @@ -13,10 +13,10 @@ #include "../rct12/RCT12.h" #include "../util/Util.h" #include "../world/EntityList.h" -#include "../world/Sprite.h" #include "Ride.h" #include "RideData.h" #include "Track.h" +#include "Vehicle.h" #include "VehicleData.h" #include @@ -24,11 +24,9 @@ Vehicle* cable_lift_segment_create( Ride& ride, int32_t x, int32_t y, int32_t z, int32_t direction, uint16_t var_44, int32_t remaining_distance, bool head) { - Vehicle* current = &( - create_sprite(SpriteIdentifier::Vehicle, head ? EntityListId::TrainHead : EntityListId::Vehicle)->vehicle); - current->sprite_identifier = SpriteIdentifier::Vehicle; + Vehicle* current = CreateEntity(); current->ride = ride.id; - current->ride_subtype = RIDE_ENTRY_INDEX_NULL; + current->ride_subtype = OBJECT_ENTRY_INDEX_NULL; if (head) { ride.cable_lift = current->sprite_index; @@ -59,7 +57,7 @@ Vehicle* cable_lift_segment_create( current->var_C8 = 0; current->var_CA = 0; current->scream_sound_id = OpenRCT2::Audio::SoundId::Null; - current->vehicle_sprite_type = 0; + current->Pitch = 0; current->bank_rotation = 0; for (auto& peep : current->peep) { @@ -81,6 +79,7 @@ Vehicle* cable_lift_segment_create( current->num_peeps = 0; current->next_free_seat = 0; current->BoatLocation.setNull(); + current->IsCrashedVehicle = false; return current; } @@ -286,11 +285,11 @@ bool Vehicle::CableLiftUpdateTrackMotionForwards() sprite_direction = moveInfo->direction; bank_rotation = moveInfo->bank_rotation; - vehicle_sprite_type = moveInfo->vehicle_sprite_type; + Pitch = moveInfo->Pitch; if (remaining_distance >= 13962) { - acceleration += dword_9A2970[vehicle_sprite_type]; + acceleration += dword_9A2970[Pitch]; } } return true; @@ -352,11 +351,11 @@ bool Vehicle::CableLiftUpdateTrackMotionBackwards() sprite_direction = moveInfo->direction; bank_rotation = moveInfo->bank_rotation; - vehicle_sprite_type = moveInfo->vehicle_sprite_type; + Pitch = moveInfo->Pitch; if (remaining_distance < 0) { - acceleration += dword_9A2970[vehicle_sprite_type]; + acceleration += dword_9A2970[Pitch]; } } return true; @@ -387,7 +386,7 @@ int32_t Vehicle::CableLiftUpdateTrackMotion() for (Vehicle* vehicle = frontVehicle; vehicle != nullptr;) { - vehicle->acceleration = dword_9A2970[vehicle->vehicle_sprite_type]; + vehicle->acceleration = dword_9A2970[vehicle->Pitch]; _vehicleUnkF64E10 = 1; vehicle->remaining_distance += _vehicleVelocityF64E0C; @@ -411,7 +410,7 @@ int32_t Vehicle::CableLiftUpdateTrackMotion() _vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_5; _vehicleVelocityF64E0C -= vehicle->remaining_distance - 13962; vehicle->remaining_distance = 13962; - vehicle->acceleration += dword_9A2970[vehicle->vehicle_sprite_type]; + vehicle->acceleration += dword_9A2970[vehicle->Pitch]; _vehicleUnkF64E10++; continue; } @@ -427,7 +426,7 @@ int32_t Vehicle::CableLiftUpdateTrackMotion() _vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_5; _vehicleVelocityF64E0C -= vehicle->remaining_distance + 1; vehicle->remaining_distance = -1; - vehicle->acceleration += dword_9A2970[vehicle->vehicle_sprite_type]; + vehicle->acceleration += dword_9A2970[vehicle->Pitch]; _vehicleUnkF64E10++; } } diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index 6e6ac771d6..f2f9e31f12 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -63,6 +63,7 @@ #include "Track.h" #include "TrackData.h" #include "TrackDesign.h" +#include "TrainManager.h" #include "Vehicle.h" #include @@ -130,7 +131,7 @@ Direction gRideEntranceExitPlaceDirection; uint8_t gLastEntranceStyle; // Static function declarations -Peep* find_closest_mechanic(const CoordsXY& entrancePosition, int32_t forInspection); +Staff* find_closest_mechanic(const CoordsXY& entrancePosition, int32_t forInspection); static void ride_breakdown_status_update(Ride* ride); static void ride_breakdown_update(Ride* ride); static void ride_call_closest_mechanic(Ride* ride); @@ -181,7 +182,7 @@ ride_id_t GetNextFreeRideId() break; } } - if (result >= RIDE_ID_NULL) + if (result >= MAX_RIDES) { return RIDE_ID_NULL; } @@ -308,12 +309,12 @@ int32_t Ride::GetMaxQueueTime() const return static_cast(queueTime); } -Peep* Ride::GetQueueHeadGuest(StationIndex stationIndex) const +Guest* Ride::GetQueueHeadGuest(StationIndex stationIndex) const { - Peep* peep; - Peep* result = nullptr; + Guest* peep; + Guest* result = nullptr; uint16_t spriteIndex = stations[stationIndex].LastPeepInQueue; - while ((peep = try_get_guest(spriteIndex)) != nullptr) + while ((peep = TryGetEntity(spriteIndex)) != nullptr) { spriteIndex = peep->GuestNextInQueue; result = peep; @@ -324,9 +325,9 @@ Peep* Ride::GetQueueHeadGuest(StationIndex stationIndex) const void Ride::UpdateQueueLength(StationIndex stationIndex) { uint16_t count = 0; - Peep* peep; + Guest* peep; uint16_t spriteIndex = stations[stationIndex].LastPeepInQueue; - while ((peep = try_get_guest(spriteIndex)) != nullptr) + while ((peep = TryGetEntity(spriteIndex)) != nullptr) { spriteIndex = peep->GuestNextInQueue; count++; @@ -334,13 +335,13 @@ void Ride::UpdateQueueLength(StationIndex stationIndex) stations[stationIndex].QueueLength = count; } -void Ride::QueueInsertGuestAtFront(StationIndex stationIndex, Peep* peep) +void Ride::QueueInsertGuestAtFront(StationIndex stationIndex, Guest* peep) { assert(stationIndex < MAX_STATIONS); assert(peep != nullptr); peep->GuestNextInQueue = SPRITE_INDEX_NULL; - Peep* queueHeadGuest = GetQueueHeadGuest(peep->CurrentRideStation); + auto* queueHeadGuest = GetQueueHeadGuest(peep->CurrentRideStation); if (queueHeadGuest == nullptr) { stations[peep->CurrentRideStation].LastPeepInQueue = peep->sprite_index; @@ -361,7 +362,7 @@ void ride_update_favourited_stat() for (auto& ride : GetRideManager()) ride.guests_favourite = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->FavouriteRide != RIDE_ID_NULL) { @@ -806,7 +807,7 @@ void Ride::FormatStatusTo(Formatter& ft) const { ft.Add(STR_BROKEN_DOWN); } - else if (status == RIDE_STATUS_CLOSED) + else if (status == RideStatus::Closed) { if (!GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP)) { @@ -825,11 +826,11 @@ void Ride::FormatStatusTo(Formatter& ft) const ft.Add(STR_CLOSED); } } - else if (status == RIDE_STATUS_SIMULATING) + else if (status == RideStatus::Simulating) { ft.Add(STR_SIMULATING); } - else if (status == RIDE_STATUS_TESTING) + else if (status == RideStatus::Testing) { ft.Add(STR_TEST_RUN); } @@ -837,7 +838,7 @@ void Ride::FormatStatusTo(Formatter& ft) const mode == RideMode::Race && !(lifecycle_flags & RIDE_LIFECYCLE_PASS_STATION_NO_STOPPING) && race_winner != SPRITE_INDEX_NULL) { - auto peep = GetEntity(race_winner); + auto peep = GetEntity(race_winner); if (peep != nullptr) { ft.Add(STR_RACE_WON_BY); @@ -895,22 +896,24 @@ bool Ride::CanHaveMultipleCircuits() const return true; } -bool Ride::SupportsStatus(int32_t s) const +bool Ride::SupportsStatus(RideStatus s) const { const auto& rtd = GetRideTypeDescriptor(); switch (s) { - case RIDE_STATUS_CLOSED: - case RIDE_STATUS_OPEN: + case RideStatus::Closed: + case RideStatus::Open: return true; - case RIDE_STATUS_SIMULATING: + case RideStatus::Simulating: return (!rtd.HasFlag(RIDE_TYPE_FLAG_NO_TEST_MODE) && rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)); - case RIDE_STATUS_TESTING: + case RideStatus::Testing: return !rtd.HasFlag(RIDE_TYPE_FLAG_NO_TEST_MODE); - default: + case RideStatus::Count: // Meaningless but necessary to satisfy -Wswitch return false; } + // Unreachable + return false; } #pragma region Initialisation functions @@ -958,7 +961,7 @@ static int32_t ride_check_if_construction_allowed(Ride* ride) return 0; } - if (ride->status != RIDE_STATUS_CLOSED && ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Closed && ride->status != RideStatus::Simulating) { ft.Increment(6); ride->FormatNameTo(ft); @@ -1115,7 +1118,7 @@ void ride_remove_peeps(Ride* ride) } // Place all the guests at exit - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->State == PeepState::QueuingFront || peep->State == PeepState::EnteringRide || peep->State == PeepState::LeavingRide || peep->State == PeepState::OnRide) @@ -1150,7 +1153,7 @@ void ride_remove_peeps(Ride* ride) } } // Place all the staff at exit - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->State == PeepState::Fixing || peep->State == PeepState::Inspecting) { @@ -1839,9 +1842,9 @@ bool ride_modify(CoordsXYE* input) } // Stop the ride again to clear all vehicles and peeps (compatible with network games) - if (ride->status != RIDE_STATUS_SIMULATING) + if (ride->status != RideStatus::Simulating) { - ride_set_status(ride, RIDE_STATUS_CLOSED); + ride_set_status(ride, RideStatus::Closed); } // Check if element is a station entrance or exit @@ -2083,18 +2086,18 @@ void Ride::Update() ride_inspection_update(this); // If ride is simulating but crashed, reset the vehicles - if (status == RIDE_STATUS_SIMULATING && (lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) + if (status == RideStatus::Simulating && (lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) { if (mode == RideMode::ContinuousCircuitBlockSectioned || mode == RideMode::PoweredLaunchBlockSectioned) { // We require this to execute right away during the simulation, always ignore network and queue. - RideSetStatusAction gameAction = RideSetStatusAction(id, RIDE_STATUS_CLOSED); + RideSetStatusAction gameAction = RideSetStatusAction(id, RideStatus::Closed); GameActions::ExecuteNested(&gameAction); } else { // We require this to execute right away during the simulation, always ignore network and queue. - RideSetStatusAction gameAction = RideSetStatusAction(id, RIDE_STATUS_SIMULATING); + RideSetStatusAction gameAction = RideSetStatusAction(id, RideStatus::Simulating); GameActions::ExecuteNested(&gameAction); } } @@ -2353,7 +2356,7 @@ static void ride_breakdown_update(Ride* ride) if (ride->lifecycle_flags & (RIDE_LIFECYCLE_BREAKDOWN_PENDING | RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED)) return; - if (ride->status == RIDE_STATUS_CLOSED || ride->status == RIDE_STATUS_SIMULATING) + if (ride->status == RideStatus::Closed || ride->status == RideStatus::Simulating) return; if (!ride->CanBreakDown()) @@ -2697,7 +2700,7 @@ static void ride_call_closest_mechanic(Ride* ride) ride_call_mechanic(ride, mechanic, forInspection); } -Peep* ride_find_closest_mechanic(Ride* ride, int32_t forInspection) +Staff* ride_find_closest_mechanic(Ride* ride, int32_t forInspection) { // Get either exit position or entrance position if there is no exit auto stationIndex = ride->inspection_station; @@ -2726,12 +2729,12 @@ Peep* ride_find_closest_mechanic(Ride* ride, int32_t forInspection) * rct2: 0x006B774B (forInspection = 0) * rct2: 0x006B78C3 (forInspection = 1) */ -Peep* find_closest_mechanic(const CoordsXY& entrancePosition, int32_t forInspection) +Staff* find_closest_mechanic(const CoordsXY& entrancePosition, int32_t forInspection) { - Peep* closestMechanic = nullptr; + Staff* closestMechanic = nullptr; uint32_t closestDistance = std::numeric_limits::max(); - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (!peep->IsMechanic()) continue; @@ -2815,7 +2818,7 @@ static void ride_music_update(Ride* ride) return; } - if (ride->status != RIDE_STATUS_OPEN || !(ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC)) + if (ride->status != RideStatus::Open || !(ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC)) { ride->music_tune_id = 255; return; @@ -2979,7 +2982,7 @@ void ride_measurements_update() for (auto& ride : GetRideManager()) { auto measurement = ride.measurement.get(); - if (measurement != nullptr && (ride.lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK) && ride.status != RIDE_STATUS_SIMULATING) + if (measurement != nullptr && (ride.lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK) && ride.status != RideStatus::Simulating) { if (measurement->flags & RIDE_MEASUREMENT_FLAG_RUNNING) { @@ -3094,7 +3097,7 @@ vehicle_colour ride_get_vehicle_colour(Ride* ride, int32_t vehicleIndex) vehicle_colour result; // Prevent indexing array out of bounds - vehicleIndex = std::min(vehicleIndex, MAX_CARS_PER_TRAIN); + vehicleIndex = std::min(vehicleIndex, MAX_CARS_PER_TRAIN); result.main = ride->vehicle_colours[vehicleIndex].Body; result.additional_1 = ride->vehicle_colours[vehicleIndex].Trim; @@ -3193,7 +3196,7 @@ void ride_check_all_reachable() { if (ride.connected_message_throttle != 0) ride.connected_message_throttle--; - if (ride.status != RIDE_STATUS_OPEN || ride.connected_message_throttle != 0) + if (ride.status != RideStatus::Open || ride.connected_message_throttle != 0) continue; if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP)) @@ -4049,7 +4052,7 @@ static void ride_set_start_finish_points(ride_id_t rideIndex, CoordsXYE* startEl */ static int32_t count_free_misc_sprite_slots() { - int32_t miscSpriteCount = GetEntityListCount(EntityListId::Misc); + int32_t miscSpriteCount = GetMiscEntityCount(); int32_t remainingSpriteCount = GetNumFreeEntities(); return std::max(0, miscSpriteCount + remainingSpriteCount - 300); } @@ -4083,6 +4086,9 @@ static Vehicle* vehicle_create_car( ride_id_t rideIndex, int32_t vehicleEntryIndex, int32_t carIndex, int32_t vehicleIndex, const CoordsXYZ& carPosition, int32_t* remainingDistance, TrackElement* trackElement) { + if (trackElement == nullptr) + return nullptr; + auto ride = get_ride(rideIndex); if (ride == nullptr) return nullptr; @@ -4092,12 +4098,10 @@ static Vehicle* vehicle_create_car( return nullptr; auto vehicleEntry = &rideEntry->vehicles[vehicleEntryIndex]; - auto vehicle = &create_sprite(SpriteIdentifier::Vehicle, carIndex == 0 ? EntityListId::TrainHead : EntityListId::Vehicle) - ->vehicle; + auto vehicle = CreateEntity(); if (vehicle == nullptr) return nullptr; - vehicle->sprite_identifier = SpriteIdentifier::Vehicle; vehicle->ride = rideIndex; vehicle->ride_subtype = ride->subtype; @@ -4136,7 +4140,7 @@ static Vehicle* vehicle_create_car( vehicle->animation_frame = 0; vehicle->var_C8 = 0; vehicle->scream_sound_id = OpenRCT2::Audio::SoundId::Null; - vehicle->vehicle_sprite_type = 0; + vehicle->Pitch = 0; vehicle->bank_rotation = 0; vehicle->target_seat_rotation = 4; vehicle->seat_rotation = 4; @@ -4197,14 +4201,14 @@ static Vehicle* vehicle_create_car( vehicle->mini_golf_current_animation = 0; vehicle->mini_golf_flags = 0; } - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_4) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_REVERSER_BOGIE) { if (vehicle->IsHead()) { subposition = VehicleTrackSubposition::ReverserRCFrontBogie; } } - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_5) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_REVERSER_PASSENGER_CAR) { subposition = VehicleTrackSubposition::ReverserRCRearBogie; } @@ -4268,6 +4272,7 @@ static Vehicle* vehicle_create_car( vehicle->num_peeps = 0; vehicle->next_free_seat = 0; vehicle->BoatLocation.setNull(); + vehicle->IsCrashedVehicle = false; return vehicle; } @@ -4428,7 +4433,7 @@ static void ride_create_vehicles_find_first_block(Ride* ride, CoordsXYE* outXYEl bool Ride::CreateVehicles(const CoordsXYE& element, bool isApplying) { UpdateMaxVehicles(); - if (subtype == RIDE_ENTRY_INDEX_NULL) + if (subtype == OBJECT_ENTRY_INDEX_NULL) { return true; } @@ -4827,7 +4832,7 @@ TrackElement* Ride::GetOriginElement(StationIndex stationIndex) const return nullptr; } -bool Ride::Test(int32_t newStatus, bool isApplying) +bool Ride::Test(RideStatus newStatus, bool isApplying) { CoordsXYE trackElement, problematicTrackElement = {}; @@ -4837,7 +4842,7 @@ bool Ride::Test(int32_t newStatus, bool isApplying) return false; } - if (newStatus != RIDE_STATUS_SIMULATING) + if (newStatus != RideStatus::Simulating) { window_close_by_number(WC_RIDE_CONSTRUCTION, id); } @@ -4849,7 +4854,7 @@ bool Ride::Test(int32_t newStatus, bool isApplying) if (!ride_mode_check_valid_station_numbers(this)) return false; - if (newStatus != RIDE_STATUS_SIMULATING && !ride_check_for_entrance_exit(id)) + if (newStatus != RideStatus::Simulating && !ride_check_for_entrance_exit(id)) { ConstructMissingEntranceOrExit(); return false; @@ -4870,7 +4875,7 @@ bool Ride::Test(int32_t newStatus, bool isApplying) if (mode == RideMode::ContinuousCircuit || IsBlockSectioned()) { if (ride_find_track_gap(this, &trackElement, &problematicTrackElement) - && (newStatus != RIDE_STATUS_SIMULATING || IsBlockSectioned())) + && (newStatus != RideStatus::Simulating || IsBlockSectioned())) { gGameCommandErrorText = STR_TRACK_IS_NOT_A_COMPLETE_CIRCUIT; ride_scroll_to_track_error(&problematicTrackElement); @@ -4887,7 +4892,7 @@ bool Ride::Test(int32_t newStatus, bool isApplying) } } - if (subtype != RIDE_ENTRY_INDEX_NULL && !gCheatsEnableAllDrawableTrackPieces) + if (subtype != OBJECT_ENTRY_INDEX_NULL && !gCheatsEnableAllDrawableTrackPieces) { rct_ride_entry* rideType = get_ride_entry(subtype); if (rideType->flags & RIDE_ENTRY_FLAG_NO_INVERSIONS) @@ -5020,7 +5025,7 @@ bool Ride::Open(bool isApplying) } } - if (subtype != RIDE_ENTRY_INDEX_NULL && !gCheatsEnableAllDrawableTrackPieces) + if (subtype != OBJECT_ENTRY_INDEX_NULL && !gCheatsEnableAllDrawableTrackPieces) { rct_ride_entry* rideEntry = get_ride_entry(subtype); if (rideEntry->flags & RIDE_ENTRY_FLAG_NO_INVERSIONS) @@ -5196,7 +5201,7 @@ int32_t ride_get_refund_price(const Ride* ride) */ void Ride::StopGuestsQueuing() { - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (peep->State != PeepState::Queuing) continue; @@ -5702,7 +5707,7 @@ void set_vehicle_type_image_max_sizes(rct_ride_entry_vehicle* vehicle_type, int3 // Moved from object paint - if (vehicle_type->flags & VEHICLE_ENTRY_FLAG_13) + if (vehicle_type->flags & VEHICLE_ENTRY_FLAG_SPRITE_BOUNDS_INCLUDE_INVERTED_SET) { bl += 16; } @@ -6342,7 +6347,7 @@ static int32_t ride_get_track_length(Ride* ride) */ void Ride::UpdateMaxVehicles() { - if (subtype == RIDE_ENTRY_INDEX_NULL) + if (subtype == OBJECT_ENTRY_INDEX_NULL) return; rct_ride_entry* rideEntry = get_ride_entry(subtype); @@ -6399,7 +6404,7 @@ void Ride::UpdateMaxVehicles() { case RideMode::ContinuousCircuitBlockSectioned: case RideMode::PoweredLaunchBlockSectioned: - maxNumTrains = std::clamp(num_stations + num_block_brakes - 1, 1, 31); + maxNumTrains = std::clamp(num_stations + num_block_brakes - 1, 1, MAX_VEHICLES_PER_RIDE); break; case RideMode::ReverseInclineLaunchedShuttle: case RideMode::PoweredLaunchPasstrough: @@ -6431,7 +6436,7 @@ void Ride::UpdateMaxVehicles() if ((mode != RideMode::StationToStation && mode != RideMode::ContinuousCircuit) || !(GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_ALLOW_MORE_VEHICLES_THAN_STATION_FITS))) { - maxNumTrains = std::min(maxNumTrains, 31); + maxNumTrains = std::min(maxNumTrains, int32_t(MAX_VEHICLES_PER_RIDE)); } else { @@ -6460,7 +6465,7 @@ void Ride::UpdateMaxVehicles() { maxNumTrains++; length += totalSpacing; - } while (maxNumTrains < 31 && length < trackLength); + } while (maxNumTrains < MAX_VEHICLES_PER_RIDE && length < trackLength); } break; } @@ -6479,7 +6484,7 @@ void Ride::UpdateMaxVehicles() if (gCheatsDisableTrainLengthLimit) { - maxNumTrains = 31; + maxNumTrains = MAX_VEHICLES_PER_RIDE; } numVehicles = std::min(proposed_num_vehicles, static_cast(maxNumTrains)); @@ -6668,6 +6673,8 @@ void sub_6CB945(Ride* ride) { if (tileElement->GetType() != TILE_ELEMENT_TYPE_ENTRANCE) continue; + if (tileElement->base_height != locationCoords.z) + continue; if (tileElement->AsEntrance()->GetRideIndex() != ride->id) continue; if (tileElement->AsEntrance()->GetEntranceType() > ENTRANCE_TYPE_RIDE_EXIT) @@ -7075,7 +7082,7 @@ int32_t ride_get_entry_index(int32_t rideType, int32_t rideSubType) { int32_t subType = rideSubType; - if (subType == RIDE_ENTRY_INDEX_NULL) + if (subType == OBJECT_ENTRY_INDEX_NULL) { auto& objManager = GetContext()->GetObjectManager(); auto& rideEntries = objManager.GetAllRideEntries(rideType); @@ -7087,7 +7094,7 @@ int32_t ride_get_entry_index(int32_t rideType, int32_t rideSubType) auto rideEntry = get_ride_entry(rideEntryIndex); if (rideEntry == nullptr) { - return RIDE_ENTRY_INDEX_NULL; + return OBJECT_ENTRY_INDEX_NULL; } // Can happen in select-by-track-type mode @@ -7345,3 +7352,17 @@ void Ride::SetMaxCarsPerTrain(uint8_t newValue) min_max_cars_per_train &= ~0x0F; min_max_cars_per_train |= newValue & 0x0F; } + +uint8_t Ride::GetNumShelteredSections() const +{ + return num_sheltered_sections & ShelteredSectionsBits::NumShelteredSectionsMask; +} + +void Ride::IncreaseNumShelteredSections() +{ + auto newNumShelteredSections = GetNumShelteredSections(); + if (newNumShelteredSections != 0x1F) + newNumShelteredSections++; + num_sheltered_sections &= ~ShelteredSectionsBits::NumShelteredSectionsMask; + num_sheltered_sections |= newNumShelteredSections; +} diff --git a/src/openrct2/ride/Ride.h b/src/openrct2/ride/Ride.h index 7796e48d65..521192e014 100644 --- a/src/openrct2/ride/Ride.h +++ b/src/openrct2/ride/Ride.h @@ -26,9 +26,9 @@ struct IObjectManager; class Formatter; class StationObject; -struct Peep; struct Ride; struct RideTypeDescriptor; +struct Guest; struct Staff; struct Vehicle; @@ -36,12 +36,14 @@ struct Vehicle; // The max number of different types of vehicle. // Examples of vehicles here are the locomotive, tender and carriage of the Miniature Railway. #define MAX_VEHICLES_PER_RIDE_ENTRY 4 -#define MAX_VEHICLES_PER_RIDE 31 +constexpr const uint8_t MAX_VEHICLES_PER_RIDE = 31; +constexpr const uint8_t MAX_CIRCUITS_PER_RIDE = 20; +constexpr const uint8_t MAX_CARS_PER_TRAIN = 255; +constexpr const uint8_t MAX_VEHICLE_COLOURS = std::max(MAX_CARS_PER_TRAIN, MAX_VEHICLES_PER_RIDE); #define NUM_COLOUR_SCHEMES 4 #define MAX_CATEGORIES_PER_RIDE 2 #define DOWNTIME_HISTORY_SIZE 8 #define CUSTOMER_HISTORY_SIZE 10 -#define MAX_CARS_PER_TRAIN 255 #define MAX_STATIONS 4 #define MAX_RIDES 255 #define RIDE_TYPE_NULL 255 @@ -54,8 +56,6 @@ constexpr uint16_t const MAX_HELICES = RCT12_MAX_HELICES; constexpr uint16_t const MAZE_CLEARANCE_HEIGHT = 4 * COORDS_Z_STEP; -constexpr const ObjectEntryIndex RIDE_ENTRY_INDEX_NULL = OBJECT_ENTRY_INDEX_NULL; - constexpr const uint8_t NUM_SHOP_ITEMS_PER_RIDE = 2; #pragma pack(push, 1) @@ -192,8 +192,16 @@ enum class RideClassification KioskOrFacility }; +namespace ShelteredSectionsBits +{ + constexpr const uint8_t NumShelteredSectionsMask = 0b00011111; + constexpr const uint8_t RotatingWhileSheltered = 0b00100000; + constexpr const uint8_t BankingWhileSheltered = 0b01000000; +}; // namespace ShelteredSectionsBits + struct TrackDesign; enum class RideMode : uint8_t; +enum class RideStatus : uint8_t; /** * Ride structure. @@ -210,9 +218,9 @@ struct Ride ObjectEntryIndex subtype; RideMode mode; uint8_t colour_scheme_type; - VehicleColour vehicle_colours[MAX_CARS_PER_TRAIN]; + VehicleColour vehicle_colours[MAX_VEHICLE_COLOURS]; // 0 = closed, 1 = open, 2 = test - uint8_t status; + RideStatus status; std::string custom_name; uint16_t default_name_number; CoordsXY overall_view; @@ -414,12 +422,12 @@ public: bool IsPoweredLaunched() const; bool IsBlockSectioned() const; bool CanHaveMultipleCircuits() const; - bool SupportsStatus(int32_t s) const; + bool SupportsStatus(RideStatus s) const; void StopGuestsQueuing(); bool Open(bool isApplying); - bool Test(int32_t newStatus, bool isApplying); + bool Test(RideStatus newStatus, bool isApplying); RideMode GetDefaultMode() const; @@ -432,8 +440,8 @@ public: int32_t GetTotalQueueLength() const; int32_t GetMaxQueueTime() const; - void QueueInsertGuestAtFront(StationIndex stationIndex, Peep* peep); - Peep* GetQueueHeadGuest(StationIndex stationIndex) const; + void QueueInsertGuestAtFront(StationIndex stationIndex, Guest* peep); + Guest* GetQueueHeadGuest(StationIndex stationIndex) const; void SetNameToDefault(); std::string GetName() const; @@ -455,6 +463,9 @@ public: uint8_t GetMaxCarsPerTrain() const; void SetMinCarsPerTrain(uint8_t newValue); void SetMaxCarsPerTrain(uint8_t newValue); + + uint8_t GetNumShelteredSections() const; + void IncreaseNumShelteredSections(); }; #pragma pack(push, 1) @@ -654,13 +665,13 @@ enum RIDE_TYPE_COUNT }; -enum +enum class RideStatus : uint8_t { - RIDE_STATUS_CLOSED, - RIDE_STATUS_OPEN, - RIDE_STATUS_TESTING, - RIDE_STATUS_SIMULATING, - RIDE_STATUS_COUNT, + Closed, + Open, + Testing, + Simulating, + Count, }; enum class RideMode : uint8_t @@ -1132,7 +1143,7 @@ int32_t ride_get_unused_preset_vehicle_colour(ObjectEntryIndex subType); void ride_set_vehicle_colours_to_random_preset(Ride* ride, uint8_t preset_index); void ride_measurements_update(); void ride_breakdown_add_news_item(Ride* ride); -Peep* ride_find_closest_mechanic(Ride* ride, int32_t forInspection); +Staff* ride_find_closest_mechanic(Ride* ride, int32_t forInspection); int32_t ride_initialise_construction_window(Ride* ride); void ride_construction_invalidate_current_track(); std::optional sub_6C683D( @@ -1141,7 +1152,7 @@ void ride_set_map_tooltip(TileElement* tileElement); void ride_prepare_breakdown(Ride* ride, int32_t breakdownReason); TileElement* ride_get_station_start_track_element(Ride* ride, StationIndex stationIndex); TileElement* ride_get_station_exit_element(const CoordsXYZ& elementPos); -void ride_set_status(Ride* ride, int32_t status); +void ride_set_status(Ride* ride, RideStatus status); void ride_set_name(Ride* ride, const char* name, uint32_t flags); int32_t ride_get_refund_price(const Ride* ride); int32_t ride_get_random_colour_preset_index(uint8_t ride_type); diff --git a/src/openrct2/ride/RideData.h b/src/openrct2/ride/RideData.h index 83a56c06b4..a55effda55 100644 --- a/src/openrct2/ride/RideData.h +++ b/src/openrct2/ride/RideData.h @@ -32,7 +32,8 @@ enum class ResearchCategory : uint8_t; -using ride_ratings_calculation = void (*)(Ride* ride); +using ride_ratings_calculation = void (*)(Ride* ride, RideRatingUpdateState& state); + struct RideComponentName { rct_string_id singular; diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index ba486eb147..58265bbbb9 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -76,19 +76,19 @@ struct ShelteredEights uint8_t TotalShelteredEighths; }; -RideRatingCalculationData gRideRatingsCalcData; +RideRatingUpdateState gRideRatingUpdateState; -static void ride_ratings_update_state(); -static void ride_ratings_update_state_0(); -static void ride_ratings_update_state_1(); -static void ride_ratings_update_state_2(); -static void ride_ratings_update_state_3(); -static void ride_ratings_update_state_4(); -static void ride_ratings_update_state_5(); -static void ride_ratings_begin_proximity_loop(); -static void ride_ratings_calculate(Ride* ride); +static void ride_ratings_update_state(RideRatingUpdateState& state); +static void ride_ratings_update_state_0(RideRatingUpdateState& state); +static void ride_ratings_update_state_1(RideRatingUpdateState& state); +static void ride_ratings_update_state_2(RideRatingUpdateState& state); +static void ride_ratings_update_state_3(RideRatingUpdateState& state); +static void ride_ratings_update_state_4(RideRatingUpdateState& state); +static void ride_ratings_update_state_5(RideRatingUpdateState& state); +static void ride_ratings_begin_proximity_loop(RideRatingUpdateState& state); +static void ride_ratings_calculate(RideRatingUpdateState& state, Ride* ride); static void ride_ratings_calculate_value(Ride* ride); -static void ride_ratings_score_close_proximity(TileElement* inputTileElement); +static void ride_ratings_score_close_proximity(RideRatingUpdateState& state, TileElement* inputTileElement); static void ride_ratings_add(RatingTuple* rating, int32_t excitement, int32_t intensity, int32_t nausea); @@ -100,13 +100,14 @@ static void ride_ratings_add(RatingTuple* rating, int32_t excitement, int32_t in */ void ride_ratings_update_ride(const Ride& ride) { - if (ride.status != RIDE_STATUS_CLOSED) + RideRatingUpdateState state; + if (ride.status != RideStatus::Closed) { - gRideRatingsCalcData.CurrentRide = ride.id; - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_INITIALISE; - while (gRideRatingsCalcData.State != RIDE_RATINGS_STATE_FIND_NEXT_RIDE) + state.CurrentRide = ride.id; + state.State = RIDE_RATINGS_STATE_INITIALISE; + while (state.State != RIDE_RATINGS_STATE_FIND_NEXT_RIDE) { - ride_ratings_update_state(); + ride_ratings_update_state(state); } } } @@ -120,30 +121,32 @@ void ride_ratings_update_all() if (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) return; - ride_ratings_update_state(); + // NOTE: Until the new save format only one ride can be updated at once. + // The SV6 format can store only a single state. + ride_ratings_update_state(gRideRatingUpdateState); } -static void ride_ratings_update_state() +static void ride_ratings_update_state(RideRatingUpdateState& state) { - switch (gRideRatingsCalcData.State) + switch (state.State) { case RIDE_RATINGS_STATE_FIND_NEXT_RIDE: - ride_ratings_update_state_0(); + ride_ratings_update_state_0(state); break; case RIDE_RATINGS_STATE_INITIALISE: - ride_ratings_update_state_1(); + ride_ratings_update_state_1(state); break; case RIDE_RATINGS_STATE_2: - ride_ratings_update_state_2(); + ride_ratings_update_state_2(state); break; case RIDE_RATINGS_STATE_CALCULATE: - ride_ratings_update_state_3(); + ride_ratings_update_state_3(state); break; case RIDE_RATINGS_STATE_4: - ride_ratings_update_state_4(); + ride_ratings_update_state_4(state); break; case RIDE_RATINGS_STATE_5: - ride_ratings_update_state_5(); + ride_ratings_update_state_5(state); break; } } @@ -152,63 +155,63 @@ static void ride_ratings_update_state() * * rct2: 0x006B5A5C */ -static void ride_ratings_update_state_0() +static void ride_ratings_update_state_0(RideRatingUpdateState& state) { - int32_t currentRide = gRideRatingsCalcData.CurrentRide; + ride_id_t currentRide = state.CurrentRide; currentRide++; - if (currentRide == RIDE_ID_NULL) + if (currentRide >= MAX_RIDES) { currentRide = 0; } auto ride = get_ride(currentRide); - if (ride != nullptr && ride->status != RIDE_STATUS_CLOSED) + if (ride != nullptr && ride->status != RideStatus::Closed) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_INITIALISE; + state.State = RIDE_RATINGS_STATE_INITIALISE; } - gRideRatingsCalcData.CurrentRide = currentRide; + state.CurrentRide = currentRide; } /** * * rct2: 0x006B5A94 */ -static void ride_ratings_update_state_1() +static void ride_ratings_update_state_1(RideRatingUpdateState& state) { - gRideRatingsCalcData.ProximityTotal = 0; + state.ProximityTotal = 0; for (int32_t i = 0; i < PROXIMITY_COUNT; i++) { - gRideRatingsCalcData.ProximityScores[i] = 0; + state.ProximityScores[i] = 0; } - gRideRatingsCalcData.AmountOfBrakes = 0; - gRideRatingsCalcData.AmountOfReversers = 0; - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_2; - gRideRatingsCalcData.StationFlags = 0; - ride_ratings_begin_proximity_loop(); + state.AmountOfBrakes = 0; + state.AmountOfReversers = 0; + state.State = RIDE_RATINGS_STATE_2; + state.StationFlags = 0; + ride_ratings_begin_proximity_loop(state); } /** * * rct2: 0x006B5C66 */ -static void ride_ratings_update_state_2() +static void ride_ratings_update_state_2(RideRatingUpdateState& state) { - const ride_id_t rideIndex = gRideRatingsCalcData.CurrentRide; + const ride_id_t rideIndex = state.CurrentRide; auto ride = get_ride(rideIndex); - if (ride == nullptr || ride->status == RIDE_STATUS_CLOSED || ride->type >= RIDE_TYPE_COUNT) + if (ride == nullptr || ride->status == RideStatus::Closed || ride->type >= RIDE_TYPE_COUNT) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; return; } - auto loc = gRideRatingsCalcData.Proximity; - track_type_t trackType = gRideRatingsCalcData.ProximityTrackType; + auto loc = state.Proximity; + track_type_t trackType = state.ProximityTrackType; TileElement* tileElement = map_get_first_element_at(loc); if (tileElement == nullptr) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; return; } do @@ -233,89 +236,89 @@ static void ride_ratings_update_state_2() if (trackType == TrackElemType::EndStation) { int32_t entranceIndex = tileElement->AsTrack()->GetStationIndex(); - gRideRatingsCalcData.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; + state.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; if (ride_get_entrance_location(ride, entranceIndex).isNull()) { - gRideRatingsCalcData.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; + state.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; } } - ride_ratings_score_close_proximity(tileElement); + ride_ratings_score_close_proximity(state, tileElement); - CoordsXYE trackElement = { gRideRatingsCalcData.Proximity, tileElement }; + CoordsXYE trackElement = { state.Proximity, tileElement }; CoordsXYE nextTrackElement; if (!track_block_get_next(&trackElement, &nextTrackElement, nullptr, nullptr)) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_4; + state.State = RIDE_RATINGS_STATE_4; return; } loc = { nextTrackElement, nextTrackElement.element->GetBaseZ() }; tileElement = nextTrackElement.element; - if (loc == gRideRatingsCalcData.ProximityStart) + if (loc == state.ProximityStart) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_CALCULATE; + state.State = RIDE_RATINGS_STATE_CALCULATE; return; } - gRideRatingsCalcData.Proximity = loc; - gRideRatingsCalcData.ProximityTrackType = tileElement->AsTrack()->GetTrackType(); + state.Proximity = loc; + state.ProximityTrackType = tileElement->AsTrack()->GetTrackType(); return; } } while (!(tileElement++)->IsLastForTile()); - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; } /** * * rct2: 0x006B5E4D */ -static void ride_ratings_update_state_3() +static void ride_ratings_update_state_3(RideRatingUpdateState& state) { - auto ride = get_ride(gRideRatingsCalcData.CurrentRide); - if (ride == nullptr || ride->status == RIDE_STATUS_CLOSED) + auto ride = get_ride(state.CurrentRide); + if (ride == nullptr || ride->status == RideStatus::Closed) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; return; } - ride_ratings_calculate(ride); + ride_ratings_calculate(state, ride); ride_ratings_calculate_value(ride); - window_invalidate_by_number(WC_RIDE, gRideRatingsCalcData.CurrentRide); - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + window_invalidate_by_number(WC_RIDE, state.CurrentRide); + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; } /** * * rct2: 0x006B5BAB */ -static void ride_ratings_update_state_4() +static void ride_ratings_update_state_4(RideRatingUpdateState& state) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_5; - ride_ratings_begin_proximity_loop(); + state.State = RIDE_RATINGS_STATE_5; + ride_ratings_begin_proximity_loop(state); } /** * * rct2: 0x006B5D72 */ -static void ride_ratings_update_state_5() +static void ride_ratings_update_state_5(RideRatingUpdateState& state) { - auto ride = get_ride(gRideRatingsCalcData.CurrentRide); - if (ride == nullptr || ride->status == RIDE_STATUS_CLOSED) + auto ride = get_ride(state.CurrentRide); + if (ride == nullptr || ride->status == RideStatus::Closed) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; return; } - auto loc = gRideRatingsCalcData.Proximity; - track_type_t trackType = gRideRatingsCalcData.ProximityTrackType; + auto loc = state.Proximity; + track_type_t trackType = state.ProximityTrackType; TileElement* tileElement = map_get_first_element_at(loc); if (tileElement == nullptr) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; return; } do @@ -336,48 +339,48 @@ static void ride_ratings_update_state_5() // TODO: Hack to be removed with new save format - trackType 0xFF should not be here. if (trackType == 0xFF || trackType == TrackElemType::None || trackType == tileElement->AsTrack()->GetTrackType()) { - ride_ratings_score_close_proximity(tileElement); + ride_ratings_score_close_proximity(state, tileElement); track_begin_end trackBeginEnd; - if (!track_block_get_previous({ gRideRatingsCalcData.Proximity, tileElement }, &trackBeginEnd)) + if (!track_block_get_previous({ state.Proximity, tileElement }, &trackBeginEnd)) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_CALCULATE; + state.State = RIDE_RATINGS_STATE_CALCULATE; return; } loc.x = trackBeginEnd.begin_x; loc.y = trackBeginEnd.begin_y; loc.z = trackBeginEnd.begin_z; - if (loc == gRideRatingsCalcData.ProximityStart) + if (loc == state.ProximityStart) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_CALCULATE; + state.State = RIDE_RATINGS_STATE_CALCULATE; return; } - gRideRatingsCalcData.Proximity = loc; - gRideRatingsCalcData.ProximityTrackType = trackBeginEnd.begin_element->AsTrack()->GetTrackType(); + state.Proximity = loc; + state.ProximityTrackType = trackBeginEnd.begin_element->AsTrack()->GetTrackType(); return; } } while (!(tileElement++)->IsLastForTile()); - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; } /** * * rct2: 0x006B5BB2 */ -static void ride_ratings_begin_proximity_loop() +static void ride_ratings_begin_proximity_loop(RideRatingUpdateState& state) { - auto ride = get_ride(gRideRatingsCalcData.CurrentRide); - if (ride == nullptr || ride->status == RIDE_STATUS_CLOSED) + auto ride = get_ride(state.CurrentRide); + if (ride == nullptr || ride->status == RideStatus::Closed) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; return; } if (ride->type == RIDE_TYPE_MAZE) { - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_CALCULATE; + state.State = RIDE_RATINGS_STATE_CALCULATE; return; } @@ -385,35 +388,36 @@ static void ride_ratings_begin_proximity_loop() { if (!ride->stations[i].Start.isNull()) { - gRideRatingsCalcData.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; + state.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; if (ride_get_entrance_location(ride, i).isNull()) { - gRideRatingsCalcData.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; + state.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; } auto location = ride->stations[i].GetStart(); - gRideRatingsCalcData.Proximity = location; - gRideRatingsCalcData.ProximityTrackType = TrackElemType::None; - gRideRatingsCalcData.ProximityStart = location; + state.Proximity = location; + state.ProximityTrackType = TrackElemType::None; + state.ProximityStart = location; return; } } - gRideRatingsCalcData.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; + state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; } -static void proximity_score_increment(int32_t type) +static void proximity_score_increment(RideRatingUpdateState& state, int32_t type) { - gRideRatingsCalcData.ProximityScores[type]++; + state.ProximityScores[type]++; } /** * * rct2: 0x006B6207 */ -static void ride_ratings_score_close_proximity_in_direction(TileElement* inputTileElement, int32_t direction) +static void ride_ratings_score_close_proximity_in_direction( + RideRatingUpdateState& state, TileElement* inputTileElement, int32_t direction) { - auto scorePos = CoordsXY{ CoordsXY{ gRideRatingsCalcData.Proximity } + CoordsDirectionDelta[direction] }; + auto scorePos = CoordsXY{ CoordsXY{ state.Proximity } + CoordsDirectionDelta[direction] }; if (!map_is_location_valid(scorePos)) return; @@ -428,18 +432,18 @@ static void ride_ratings_score_close_proximity_in_direction(TileElement* inputTi switch (tileElement->GetType()) { case TILE_ELEMENT_TYPE_SURFACE: - if (gRideRatingsCalcData.ProximityBaseHeight <= inputTileElement->base_height) + if (state.ProximityBaseHeight <= inputTileElement->base_height) { if (inputTileElement->clearance_height <= tileElement->base_height) { - proximity_score_increment(PROXIMITY_SURFACE_SIDE_CLOSE); + proximity_score_increment(state, PROXIMITY_SURFACE_SIDE_CLOSE); } } break; case TILE_ELEMENT_TYPE_PATH: if (abs(inputTileElement->GetBaseZ() - tileElement->GetBaseZ()) <= 2 * COORDS_Z_STEP) { - proximity_score_increment(PROXIMITY_PATH_SIDE_CLOSE); + proximity_score_increment(state, PROXIMITY_PATH_SIDE_CLOSE); } break; case TILE_ELEMENT_TYPE_TRACK: @@ -447,7 +451,7 @@ static void ride_ratings_score_close_proximity_in_direction(TileElement* inputTi { if (abs(inputTileElement->GetBaseZ() - tileElement->GetBaseZ()) <= 2 * COORDS_Z_STEP) { - proximity_score_increment(PROXIMITY_FOREIGN_TRACK_SIDE_CLOSE); + proximity_score_increment(state, PROXIMITY_FOREIGN_TRACK_SIDE_CLOSE); } } break; @@ -457,11 +461,11 @@ static void ride_ratings_score_close_proximity_in_direction(TileElement* inputTi { if (inputTileElement->GetBaseZ() > tileElement->GetClearanceZ()) { - proximity_score_increment(PROXIMITY_SCENERY_SIDE_ABOVE); + proximity_score_increment(state, PROXIMITY_SCENERY_SIDE_ABOVE); } else { - proximity_score_increment(PROXIMITY_SCENERY_SIDE_BELOW); + proximity_score_increment(state, PROXIMITY_SCENERY_SIDE_BELOW); } } break; @@ -469,7 +473,7 @@ static void ride_ratings_score_close_proximity_in_direction(TileElement* inputTi } while (!(tileElement++)->IsLastForTile()); } -static void ride_ratings_score_close_proximity_loops_helper(const CoordsXYE& coordsElement) +static void ride_ratings_score_close_proximity_loops_helper(RideRatingUpdateState& state, const CoordsXYE& coordsElement) { TileElement* tileElement = map_get_first_element_at(coordsElement); if (tileElement == nullptr) @@ -487,7 +491,7 @@ static void ride_ratings_score_close_proximity_loops_helper(const CoordsXYE& coo - static_cast(coordsElement.element->base_height); if (zDiff >= 0 && zDiff <= 16) { - proximity_score_increment(PROXIMITY_PATH_TROUGH_VERTICAL_LOOP); + proximity_score_increment(state, PROXIMITY_PATH_TROUGH_VERTICAL_LOOP); } } break; @@ -501,11 +505,11 @@ static void ride_ratings_score_close_proximity_loops_helper(const CoordsXYE& coo - static_cast(coordsElement.element->base_height); if (zDiff >= 0 && zDiff <= 16) { - proximity_score_increment(PROXIMITY_TRACK_THROUGH_VERTICAL_LOOP); + proximity_score_increment(state, PROXIMITY_TRACK_THROUGH_VERTICAL_LOOP); if (tileElement->AsTrack()->GetTrackType() == TrackElemType::LeftVerticalLoop || tileElement->AsTrack()->GetTrackType() == TrackElemType::RightVerticalLoop) { - proximity_score_increment(PROXIMITY_INTERSECTING_VERTICAL_LOOP); + proximity_score_increment(state, PROXIMITY_INTERSECTING_VERTICAL_LOOP); } } } @@ -519,16 +523,16 @@ static void ride_ratings_score_close_proximity_loops_helper(const CoordsXYE& coo * * rct2: 0x006B62DA */ -static void ride_ratings_score_close_proximity_loops(TileElement* inputTileElement) +static void ride_ratings_score_close_proximity_loops(RideRatingUpdateState& state, TileElement* inputTileElement) { auto trackType = inputTileElement->AsTrack()->GetTrackType(); if (trackType == TrackElemType::LeftVerticalLoop || trackType == TrackElemType::RightVerticalLoop) { - ride_ratings_score_close_proximity_loops_helper({ gRideRatingsCalcData.Proximity, inputTileElement }); + ride_ratings_score_close_proximity_loops_helper(state, { state.Proximity, inputTileElement }); int32_t direction = inputTileElement->GetDirection(); ride_ratings_score_close_proximity_loops_helper( - { CoordsXY{ gRideRatingsCalcData.Proximity } + CoordsDirectionDelta[direction], inputTileElement }); + state, { CoordsXY{ state.Proximity } + CoordsDirectionDelta[direction], inputTileElement }); } } @@ -536,15 +540,15 @@ static void ride_ratings_score_close_proximity_loops(TileElement* inputTileEleme * * rct2: 0x006B5F9D */ -static void ride_ratings_score_close_proximity(TileElement* inputTileElement) +static void ride_ratings_score_close_proximity(RideRatingUpdateState& state, TileElement* inputTileElement) { - if (gRideRatingsCalcData.StationFlags & RIDE_RATING_STATION_FLAG_NO_ENTRANCE) + if (state.StationFlags & RIDE_RATING_STATION_FLAG_NO_ENTRANCE) { return; } - gRideRatingsCalcData.ProximityTotal++; - TileElement* tileElement = map_get_first_element_at(gRideRatingsCalcData.Proximity); + state.ProximityTotal++; + TileElement* tileElement = map_get_first_element_at(state.Proximity); if (tileElement == nullptr) return; do @@ -556,31 +560,31 @@ static void ride_ratings_score_close_proximity(TileElement* inputTileElement) switch (tileElement->GetType()) { case TILE_ELEMENT_TYPE_SURFACE: - gRideRatingsCalcData.ProximityBaseHeight = tileElement->base_height; - if (tileElement->GetBaseZ() == gRideRatingsCalcData.Proximity.z) + state.ProximityBaseHeight = tileElement->base_height; + if (tileElement->GetBaseZ() == state.Proximity.z) { - proximity_score_increment(PROXIMITY_SURFACE_TOUCH); + proximity_score_increment(state, PROXIMITY_SURFACE_TOUCH); } waterHeight = tileElement->AsSurface()->GetWaterHeight(); if (waterHeight != 0) { auto z = waterHeight; - if (z <= gRideRatingsCalcData.Proximity.z) + if (z <= state.Proximity.z) { - proximity_score_increment(PROXIMITY_WATER_OVER); - if (z == gRideRatingsCalcData.Proximity.z) + proximity_score_increment(state, PROXIMITY_WATER_OVER); + if (z == state.Proximity.z) { - proximity_score_increment(PROXIMITY_WATER_TOUCH); + proximity_score_increment(state, PROXIMITY_WATER_TOUCH); } z += 16; - if (z == gRideRatingsCalcData.Proximity.z) + if (z == state.Proximity.z) { - proximity_score_increment(PROXIMITY_WATER_LOW); + proximity_score_increment(state, PROXIMITY_WATER_LOW); } z += 112; - if (z <= gRideRatingsCalcData.Proximity.z) + if (z <= state.Proximity.z) { - proximity_score_increment(PROXIMITY_WATER_HIGH); + proximity_score_increment(state, PROXIMITY_WATER_HIGH); } } } @@ -591,11 +595,11 @@ static void ride_ratings_score_close_proximity(TileElement* inputTileElement) { if (tileElement->GetClearanceZ() == inputTileElement->GetBaseZ()) { - proximity_score_increment(PROXIMITY_PATH_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_PATH_TOUCH_ABOVE); } if (tileElement->GetBaseZ() == inputTileElement->GetClearanceZ()) { - proximity_score_increment(PROXIMITY_PATH_TOUCH_UNDER); + proximity_score_increment(state, PROXIMITY_PATH_TOUCH_UNDER); } } else @@ -603,15 +607,15 @@ static void ride_ratings_score_close_proximity(TileElement* inputTileElement) // Bonus for path in first object entry if (tileElement->GetClearanceZ() <= inputTileElement->GetBaseZ()) { - proximity_score_increment(PROXIMITY_PATH_ZERO_OVER); + proximity_score_increment(state, PROXIMITY_PATH_ZERO_OVER); } if (tileElement->GetClearanceZ() == inputTileElement->GetBaseZ()) { - proximity_score_increment(PROXIMITY_PATH_ZERO_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_PATH_ZERO_TOUCH_ABOVE); } if (tileElement->GetBaseZ() == inputTileElement->GetClearanceZ()) { - proximity_score_increment(PROXIMITY_PATH_ZERO_TOUCH_UNDER); + proximity_score_increment(state, PROXIMITY_PATH_ZERO_TOUCH_UNDER); } } break; @@ -625,33 +629,33 @@ static void ride_ratings_score_close_proximity(TileElement* inputTileElement) { if (tileElement->base_height - inputTileElement->clearance_height <= 10) { - proximity_score_increment(PROXIMITY_THROUGH_VERTICAL_LOOP); + proximity_score_increment(state, PROXIMITY_THROUGH_VERTICAL_LOOP); } } } if (inputTileElement->AsTrack()->GetRideIndex() != tileElement->AsTrack()->GetRideIndex()) { - proximity_score_increment(PROXIMITY_FOREIGN_TRACK_ABOVE_OR_BELOW); + proximity_score_increment(state, PROXIMITY_FOREIGN_TRACK_ABOVE_OR_BELOW); if (tileElement->GetClearanceZ() == inputTileElement->GetBaseZ()) { - proximity_score_increment(PROXIMITY_FOREIGN_TRACK_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_FOREIGN_TRACK_TOUCH_ABOVE); } if (tileElement->clearance_height + 2 <= inputTileElement->base_height) { if (tileElement->clearance_height + 10 >= inputTileElement->base_height) { - proximity_score_increment(PROXIMITY_FOREIGN_TRACK_CLOSE_ABOVE); + proximity_score_increment(state, PROXIMITY_FOREIGN_TRACK_CLOSE_ABOVE); } } if (inputTileElement->clearance_height == tileElement->base_height) { - proximity_score_increment(PROXIMITY_FOREIGN_TRACK_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_FOREIGN_TRACK_TOUCH_ABOVE); } if (inputTileElement->clearance_height + 2 == tileElement->base_height) { if (static_cast(inputTileElement->clearance_height + 10) >= tileElement->base_height) { - proximity_score_increment(PROXIMITY_FOREIGN_TRACK_CLOSE_ABOVE); + proximity_score_increment(state, PROXIMITY_FOREIGN_TRACK_CLOSE_ABOVE); } } } @@ -660,40 +664,40 @@ static void ride_ratings_score_close_proximity(TileElement* inputTileElement) bool isStation = tileElement->AsTrack()->IsStation(); if (tileElement->clearance_height == inputTileElement->base_height) { - proximity_score_increment(PROXIMITY_OWN_TRACK_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_TRACK_TOUCH_ABOVE); if (isStation) { - proximity_score_increment(PROXIMITY_OWN_STATION_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_STATION_TOUCH_ABOVE); } } if (tileElement->clearance_height + 2 <= inputTileElement->base_height) { if (tileElement->clearance_height + 10 >= inputTileElement->base_height) { - proximity_score_increment(PROXIMITY_OWN_TRACK_CLOSE_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_TRACK_CLOSE_ABOVE); if (isStation) { - proximity_score_increment(PROXIMITY_OWN_STATION_CLOSE_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_STATION_CLOSE_ABOVE); } } } if (inputTileElement->GetClearanceZ() == tileElement->GetBaseZ()) { - proximity_score_increment(PROXIMITY_OWN_TRACK_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_TRACK_TOUCH_ABOVE); if (isStation) { - proximity_score_increment(PROXIMITY_OWN_STATION_TOUCH_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_STATION_TOUCH_ABOVE); } } if (inputTileElement->clearance_height + 2 <= tileElement->base_height) { if (inputTileElement->clearance_height + 10 >= tileElement->base_height) { - proximity_score_increment(PROXIMITY_OWN_TRACK_CLOSE_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_TRACK_CLOSE_ABOVE); if (isStation) { - proximity_score_increment(PROXIMITY_OWN_STATION_CLOSE_ABOVE); + proximity_score_increment(state, PROXIMITY_OWN_STATION_CLOSE_ABOVE); } } } @@ -704,28 +708,28 @@ static void ride_ratings_score_close_proximity(TileElement* inputTileElement) } while (!(tileElement++)->IsLastForTile()); uint8_t direction = inputTileElement->GetDirection(); - ride_ratings_score_close_proximity_in_direction(inputTileElement, (direction + 1) & 3); - ride_ratings_score_close_proximity_in_direction(inputTileElement, (direction - 1) & 3); - ride_ratings_score_close_proximity_loops(inputTileElement); + ride_ratings_score_close_proximity_in_direction(state, inputTileElement, (direction + 1) & 3); + ride_ratings_score_close_proximity_in_direction(state, inputTileElement, (direction - 1) & 3); + ride_ratings_score_close_proximity_loops(state, inputTileElement); - switch (gRideRatingsCalcData.ProximityTrackType) + switch (state.ProximityTrackType) { case TrackElemType::Brakes: - gRideRatingsCalcData.AmountOfBrakes++; + state.AmountOfBrakes++; break; case TrackElemType::LeftReverser: case TrackElemType::RightReverser: - gRideRatingsCalcData.AmountOfReversers++; + state.AmountOfReversers++; break; } } -static void ride_ratings_calculate(Ride* ride) +static void ride_ratings_calculate(RideRatingUpdateState& state, Ride* ride) { auto calcFunc = ride_ratings_get_calculate_func(ride->type); if (calcFunc != nullptr) { - calcFunc(ride); + calcFunc(ride, state); } #ifdef ORIGINAL_RATINGS @@ -853,7 +857,7 @@ static void ride_ratings_calculate_value(Ride* ride) // Other ride of same type penalty const auto& rideManager = GetRideManager(); auto otherRidesOfSameType = std::count_if(rideManager.begin(), rideManager.end(), [ride](const Ride& r) { - return r.status == RIDE_STATUS_OPEN && r.type == ride->type; + return r.status == RideStatus::Open && r.type == ride->type; }); if (otherRidesOfSameType > 1) value -= value / 4; @@ -867,7 +871,7 @@ static void ride_ratings_calculate_value(Ride* ride) * inputs * - edi: ride ptr */ -static uint16_t ride_compute_upkeep(Ride* ride) +static uint16_t ride_compute_upkeep(RideRatingUpdateState& state, Ride* ride) { // data stored at 0x0057E3A8, incrementing 18 bytes at a time uint16_t upkeep = ride->GetRideTypeDescriptor().UpkeepCosts.BaseCost; @@ -903,10 +907,10 @@ static uint16_t ride_compute_upkeep(Ride* ride) { reverserMaintenanceCost = 10; } - upkeep += reverserMaintenanceCost * gRideRatingsCalcData.AmountOfReversers; + upkeep += reverserMaintenanceCost * state.AmountOfReversers; // Add maintenance cost for brake track pieces - upkeep += 20 * gRideRatingsCalcData.AmountOfBrakes; + upkeep += 20 * state.AmountOfBrakes; // these seem to be adhoc adjustments to a ride's upkeep/cost, times // various variables set on the ride itself. @@ -1058,9 +1062,9 @@ static uint32_t get_proximity_score_helper_3(uint16_t x, uint16_t resultIfNotZer * * rct2: 0x0065E277 */ -static uint32_t ride_ratings_get_proximity_score() +static uint32_t ride_ratings_get_proximity_score(RideRatingUpdateState& state) { - const uint16_t* scores = gRideRatingsCalcData.ProximityScores; + const uint16_t* scores = state.ProximityScores; uint32_t result = 0; result += get_proximity_score_helper_1(scores[PROXIMITY_WATER_OVER], 60, 0x00AAAA); @@ -1326,19 +1330,19 @@ static RatingTuple ride_ratings_get_sheltered_ratings(Ride* ride) /*eax = (ride->var_11C * 30340) >> 16;*/ /*nausea += eax;*/ - if (ride->num_sheltered_sections & 0x40) + if (ride->num_sheltered_sections & ShelteredSectionsBits::BankingWhileSheltered) { excitement += 20; nausea += 15; } - if (ride->num_sheltered_sections & 0x20) + if (ride->num_sheltered_sections & ShelteredSectionsBits::RotatingWhileSheltered) { excitement += 20; nausea += 15; } - uint8_t lowerVal = ride->num_sheltered_sections & 0x1F; + uint8_t lowerVal = ride->GetNumShelteredSections(); lowerVal = std::min(lowerVal, 11); excitement += (lowerVal * 774516) >> 16; @@ -1591,9 +1595,9 @@ static void ride_ratings_apply_rotations( ride->rotations * nauseaMultiplier); } -static void ride_ratings_apply_proximity(RatingTuple* ratings, int32_t excitementMultiplier) +static void ride_ratings_apply_proximity(RideRatingUpdateState& state, RatingTuple* ratings, int32_t excitementMultiplier) { - ride_ratings_add(ratings, (ride_ratings_get_proximity_score() * excitementMultiplier) >> 16, 0, 0); + ride_ratings_add(ratings, (ride_ratings_get_proximity_score(state) * excitementMultiplier) >> 16, 0, 0); } static void ride_ratings_apply_scenery(RatingTuple* ratings, Ride* ride, int32_t excitementMultiplier) @@ -1718,7 +1722,7 @@ static void ride_ratings_apply_first_length_penalty( #pragma region Ride rating calculation functions -void ride_ratings_calculate_spiral_roller_coaster(Ride* ride) +void ride_ratings_calculate_spiral_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1738,7 +1742,7 @@ void ride_ratings_calculate_spiral_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 28235, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 43690, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -1758,13 +1762,13 @@ void ride_ratings_calculate_spiral_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_stand_up_roller_coaster(Ride* ride) +void ride_ratings_calculate_stand_up_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1784,7 +1788,7 @@ void ride_ratings_calculate_stand_up_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 34952, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 12850, 28398, 30427); - ride_ratings_apply_proximity(&ratings, 17893); + ride_ratings_apply_proximity(state, &ratings, 17893); ride_ratings_apply_scenery(&ratings, ride, 5577); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 12, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xA0000, 2, 2, 2); @@ -1796,13 +1800,13 @@ void ride_ratings_calculate_stand_up_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_suspended_swinging_coaster(Ride* ride) +void ride_ratings_calculate_suspended_swinging_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1822,7 +1826,7 @@ void ride_ratings_calculate_suspended_swinging_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 48036); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6971); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 8, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xC0000, 2, 2, 2); @@ -1836,13 +1840,13 @@ void ride_ratings_calculate_suspended_swinging_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_inverted_roller_coaster(Ride* ride) +void ride_ratings_calculate_inverted_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1862,7 +1866,7 @@ void ride_ratings_calculate_inverted_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 29552, 57186); ride_ratings_apply_drops(&ratings, ride, 29127, 39009, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 15291, 35108); - ride_ratings_apply_proximity(&ratings, 15657); + ride_ratings_apply_proximity(state, &ratings, 15657); ride_ratings_apply_scenery(&ratings, ride, 8366); if (ride->inversions == 0) @@ -1879,13 +1883,13 @@ void ride_ratings_calculate_inverted_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_junior_roller_coaster(Ride* ride) +void ride_ratings_calculate_junior_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1905,7 +1909,7 @@ void ride_ratings_calculate_junior_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 25700, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 9760); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 6, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -1917,13 +1921,13 @@ void ride_ratings_calculate_junior_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_miniature_railway(Ride* ride) +void ride_ratings_calculate_miniature_railway(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1939,7 +1943,7 @@ void ride_ratings_calculate_miniature_railway(Ride* ride) ride_ratings_apply_average_speed(&ratings, ride, 291271, 436906); ride_ratings_apply_duration(&ratings, ride, 150, 26214); ride_ratings_apply_sheltered_ratings(&ratings, ride, -6425, 6553, 23405); - ride_ratings_apply_proximity(&ratings, 8946); + ride_ratings_apply_proximity(state, &ratings, 8946); ride_ratings_apply_scenery(&ratings, ride, 20915); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xC80000, 2, 2, 2); @@ -1948,7 +1952,7 @@ void ride_ratings_calculate_miniature_railway(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; auto shelteredEighths = get_num_of_sheltered_eighths(ride); @@ -1958,7 +1962,7 @@ void ride_ratings_calculate_miniature_railway(Ride* ride) ride->sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_monorail(Ride* ride) +void ride_ratings_calculate_monorail(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1974,7 +1978,7 @@ void ride_ratings_calculate_monorail(Ride* ride) ride_ratings_apply_average_speed(&ratings, ride, 291271, 218453); ride_ratings_apply_duration(&ratings, ride, 150, 21845); ride_ratings_apply_sheltered_ratings(&ratings, ride, 5140, 6553, 18724); - ride_ratings_apply_proximity(&ratings, 8946); + ride_ratings_apply_proximity(state, &ratings, 8946); ride_ratings_apply_scenery(&ratings, ride, 16732); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xAA0000, 2, 2, 2); @@ -1983,7 +1987,7 @@ void ride_ratings_calculate_monorail(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; auto shelteredEighths = get_num_of_sheltered_eighths(ride); @@ -1993,7 +1997,7 @@ void ride_ratings_calculate_monorail(Ride* ride) ride->sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_mini_suspended_coaster(Ride* ride) +void ride_ratings_calculate_mini_suspended_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2013,7 +2017,7 @@ void ride_ratings_calculate_mini_suspended_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 34179, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 58254, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 19275, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 13943); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 6, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x80000, 2, 2, 2); @@ -2026,13 +2030,13 @@ void ride_ratings_calculate_mini_suspended_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_boat_hire(Ride* ride) +void ride_ratings_calculate_boat_hire(Ride* ride, RideRatingUpdateState& state) { ride->unreliability_factor = 7; set_unreliability_factor(ride); @@ -2050,7 +2054,7 @@ void ride_ratings_calculate_boat_hire(Ride* ride) ride_ratings_add(&ratings, RIDE_RATING(0, 20), 0, 0); } - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 22310); ride_ratings_apply_intensity_penalty(&ratings); @@ -2058,13 +2062,13 @@ void ride_ratings_calculate_boat_hire(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_wooden_wild_mouse(Ride* ride) +void ride_ratings_calculate_wooden_wild_mouse(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2084,7 +2088,7 @@ void ride_ratings_calculate_wooden_wild_mouse(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 29721, 43458, 45749); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 17893); + ride_ratings_apply_proximity(state, &ratings, 17893); ride_ratings_apply_scenery(&ratings, ride, 5577); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 8, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -2099,13 +2103,13 @@ void ride_ratings_calculate_wooden_wild_mouse(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_steeplechase(Ride* ride) +void ride_ratings_calculate_steeplechase(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2125,7 +2129,7 @@ void ride_ratings_calculate_steeplechase(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 25700, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 9760); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 4, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x80000, 2, 2, 2); @@ -2139,13 +2143,13 @@ void ride_ratings_calculate_steeplechase(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_car_ride(Ride* ride) +void ride_ratings_calculate_car_ride(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2164,7 +2168,7 @@ void ride_ratings_calculate_car_ride(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 14860, 0, 11437); ride_ratings_apply_drops(&ratings, ride, 8738, 0, 0); ride_ratings_apply_sheltered_ratings(&ratings, ride, 12850, 6553, 4681); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 8366); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xC80000, 8, 2, 2); @@ -2173,13 +2177,13 @@ void ride_ratings_calculate_car_ride(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_launched_freefall(Ride* ride) +void ride_ratings_calculate_launched_freefall(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2216,7 +2220,7 @@ void ride_ratings_calculate_launched_freefall(Ride* ride) } #endif - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 25098); ride_ratings_apply_intensity_penalty(&ratings); @@ -2224,13 +2228,13 @@ void ride_ratings_calculate_launched_freefall(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_bobsleigh_coaster(Ride* ride) +void ride_ratings_calculate_bobsleigh_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2250,7 +2254,7 @@ void ride_ratings_calculate_bobsleigh_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 5577); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xC0000, 2, 2, 2); ride_ratings_apply_max_lateral_g_penalty(&ratings, ride, FIXED_2DP(1, 20), 2, 2, 2); @@ -2262,13 +2266,13 @@ void ride_ratings_calculate_bobsleigh_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_observation_tower(Ride* ride) +void ride_ratings_calculate_observation_tower(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2280,7 +2284,7 @@ void ride_ratings_calculate_observation_tower(Ride* ride) ride_ratings_set(&ratings, RIDE_RATING(1, 50), RIDE_RATING(0, 00), RIDE_RATING(0, 10)); ride_ratings_add( &ratings, ((ride_get_total_length(ride) >> 16) * 45875) >> 16, 0, ((ride_get_total_length(ride) >> 16) * 26214) >> 16); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 83662); ride_ratings_apply_intensity_penalty(&ratings); @@ -2288,7 +2292,7 @@ void ride_ratings_calculate_observation_tower(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; @@ -2298,7 +2302,7 @@ void ride_ratings_calculate_observation_tower(Ride* ride) ride->excitement /= 4; } -void ride_ratings_calculate_looping_roller_coaster(Ride* ride) +void ride_ratings_calculate_looping_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2318,7 +2322,7 @@ void ride_ratings_calculate_looping_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -2338,13 +2342,13 @@ void ride_ratings_calculate_looping_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_dinghy_slide(Ride* ride) +void ride_ratings_calculate_dinghy_slide(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2364,7 +2368,7 @@ void ride_ratings_calculate_dinghy_slide(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 5577); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 12, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -2376,13 +2380,13 @@ void ride_ratings_calculate_dinghy_slide(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mine_train_coaster(Ride* ride) +void ride_ratings_calculate_mine_train_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2402,7 +2406,7 @@ void ride_ratings_calculate_mine_train_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 29721, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 19275, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 21472); + ride_ratings_apply_proximity(state, &ratings, 21472); ride_ratings_apply_scenery(&ratings, ride, 16732); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 8, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xA0000, 2, 2, 2); @@ -2416,13 +2420,13 @@ void ride_ratings_calculate_mine_train_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_chairlift(Ride* ride) +void ride_ratings_calculate_chairlift(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2439,7 +2443,7 @@ void ride_ratings_calculate_chairlift(Ride* ride) ride_ratings_apply_duration(&ratings, ride, 150, 26214); ride_ratings_apply_turns(&ratings, ride, 7430, 3476, 4574); ride_ratings_apply_sheltered_ratings(&ratings, ride, -19275, 21845, 23405); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 25098); ride_ratings_apply_first_length_penalty(&ratings, ride, 0x960000, 2, 2, 2); @@ -2454,7 +2458,7 @@ void ride_ratings_calculate_chairlift(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; auto shelteredEighths = get_num_of_sheltered_eighths(ride); @@ -2464,7 +2468,7 @@ void ride_ratings_calculate_chairlift(Ride* ride) ride->sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_corkscrew_roller_coaster(Ride* ride) +void ride_ratings_calculate_corkscrew_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2484,7 +2488,7 @@ void ride_ratings_calculate_corkscrew_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -2504,13 +2508,13 @@ void ride_ratings_calculate_corkscrew_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_maze(Ride* ride) +void ride_ratings_calculate_maze(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2530,13 +2534,13 @@ void ride_ratings_calculate_maze(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_spiral_slide(Ride* ride) +void ride_ratings_calculate_spiral_slide(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2559,13 +2563,13 @@ void ride_ratings_calculate_spiral_slide(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 2; } -void ride_ratings_calculate_go_karts(Ride* ride) +void ride_ratings_calculate_go_karts(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2588,7 +2592,7 @@ void ride_ratings_calculate_go_karts(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 4458, 3476, 5718); ride_ratings_apply_drops(&ratings, ride, 8738, 5461, 6553); ride_ratings_apply_sheltered_ratings(&ratings, ride, 2570, 8738, 2340); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 16732); ride_ratings_apply_intensity_penalty(&ratings); @@ -2596,7 +2600,7 @@ void ride_ratings_calculate_go_karts(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; auto shelteredEighths = get_num_of_sheltered_eighths(ride); @@ -2606,7 +2610,7 @@ void ride_ratings_calculate_go_karts(Ride* ride) ride->excitement /= 2; } -void ride_ratings_calculate_log_flume(Ride* ride) +void ride_ratings_calculate_log_flume(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2623,22 +2627,22 @@ void ride_ratings_calculate_log_flume(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 22291, 20860, 4574); ride_ratings_apply_drops(&ratings, ride, 69905, 62415, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 11155); - ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 2, 2, 2, 2); + ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 6, 2, 2, 2); ride_ratings_apply_intensity_penalty(&ratings); ride_ratings_apply_adjustments(ride, &ratings); ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_river_rapids(Ride* ride) +void ride_ratings_calculate_river_rapids(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2655,7 +2659,7 @@ void ride_ratings_calculate_river_rapids(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 29721, 22598, 5718); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 31314); + ride_ratings_apply_proximity(state, &ratings, 31314); ride_ratings_apply_scenery(&ratings, ride, 13943); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 2, 2, 2, 2); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xC80000, 2, 2, 2); @@ -2665,13 +2669,13 @@ void ride_ratings_calculate_river_rapids(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_dodgems(Ride* ride) +void ride_ratings_calculate_dodgems(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2700,13 +2704,13 @@ void ride_ratings_calculate_dodgems(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; } -void ride_ratings_calculate_swinging_ship(Ride* ride) +void ride_ratings_calculate_swinging_ship(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2725,13 +2729,13 @@ void ride_ratings_calculate_swinging_ship(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_inverter_ship(Ride* ride) +void ride_ratings_calculate_inverter_ship(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2750,31 +2754,31 @@ void ride_ratings_calculate_inverter_ship(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_food_stall(Ride* ride) +void ride_ratings_calculate_food_stall(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_drink_stall(Ride* ride) +void ride_ratings_calculate_drink_stall(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_shop(Ride* ride) +void ride_ratings_calculate_shop(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_merry_go_round(Ride* ride) +void ride_ratings_calculate_merry_go_round(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2790,25 +2794,25 @@ void ride_ratings_calculate_merry_go_round(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; } -void ride_ratings_calculate_information_kiosk(Ride* ride) +void ride_ratings_calculate_information_kiosk(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_toilets(Ride* ride) +void ride_ratings_calculate_toilets(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_ferris_wheel(Ride* ride) +void ride_ratings_calculate_ferris_wheel(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2824,13 +2828,13 @@ void ride_ratings_calculate_ferris_wheel(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_motion_simulator(Ride* ride) +void ride_ratings_calculate_motion_simulator(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2857,13 +2861,13 @@ void ride_ratings_calculate_motion_simulator(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; } -void ride_ratings_calculate_3d_cinema(Ride* ride) +void ride_ratings_calculate_3d_cinema(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2897,13 +2901,13 @@ void ride_ratings_calculate_3d_cinema(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths |= 7; } -void ride_ratings_calculate_top_spin(Ride* ride) +void ride_ratings_calculate_top_spin(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2939,13 +2943,13 @@ void ride_ratings_calculate_top_spin(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_space_rings(Ride* ride) +void ride_ratings_calculate_space_rings(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2961,13 +2965,13 @@ void ride_ratings_calculate_space_rings(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_reverse_freefall_coaster(Ride* ride) +void ride_ratings_calculate_reverse_freefall_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2982,7 +2986,7 @@ void ride_ratings_calculate_reverse_freefall_coaster(Ride* ride) ride_ratings_apply_max_speed(&ratings, ride, 436906, 436906, 320398); ride_ratings_apply_gforces(&ratings, ride, 24576, 41704, 59578); ride_ratings_apply_sheltered_ratings(&ratings, ride, 12850, 28398, 11702); - ride_ratings_apply_proximity(&ratings, 17893); + ride_ratings_apply_proximity(state, &ratings, 17893); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 34, 2, 2, 2); @@ -2991,13 +2995,13 @@ void ride_ratings_calculate_reverse_freefall_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_lift(Ride* ride) +void ride_ratings_calculate_lift(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3011,7 +3015,7 @@ void ride_ratings_calculate_lift(Ride* ride) int32_t totalLength = ride_get_total_length(ride) >> 16; ride_ratings_add(&ratings, (totalLength * 45875) >> 16, 0, (totalLength * 26214) >> 16); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 83662); ride_ratings_apply_intensity_penalty(&ratings); @@ -3019,7 +3023,7 @@ void ride_ratings_calculate_lift(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; @@ -3028,7 +3032,7 @@ void ride_ratings_calculate_lift(Ride* ride) ride->excitement /= 4; } -void ride_ratings_calculate_vertical_drop_roller_coaster(Ride* ride) +void ride_ratings_calculate_vertical_drop_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3047,7 +3051,7 @@ void ride_ratings_calculate_vertical_drop_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 58254, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 20, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xA0000, 2, 2, 2); @@ -3060,19 +3064,19 @@ void ride_ratings_calculate_vertical_drop_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_cash_machine(Ride* ride) +void ride_ratings_calculate_cash_machine(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_twist(Ride* ride) +void ride_ratings_calculate_twist(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3088,13 +3092,13 @@ void ride_ratings_calculate_twist(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_haunted_house(Ride* ride) +void ride_ratings_calculate_haunted_house(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3112,13 +3116,13 @@ void ride_ratings_calculate_haunted_house(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; } -void ride_ratings_calculate_flying_roller_coaster(Ride* ride) +void ride_ratings_calculate_flying_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3138,7 +3142,7 @@ void ride_ratings_calculate_flying_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -3157,13 +3161,13 @@ void ride_ratings_calculate_flying_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_virginia_reel(Ride* ride) +void ride_ratings_calculate_virginia_reel(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3183,7 +3187,7 @@ void ride_ratings_calculate_virginia_reel(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 52012, 26075, 45749); ride_ratings_apply_drops(&ratings, ride, 43690, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xD20000, 2, 2, 2); ride_ratings_apply_num_drops_penalty(&ratings, ride, 2, 2, 2, 2); @@ -3194,13 +3198,13 @@ void ride_ratings_calculate_virginia_reel(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_splash_boats(Ride* ride) +void ride_ratings_calculate_splash_boats(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3217,7 +3221,7 @@ void ride_ratings_calculate_splash_boats(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 22291, 20860, 4574); ride_ratings_apply_drops(&ratings, ride, 87381, 93622, 62259); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 6, 2, 2, 2); @@ -3226,13 +3230,13 @@ void ride_ratings_calculate_splash_boats(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mini_helicopters(Ride* ride) +void ride_ratings_calculate_mini_helicopters(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3251,7 +3255,7 @@ void ride_ratings_calculate_mini_helicopters(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 14860, 0, 4574); ride_ratings_apply_drops(&ratings, ride, 8738, 0, 0); ride_ratings_apply_sheltered_ratings(&ratings, ride, 12850, 6553, 4681); - ride_ratings_apply_proximity(&ratings, 8946); + ride_ratings_apply_proximity(state, &ratings, 8946); ride_ratings_apply_scenery(&ratings, ride, 8366); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xA00000, 2, 2, 2); @@ -3260,13 +3264,13 @@ void ride_ratings_calculate_mini_helicopters(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 6; } -void ride_ratings_calculate_lay_down_roller_coaster(Ride* ride) +void ride_ratings_calculate_lay_down_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3286,7 +3290,7 @@ void ride_ratings_calculate_lay_down_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -3310,13 +3314,13 @@ void ride_ratings_calculate_lay_down_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_suspended_monorail(Ride* ride) +void ride_ratings_calculate_suspended_monorail(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3332,7 +3336,7 @@ void ride_ratings_calculate_suspended_monorail(Ride* ride) ride_ratings_apply_average_speed(&ratings, ride, 291271, 218453); ride_ratings_apply_duration(&ratings, ride, 150, 21845); ride_ratings_apply_sheltered_ratings(&ratings, ride, 5140, 6553, 18724); - ride_ratings_apply_proximity(&ratings, 12525); + ride_ratings_apply_proximity(state, &ratings, 12525); ride_ratings_apply_scenery(&ratings, ride, 25098); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xAA0000, 2, 2, 2); @@ -3341,7 +3345,7 @@ void ride_ratings_calculate_suspended_monorail(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; auto shelteredEighths = get_num_of_sheltered_eighths(ride); @@ -3351,7 +3355,7 @@ void ride_ratings_calculate_suspended_monorail(Ride* ride) ride->sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_reverser_roller_coaster(Ride* ride) +void ride_ratings_calculate_reverser_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3367,7 +3371,7 @@ void ride_ratings_calculate_reverser_roller_coaster(Ride* ride) ride_ratings_apply_max_speed(&ratings, ride, 44281, 88562, 35424); ride_ratings_apply_average_speed(&ratings, ride, 364088, 655360); - int32_t numReversers = std::min(gRideRatingsCalcData.AmountOfReversers, 6); + int32_t numReversers = std::min(state.AmountOfReversers, 6); ride_rating reverserRating = numReversers * RIDE_RATING(0, 20); ride_ratings_add(&ratings, reverserRating, reverserRating, reverserRating); @@ -3376,10 +3380,10 @@ void ride_ratings_calculate_reverser_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 43458, 45749); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 11155); - if (gRideRatingsCalcData.AmountOfReversers < 1) + if (state.AmountOfReversers < 1) { ratings.Excitement /= 8; } @@ -3393,13 +3397,13 @@ void ride_ratings_calculate_reverser_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_heartline_twister_coaster(Ride* ride) +void ride_ratings_calculate_heartline_twister_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3419,7 +3423,7 @@ void ride_ratings_calculate_heartline_twister_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 52150, 57186); ride_ratings_apply_drops(&ratings, ride, 29127, 53052, 55705); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 34952, 35108); - ride_ratings_apply_proximity(&ratings, 9841); + ride_ratings_apply_proximity(state, &ratings, 9841); ride_ratings_apply_scenery(&ratings, ride, 3904); if (ride->inversions == 0) @@ -3433,13 +3437,13 @@ void ride_ratings_calculate_heartline_twister_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mini_golf(Ride* ride) +void ride_ratings_calculate_mini_golf(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3452,7 +3456,7 @@ void ride_ratings_calculate_mini_golf(Ride* ride) ride_ratings_apply_length(&ratings, ride, 6000, 873); ride_ratings_apply_turns(&ratings, ride, 14860, 0, 0); ride_ratings_apply_sheltered_ratings(&ratings, ride, 5140, 6553, 4681); - ride_ratings_apply_proximity(&ratings, 15657); + ride_ratings_apply_proximity(state, &ratings, 15657); ride_ratings_apply_scenery(&ratings, ride, 27887); // Apply golf holes factor @@ -3471,19 +3475,19 @@ void ride_ratings_calculate_mini_golf(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_first_aid(Ride* ride) +void ride_ratings_calculate_first_aid(Ride* ride, RideRatingUpdateState& state) { - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_circus(Ride* ride) +void ride_ratings_calculate_circus(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3501,13 +3505,13 @@ void ride_ratings_calculate_circus(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; } -void ride_ratings_calculate_ghost_train(Ride* ride) +void ride_ratings_calculate_ghost_train(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3525,7 +3529,7 @@ void ride_ratings_calculate_ghost_train(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 14860, 0, 11437); ride_ratings_apply_drops(&ratings, ride, 8738, 0, 0); ride_ratings_apply_sheltered_ratings(&ratings, ride, 25700, 6553, 4681); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 8366); ride_ratings_apply_first_length_penalty(&ratings, ride, 0xB40000, 2, 2, 2); @@ -3534,13 +3538,13 @@ void ride_ratings_calculate_ghost_train(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_twister_roller_coaster(Ride* ride) +void ride_ratings_calculate_twister_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3560,7 +3564,7 @@ void ride_ratings_calculate_twister_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -3580,13 +3584,13 @@ void ride_ratings_calculate_twister_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_wooden_roller_coaster(Ride* ride) +void ride_ratings_calculate_wooden_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3606,7 +3610,7 @@ void ride_ratings_calculate_wooden_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 43458, 45749); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 12, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xA0000, 2, 2, 2); @@ -3620,13 +3624,13 @@ void ride_ratings_calculate_wooden_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_side_friction_roller_coaster(Ride* ride) +void ride_ratings_calculate_side_friction_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3646,7 +3650,7 @@ void ride_ratings_calculate_side_friction_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 43458, 45749); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 6, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x50000, 2, 2, 2); @@ -3659,13 +3663,13 @@ void ride_ratings_calculate_side_friction_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_wild_mouse(Ride* ride) +void ride_ratings_calculate_wild_mouse(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3685,7 +3689,7 @@ void ride_ratings_calculate_wild_mouse(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 29721, 43458, 45749); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 17893); + ride_ratings_apply_proximity(state, &ratings, 17893); ride_ratings_apply_scenery(&ratings, ride, 5577); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 6, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -3699,13 +3703,13 @@ void ride_ratings_calculate_wild_mouse(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_multi_dimension_roller_coaster(Ride* ride) +void ride_ratings_calculate_multi_dimension_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3725,7 +3729,7 @@ void ride_ratings_calculate_multi_dimension_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -3744,13 +3748,13 @@ void ride_ratings_calculate_multi_dimension_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_giga_coaster(Ride* ride) +void ride_ratings_calculate_giga_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3770,7 +3774,7 @@ void ride_ratings_calculate_giga_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 28235, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 43690, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -3790,13 +3794,13 @@ void ride_ratings_calculate_giga_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_roto_drop(Ride* ride) +void ride_ratings_calculate_roto_drop(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3810,7 +3814,7 @@ void ride_ratings_calculate_roto_drop(Ride* ride) int32_t lengthFactor = ((ride_get_total_length(ride) >> 16) * 209715) >> 16; ride_ratings_add(&ratings, lengthFactor, lengthFactor * 2, lengthFactor * 2); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 25098); ride_ratings_apply_intensity_penalty(&ratings); @@ -3818,13 +3822,13 @@ void ride_ratings_calculate_roto_drop(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_flying_saucers(Ride* ride) +void ride_ratings_calculate_flying_saucers(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3856,13 +3860,13 @@ void ride_ratings_calculate_flying_saucers(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_crooked_house(Ride* ride) +void ride_ratings_calculate_crooked_house(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3880,13 +3884,13 @@ void ride_ratings_calculate_crooked_house(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 7; } -void ride_ratings_calculate_monorail_cycles(Ride* ride) +void ride_ratings_calculate_monorail_cycles(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3905,7 +3909,7 @@ void ride_ratings_calculate_monorail_cycles(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 14860, 0, 4574); ride_ratings_apply_drops(&ratings, ride, 8738, 0, 0); ride_ratings_apply_sheltered_ratings(&ratings, ride, 5140, 6553, 2340); - ride_ratings_apply_proximity(&ratings, 8946); + ride_ratings_apply_proximity(state, &ratings, 8946); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_first_length_penalty(&ratings, ride, 0x8C0000, 2, 2, 2); @@ -3914,13 +3918,13 @@ void ride_ratings_calculate_monorail_cycles(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_compact_inverted_coaster(Ride* ride) +void ride_ratings_calculate_compact_inverted_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3940,7 +3944,7 @@ void ride_ratings_calculate_compact_inverted_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 29552, 57186); ride_ratings_apply_drops(&ratings, ride, 29127, 39009, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 15291, 35108); - ride_ratings_apply_proximity(&ratings, 15657); + ride_ratings_apply_proximity(state, &ratings, 15657); ride_ratings_apply_scenery(&ratings, ride, 8366); if (ride->inversions == 0) @@ -3957,13 +3961,13 @@ void ride_ratings_calculate_compact_inverted_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_water_coaster(Ride* ride) +void ride_ratings_calculate_water_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3983,7 +3987,7 @@ void ride_ratings_calculate_water_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 25700, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 9760); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 8, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -3998,13 +4002,13 @@ void ride_ratings_calculate_water_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_air_powered_vertical_coaster(Ride* ride) +void ride_ratings_calculate_air_powered_vertical_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4019,7 +4023,7 @@ void ride_ratings_calculate_air_powered_vertical_coaster(Ride* ride) ride_ratings_apply_max_speed(&ratings, ride, 509724, 364088, 320398); ride_ratings_apply_gforces(&ratings, ride, 24576, 35746, 59578); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 21845, 11702); - ride_ratings_apply_proximity(&ratings, 17893); + ride_ratings_apply_proximity(state, &ratings, 17893); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 34, 2, 1, 1); @@ -4029,13 +4033,13 @@ void ride_ratings_calculate_air_powered_vertical_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_inverted_hairpin_coaster(Ride* ride) +void ride_ratings_calculate_inverted_hairpin_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4055,7 +4059,7 @@ void ride_ratings_calculate_inverted_hairpin_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 29721, 43458, 45749); ride_ratings_apply_drops(&ratings, ride, 40777, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 16705, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 17893); + ride_ratings_apply_proximity(state, &ratings, 17893); ride_ratings_apply_scenery(&ratings, ride, 5577); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 8, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -4070,13 +4074,13 @@ void ride_ratings_calculate_inverted_hairpin_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_magic_carpet(Ride* ride) +void ride_ratings_calculate_magic_carpet(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -4095,13 +4099,13 @@ void ride_ratings_calculate_magic_carpet(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 0; } -void ride_ratings_calculate_submarine_ride(Ride* ride) +void ride_ratings_calculate_submarine_ride(Ride* ride, RideRatingUpdateState& state) { ride->unreliability_factor = 7; set_unreliability_factor(ride); @@ -4111,7 +4115,7 @@ void ride_ratings_calculate_submarine_ride(Ride* ride) RatingTuple ratings; ride_ratings_set(&ratings, RIDE_RATING(2, 20), RIDE_RATING(1, 80), RIDE_RATING(1, 40)); ride_ratings_apply_length(&ratings, ride, 6000, 764); - ride_ratings_apply_proximity(&ratings, 11183); + ride_ratings_apply_proximity(state, &ratings, 11183); ride_ratings_apply_scenery(&ratings, ride, 22310); ride_ratings_apply_intensity_penalty(&ratings); @@ -4119,14 +4123,14 @@ void ride_ratings_calculate_submarine_ride(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; // Originally, this was always to zero, even though the default vehicle is completely enclosed. ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_river_rafts(Ride* ride) +void ride_ratings_calculate_river_rafts(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4142,7 +4146,7 @@ void ride_ratings_calculate_river_rafts(Ride* ride) ride_ratings_apply_duration(&ratings, ride, 500, 13107); ride_ratings_apply_turns(&ratings, ride, 22291, 20860, 4574); ride_ratings_apply_drops(&ratings, ride, 78643, 93622, 62259); - ride_ratings_apply_proximity(&ratings, 13420); + ride_ratings_apply_proximity(state, &ratings, 13420); ride_ratings_apply_scenery(&ratings, ride, 11155); ride_ratings_apply_intensity_penalty(&ratings); @@ -4150,13 +4154,13 @@ void ride_ratings_calculate_river_rafts(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_enterprise(Ride* ride) +void ride_ratings_calculate_enterprise(Ride* ride, RideRatingUpdateState& state) { ride->lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -4179,13 +4183,13 @@ void ride_ratings_calculate_enterprise(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = 3; } -void ride_ratings_calculate_inverted_impulse_coaster(Ride* ride) +void ride_ratings_calculate_inverted_impulse_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4205,7 +4209,7 @@ void ride_ratings_calculate_inverted_impulse_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 29552, 57186); ride_ratings_apply_drops(&ratings, ride, 29127, 39009, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 15291, 35108); - ride_ratings_apply_proximity(&ratings, 15657); + ride_ratings_apply_proximity(state, &ratings, 15657); ride_ratings_apply_scenery(&ratings, ride, 9760); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 20, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0xA0000, 2, 2, 2); @@ -4216,13 +4220,13 @@ void ride_ratings_calculate_inverted_impulse_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mini_roller_coaster(Ride* ride) +void ride_ratings_calculate_mini_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4242,7 +4246,7 @@ void ride_ratings_calculate_mini_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 25700, 30583, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 9760); ride_ratings_apply_highest_drop_height_penalty(&ratings, ride, 12, 2, 2, 2); ride_ratings_apply_max_speed_penalty(&ratings, ride, 0x70000, 2, 2, 2); @@ -4255,13 +4259,13 @@ void ride_ratings_calculate_mini_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mine_ride(Ride* ride) +void ride_ratings_calculate_mine_ride(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4281,7 +4285,7 @@ void ride_ratings_calculate_mine_ride(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 29721, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 19275, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 21472); + ride_ratings_apply_proximity(state, &ratings, 21472); ride_ratings_apply_scenery(&ratings, ride, 16732); ride_ratings_apply_first_length_penalty(&ratings, ride, 0x10E0000, 2, 2, 2); @@ -4291,13 +4295,13 @@ void ride_ratings_calculate_mine_ride(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_lim_launched_roller_coaster(Ride* ride) +void ride_ratings_calculate_lim_launched_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4317,7 +4321,7 @@ void ride_ratings_calculate_lim_launched_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 20130); + ride_ratings_apply_proximity(state, &ratings, 20130); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -4337,13 +4341,13 @@ void ride_ratings_calculate_lim_launched_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_hybrid_coaster(Ride* ride) +void ride_ratings_calculate_hybrid_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4363,7 +4367,7 @@ void ride_ratings_calculate_hybrid_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 34179, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 34952, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -4383,12 +4387,12 @@ void ride_ratings_calculate_hybrid_coaster(Ride* ride) ride_ratings_apply_intensity_penalty(&ratings); ride_ratings_apply_adjustments(ride, &ratings); ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_single_rail_roller_coaster(Ride* ride) +void ride_ratings_calculate_single_rail_roller_coaster(Ride* ride, RideRatingUpdateState& state) { if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4408,7 +4412,7 @@ void ride_ratings_calculate_single_rail_roller_coaster(Ride* ride) ride_ratings_apply_turns(&ratings, ride, 26749, 34767, 45749); ride_ratings_apply_drops(&ratings, ride, 29127, 46811, 49152); ride_ratings_apply_sheltered_ratings(&ratings, ride, 15420, 32768, 35108); - ride_ratings_apply_proximity(&ratings, 22367); + ride_ratings_apply_proximity(state, &ratings, 22367); ride_ratings_apply_scenery(&ratings, ride, 6693); if (ride->inversions == 0) @@ -4428,7 +4432,7 @@ void ride_ratings_calculate_single_rail_roller_coaster(Ride* ride) ride->ratings = ratings; - ride->upkeep_cost = ride_compute_upkeep(ride); + ride->upkeep_cost = ride_compute_upkeep(state, ride); ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride->sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; diff --git a/src/openrct2/ride/RideRatings.h b/src/openrct2/ride/RideRatings.h index 5496137151..449c42daa8 100644 --- a/src/openrct2/ride/RideRatings.h +++ b/src/openrct2/ride/RideRatings.h @@ -39,7 +39,7 @@ enum RIDE_RATING_STATION_FLAG_NO_ENTRANCE = 1 << 0 }; -struct RideRatingCalculationData +struct RideRatingUpdateState { CoordsXYZ Proximity; CoordsXYZ ProximityStart; @@ -54,92 +54,92 @@ struct RideRatingCalculationData uint16_t StationFlags; }; -extern RideRatingCalculationData gRideRatingsCalcData; +extern RideRatingUpdateState gRideRatingUpdateState; void ride_ratings_update_ride(const Ride& ride); void ride_ratings_update_all(); -using ride_ratings_calculation = void (*)(Ride* ride); +using ride_ratings_calculation = void (*)(Ride* ride, RideRatingUpdateState& state); ride_ratings_calculation ride_ratings_get_calculate_func(uint8_t rideType); -void ride_ratings_calculate_spiral_roller_coaster(Ride* ride); -void ride_ratings_calculate_stand_up_roller_coaster(Ride* ride); -void ride_ratings_calculate_suspended_swinging_coaster(Ride* ride); -void ride_ratings_calculate_inverted_roller_coaster(Ride* ride); -void ride_ratings_calculate_junior_roller_coaster(Ride* ride); -void ride_ratings_calculate_miniature_railway(Ride* ride); -void ride_ratings_calculate_monorail(Ride* ride); -void ride_ratings_calculate_mini_suspended_coaster(Ride* ride); -void ride_ratings_calculate_boat_hire(Ride* ride); -void ride_ratings_calculate_wooden_wild_mouse(Ride* ride); -void ride_ratings_calculate_steeplechase(Ride* ride); -void ride_ratings_calculate_car_ride(Ride* ride); -void ride_ratings_calculate_launched_freefall(Ride* ride); -void ride_ratings_calculate_bobsleigh_coaster(Ride* ride); -void ride_ratings_calculate_observation_tower(Ride* ride); -void ride_ratings_calculate_looping_roller_coaster(Ride* ride); -void ride_ratings_calculate_dinghy_slide(Ride* ride); -void ride_ratings_calculate_mine_train_coaster(Ride* ride); -void ride_ratings_calculate_chairlift(Ride* ride); -void ride_ratings_calculate_corkscrew_roller_coaster(Ride* ride); -void ride_ratings_calculate_maze(Ride* ride); -void ride_ratings_calculate_spiral_slide(Ride* ride); -void ride_ratings_calculate_go_karts(Ride* ride); -void ride_ratings_calculate_log_flume(Ride* ride); -void ride_ratings_calculate_river_rapids(Ride* ride); -void ride_ratings_calculate_dodgems(Ride* ride); -void ride_ratings_calculate_swinging_ship(Ride* ride); -void ride_ratings_calculate_inverter_ship(Ride* ride); -void ride_ratings_calculate_food_stall(Ride* ride); -void ride_ratings_calculate_shop(Ride* ride); -void ride_ratings_calculate_merry_go_round(Ride* ride); -void ride_ratings_calculate_information_kiosk(Ride* ride); -void ride_ratings_calculate_toilets(Ride* ride); -void ride_ratings_calculate_ferris_wheel(Ride* ride); -void ride_ratings_calculate_motion_simulator(Ride* ride); -void ride_ratings_calculate_3d_cinema(Ride* ride); -void ride_ratings_calculate_top_spin(Ride* ride); -void ride_ratings_calculate_space_rings(Ride* ride); -void ride_ratings_calculate_reverse_freefall_coaster(Ride* ride); -void ride_ratings_calculate_lift(Ride* ride); -void ride_ratings_calculate_vertical_drop_roller_coaster(Ride* ride); -void ride_ratings_calculate_cash_machine(Ride* ride); -void ride_ratings_calculate_twist(Ride* ride); -void ride_ratings_calculate_haunted_house(Ride* ride); -void ride_ratings_calculate_first_aid(Ride* ride); -void ride_ratings_calculate_circus(Ride* ride); -void ride_ratings_calculate_ghost_train(Ride* ride); -void ride_ratings_calculate_twister_roller_coaster(Ride* ride); -void ride_ratings_calculate_wooden_roller_coaster(Ride* ride); -void ride_ratings_calculate_side_friction_roller_coaster(Ride* ride); -void ride_ratings_calculate_wild_mouse(Ride* ride); -void ride_ratings_calculate_multi_dimension_roller_coaster(Ride* ride); -void ride_ratings_calculate_flying_roller_coaster(Ride* ride); -void ride_ratings_calculate_virginia_reel(Ride* ride); -void ride_ratings_calculate_splash_boats(Ride* ride); -void ride_ratings_calculate_mini_helicopters(Ride* ride); -void ride_ratings_calculate_lay_down_roller_coaster(Ride* ride); -void ride_ratings_calculate_suspended_monorail(Ride* ride); -void ride_ratings_calculate_reverser_roller_coaster(Ride* ride); -void ride_ratings_calculate_heartline_twister_coaster(Ride* ride); -void ride_ratings_calculate_mini_golf(Ride* ride); -void ride_ratings_calculate_giga_coaster(Ride* ride); -void ride_ratings_calculate_roto_drop(Ride* ride); -void ride_ratings_calculate_flying_saucers(Ride* ride); -void ride_ratings_calculate_crooked_house(Ride* ride); -void ride_ratings_calculate_monorail_cycles(Ride* ride); -void ride_ratings_calculate_compact_inverted_coaster(Ride* ride); -void ride_ratings_calculate_water_coaster(Ride* ride); -void ride_ratings_calculate_air_powered_vertical_coaster(Ride* ride); -void ride_ratings_calculate_inverted_hairpin_coaster(Ride* ride); -void ride_ratings_calculate_magic_carpet(Ride* ride); -void ride_ratings_calculate_submarine_ride(Ride* ride); -void ride_ratings_calculate_river_rafts(Ride* ride); -void ride_ratings_calculate_enterprise(Ride* ride); -void ride_ratings_calculate_inverted_impulse_coaster(Ride* ride); -void ride_ratings_calculate_mini_roller_coaster(Ride* ride); -void ride_ratings_calculate_mine_ride(Ride* ride); -void ride_ratings_calculate_lim_launched_roller_coaster(Ride* ride); -void ride_ratings_calculate_hybrid_coaster(Ride* ride); -void ride_ratings_calculate_single_rail_roller_coaster(Ride* ride); -void ride_ratings_calculate_drink_stall(Ride* ride); +void ride_ratings_calculate_spiral_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_stand_up_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_suspended_swinging_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_inverted_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_junior_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_miniature_railway(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_monorail(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_mini_suspended_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_boat_hire(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_wooden_wild_mouse(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_steeplechase(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_car_ride(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_launched_freefall(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_bobsleigh_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_observation_tower(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_looping_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_dinghy_slide(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_mine_train_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_chairlift(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_corkscrew_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_maze(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_spiral_slide(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_go_karts(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_log_flume(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_river_rapids(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_dodgems(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_swinging_ship(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_inverter_ship(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_food_stall(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_shop(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_merry_go_round(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_information_kiosk(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_toilets(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_ferris_wheel(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_motion_simulator(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_3d_cinema(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_top_spin(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_space_rings(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_reverse_freefall_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_lift(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_vertical_drop_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_cash_machine(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_twist(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_haunted_house(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_first_aid(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_circus(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_ghost_train(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_twister_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_wooden_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_side_friction_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_wild_mouse(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_multi_dimension_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_flying_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_virginia_reel(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_splash_boats(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_mini_helicopters(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_lay_down_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_suspended_monorail(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_reverser_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_heartline_twister_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_mini_golf(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_giga_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_roto_drop(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_flying_saucers(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_crooked_house(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_monorail_cycles(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_compact_inverted_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_water_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_air_powered_vertical_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_inverted_hairpin_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_magic_carpet(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_submarine_ride(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_river_rafts(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_enterprise(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_inverted_impulse_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_mini_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_mine_ride(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_lim_launched_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_hybrid_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_single_rail_roller_coaster(Ride* ride, RideRatingUpdateState& state); +void ride_ratings_calculate_drink_stall(Ride* ride, RideRatingUpdateState& state); diff --git a/src/openrct2/ride/RideTypes.h b/src/openrct2/ride/RideTypes.h index 6fb92c57c2..2a1567ad4b 100644 --- a/src/openrct2/ride/RideTypes.h +++ b/src/openrct2/ride/RideTypes.h @@ -17,8 +17,7 @@ using ride_id_t = uint16_t; struct Ride; -constexpr const ride_id_t RIDE_ID_NULL = 0xFF; // std::numeric_limits::max(); -constexpr const ride_id_t RideIdNewNull = std::numeric_limits::max(); +constexpr const ride_id_t RIDE_ID_NULL = std::numeric_limits::max(); /** * Couples a ride type and subtype together. diff --git a/src/openrct2/ride/ShopItem.cpp b/src/openrct2/ride/ShopItem.cpp index 8b1192592d..21ddf7ff89 100644 --- a/src/openrct2/ride/ShopItem.cpp +++ b/src/openrct2/ride/ShopItem.cpp @@ -11,8 +11,8 @@ #include "../common.h" #include "../localisation/StringIds.h" +#include "../peep/Peep.h" #include "../sprites.h" -#include "../world/Sprite.h" ShopItem& operator++(ShopItem& d, int) { @@ -24,61 +24,61 @@ uint64_t gSamePriceThroughoutPark; // clang-format off /** rct2: 0x00982164 (cost, base value, hot and cold value); 0x00982358 (default price) */ constexpr ShopItemDescriptor ShopItems[EnumValue(ShopItem::Count)] = { - // Item, Cost, Base value, Hot value, Cold value, Default price, Image, Price label, Singular, Plural, Indefinite, Display (in guest inventory), Shop Item Flag, Litter type, Consumption time, Discard Container, Peep thought price too much, Peep thought price good value, - /* ShopItem::Balloon */ { 3, 14, 14, 14, MONEY(0, 90), SPR_SHOP_ITEM_BALLOON, { STR_SHOP_ITEM_PRICE_LABEL_BALLOON, STR_SHOP_ITEM_SINGULAR_BALLOON, STR_SHOP_ITEM_PLURAL_BALLOON, STR_SHOP_ITEM_INDEFINITE_BALLOON, STR_SHOP_ITEM_DISPLAY_BALLOON }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::BalloonMuch, PeepThoughtType::Balloon }, - /* ShopItem::Toy */ { 15, 30, 30, 30, MONEY(2, 50), SPR_SHOP_ITEM_TOY, { STR_SHOP_ITEM_PRICE_LABEL_CUDDLY_TOY, STR_SHOP_ITEM_SINGULAR_CUDDLY_TOY, STR_SHOP_ITEM_PLURAL_CUDDLY_TOY, STR_SHOP_ITEM_INDEFINITE_CUDDLY_TOY, STR_SHOP_ITEM_DISPLAY_CUDDLY_TOY }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::ToyMuch, PeepThoughtType::Toy }, - /* ShopItem::Map */ { 1, 7, 7, 8, MONEY(0, 60), SPR_SHOP_ITEM_MAP, { STR_SHOP_ITEM_PRICE_LABEL_PARK_MAP, STR_SHOP_ITEM_SINGULAR_PARK_MAP, STR_SHOP_ITEM_PLURAL_PARK_MAP, STR_SHOP_ITEM_INDEFINITE_PARK_MAP, STR_SHOP_ITEM_DISPLAY_PARK_MAP }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::MapMuch, PeepThoughtType::Map }, - /* ShopItem::Photo */ { 2, 30, 30, 30, MONEY(0, 00), SPR_SHOP_ITEM_PHOTO, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::PhotoMuch, PeepThoughtType::Photo }, - /* ShopItem::Umbrella */ { 20, 35, 25, 50, MONEY(2, 50), SPR_SHOP_ITEM_UMBRELLA, { STR_SHOP_ITEM_PRICE_LABEL_UMBRELLA, STR_SHOP_ITEM_SINGULAR_UMBRELLA, STR_SHOP_ITEM_PLURAL_UMBRELLA, STR_SHOP_ITEM_INDEFINITE_UMBRELLA, STR_SHOP_ITEM_DISPLAY_UMBRELLA }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::UmbrellaMuch, PeepThoughtType::Umbrella }, - /* ShopItem::Drink */ { 3, 12, 20, 10, MONEY(1, 20), SPR_SHOP_ITEM_DRINK, { STR_SHOP_ITEM_PRICE_LABEL_DRINK, STR_SHOP_ITEM_SINGULAR_DRINK, STR_SHOP_ITEM_PLURAL_DRINK, STR_SHOP_ITEM_INDEFINITE_DRINK, STR_SHOP_ITEM_DISPLAY_DRINK }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 100, ShopItem::EmptyCan, PeepThoughtType::DrinkMuch, PeepThoughtType::Drink }, - /* ShopItem::Burger */ { 5, 19, 19, 22, MONEY(1, 50), SPR_SHOP_ITEM_BURGER, { STR_SHOP_ITEM_PRICE_LABEL_BURGER, STR_SHOP_ITEM_SINGULAR_BURGER, STR_SHOP_ITEM_PLURAL_BURGER, STR_SHOP_ITEM_INDEFINITE_BURGER, STR_SHOP_ITEM_DISPLAY_BURGER }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 150, ShopItem::EmptyBurgerBox, PeepThoughtType::BurgerMuch, PeepThoughtType::Burger }, - /* ShopItem::Chips */ { 4, 16, 16, 18, MONEY(1, 50), SPR_SHOP_ITEM_CHIPS, { STR_SHOP_ITEM_PRICE_LABEL_CHIPS, STR_SHOP_ITEM_SINGULAR_CHIPS, STR_SHOP_ITEM_PLURAL_CHIPS, STR_SHOP_ITEM_INDEFINITE_CHIPS, STR_SHOP_ITEM_DISPLAY_CHIPS }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 120, ShopItem::Rubbish, PeepThoughtType::ChipsMuch, PeepThoughtType::Chips }, - /* ShopItem::IceCream */ { 4, 10, 15, 6, MONEY(0, 90), SPR_SHOP_ITEM_ICE_CREAM, { STR_SHOP_ITEM_PRICE_LABEL_ICE_CREAM, STR_SHOP_ITEM_SINGULAR_ICE_CREAM, STR_SHOP_ITEM_PLURAL_ICE_CREAM, STR_SHOP_ITEM_INDEFINITE_ICE_CREAM, STR_SHOP_ITEM_DISPLAY_ICE_CREAM }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 60, ShopItem::None, PeepThoughtType::IceCreamMuch, PeepThoughtType::IceCream }, - /* ShopItem::Candyfloss */ { 3, 9, 9, 6, MONEY(0, 80), SPR_SHOP_ITEM_CANDYFLOSS, { STR_SHOP_ITEM_PRICE_LABEL_CANDYFLOSS, STR_SHOP_ITEM_SINGULAR_CANDYFLOSS, STR_SHOP_ITEM_PLURAL_CANDYFLOSS, STR_SHOP_ITEM_INDEFINITE_CANDYFLOSS, STR_SHOP_ITEM_DISPLAY_CANDYFLOSS }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 50, ShopItem::None, PeepThoughtType::CandyflossMuch, PeepThoughtType::Candyfloss }, - /* ShopItem::EmptyCan */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_CAN, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_CAN, STR_SHOP_ITEM_SINGULAR_EMPTY_CAN, STR_SHOP_ITEM_PLURAL_EMPTY_CAN, STR_SHOP_ITEM_INDEFINITE_EMPTY_CAN, STR_SHOP_ITEM_DISPLAY_EMPTY_CAN }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_CAN, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::Rubbish */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_RUBBISH, { STR_SHOP_ITEM_PRICE_LABEL_RUBBISH, STR_SHOP_ITEM_SINGULAR_RUBBISH, STR_SHOP_ITEM_PLURAL_RUBBISH, STR_SHOP_ITEM_INDEFINITE_RUBBISH, STR_SHOP_ITEM_DISPLAY_RUBBISH }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::EmptyBurgerBox */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BURGER_BOX, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BURGER_BOX, STR_SHOP_ITEM_SINGULAR_EMPTY_BURGER_BOX, STR_SHOP_ITEM_PLURAL_EMPTY_BURGER_BOX, STR_SHOP_ITEM_INDEFINITE_EMPTY_BURGER_BOX, STR_SHOP_ITEM_DISPLAY_EMPTY_BURGER_BOX }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_BURGER_BOX, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::Pizza */ { 6, 21, 21, 25, MONEY(1, 60), SPR_SHOP_ITEM_PIZZA, { STR_SHOP_ITEM_PRICE_LABEL_PIZZA, STR_SHOP_ITEM_SINGULAR_PIZZA, STR_SHOP_ITEM_PLURAL_PIZZA, STR_SHOP_ITEM_INDEFINITE_PIZZA, STR_SHOP_ITEM_DISPLAY_PIZZA }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 150, ShopItem::Rubbish, PeepThoughtType::PizzaMuch, PeepThoughtType::Pizza }, - /* ShopItem::Voucher */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_VOUCHER, { STR_SHOP_ITEM_PRICE_LABEL_VOUCHER, STR_SHOP_ITEM_SINGULAR_VOUCHER, STR_SHOP_ITEM_PLURAL_VOUCHER, STR_SHOP_ITEM_INDEFINITE_VOUCHER, STR_SHOP_ITEM_DISPLAY_VOUCHER }, 0, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::Popcorn */ { 5, 13, 13, 11, MONEY(1, 20), SPR_SHOP_ITEM_POPCORN, { STR_SHOP_ITEM_PRICE_LABEL_POPCORN, STR_SHOP_ITEM_SINGULAR_POPCORN, STR_SHOP_ITEM_PLURAL_POPCORN, STR_SHOP_ITEM_INDEFINITE_POPCORN, STR_SHOP_ITEM_DISPLAY_POPCORN }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 75, ShopItem::Rubbish, PeepThoughtType::PopcornMuch, PeepThoughtType::Popcorn }, - /* ShopItem::HotDog */ { 5, 17, 17, 20, MONEY(1, 00), SPR_SHOP_ITEM_HOT_DOG, { STR_SHOP_ITEM_PRICE_LABEL_HOT_DOG, STR_SHOP_ITEM_SINGULAR_HOT_DOG, STR_SHOP_ITEM_PLURAL_HOT_DOG, STR_SHOP_ITEM_INDEFINITE_HOT_DOG, STR_SHOP_ITEM_DISPLAY_HOT_DOG }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 133, ShopItem::None, PeepThoughtType::HotDogMuch, PeepThoughtType::HotDog }, - /* ShopItem::Tentacle */ { 11, 22, 20, 18, MONEY(1, 50), SPR_SHOP_ITEM_TENTACLE, { STR_SHOP_ITEM_PRICE_LABEL_TENTACLE, STR_SHOP_ITEM_SINGULAR_TENTACLE, STR_SHOP_ITEM_PLURAL_TENTACLE, STR_SHOP_ITEM_INDEFINITE_TENTACLE, STR_SHOP_ITEM_DISPLAY_TENTACLE }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 110, ShopItem::None, PeepThoughtType::TentacleMuch, PeepThoughtType::Tentacle }, - /* ShopItem::Hat */ { 9, 27, 32, 24, MONEY(1, 50), SPR_SHOP_ITEM_HAT, { STR_SHOP_ITEM_PRICE_LABEL_HAT, STR_SHOP_ITEM_SINGULAR_HAT, STR_SHOP_ITEM_PLURAL_HAT, STR_SHOP_ITEM_INDEFINITE_HAT, STR_SHOP_ITEM_DISPLAY_HAT }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::HatMuch, PeepThoughtType::Hat }, - /* ShopItem::ToffeeApple */ { 4, 10, 10, 10, MONEY(0, 70), SPR_SHOP_ITEM_TOFFEE_APPLE, { STR_SHOP_ITEM_PRICE_LABEL_TOFFEE_APPLE, STR_SHOP_ITEM_SINGULAR_TOFFEE_APPLE, STR_SHOP_ITEM_PLURAL_TOFFEE_APPLE, STR_SHOP_ITEM_INDEFINITE_TOFFEE_APPLE, STR_SHOP_ITEM_DISPLAY_TOFFEE_APPLE }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 50, ShopItem::None, PeepThoughtType::ToffeeAppleMuch, PeepThoughtType::ToffeeApple }, - /* ShopItem::TShirt */ { 20, 37, 37, 37, MONEY(3, 00), SPR_SHOP_ITEM_TSHIRT, { STR_SHOP_ITEM_PRICE_LABEL_T_SHIRT, STR_SHOP_ITEM_SINGULAR_T_SHIRT, STR_SHOP_ITEM_PLURAL_T_SHIRT, STR_SHOP_ITEM_INDEFINITE_T_SHIRT, STR_SHOP_ITEM_DISPLAY_T_SHIRT }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::TshirtMuch, PeepThoughtType::Tshirt }, - /* ShopItem::Doughnut */ { 4, 8, 7, 10, MONEY(0, 70), SPR_SHOP_ITEM_DOUGHNUT, { STR_SHOP_ITEM_PRICE_LABEL_DOUGHNUT, STR_SHOP_ITEM_SINGULAR_DOUGHNUT, STR_SHOP_ITEM_PLURAL_DOUGHNUT, STR_SHOP_ITEM_INDEFINITE_DOUGHNUT, STR_SHOP_ITEM_DISPLAY_DOUGHNUT }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 80, ShopItem::None, PeepThoughtType::DoughnutMuch, PeepThoughtType::Doughnut }, - /* ShopItem::Coffee */ { 3, 11, 15, 20, MONEY(1, 20), SPR_SHOP_ITEM_COFFEE, { STR_SHOP_ITEM_PRICE_LABEL_COFFEE, STR_SHOP_ITEM_SINGULAR_COFFEE, STR_SHOP_ITEM_PLURAL_COFFEE, STR_SHOP_ITEM_INDEFINITE_COFFEE, STR_SHOP_ITEM_DISPLAY_COFFEE }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 90, ShopItem::EmptyCup, PeepThoughtType::CoffeeMuch, PeepThoughtType::Coffee }, - /* ShopItem::EmptyCup */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_CUP, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_CUP, STR_SHOP_ITEM_SINGULAR_EMPTY_CUP, STR_SHOP_ITEM_PLURAL_EMPTY_CUP, STR_SHOP_ITEM_INDEFINITE_EMPTY_CUP, STR_SHOP_ITEM_DISPLAY_EMPTY_CUP }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_CUP, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::Chicken */ { 5, 19, 19, 22, MONEY(1, 50), SPR_SHOP_ITEM_CHICKEN, { STR_SHOP_ITEM_PRICE_LABEL_FRIED_CHICKEN, STR_SHOP_ITEM_SINGULAR_FRIED_CHICKEN, STR_SHOP_ITEM_PLURAL_FRIED_CHICKEN, STR_SHOP_ITEM_INDEFINITE_FRIED_CHICKEN, STR_SHOP_ITEM_DISPLAY_FRIED_CHICKEN }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_EMPTY_BOX, 170, ShopItem::EmptyBox, PeepThoughtType::ChickenMuch, PeepThoughtType::Chicken }, - /* ShopItem::Lemonade */ { 4, 11, 21, 10, MONEY(1, 20), SPR_SHOP_ITEM_LEMONADE, { STR_SHOP_ITEM_PRICE_LABEL_LEMONADE, STR_SHOP_ITEM_SINGULAR_LEMONADE, STR_SHOP_ITEM_PLURAL_LEMONADE, STR_SHOP_ITEM_INDEFINITE_LEMONADE, STR_SHOP_ITEM_DISPLAY_LEMONADE }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_EMPTY_BOTTLE, 115, ShopItem::EmptyBottle, PeepThoughtType::LemonadeMuch, PeepThoughtType::Lemonade }, - /* ShopItem::EmptyBox */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOX, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOX, STR_SHOP_ITEM_SINGULAR_EMPTY_BOX, STR_SHOP_ITEM_PLURAL_EMPTY_BOX, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOX, STR_SHOP_ITEM_DISPLAY_EMPTY_BOX }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_BOX, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::EmptyBottle */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOTTLE, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOTTLE, STR_SHOP_ITEM_SINGULAR_EMPTY_BOTTLE, STR_SHOP_ITEM_PLURAL_EMPTY_BOTTLE, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOTTLE, STR_SHOP_ITEM_DISPLAY_EMPTY_BOTTLE }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_BOTTLE, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* 28 */ { 0, 0, 0, 0, MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, 0, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* 29 */ { 0, 0, 0, 0, MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, 0, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* 30 */ { 0, 0, 0, 0, MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, 0, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::Admission */ { 0, 0, 0, 0, MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, 0, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::Photo2 */ { 2, 30, 30, 30, MONEY(0, 00), SPR_SHOP_ITEM_PHOTO2, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::Photo2Much, PeepThoughtType::Photo2 }, - /* ShopItem::Photo3 */ { 2, 30, 30, 30, MONEY(0, 00), SPR_SHOP_ITEM_PHOTO3, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::Photo3Much, PeepThoughtType::Photo3 }, - /* ShopItem::Photo4 */ { 2, 30, 30, 30, MONEY(0, 00), SPR_SHOP_ITEM_PHOTO4, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::Photo4Much, PeepThoughtType::Photo4 }, - /* ShopItem::Pretzel */ { 5, 11, 11, 11, MONEY(1, 10), SPR_SHOP_ITEM_PRETZEL, { STR_SHOP_ITEM_PRICE_LABEL_PRETZEL, STR_SHOP_ITEM_SINGULAR_PRETZEL, STR_SHOP_ITEM_PLURAL_PRETZEL, STR_SHOP_ITEM_INDEFINITE_PRETZEL, STR_SHOP_ITEM_DISPLAY_PRETZEL }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 70, ShopItem::None, PeepThoughtType::PretzelMuch, PeepThoughtType::Pretzel }, - /* ShopItem::Chocolate */ { 4, 13, 13, 20, MONEY(1, 20), SPR_SHOP_ITEM_CHOCOLATE, { STR_SHOP_ITEM_PRICE_LABEL_HOT_CHOCOLATE, STR_SHOP_ITEM_SINGULAR_HOT_CHOCOLATE, STR_SHOP_ITEM_PLURAL_HOT_CHOCOLATE, STR_SHOP_ITEM_INDEFINITE_HOT_CHOCOLATE, STR_SHOP_ITEM_DISPLAY_HOT_CHOCOLATE }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 85, ShopItem::EmptyCup, PeepThoughtType::HotChocolateMuch, PeepThoughtType::HotChocolate }, - /* ShopItem::IcedTea */ { 3, 10, 20, 10, MONEY(1, 10), SPR_SHOP_ITEM_ICED_TEA, { STR_SHOP_ITEM_PRICE_LABEL_ICED_TEA, STR_SHOP_ITEM_SINGULAR_ICED_TEA, STR_SHOP_ITEM_PLURAL_ICED_TEA, STR_SHOP_ITEM_INDEFINITE_ICED_TEA, STR_SHOP_ITEM_DISPLAY_ICED_TEA }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 95, ShopItem::EmptyCup, PeepThoughtType::IcedTeaMuch, PeepThoughtType::IcedTea }, - /* ShopItem::FunnelCake */ { 5, 13, 11, 14, MONEY(1, 20), SPR_SHOP_ITEM_FUNNEL_CAKE, { STR_SHOP_ITEM_PRICE_LABEL_FUNNEL_CAKE, STR_SHOP_ITEM_SINGULAR_FUNNEL_CAKE, STR_SHOP_ITEM_PLURAL_FUNNEL_CAKE, STR_SHOP_ITEM_INDEFINITE_FUNNEL_CAKE, STR_SHOP_ITEM_DISPLAY_FUNNEL_CAKE }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 90, ShopItem::None, PeepThoughtType::FunnelCakeMuch, PeepThoughtType::FunnelCake }, - /* ShopItem::Sunglasses */ { 8, 15, 20, 12, MONEY(1, 50), SPR_SHOP_ITEM_SUNGLASSES, { STR_SHOP_ITEM_PRICE_LABEL_SUNGLASSES, STR_SHOP_ITEM_SINGULAR_SUNGLASSES, STR_SHOP_ITEM_PLURAL_SUNGLASSES, STR_SHOP_ITEM_INDEFINITE_SUNGLASSES, STR_SHOP_ITEM_DISPLAY_SUNGLASSES }, SHOP_ITEM_FLAG_IS_SOUVENIR, LITTER_TYPE_RUBBISH, 0, ShopItem::None, PeepThoughtType::SunglassesMuch, PeepThoughtType::Sunglasses }, - /* ShopItem::BeefNoodles */ { 7, 17, 17, 20, MONEY(1, 50), SPR_SHOP_ITEM_BEEF_NOODLES, { STR_SHOP_ITEM_PRICE_LABEL_BEEF_NOODLES, STR_SHOP_ITEM_SINGULAR_BEEF_NOODLES, STR_SHOP_ITEM_PLURAL_BEEF_NOODLES, STR_SHOP_ITEM_INDEFINITE_BEEF_NOODLES, STR_SHOP_ITEM_DISPLAY_BEEF_NOODLES }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 130, ShopItem::EmptyBowlBlue, PeepThoughtType::BeefNoodlesMuch, PeepThoughtType::BeefNoodles }, - /* ShopItem::FriedRiceNoodles */ { 6, 17, 17, 20, MONEY(1, 50), SPR_SHOP_ITEM_FRIED_RICE_NOODLES, { STR_SHOP_ITEM_PRICE_LABEL_FRIED_RICE_NOODLES, STR_SHOP_ITEM_SINGULAR_FRIED_RICE_NOODLES, STR_SHOP_ITEM_PLURAL_FRIED_RICE_NOODLES, STR_SHOP_ITEM_INDEFINITE_FRIED_RICE_NOODLES, STR_SHOP_ITEM_DISPLAY_FRIED_RICE_NOODLES }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 120, ShopItem::EmptyBowlBlue, PeepThoughtType::FriedRiceNoodlesMuch, PeepThoughtType::FriedRiceNoodles }, - /* ShopItem::WontonSoup */ { 4, 13, 13, 15, MONEY(1, 50), SPR_SHOP_ITEM_WONTON_SOUP, { STR_SHOP_ITEM_PRICE_LABEL_WONTON_SOUP, STR_SHOP_ITEM_SINGULAR_WONTON_SOUP, STR_SHOP_ITEM_PLURAL_WONTON_SOUP, STR_SHOP_ITEM_INDEFINITE_WONTON_SOUP, STR_SHOP_ITEM_DISPLAY_WONTON_SOUP }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 100, ShopItem::EmptyBowlRed, PeepThoughtType::WontonSoupMuch, PeepThoughtType::WontonSoup }, - /* ShopItem::MeatballSoup */ { 5, 14, 14, 16, MONEY(1, 50), SPR_SHOP_ITEM_MEATBALL_SOUP, { STR_SHOP_ITEM_PRICE_LABEL_MEATBALL_SOUP, STR_SHOP_ITEM_SINGULAR_MEATBALL_SOUP, STR_SHOP_ITEM_PLURAL_MEATBALL_SOUP, STR_SHOP_ITEM_INDEFINITE_MEATBALL_SOUP, STR_SHOP_ITEM_DISPLAY_MEATBALL_SOUP }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 110, ShopItem::EmptyBowlRed, PeepThoughtType::MeatballSoupMuch, PeepThoughtType::MeatballSoup }, - /* ShopItem::FruitJuice */ { 4, 11, 19, 11, MONEY(1, 20), SPR_SHOP_ITEM_FRUIT_JUICE, { STR_SHOP_ITEM_PRICE_LABEL_FRUIT_JUICE, STR_SHOP_ITEM_SINGULAR_FRUIT_JUICE, STR_SHOP_ITEM_PLURAL_FRUIT_JUICE, STR_SHOP_ITEM_INDEFINITE_FRUIT_JUICE, STR_SHOP_ITEM_DISPLAY_FRUIT_JUICE }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 110, ShopItem::EmptyJuiceCup, PeepThoughtType::FruitJuiceMuch, PeepThoughtType::FruitJuice }, - /* ShopItem::SoybeanMilk */ { 4, 10, 14, 10, MONEY(1, 20), SPR_SHOP_ITEM_SOYBEAN_MILK, { STR_SHOP_ITEM_PRICE_LABEL_SOYBEAN_MILK, STR_SHOP_ITEM_SINGULAR_SOYBEAN_MILK, STR_SHOP_ITEM_PLURAL_SOYBEAN_MILK, STR_SHOP_ITEM_INDEFINITE_SOYBEAN_MILK, STR_SHOP_ITEM_DISPLAY_SOYBEAN_MILK }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 90, ShopItem::EmptyDrinkCarton, PeepThoughtType::SoybeanMilkMuch, PeepThoughtType::SoybeanMilk }, - /* ShopItem::Sujeonggwa */ { 3, 11, 14, 11, MONEY(1, 20), SPR_SHOP_ITEM_SUJEONGGWA, { STR_SHOP_ITEM_PRICE_LABEL_SUJONGKWA, STR_SHOP_ITEM_SINGULAR_SUJONGKWA, STR_SHOP_ITEM_PLURAL_SUJONGKWA, STR_SHOP_ITEM_INDEFINITE_SUJONGKWA, STR_SHOP_ITEM_DISPLAY_SUJONGKWA }, SHOP_ITEM_FLAG_IS_DRINK, LITTER_TYPE_RUBBISH, 100, ShopItem::EmptyDrinkCarton, PeepThoughtType::SujongkwaMuch, PeepThoughtType::Sujongkwa }, - /* ShopItem::SubSandwich */ { 5, 19, 19, 17, MONEY(1, 50), SPR_SHOP_ITEM_SUB_SANDWICH, { STR_SHOP_ITEM_PRICE_LABEL_SUB_SANDWICH, STR_SHOP_ITEM_SINGULAR_SUB_SANDWICH, STR_SHOP_ITEM_PLURAL_SUB_SANDWICH, STR_SHOP_ITEM_INDEFINITE_SUB_SANDWICH, STR_SHOP_ITEM_DISPLAY_SUB_SANDWICH }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 130, ShopItem::None, PeepThoughtType::SubSandwichMuch, PeepThoughtType::SubSandwich }, - /* ShopItem::Cookie */ { 4, 8, 8, 8, MONEY(0, 70), SPR_SHOP_ITEM_COOKIE, { STR_SHOP_ITEM_PRICE_LABEL_COOKIE, STR_SHOP_ITEM_SINGULAR_COOKIE, STR_SHOP_ITEM_PLURAL_COOKIE, STR_SHOP_ITEM_INDEFINITE_COOKIE, STR_SHOP_ITEM_DISPLAY_COOKIE }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 75, ShopItem::None, PeepThoughtType::CookieMuch, PeepThoughtType::Cookie }, - /* ShopItem::EmptyBowlRed */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOWL_RED, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOWL_RED, STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_RED, STR_SHOP_ITEM_PLURAL_EMPTY_BOWL_RED, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOWL_RED, STR_SHOP_ITEM_DISPLAY_EMPTY_BOWL_RED }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_BOWL_RED, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::EmptyDrinkCarton */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_DRINK_CARTON, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_SINGULAR_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_PLURAL_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_INDEFINITE_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_DISPLAY_EMPTY_DRINK_CARTON }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_DRINK_CARTON, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::EmptyJuiceCup */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_JUICE_CUP, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_JUICE_CUP, STR_SHOP_ITEM_SINGULAR_EMPTY_JUICE_CUP, STR_SHOP_ITEM_PLURAL_EMPTY_JUICE_CUP, STR_SHOP_ITEM_INDEFINITE_EMPTY_JUICE_CUP, STR_SHOP_ITEM_DISPLAY_EMPTY_JUICE_CUP }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_JUICE_CUP, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, - /* ShopItem::RoastSausage */ { 5, 16, 16, 20, MONEY(1, 50), SPR_SHOP_ITEM_ROAST_SAUSAGE, { STR_SHOP_ITEM_PRICE_LABEL_ROAST_SAUSAGE, STR_SHOP_ITEM_SINGULAR_ROAST_SAUSAGE, STR_SHOP_ITEM_PLURAL_ROAST_SAUSAGE, STR_SHOP_ITEM_INDEFINITE_ROAST_SAUSAGE, STR_SHOP_ITEM_DISPLAY_ROAST_SAUSAGE }, SHOP_ITEM_FLAG_IS_FOOD, LITTER_TYPE_RUBBISH, 115, ShopItem::None, PeepThoughtType::RoastSausageMuch, PeepThoughtType::RoastSausage }, - /* ShopItem::EmptyBowlBlue */ { 0, 0, 0, 0, MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOWL_BLUE, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_PLURAL_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_DISPLAY_EMPTY_BOWL_BLUE }, SHOP_ITEM_FLAG_IS_CONTAINER, LITTER_TYPE_EMPTY_BOWL_BLUE, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + // Item, Cost, Base value, Hot value, Cold value, Default price, Image, Price label, Singular, Plural, Indefinite, Display (in guest inventory), Shop Item Flag, Litter type, Consumption time, Discard Container, Peep thought price too much, Peep thought price good value, + /* ShopItem::Balloon */ { MONEY(0, 30), MONEY(1, 40), MONEY(1, 40), MONEY(1, 40), MONEY(0, 90), SPR_SHOP_ITEM_BALLOON, { STR_SHOP_ITEM_PRICE_LABEL_BALLOON, STR_SHOP_ITEM_SINGULAR_BALLOON, STR_SHOP_ITEM_PLURAL_BALLOON, STR_SHOP_ITEM_INDEFINITE_BALLOON, STR_SHOP_ITEM_DISPLAY_BALLOON }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::BalloonMuch, PeepThoughtType::Balloon }, + /* ShopItem::Toy */ { MONEY(1, 50), MONEY(3, 00), MONEY(3, 00), MONEY(3, 00), MONEY(2, 50), SPR_SHOP_ITEM_TOY, { STR_SHOP_ITEM_PRICE_LABEL_CUDDLY_TOY, STR_SHOP_ITEM_SINGULAR_CUDDLY_TOY, STR_SHOP_ITEM_PLURAL_CUDDLY_TOY, STR_SHOP_ITEM_INDEFINITE_CUDDLY_TOY, STR_SHOP_ITEM_DISPLAY_CUDDLY_TOY }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::ToyMuch, PeepThoughtType::Toy }, + /* ShopItem::Map */ { MONEY(0, 10), MONEY(0, 70), MONEY(0, 70), MONEY(0, 80), MONEY(0, 60), SPR_SHOP_ITEM_MAP, { STR_SHOP_ITEM_PRICE_LABEL_PARK_MAP, STR_SHOP_ITEM_SINGULAR_PARK_MAP, STR_SHOP_ITEM_PLURAL_PARK_MAP, STR_SHOP_ITEM_INDEFINITE_PARK_MAP, STR_SHOP_ITEM_DISPLAY_PARK_MAP }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::MapMuch, PeepThoughtType::Map }, + /* ShopItem::Photo */ { MONEY(0, 20), MONEY(3, 00), MONEY(3, 00), MONEY(3, 00), MONEY(0, 00), SPR_SHOP_ITEM_PHOTO, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::PhotoMuch, PeepThoughtType::Photo }, + /* ShopItem::Umbrella */ { MONEY(2, 00), MONEY(3, 50), MONEY(2, 50), MONEY(5, 00), MONEY(2, 50), SPR_SHOP_ITEM_UMBRELLA, { STR_SHOP_ITEM_PRICE_LABEL_UMBRELLA, STR_SHOP_ITEM_SINGULAR_UMBRELLA, STR_SHOP_ITEM_PLURAL_UMBRELLA, STR_SHOP_ITEM_INDEFINITE_UMBRELLA, STR_SHOP_ITEM_DISPLAY_UMBRELLA }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::UmbrellaMuch, PeepThoughtType::Umbrella }, + /* ShopItem::Drink */ { MONEY(0, 30), MONEY(1, 20), MONEY(2, 00), MONEY(1, 00), MONEY(1, 20), SPR_SHOP_ITEM_DRINK, { STR_SHOP_ITEM_PRICE_LABEL_DRINK, STR_SHOP_ITEM_SINGULAR_DRINK, STR_SHOP_ITEM_PLURAL_DRINK, STR_SHOP_ITEM_INDEFINITE_DRINK, STR_SHOP_ITEM_DISPLAY_DRINK }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 100, ShopItem::EmptyCan, PeepThoughtType::DrinkMuch, PeepThoughtType::Drink }, + /* ShopItem::Burger */ { MONEY(0, 50), MONEY(1, 90), MONEY(1, 90), MONEY(2, 20), MONEY(1, 50), SPR_SHOP_ITEM_BURGER, { STR_SHOP_ITEM_PRICE_LABEL_BURGER, STR_SHOP_ITEM_SINGULAR_BURGER, STR_SHOP_ITEM_PLURAL_BURGER, STR_SHOP_ITEM_INDEFINITE_BURGER, STR_SHOP_ITEM_DISPLAY_BURGER }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 150, ShopItem::EmptyBurgerBox, PeepThoughtType::BurgerMuch, PeepThoughtType::Burger }, + /* ShopItem::Chips */ { MONEY(0, 40), MONEY(1, 60), MONEY(1, 60), MONEY(1, 80), MONEY(1, 50), SPR_SHOP_ITEM_CHIPS, { STR_SHOP_ITEM_PRICE_LABEL_CHIPS, STR_SHOP_ITEM_SINGULAR_CHIPS, STR_SHOP_ITEM_PLURAL_CHIPS, STR_SHOP_ITEM_INDEFINITE_CHIPS, STR_SHOP_ITEM_DISPLAY_CHIPS }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 120, ShopItem::Rubbish, PeepThoughtType::ChipsMuch, PeepThoughtType::Chips }, + /* ShopItem::IceCream */ { MONEY(0, 40), MONEY(1, 00), MONEY(1, 50), MONEY(0, 60), MONEY(0, 90), SPR_SHOP_ITEM_ICE_CREAM, { STR_SHOP_ITEM_PRICE_LABEL_ICE_CREAM, STR_SHOP_ITEM_SINGULAR_ICE_CREAM, STR_SHOP_ITEM_PLURAL_ICE_CREAM, STR_SHOP_ITEM_INDEFINITE_ICE_CREAM, STR_SHOP_ITEM_DISPLAY_ICE_CREAM }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 60, ShopItem::None, PeepThoughtType::IceCreamMuch, PeepThoughtType::IceCream }, + /* ShopItem::Candyfloss */ { MONEY(0, 30), MONEY(0, 90), MONEY(0, 90), MONEY(0, 60), MONEY(0, 80), SPR_SHOP_ITEM_CANDYFLOSS, { STR_SHOP_ITEM_PRICE_LABEL_CANDYFLOSS, STR_SHOP_ITEM_SINGULAR_CANDYFLOSS, STR_SHOP_ITEM_PLURAL_CANDYFLOSS, STR_SHOP_ITEM_INDEFINITE_CANDYFLOSS, STR_SHOP_ITEM_DISPLAY_CANDYFLOSS }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 50, ShopItem::None, PeepThoughtType::CandyflossMuch, PeepThoughtType::Candyfloss }, + /* ShopItem::EmptyCan */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_CAN, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_CAN, STR_SHOP_ITEM_SINGULAR_EMPTY_CAN, STR_SHOP_ITEM_PLURAL_EMPTY_CAN, STR_SHOP_ITEM_INDEFINITE_EMPTY_CAN, STR_SHOP_ITEM_DISPLAY_EMPTY_CAN }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyCan, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::Rubbish */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_RUBBISH, { STR_SHOP_ITEM_PRICE_LABEL_RUBBISH, STR_SHOP_ITEM_SINGULAR_RUBBISH, STR_SHOP_ITEM_PLURAL_RUBBISH, STR_SHOP_ITEM_INDEFINITE_RUBBISH, STR_SHOP_ITEM_DISPLAY_RUBBISH }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::EmptyBurgerBox */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BURGER_BOX, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BURGER_BOX, STR_SHOP_ITEM_SINGULAR_EMPTY_BURGER_BOX, STR_SHOP_ITEM_PLURAL_EMPTY_BURGER_BOX, STR_SHOP_ITEM_INDEFINITE_EMPTY_BURGER_BOX, STR_SHOP_ITEM_DISPLAY_EMPTY_BURGER_BOX }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::BurgerBox, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::Pizza */ { MONEY(0, 60), MONEY(2, 10), MONEY(2, 10), MONEY(2, 50), MONEY(1, 60), SPR_SHOP_ITEM_PIZZA, { STR_SHOP_ITEM_PRICE_LABEL_PIZZA, STR_SHOP_ITEM_SINGULAR_PIZZA, STR_SHOP_ITEM_PLURAL_PIZZA, STR_SHOP_ITEM_INDEFINITE_PIZZA, STR_SHOP_ITEM_DISPLAY_PIZZA }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 150, ShopItem::Rubbish, PeepThoughtType::PizzaMuch, PeepThoughtType::Pizza }, + /* ShopItem::Voucher */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_VOUCHER, { STR_SHOP_ITEM_PRICE_LABEL_VOUCHER, STR_SHOP_ITEM_SINGULAR_VOUCHER, STR_SHOP_ITEM_PLURAL_VOUCHER, STR_SHOP_ITEM_INDEFINITE_VOUCHER, STR_SHOP_ITEM_DISPLAY_VOUCHER }, 0, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::Popcorn */ { MONEY(0, 50), MONEY(1, 30), MONEY(1, 30), MONEY(1, 10), MONEY(1, 20), SPR_SHOP_ITEM_POPCORN, { STR_SHOP_ITEM_PRICE_LABEL_POPCORN, STR_SHOP_ITEM_SINGULAR_POPCORN, STR_SHOP_ITEM_PLURAL_POPCORN, STR_SHOP_ITEM_INDEFINITE_POPCORN, STR_SHOP_ITEM_DISPLAY_POPCORN }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 75, ShopItem::Rubbish, PeepThoughtType::PopcornMuch, PeepThoughtType::Popcorn }, + /* ShopItem::HotDog */ { MONEY(0, 50), MONEY(1, 70), MONEY(1, 70), MONEY(2, 00), MONEY(1, 00), SPR_SHOP_ITEM_HOT_DOG, { STR_SHOP_ITEM_PRICE_LABEL_HOT_DOG, STR_SHOP_ITEM_SINGULAR_HOT_DOG, STR_SHOP_ITEM_PLURAL_HOT_DOG, STR_SHOP_ITEM_INDEFINITE_HOT_DOG, STR_SHOP_ITEM_DISPLAY_HOT_DOG }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 133, ShopItem::None, PeepThoughtType::HotDogMuch, PeepThoughtType::HotDog }, + /* ShopItem::Tentacle */ { MONEY(1, 10), MONEY(2, 20), MONEY(2, 00), MONEY(1, 80), MONEY(1, 50), SPR_SHOP_ITEM_TENTACLE, { STR_SHOP_ITEM_PRICE_LABEL_TENTACLE, STR_SHOP_ITEM_SINGULAR_TENTACLE, STR_SHOP_ITEM_PLURAL_TENTACLE, STR_SHOP_ITEM_INDEFINITE_TENTACLE, STR_SHOP_ITEM_DISPLAY_TENTACLE }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 110, ShopItem::None, PeepThoughtType::TentacleMuch, PeepThoughtType::Tentacle }, + /* ShopItem::Hat */ { MONEY(0, 90), MONEY(2, 70), MONEY(3, 20), MONEY(2, 40), MONEY(1, 50), SPR_SHOP_ITEM_HAT, { STR_SHOP_ITEM_PRICE_LABEL_HAT, STR_SHOP_ITEM_SINGULAR_HAT, STR_SHOP_ITEM_PLURAL_HAT, STR_SHOP_ITEM_INDEFINITE_HAT, STR_SHOP_ITEM_DISPLAY_HAT }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::HatMuch, PeepThoughtType::Hat }, + /* ShopItem::ToffeeApple */ { MONEY(0, 40), MONEY(1, 00), MONEY(1, 00), MONEY(1, 00), MONEY(0, 70), SPR_SHOP_ITEM_TOFFEE_APPLE, { STR_SHOP_ITEM_PRICE_LABEL_TOFFEE_APPLE, STR_SHOP_ITEM_SINGULAR_TOFFEE_APPLE, STR_SHOP_ITEM_PLURAL_TOFFEE_APPLE, STR_SHOP_ITEM_INDEFINITE_TOFFEE_APPLE, STR_SHOP_ITEM_DISPLAY_TOFFEE_APPLE }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 50, ShopItem::None, PeepThoughtType::ToffeeAppleMuch, PeepThoughtType::ToffeeApple }, + /* ShopItem::TShirt */ { MONEY(2, 00), MONEY(3, 70), MONEY(3, 70), MONEY(3, 70), MONEY(3, 00), SPR_SHOP_ITEM_TSHIRT, { STR_SHOP_ITEM_PRICE_LABEL_T_SHIRT, STR_SHOP_ITEM_SINGULAR_T_SHIRT, STR_SHOP_ITEM_PLURAL_T_SHIRT, STR_SHOP_ITEM_INDEFINITE_T_SHIRT, STR_SHOP_ITEM_DISPLAY_T_SHIRT }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::TshirtMuch, PeepThoughtType::Tshirt }, + /* ShopItem::Doughnut */ { MONEY(0, 40), MONEY(0, 80), MONEY(0, 70), MONEY(1, 00), MONEY(0, 70), SPR_SHOP_ITEM_DOUGHNUT, { STR_SHOP_ITEM_PRICE_LABEL_DOUGHNUT, STR_SHOP_ITEM_SINGULAR_DOUGHNUT, STR_SHOP_ITEM_PLURAL_DOUGHNUT, STR_SHOP_ITEM_INDEFINITE_DOUGHNUT, STR_SHOP_ITEM_DISPLAY_DOUGHNUT }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 80, ShopItem::None, PeepThoughtType::DoughnutMuch, PeepThoughtType::Doughnut }, + /* ShopItem::Coffee */ { MONEY(0, 30), MONEY(1, 10), MONEY(1, 50), MONEY(2, 00), MONEY(1, 20), SPR_SHOP_ITEM_COFFEE, { STR_SHOP_ITEM_PRICE_LABEL_COFFEE, STR_SHOP_ITEM_SINGULAR_COFFEE, STR_SHOP_ITEM_PLURAL_COFFEE, STR_SHOP_ITEM_INDEFINITE_COFFEE, STR_SHOP_ITEM_DISPLAY_COFFEE }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 90, ShopItem::EmptyCup, PeepThoughtType::CoffeeMuch, PeepThoughtType::Coffee }, + /* ShopItem::EmptyCup */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_CUP, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_CUP, STR_SHOP_ITEM_SINGULAR_EMPTY_CUP, STR_SHOP_ITEM_PLURAL_EMPTY_CUP, STR_SHOP_ITEM_INDEFINITE_EMPTY_CUP, STR_SHOP_ITEM_DISPLAY_EMPTY_CUP }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyCup, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::Chicken */ { MONEY(0, 50), MONEY(1, 90), MONEY(1, 90), MONEY(2, 20), MONEY(1, 50), SPR_SHOP_ITEM_CHICKEN, { STR_SHOP_ITEM_PRICE_LABEL_FRIED_CHICKEN, STR_SHOP_ITEM_SINGULAR_FRIED_CHICKEN, STR_SHOP_ITEM_PLURAL_FRIED_CHICKEN, STR_SHOP_ITEM_INDEFINITE_FRIED_CHICKEN, STR_SHOP_ITEM_DISPLAY_FRIED_CHICKEN }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::EmptyBox, 170, ShopItem::EmptyBox, PeepThoughtType::ChickenMuch, PeepThoughtType::Chicken }, + /* ShopItem::Lemonade */ { MONEY(0, 40), MONEY(1, 10), MONEY(2, 10), MONEY(1, 00), MONEY(1, 20), SPR_SHOP_ITEM_LEMONADE, { STR_SHOP_ITEM_PRICE_LABEL_LEMONADE, STR_SHOP_ITEM_SINGULAR_LEMONADE, STR_SHOP_ITEM_PLURAL_LEMONADE, STR_SHOP_ITEM_INDEFINITE_LEMONADE, STR_SHOP_ITEM_DISPLAY_LEMONADE }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::EmptyBottle, 115, ShopItem::EmptyBottle, PeepThoughtType::LemonadeMuch, PeepThoughtType::Lemonade }, + /* ShopItem::EmptyBox */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOX, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOX, STR_SHOP_ITEM_SINGULAR_EMPTY_BOX, STR_SHOP_ITEM_PLURAL_EMPTY_BOX, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOX, STR_SHOP_ITEM_DISPLAY_EMPTY_BOX }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyBox, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::EmptyBottle */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOTTLE, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOTTLE, STR_SHOP_ITEM_SINGULAR_EMPTY_BOTTLE, STR_SHOP_ITEM_PLURAL_EMPTY_BOTTLE, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOTTLE, STR_SHOP_ITEM_DISPLAY_EMPTY_BOTTLE }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyBottle, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* 28 */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, Litter::Type::Vomit, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* 29 */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, Litter::Type::Vomit, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* 30 */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, Litter::Type::Vomit, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::Admission */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), 0, { STR_NONE, STR_NONE, STR_NONE, STR_NONE, STR_NONE }, 0, Litter::Type::Vomit, 0xFF, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::Photo2 */ { MONEY(0, 20), MONEY(3, 00), MONEY(3, 00), MONEY(3, 00), MONEY(0, 00), SPR_SHOP_ITEM_PHOTO2, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::Photo2Much, PeepThoughtType::Photo2 }, + /* ShopItem::Photo3 */ { MONEY(0, 20), MONEY(3, 00), MONEY(3, 00), MONEY(3, 00), MONEY(0, 00), SPR_SHOP_ITEM_PHOTO3, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::Photo3Much, PeepThoughtType::Photo3 }, + /* ShopItem::Photo4 */ { MONEY(0, 20), MONEY(3, 00), MONEY(3, 00), MONEY(3, 00), MONEY(0, 00), SPR_SHOP_ITEM_PHOTO4, { STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO, STR_SHOP_ITEM_SINGULAR_ON_RIDE_PHOTO, STR_SHOP_ITEM_PLURAL_ON_RIDE_PHOTO, STR_SHOP_ITEM_INDEFINITE_ON_RIDE_PHOTO, STR_SHOP_ITEM_DISPLAY_ON_RIDE_PHOTO }, SHOP_ITEM_FLAG_IS_PHOTO | SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::Photo4Much, PeepThoughtType::Photo4 }, + /* ShopItem::Pretzel */ { MONEY(0, 50), MONEY(1, 10), MONEY(1, 10), MONEY(1, 10), MONEY(1, 10), SPR_SHOP_ITEM_PRETZEL, { STR_SHOP_ITEM_PRICE_LABEL_PRETZEL, STR_SHOP_ITEM_SINGULAR_PRETZEL, STR_SHOP_ITEM_PLURAL_PRETZEL, STR_SHOP_ITEM_INDEFINITE_PRETZEL, STR_SHOP_ITEM_DISPLAY_PRETZEL }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 70, ShopItem::None, PeepThoughtType::PretzelMuch, PeepThoughtType::Pretzel }, + /* ShopItem::Chocolate */ { MONEY(0, 40), MONEY(1, 30), MONEY(1, 30), MONEY(2, 00), MONEY(1, 20), SPR_SHOP_ITEM_CHOCOLATE, { STR_SHOP_ITEM_PRICE_LABEL_HOT_CHOCOLATE, STR_SHOP_ITEM_SINGULAR_HOT_CHOCOLATE, STR_SHOP_ITEM_PLURAL_HOT_CHOCOLATE, STR_SHOP_ITEM_INDEFINITE_HOT_CHOCOLATE, STR_SHOP_ITEM_DISPLAY_HOT_CHOCOLATE }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 85, ShopItem::EmptyCup, PeepThoughtType::HotChocolateMuch, PeepThoughtType::HotChocolate }, + /* ShopItem::IcedTea */ { MONEY(0, 30), MONEY(1, 00), MONEY(2, 00), MONEY(1, 00), MONEY(1, 10), SPR_SHOP_ITEM_ICED_TEA, { STR_SHOP_ITEM_PRICE_LABEL_ICED_TEA, STR_SHOP_ITEM_SINGULAR_ICED_TEA, STR_SHOP_ITEM_PLURAL_ICED_TEA, STR_SHOP_ITEM_INDEFINITE_ICED_TEA, STR_SHOP_ITEM_DISPLAY_ICED_TEA }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 95, ShopItem::EmptyCup, PeepThoughtType::IcedTeaMuch, PeepThoughtType::IcedTea }, + /* ShopItem::FunnelCake */ { MONEY(0, 50), MONEY(1, 30), MONEY(1, 10), MONEY(1, 40), MONEY(1, 20), SPR_SHOP_ITEM_FUNNEL_CAKE, { STR_SHOP_ITEM_PRICE_LABEL_FUNNEL_CAKE, STR_SHOP_ITEM_SINGULAR_FUNNEL_CAKE, STR_SHOP_ITEM_PLURAL_FUNNEL_CAKE, STR_SHOP_ITEM_INDEFINITE_FUNNEL_CAKE, STR_SHOP_ITEM_DISPLAY_FUNNEL_CAKE }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 90, ShopItem::None, PeepThoughtType::FunnelCakeMuch, PeepThoughtType::FunnelCake }, + /* ShopItem::Sunglasses */ { MONEY(0, 80), MONEY(1, 50), MONEY(2, 00), MONEY(1, 20), MONEY(1, 50), SPR_SHOP_ITEM_SUNGLASSES, { STR_SHOP_ITEM_PRICE_LABEL_SUNGLASSES, STR_SHOP_ITEM_SINGULAR_SUNGLASSES, STR_SHOP_ITEM_PLURAL_SUNGLASSES, STR_SHOP_ITEM_INDEFINITE_SUNGLASSES, STR_SHOP_ITEM_DISPLAY_SUNGLASSES }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::Rubbish, 0, ShopItem::None, PeepThoughtType::SunglassesMuch, PeepThoughtType::Sunglasses }, + /* ShopItem::BeefNoodles */ { MONEY(0, 70), MONEY(1, 70), MONEY(1, 70), MONEY(2, 00), MONEY(1, 50), SPR_SHOP_ITEM_BEEF_NOODLES, { STR_SHOP_ITEM_PRICE_LABEL_BEEF_NOODLES, STR_SHOP_ITEM_SINGULAR_BEEF_NOODLES, STR_SHOP_ITEM_PLURAL_BEEF_NOODLES, STR_SHOP_ITEM_INDEFINITE_BEEF_NOODLES, STR_SHOP_ITEM_DISPLAY_BEEF_NOODLES }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 130, ShopItem::EmptyBowlBlue, PeepThoughtType::BeefNoodlesMuch, PeepThoughtType::BeefNoodles }, + /* ShopItem::FriedRiceNoodles */ { MONEY(0, 60), MONEY(1, 70), MONEY(1, 70), MONEY(2, 00), MONEY(1, 50), SPR_SHOP_ITEM_FRIED_RICE_NOODLES, { STR_SHOP_ITEM_PRICE_LABEL_FRIED_RICE_NOODLES, STR_SHOP_ITEM_SINGULAR_FRIED_RICE_NOODLES, STR_SHOP_ITEM_PLURAL_FRIED_RICE_NOODLES, STR_SHOP_ITEM_INDEFINITE_FRIED_RICE_NOODLES, STR_SHOP_ITEM_DISPLAY_FRIED_RICE_NOODLES }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 120, ShopItem::EmptyBowlBlue, PeepThoughtType::FriedRiceNoodlesMuch, PeepThoughtType::FriedRiceNoodles }, + /* ShopItem::WontonSoup */ { MONEY(0, 40), MONEY(1, 30), MONEY(1, 30), MONEY(1, 50), MONEY(1, 50), SPR_SHOP_ITEM_WONTON_SOUP, { STR_SHOP_ITEM_PRICE_LABEL_WONTON_SOUP, STR_SHOP_ITEM_SINGULAR_WONTON_SOUP, STR_SHOP_ITEM_PLURAL_WONTON_SOUP, STR_SHOP_ITEM_INDEFINITE_WONTON_SOUP, STR_SHOP_ITEM_DISPLAY_WONTON_SOUP }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 100, ShopItem::EmptyBowlRed, PeepThoughtType::WontonSoupMuch, PeepThoughtType::WontonSoup }, + /* ShopItem::MeatballSoup */ { MONEY(0, 50), MONEY(1, 40), MONEY(1, 40), MONEY(1, 60), MONEY(1, 50), SPR_SHOP_ITEM_MEATBALL_SOUP, { STR_SHOP_ITEM_PRICE_LABEL_MEATBALL_SOUP, STR_SHOP_ITEM_SINGULAR_MEATBALL_SOUP, STR_SHOP_ITEM_PLURAL_MEATBALL_SOUP, STR_SHOP_ITEM_INDEFINITE_MEATBALL_SOUP, STR_SHOP_ITEM_DISPLAY_MEATBALL_SOUP }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 110, ShopItem::EmptyBowlRed, PeepThoughtType::MeatballSoupMuch, PeepThoughtType::MeatballSoup }, + /* ShopItem::FruitJuice */ { MONEY(0, 40), MONEY(1, 10), MONEY(1, 90), MONEY(1, 10), MONEY(1, 20), SPR_SHOP_ITEM_FRUIT_JUICE, { STR_SHOP_ITEM_PRICE_LABEL_FRUIT_JUICE, STR_SHOP_ITEM_SINGULAR_FRUIT_JUICE, STR_SHOP_ITEM_PLURAL_FRUIT_JUICE, STR_SHOP_ITEM_INDEFINITE_FRUIT_JUICE, STR_SHOP_ITEM_DISPLAY_FRUIT_JUICE }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 110, ShopItem::EmptyJuiceCup, PeepThoughtType::FruitJuiceMuch, PeepThoughtType::FruitJuice }, + /* ShopItem::SoybeanMilk */ { MONEY(0, 40), MONEY(1, 00), MONEY(1, 40), MONEY(1, 00), MONEY(1, 20), SPR_SHOP_ITEM_SOYBEAN_MILK, { STR_SHOP_ITEM_PRICE_LABEL_SOYBEAN_MILK, STR_SHOP_ITEM_SINGULAR_SOYBEAN_MILK, STR_SHOP_ITEM_PLURAL_SOYBEAN_MILK, STR_SHOP_ITEM_INDEFINITE_SOYBEAN_MILK, STR_SHOP_ITEM_DISPLAY_SOYBEAN_MILK }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 90, ShopItem::EmptyDrinkCarton, PeepThoughtType::SoybeanMilkMuch, PeepThoughtType::SoybeanMilk }, + /* ShopItem::Sujeonggwa */ { MONEY(0, 30), MONEY(1, 10), MONEY(1, 40), MONEY(1, 10), MONEY(1, 20), SPR_SHOP_ITEM_SUJEONGGWA, { STR_SHOP_ITEM_PRICE_LABEL_SUJONGKWA, STR_SHOP_ITEM_SINGULAR_SUJONGKWA, STR_SHOP_ITEM_PLURAL_SUJONGKWA, STR_SHOP_ITEM_INDEFINITE_SUJONGKWA, STR_SHOP_ITEM_DISPLAY_SUJONGKWA }, SHOP_ITEM_FLAG_IS_DRINK, Litter::Type::Rubbish, 100, ShopItem::EmptyDrinkCarton, PeepThoughtType::SujongkwaMuch, PeepThoughtType::Sujongkwa }, + /* ShopItem::SubSandwich */ { MONEY(0, 50), MONEY(1, 90), MONEY(1, 90), MONEY(1, 70), MONEY(1, 50), SPR_SHOP_ITEM_SUB_SANDWICH, { STR_SHOP_ITEM_PRICE_LABEL_SUB_SANDWICH, STR_SHOP_ITEM_SINGULAR_SUB_SANDWICH, STR_SHOP_ITEM_PLURAL_SUB_SANDWICH, STR_SHOP_ITEM_INDEFINITE_SUB_SANDWICH, STR_SHOP_ITEM_DISPLAY_SUB_SANDWICH }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 130, ShopItem::None, PeepThoughtType::SubSandwichMuch, PeepThoughtType::SubSandwich }, + /* ShopItem::Cookie */ { MONEY(0, 40), MONEY(0, 80), MONEY(0, 80), MONEY(0, 80), MONEY(0, 70), SPR_SHOP_ITEM_COOKIE, { STR_SHOP_ITEM_PRICE_LABEL_COOKIE, STR_SHOP_ITEM_SINGULAR_COOKIE, STR_SHOP_ITEM_PLURAL_COOKIE, STR_SHOP_ITEM_INDEFINITE_COOKIE, STR_SHOP_ITEM_DISPLAY_COOKIE }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 75, ShopItem::None, PeepThoughtType::CookieMuch, PeepThoughtType::Cookie }, + /* ShopItem::EmptyBowlRed */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOWL_RED, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOWL_RED, STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_RED, STR_SHOP_ITEM_PLURAL_EMPTY_BOWL_RED, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOWL_RED, STR_SHOP_ITEM_DISPLAY_EMPTY_BOWL_RED }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyBowlRed, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::EmptyDrinkCarton */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_DRINK_CARTON, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_SINGULAR_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_PLURAL_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_INDEFINITE_EMPTY_DRINK_CARTON, STR_SHOP_ITEM_DISPLAY_EMPTY_DRINK_CARTON }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyDrinkCarton, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::EmptyJuiceCup */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_JUICE_CUP, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_JUICE_CUP, STR_SHOP_ITEM_SINGULAR_EMPTY_JUICE_CUP, STR_SHOP_ITEM_PLURAL_EMPTY_JUICE_CUP, STR_SHOP_ITEM_INDEFINITE_EMPTY_JUICE_CUP, STR_SHOP_ITEM_DISPLAY_EMPTY_JUICE_CUP }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyJuiceCup, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, + /* ShopItem::RoastSausage */ { MONEY(0, 50), MONEY(1, 60), MONEY(1, 60), MONEY(2, 00), MONEY(1, 50), SPR_SHOP_ITEM_ROAST_SAUSAGE, { STR_SHOP_ITEM_PRICE_LABEL_ROAST_SAUSAGE, STR_SHOP_ITEM_SINGULAR_ROAST_SAUSAGE, STR_SHOP_ITEM_PLURAL_ROAST_SAUSAGE, STR_SHOP_ITEM_INDEFINITE_ROAST_SAUSAGE, STR_SHOP_ITEM_DISPLAY_ROAST_SAUSAGE }, SHOP_ITEM_FLAG_IS_FOOD, Litter::Type::Rubbish, 115, ShopItem::None, PeepThoughtType::RoastSausageMuch, PeepThoughtType::RoastSausage }, + /* ShopItem::EmptyBowlBlue */ { MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), MONEY(0, 00), SPR_SHOP_ITEM_EMPTY_BOWL_BLUE, { STR_SHOP_ITEM_PRICE_LABEL_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_PLURAL_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_INDEFINITE_EMPTY_BOWL_BLUE, STR_SHOP_ITEM_DISPLAY_EMPTY_BOWL_BLUE }, SHOP_ITEM_FLAG_IS_CONTAINER, Litter::Type::EmptyBowlBlue, 0, ShopItem::None, PeepThoughtType::None, PeepThoughtType::None }, }; // clang-format on diff --git a/src/openrct2/ride/ShopItem.h b/src/openrct2/ride/ShopItem.h index 854dd2bcbf..0f9b450f60 100644 --- a/src/openrct2/ride/ShopItem.h +++ b/src/openrct2/ride/ShopItem.h @@ -11,6 +11,7 @@ #include "../common.h" #include "../util/Util.h" +#include "../world/Litter.h" struct Ride; enum class PeepThoughtType : uint8_t; @@ -87,15 +88,15 @@ struct ShopItemStrings struct ShopItemDescriptor { - uint16_t Cost; - uint16_t BaseValue; - uint16_t HotValue; - uint16_t ColdValue; + money16 Cost; + money16 BaseValue; + money16 HotValue; + money16 ColdValue; money8 DefaultPrice; uint32_t Image; ShopItemStrings Naming; uint16_t Flags; - uint8_t LitterType; + Litter::Type Type; uint8_t ConsumptionTime; ShopItem DiscardContainer; PeepThoughtType TooMuchThought; diff --git a/src/openrct2/ride/Station.cpp b/src/openrct2/ride/Station.cpp index 0283b951ca..f62414cb19 100644 --- a/src/openrct2/ride/Station.cpp +++ b/src/openrct2/ride/Station.cpp @@ -10,10 +10,11 @@ #include "Station.h" #include "../Game.h" +#include "../peep/Peep.h" #include "../scenario/Scenario.h" #include "../world/Location.hpp" -#include "../world/Sprite.h" #include "Track.h" +#include "Vehicle.h" static void ride_update_station_blocksection(Ride* ride, StationIndex stationIndex); static void ride_update_station_dodgems(Ride* ride, StationIndex stationIndex); @@ -57,7 +58,7 @@ static void ride_update_station_blocksection(Ride* ride, StationIndex stationInd { TileElement* tileElement = ride_get_station_start_track_element(ride, stationIndex); - if ((ride->status == RIDE_STATUS_CLOSED && ride->num_riders == 0) + if ((ride->status == RideStatus::Closed && ride->num_riders == 0) || (tileElement != nullptr && tileElement->AsTrack()->BlockBrakeClosed())) { ride->stations[stationIndex].Depart &= ~STATION_DEPART_FLAG; @@ -88,7 +89,7 @@ static void ride_update_station_dodgems(Ride* ride, StationIndex stationIndex) { // Change of station depart flag should really call invalidate_station_start // but since dodgems do not have station lights there is no point. - if (ride->status == RIDE_STATUS_CLOSED || (ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED))) + if (ride->status == RideStatus::Closed || (ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED))) { ride->stations[stationIndex].Depart &= ~STATION_DEPART_FLAG; return; @@ -147,7 +148,7 @@ static void ride_update_station_normal(Ride* ride, StationIndex stationIndex) { int32_t time = ride->stations[stationIndex].Depart & STATION_DEPART_MASK; if ((ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED)) - || (ride->status == RIDE_STATUS_CLOSED && ride->num_riders == 0)) + || (ride->status == RideStatus::Closed && ride->num_riders == 0)) { if (time != 0 && time != 127 && !(gCurrentTicks & 7)) time--; @@ -179,7 +180,7 @@ static void ride_update_station_normal(Ride* ride, StationIndex stationIndex) */ static void ride_update_station_race(Ride* ride, StationIndex stationIndex) { - if (ride->status == RIDE_STATUS_CLOSED || (ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED))) + if (ride->status == RideStatus::Closed || (ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED))) { if (ride->stations[stationIndex].Depart & STATION_DEPART_FLAG) { diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index 57bdd88321..496b2c1e45 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -96,10 +96,6 @@ static bool _trackDesignPlaceStateHasScenery = false; static bool _trackDesignPlaceStatePlaceScenery = true; static bool _trackDesignPlaceIsReplay = false; -static std::unique_ptr track_design_preview_backup_map(); - -static void track_design_preview_restore_map(map_backup* backup); - static void track_design_preview_clear_map(); rct_string_id TrackDesign::CreateTrackDesign(const Ride& ride) @@ -677,13 +673,13 @@ static void track_design_mirror_scenery(TrackDesign* td6) entryIndex = 0; } - rct_scenery_entry* scenery_entry = static_cast(object_entry_get_chunk(entry_type, entryIndex)); switch (entry_type) { case ObjectType::LargeScenery: { + auto* sceneryEntry = static_cast(object_entry_get_chunk(entry_type, entryIndex)); int16_t x1 = 0, x2 = 0, y1 = 0, y2 = 0; - for (rct_large_scenery_tile* tile = scenery_entry->large_scenery.tiles; tile->x_offset != -1; tile++) + for (rct_large_scenery_tile* tile = sceneryEntry->tiles; tile->x_offset != -1; tile++) { if (x1 > tile->x_offset) { @@ -726,12 +722,13 @@ static void track_design_mirror_scenery(TrackDesign* td6) } case ObjectType::SmallScenery: { + auto* sceneryEntry = static_cast(object_entry_get_chunk(entry_type, entryIndex)); scenery.y = -scenery.y; - if (scenery_small_entry_has_flag(scenery_entry, SMALL_SCENERY_FLAG_DIAGONAL)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_DIAGONAL)) { scenery.flags ^= (1 << 0); - if (!scenery_small_entry_has_flag(scenery_entry, SMALL_SCENERY_FLAG_FULL_TILE)) + if (!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) { scenery.flags ^= (1 << 2); } @@ -935,11 +932,11 @@ static bool TrackDesignPlaceSceneryElementRemoveGhost( uint8_t quadrant = (scenery.flags >> 2) + _currentTrackPieceDirection; quadrant &= 3; - rct_scenery_entry* small_scenery = get_small_scenery_entry(entry_index); - if (!(!scenery_small_entry_has_flag(small_scenery, SMALL_SCENERY_FLAG_FULL_TILE) - && scenery_small_entry_has_flag(small_scenery, SMALL_SCENERY_FLAG_DIAGONAL)) + auto* sceneryEntry = get_small_scenery_entry(entry_index); + if (!(!scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE) + && scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_DIAGONAL)) && scenery_small_entry_has_flag( - small_scenery, + sceneryEntry, SMALL_SCENERY_FLAG_DIAGONAL | SMALL_SCENERY_FLAG_HALF_SPACE | SMALL_SCENERY_FLAG_THREE_QUARTERS)) { quadrant = 0; @@ -1586,7 +1583,7 @@ static bool track_design_place_ride(TrackDesign* td6, const CoordsXYZ& origin, R } else if (_trackDesignPlaceOperation == PTD_OPERATION_PLACE_QUERY) { - flags = 0; + flags = GAME_COMMAND_FLAG_NO_SPEND; } if (_trackDesignPlaceIsReplay) { @@ -1887,7 +1884,7 @@ static bool track_design_place_preview(TrackDesign* td6, money32* cost, Ride** o ObjectEntryIndex entry_index; if (!find_object_in_entry_group(&td6->vehicle_object, &entry_type, &entry_index)) { - entry_index = RIDE_ENTRY_INDEX_NULL; + entry_index = OBJECT_ENTRY_INDEX_NULL; } ride_id_t rideIndex; @@ -1984,12 +1981,7 @@ static bool track_design_place_preview(TrackDesign* td6, money32* cost, Ride** o */ void track_design_draw_preview(TrackDesign* td6, uint8_t* pixels) { - // Make a copy of the map - auto mapBackup = track_design_preview_backup_map(); - if (mapBackup == nullptr) - { - return; - } + StashMap(); track_design_preview_clear_map(); if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) @@ -2003,7 +1995,7 @@ void track_design_draw_preview(TrackDesign* td6, uint8_t* pixels) if (!track_design_place_preview(td6, &cost, &ride, &flags)) { std::fill_n(pixels, TRACK_PREVIEW_IMAGE_SIZE * 4, 0x00); - track_design_preview_restore_map(mapBackup.get()); + UnstashMap(); return; } td6->cost = cost; @@ -2086,43 +2078,7 @@ void track_design_draw_preview(TrackDesign* td6, uint8_t* pixels) } ride->Delete(); - track_design_preview_restore_map(mapBackup.get()); -} - -/** - * Create a backup of the map as it will be cleared for drawing the track - * design preview. - * rct2: 0x006D1C68 - */ -static std::unique_ptr track_design_preview_backup_map() -{ - auto backup = std::make_unique(); - if (backup != nullptr) - { - std::memcpy(backup->tile_elements, gTileElements, sizeof(backup->tile_elements)); - std::memcpy(backup->tile_pointers, gTileElementTilePointers, sizeof(backup->tile_pointers)); - backup->next_free_tile_element = gNextFreeTileElement; - backup->map_size_units = gMapSizeUnits; - backup->map_size_units_minus_2 = gMapSizeMinus2; - backup->map_size = gMapSize; - backup->current_rotation = get_current_rotation(); - } - return backup; -} - -/** - * Restores the map from a backup. - * rct2: 0x006D2378 - */ -static void track_design_preview_restore_map(map_backup* backup) -{ - std::memcpy(gTileElements, backup->tile_elements, sizeof(backup->tile_elements)); - std::memcpy(gTileElementTilePointers, backup->tile_pointers, sizeof(backup->tile_pointers)); - gNextFreeTileElement = backup->next_free_tile_element; - gMapSizeUnits = backup->map_size_units; - gMapSizeMinus2 = backup->map_size_units_minus_2; - gMapSize = backup->map_size; - gCurrentRotation = backup->current_rotation; + UnstashMap(); } /** @@ -2131,26 +2087,30 @@ static void track_design_preview_restore_map(map_backup* backup) */ static void track_design_preview_clear_map() { - // These values were previously allocated in backup map but - // it seems more fitting to place in this function + auto numTiles = MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL; + gMapSizeUnits = 255 * COORDS_XY_STEP; gMapSizeMinus2 = (264 * 32) - 2; gMapSize = 256; - for (int32_t i = 0; i < MAX_TILE_TILE_ELEMENT_POINTERS; i++) + // Reserve ~8 elements per tile + std::vector tileElements; + tileElements.reserve(numTiles * 8); + + for (int32_t i = 0; i < numTiles; i++) { - TileElement* tile_element = &gTileElements[i]; - tile_element->ClearAs(TILE_ELEMENT_TYPE_SURFACE); - tile_element->SetLastForTile(true); - tile_element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT); - tile_element->AsSurface()->SetWaterHeight(0); - tile_element->AsSurface()->SetSurfaceStyle(TERRAIN_GRASS); - tile_element->AsSurface()->SetEdgeStyle(TERRAIN_EDGE_ROCK); - tile_element->AsSurface()->SetGrassLength(GRASS_LENGTH_CLEAR_0); - tile_element->AsSurface()->SetOwnership(OWNERSHIP_OWNED); - tile_element->AsSurface()->SetParkFences(0); + auto* element = &tileElements.emplace_back(); + element->ClearAs(TILE_ELEMENT_TYPE_SURFACE); + element->SetLastForTile(true); + element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT); + element->AsSurface()->SetWaterHeight(0); + element->AsSurface()->SetSurfaceStyle(0); + element->AsSurface()->SetEdgeStyle(0); + element->AsSurface()->SetGrassLength(GRASS_LENGTH_CLEAR_0); + element->AsSurface()->SetOwnership(OWNERSHIP_OWNED); + element->AsSurface()->SetParkFences(0); } - map_update_tile_pointers(); + SetTileElements(std::move(tileElements)); } bool track_design_are_entrance_and_exit_placed() diff --git a/src/openrct2/ride/TrackDesignSave.cpp b/src/openrct2/ride/TrackDesignSave.cpp index 3a8a7b2ef3..cf3dde9395 100644 --- a/src/openrct2/ride/TrackDesignSave.cpp +++ b/src/openrct2/ride/TrackDesignSave.cpp @@ -126,7 +126,6 @@ bool track_design_save_contains_tile_element(const TileElement* tileElement) static int32_t tile_element_get_total_element_count(TileElement* tileElement) { int32_t elementCount; - rct_scenery_entry* sceneryEntry; rct_large_scenery_tile* tile; switch (tileElement->GetType()) @@ -137,8 +136,9 @@ static int32_t tile_element_get_total_element_count(TileElement* tileElement) return 1; case TILE_ELEMENT_TYPE_LARGE_SCENERY: - sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); - tile = sceneryEntry->large_scenery.tiles; + { + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + tile = sceneryEntry->tiles; elementCount = 0; do { @@ -146,7 +146,7 @@ static int32_t tile_element_get_total_element_count(TileElement* tileElement) elementCount++; } while (tile->x_offset != static_cast(static_cast(0xFFFF))); return elementCount; - + } default: return 0; } @@ -238,7 +238,7 @@ static void track_design_save_add_large_scenery(const CoordsXY& loc, LargeScener int32_t entryType = tileElement->GetEntryIndex(); auto entry = object_entry_get_object(ObjectType::LargeScenery, entryType); - sceneryTiles = get_large_scenery_entry(entryType)->large_scenery.tiles; + sceneryTiles = get_large_scenery_entry(entryType)->tiles; int32_t z = tileElement->base_height; direction = tileElement->GetDirection(); @@ -423,7 +423,7 @@ static void track_design_save_remove_large_scenery(const CoordsXY& loc, LargeSce int32_t entryType = tileElement->GetEntryIndex(); auto entry = object_entry_get_object(ObjectType::LargeScenery, entryType); - sceneryTiles = get_large_scenery_entry(entryType)->large_scenery.tiles; + sceneryTiles = get_large_scenery_entry(entryType)->tiles; int32_t z = tileElement->base_height; direction = tileElement->GetDirection(); diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index baac794594..0fa437a2ba 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -11,6 +11,7 @@ #include "../config/Config.h" #include "../drawing/Drawing.h" +#include "../drawing/LightFX.h" #include "../interface/Viewport.h" #include "../interface/Window.h" #include "../localisation/Localisation.h" @@ -21,7 +22,6 @@ #include "../scenario/Scenario.h" #include "../sprites.h" #include "../world/Map.h" -#include "../world/Sprite.h" #include "RideData.h" #include "Station.h" #include "TrackData.h" @@ -252,7 +252,7 @@ void track_paint_util_paint_floor( imageId = floorSprites[3]; } - PaintAddImageAsParent(session, imageId | colourFlags, 0, 0, 32, 32, 1, height, 0, 0, height); + PaintAddImageAsParent(session, imageId | colourFlags, { 0, 0, height }, { 32, 32, 1 }, { 0, 0, height }); } void track_paint_util_paint_fences( @@ -274,12 +274,12 @@ void track_paint_util_paint_fences( if (edges & EDGE_SE && track_paint_util_has_fence(EDGE_SE, position, tileElement, ride, rotation)) { imageId = fenceSprites[1] | colourFlags; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 7, height, 0, 30, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 7 }, { 0, 30, height + 2 }); } if (edges & EDGE_SW && track_paint_util_has_fence(EDGE_SW, position, tileElement, ride, rotation)) { imageId = fenceSprites[2] | colourFlags; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 7, height, 30, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 7 }, { 30, 0, height + 2 }); } } @@ -364,7 +364,7 @@ static void track_paint_util_draw_station_impl( imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_SW_NE : SPR_STATION_PLATFORM_SW_NE) | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 0, 32, 8, 1, height + fenceOffsetA); + PaintAddImageAsParent(session, imageId, { 0, 0, height + fenceOffsetA }, { 32, 8, 1 }); // height -= 5 (height) track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, coverHeight); // height += 5 (height + 5) @@ -382,7 +382,7 @@ static void track_paint_util_draw_station_impl( { imageId = SPR_STATION_PLATFORM_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 24, 32, 8, 1, height + fenceOffsetA); + PaintAddImageAsParent(session, imageId, { 0, 24, height + fenceOffsetA }, { 32, 8, 1 }); // height += 2 (height + 7) hasFence = track_paint_util_has_fence(EDGE_SE, position, tileElement, ride, session->CurrentRotation); @@ -400,19 +400,19 @@ static void track_paint_util_draw_station_impl( { imageId = SPR_STATION_FENCE_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 31, 32, 1, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 0, 31, height + fenceOffsetB }, { 32, 1, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 0) { // Addition: draw only small fence if there is an entrance/exit at the beginning imageId = SPR_STATION_FENCE_SMALL_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 23, 1, 8, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 31, 23, height + fenceOffsetB }, { 1, 8, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 2) { // Addition: draw only small fence if there is an entrance/exit at the end imageId = SPR_STATION_LIGHT_BACK_NE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 23, 1, 8, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 31, 23, height + fenceOffsetB }, { 1, 8, 7 }); } // height -= 7 (height) track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, coverHeight); @@ -421,12 +421,12 @@ static void track_paint_util_draw_station_impl( if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 0) { imageId = SPR_STATION_FENCE_SMALL_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 0, 1, 8, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 31, 0, height + fenceOffsetB }, { 1, 8, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 2) { imageId = SPR_STATION_LIGHT_BACK_NE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 0, 1, 8, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 31, 0, height + fenceOffsetB }, { 1, 8, 7 }); } } else if (direction == 1 || direction == 3) @@ -459,7 +459,7 @@ static void track_paint_util_draw_station_impl( imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_NW_SE : SPR_STATION_PLATFORM_NW_SE) | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 0, 8, 32, 1, height + fenceOffsetA); + PaintAddImageAsParent(session, imageId, { 0, 0, height + fenceOffsetA }, { 8, 32, 1 }); // height -= 5 (height) track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, coverHeight); // height += 5 (height + 5) @@ -477,7 +477,7 @@ static void track_paint_util_draw_station_impl( { imageId = SPR_STATION_PLATFORM_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 24, 0, 8, 32, 1, height + fenceOffsetA); + PaintAddImageAsParent(session, imageId, { 24, 0, height + fenceOffsetA }, { 8, 32, 1 }); // height += 2 (height + 7) hasFence = track_paint_util_has_fence(EDGE_SW, position, tileElement, ride, session->CurrentRotation); @@ -495,19 +495,19 @@ static void track_paint_util_draw_station_impl( { imageId = SPR_STATION_FENCE_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 31, 0, 1, 32, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 31, 0, height + fenceOffsetB }, { 1, 32, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 3) { // Addition: draw only small fence if there is an entrance/exit at the beginning imageId = SPR_STATION_FENCE_SMALL_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 23, 31, 8, 1, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 23, 31, height + fenceOffsetB }, { 8, 1, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 1) { // Addition: draw only small fence if there is an entrance/exit at the end imageId = SPR_STATION_LIGHT_BACK_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 23, 31, 8, 1, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 23, 31, height + fenceOffsetB }, { 8, 1, 7 }); } // height -= 7 (height) @@ -517,12 +517,12 @@ static void track_paint_util_draw_station_impl( if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 3) { imageId = SPR_STATION_FENCE_SMALL_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 31, 8, 1, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 0, 31, height + fenceOffsetB }, { 8, 1, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 1) { imageId = SPR_STATION_LIGHT_BACK_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 31, 8, 1, 7, height + fenceOffsetB); + PaintAddImageAsParent(session, imageId, { 0, 31, height + fenceOffsetB }, { 8, 1, 7 }); } } } @@ -572,7 +572,7 @@ void track_paint_util_draw_station_inverted( imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_SW_NE : SPR_STATION_PLATFORM_SW_NE) | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 0, 32, 8, 1, height + 6); + PaintAddImageAsParent(session, imageId, { 0, 0, height + 6 }, { 32, 8, 1 }); // height -= 5 (height) track_paint_util_draw_station_covers_2(session, EDGE_NW, hasFence, stationObj, height, stationVariant); // height += 5 (height + 5) @@ -590,7 +590,7 @@ void track_paint_util_draw_station_inverted( { imageId = SPR_STATION_PLATFORM_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 24, 32, 8, 1, height + 6); + PaintAddImageAsParent(session, imageId, { 0, 24, height + 6 }, { 32, 8, 1 }); // height += 2 (height + 7) hasFence = track_paint_util_has_fence(EDGE_SE, position, tileElement, ride, session->CurrentRotation); @@ -608,19 +608,19 @@ void track_paint_util_draw_station_inverted( { imageId = SPR_STATION_INVERTED_FENCE_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 31, 32, 1, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 0, 31, height + 8 }, { 32, 1, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 0) { // Addition: draw only small fence if there is an entrance/exit at the beginning imageId = SPR_STATION_FENCE_SMALL_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 23, 1, 8, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 31, 23, height + 8 }, { 1, 8, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 2) { // Addition: draw only small fence if there is an entrance/exit at the end imageId = SPR_STATION_LIGHT_BACK_NE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 23, 1, 8, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 31, 23, height + 8 }, { 1, 8, 7 }); } // height -= 7 (height) track_paint_util_draw_station_covers_2(session, EDGE_SE, hasFence, stationObj, height, stationVariant); @@ -629,12 +629,12 @@ void track_paint_util_draw_station_inverted( if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 0) { imageId = SPR_STATION_FENCE_SMALL_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 0, 1, 8, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 31, 0, height + 8 }, { 1, 8, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 2) { imageId = SPR_STATION_LIGHT_BACK_NE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 0, 1, 8, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 31, 0, height + 8 }, { 1, 8, 7 }); } } else if (direction == 1 || direction == 3) @@ -667,7 +667,7 @@ void track_paint_util_draw_station_inverted( imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_NW_SE : SPR_STATION_PLATFORM_NW_SE) | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 0, 0, 8, 32, 1, height + 6); + PaintAddImageAsParent(session, imageId, { 0, 0, height + 6 }, { 8, 32, 1 }); // height -= 5 (height) track_paint_util_draw_station_covers_2(session, EDGE_NE, hasFence, stationObj, height, stationVariant); // height += 5 (height + 5) @@ -685,7 +685,7 @@ void track_paint_util_draw_station_inverted( { imageId = SPR_STATION_PLATFORM_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 24, 0, 8, 32, 1, height + 6); + PaintAddImageAsParent(session, imageId, { 24, 0, height + 6 }, { 8, 32, 1 }); // height += 2 (height + 7) hasFence = track_paint_util_has_fence(EDGE_SW, position, tileElement, ride, session->CurrentRotation); @@ -703,19 +703,19 @@ void track_paint_util_draw_station_inverted( { imageId = SPR_STATION_INVERTED_FENCE_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, imageId, 31, 0, 1, 32, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 31, 0, height + 8 }, { 1, 32, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 3) { // Addition: draw only small fence if there is an entrance/exit at the beginning imageId = SPR_STATION_FENCE_SMALL_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 23, 31, 8, 1, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 23, 31, height + 8 }, { 8, 1, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 1) { // Addition: draw only small fence if there is an entrance/exit at the end imageId = SPR_STATION_LIGHT_BACK_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 23, 31, 8, 1, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 23, 31, height + 8 }, { 8, 1, 7 }); } // height -= 7 (height) @@ -725,12 +725,12 @@ void track_paint_util_draw_station_inverted( if (tileElement->AsTrack()->GetTrackType() == TrackElemType::BeginStation && direction == 3) { imageId = SPR_STATION_FENCE_SMALL_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 31, 8, 1, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 0, 31, height + 8 }, { 8, 1, 7 }); } else if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && direction == 1) { imageId = SPR_STATION_LIGHT_BACK_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 31, 8, 1, 7, height + 8); + PaintAddImageAsParent(session, imageId, { 0, 31, height + 8 }, { 8, 1, 7 }); } } } @@ -750,7 +750,7 @@ bool track_paint_util_draw_station_covers_2( return false; } - if (!(session->Unk141E9DB & (G141E9DB_FLAG_1 | G141E9DB_FLAG_2))) + if (!(session->Unk141E9DB & (PaintSessionFlags::IsPassedSurface | PaintSessionFlags::IsTrackPiecePreview))) { return false; } @@ -848,17 +848,17 @@ void track_paint_util_draw_station_platform( bool hasFence = track_paint_util_has_fence(EDGE_NE, position, tileElement, ride, session->CurrentRotation); uint32_t imageId = (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NE : SPR_STATION_NARROW_EDGE_NE) | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 8, 32, 1, height + zOffset); + PaintAddImageAsParent(session, imageId, { 0, 0, height + zOffset }, { 8, 32, 1 }); track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); imageId = SPR_STATION_NARROW_EDGE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 24, 0, 8, 32, 1, height + zOffset); + PaintAddImageAsParent(session, imageId, { 24, 0, height + zOffset }, { 8, 32, 1 }); hasFence = track_paint_util_has_fence(EDGE_SW, position, tileElement, ride, session->CurrentRotation); if (hasFence) { imageId = SPR_STATION_FENCE_NW_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 0, 1, 32, 7, height + zOffset + 2); + PaintAddImageAsParent(session, imageId, { 31, 0, height + zOffset + 2 }, { 1, 32, 7 }); } track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); } @@ -867,17 +867,17 @@ void track_paint_util_draw_station_platform( bool hasFence = track_paint_util_has_fence(EDGE_NW, position, tileElement, ride, session->CurrentRotation); uint32_t imageId = (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NW : SPR_STATION_NARROW_EDGE_NW) | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 8, 1, height + zOffset); + PaintAddImageAsParent(session, imageId, { 0, 0, height + zOffset }, { 32, 8, 1 }); track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); imageId = SPR_STATION_NARROW_EDGE_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 24, 32, 8, 1, height + zOffset); + PaintAddImageAsParent(session, imageId, { 0, 24, height + zOffset }, { 32, 8, 1 }); hasFence = track_paint_util_has_fence(EDGE_SE, position, tileElement, ride, session->CurrentRotation); if (hasFence) { imageId = SPR_STATION_FENCE_SW_NE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 31, 32, 1, 7, height + zOffset + 2); + PaintAddImageAsParent(session, imageId, { 0, 31, height + zOffset + 2 }, { 32, 1, 7 }); } track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); } @@ -895,17 +895,17 @@ void track_paint_util_draw_pier( hasFence = track_paint_util_has_fence(EDGE_NE, position, tileElement, ride, session->CurrentRotation); imageId = (hasFence ? SPR_STATION_PIER_EDGE_NE_FENCED : SPR_STATION_PIER_EDGE_NE) | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 1, height, 2, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 1 }, { 2, 0, height }); track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); imageId = SPR_STATION_PIER_EDGE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 24, 0, 8, 32, 1, height); + PaintAddImageAsParent(session, imageId, { 24, 0, height }, { 8, 32, 1 }); hasFence = track_paint_util_has_fence(EDGE_SW, position, tileElement, ride, session->CurrentRotation); if (hasFence) { imageId = SPR_STATION_PIER_FENCE_SW | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 31, 0, 1, 32, 7, height + 2); + PaintAddImageAsParent(session, imageId, { 31, 0, height + 2 }, { 1, 32, 7 }); } track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); } @@ -914,17 +914,17 @@ void track_paint_util_draw_pier( hasFence = track_paint_util_has_fence(EDGE_NW, position, tileElement, ride, rotation); imageId = (hasFence ? SPR_STATION_PIER_EDGE_NW_FENCED : SPR_STATION_PIER_EDGE_NW) | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 1, height, 0, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 1 }, { 0, 2, height }); track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); imageId = SPR_STATION_PIER_EDGE_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 24, 32, 8, 1, height); + PaintAddImageAsParent(session, imageId, { 0, 24, height }, { 32, 8, 1 }); hasFence = track_paint_util_has_fence(EDGE_SE, position, tileElement, ride, rotation); if (hasFence) { imageId = SPR_STATION_PIER_FENCE_SE | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 31, 32, 1, 7, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 31, height + 2 }, { 32, 1, 7 }); } track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); } @@ -1655,13 +1655,16 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 16, 16, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 16, 16, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; } break; @@ -1670,13 +1673,16 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 16, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 16, 0, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; } break; @@ -1685,13 +1691,16 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 0, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 0, 0, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; } break; @@ -1700,13 +1709,16 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 0, 16, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 0, 16, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; } break; @@ -1848,13 +1860,16 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 16, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 16, 0, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; } break; @@ -1863,13 +1878,16 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 0, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 0, 0, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; } break; @@ -1878,13 +1896,16 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 0, 16, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 0, 16, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; } break; @@ -1893,13 +1914,16 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( switch (trackSequence) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 20, 32, thickness }, { 6, 0, height + heightOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, thickness, height, 16, 16, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 16, 16, thickness }, { 16, 16, height + heightOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 32, 20, thickness }, { 0, 6, height + heightOffset }); break; } break; @@ -1939,16 +1963,20 @@ void track_paint_util_left_quarter_turn_1_tile_paint( switch (direction) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 26, 24, thickness, height, 6, 2, height + boundBoxZOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 26, 24, thickness }, { 6, 2, height + boundBoxZOffset }); break; case 1: - PaintAddImageAsParent(session, imageId, 0, 0, 26, 26, thickness, height, 0, 0, height + boundBoxZOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 26, 26, thickness }, { 0, 0, height + boundBoxZOffset }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 24, 26, thickness, height, 2, 6, height + boundBoxZOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 24, 26, thickness }, { 2, 6, height + boundBoxZOffset }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 24, 24, thickness, height, 6, 6, height + boundBoxZOffset); + PaintAddImageAsParent( + session, imageId, { 0, 0, height }, { 24, 24, thickness }, { 6, 6, height + boundBoxZOffset }); break; } } @@ -2004,11 +2032,11 @@ void track_paint_util_spinning_tunnel_paint(paint_session* session, int8_t thick imageId = trackSpritesGhostTrainSpinningTunnel[direction & 1][1][frame] | colourFlags; if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 26, 1, 23, height, 4, 28, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 1, 23 }, { 4, 28, height }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 26, 23, height, 28, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 26, 23 }, { 28, 4, height }); } } @@ -2028,24 +2056,24 @@ void track_paint_util_onride_photo_small_paint( switch (direction) { case 0: - PaintAddImageAsParent(session, imageId, 26, 0, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 26, 31, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 6, 0, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 26, 0, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 26, 31, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 6, 0, height }, { 1, 1, 19 }); break; case 1: - PaintAddImageAsParent(session, imageId, 0, 6, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 31, 6, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 0, 26, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 31, 6, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 0, 26, height }, { 1, 1, 19 }); break; case 2: - PaintAddImageAsParent(session, imageId, 6, 0, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 6, 31, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 26, 31, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 6, 31, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 26, 31, height }, { 1, 1, 19 }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 26, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 31, 26, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 31, 6, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 0, 26, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 31, 26, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 31, 6, height }, { 1, 1, 19 }); break; } } @@ -2066,24 +2094,24 @@ void track_paint_util_onride_photo_paint( switch (direction) { case 0: - PaintAddImageAsParent(session, imageId, 26, 0, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 26, 31, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 6, 0, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 26, 0, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 26, 31, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 6, 0, height }, { 1, 1, 19 }); break; case 1: - PaintAddImageAsParent(session, imageId, 0, 6, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 31, 6, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 0, 26, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 31, 6, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 0, 26, height }, { 1, 1, 19 }); break; case 2: - PaintAddImageAsParent(session, imageId, 6, 0, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 6, 31, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 26, 31, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 6, 31, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 26, 31, height }, { 1, 1, 19 }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 26, 1, 1, 19, height); - PaintAddImageAsParent(session, imageId, 31, 26, 1, 1, 19, height); - PaintAddImageAsParent(session, flashImageId, 31, 6, 1, 1, 19, height); + PaintAddImageAsParent(session, imageId, { 0, 26, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, imageId, { 31, 26, height }, { 1, 1, 19 }); + PaintAddImageAsParent(session, flashImageId, { 31, 6, height }, { 1, 1, 19 }); break; } } @@ -2163,10 +2191,25 @@ void track_paint(paint_session* session, Direction direction, int32_t height, co uint32_t imageId = SPRITE_ID_PALETTE_COLOUR_1(COLOUR_LIGHT_BLUE) | (0x1689 + get_height_marker_offset()); auto heightNum = (height + 8) / 16 - gMapBaseZ; - PaintAddImageAsParent(session, imageId + heightNum, 16, 16, 1, 1, 0, height + ax + 3, 1000, 1000, 2047); + PaintAddImageAsParent( + session, imageId + heightNum, { 16, 16, height + ax + 3 }, { 1, 1, 0 }, { 1000, 1000, 2047 }); } } +#ifdef __ENABLE_LIGHTFX__ + if (lightfx_is_available()) + { + uint8_t zOffset = 16; + if (ride->type == RIDE_TYPE_TOILETS || ride->type == RIDE_TYPE_FIRST_AID || ride->type == RIDE_TYPE_CASH_MACHINE) + zOffset = 23; + + if (ride->type == RIDE_TYPE_INFORMATION_KIOSK) + LightFxAddKioskLights(session->MapPosition, height, zOffset); + else if (RideTypeDescriptors[ride->type].HasFlag(RIDE_TYPE_FLAG_IS_SHOP)) + LightFxAddShopLights(session->MapPosition, tileElement->GetDirection(), height, zOffset); + } +#endif + session->InteractionType = ViewportInteractionItem::Ride; session->TrackColours[SCHEME_TRACK] = SPRITE_ID_PALETTE_COLOUR_2( ride->track_colour[trackColourScheme].main, ride->track_colour[trackColourScheme].additional); diff --git a/src/openrct2/ride/TrainManager.cpp b/src/openrct2/ride/TrainManager.cpp new file mode 100644 index 0000000000..52b6e75028 --- /dev/null +++ b/src/openrct2/ride/TrainManager.cpp @@ -0,0 +1,37 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "TrainManager.h" + +#include "../world/Entity.h" +#include "../world/EntityList.h" +#include "Vehicle.h" + +namespace TrainManager +{ + View::Iterator& View::Iterator::operator++() + { + Entity = nullptr; + + while (iter != end && Entity == nullptr) + { + Entity = GetEntity(*iter++); + if (Entity && !Entity->IsHead()) + { + Entity = nullptr; + } + } + return *this; + } + + View::View() + { + vec = &GetEntityList(EntityType::Vehicle); + } +} // namespace TrainManager diff --git a/src/openrct2/ride/TrainManager.h b/src/openrct2/ride/TrainManager.h new file mode 100644 index 0000000000..301780c37c --- /dev/null +++ b/src/openrct2/ride/TrainManager.h @@ -0,0 +1,77 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ +#pragma once +#include +#include + +struct Vehicle; + +namespace TrainManager +{ + // Iteration of heads of trains + class View + { + private: + const std::list* vec; + + class Iterator + { + private: + std::list::const_iterator iter; + std::list::const_iterator end; + Vehicle* Entity = nullptr; + + public: + Iterator(std::list::const_iterator _iter, std::list::const_iterator _end) + : iter(_iter) + , end(_end) + { + ++(*this); + } + Iterator& operator++(); + + Iterator operator++(int) + { + Iterator retval = *this; + ++(*this); + return retval; + } + bool operator==(Iterator other) const + { + return Entity == other.Entity; + } + bool operator!=(Iterator other) const + { + return !(*this == other); + } + Vehicle* operator*() + { + return Entity; + } + // iterator traits + using difference_type = std::ptrdiff_t; + using value_type = Vehicle; + using pointer = const Vehicle*; + using reference = const Vehicle&; + using iterator_category = std::forward_iterator_tag; + }; + + public: + View(); + + Iterator begin() + { + return Iterator(std::cbegin(*vec), std::cend(*vec)); + } + Iterator end() + { + return Iterator(std::cend(*vec), std::cend(*vec)); + } + }; +} // namespace TrainManager diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index d78e182c25..b85189cab2 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -29,6 +29,7 @@ #include "../world/Map.h" #include "../world/MapAnimation.h" #include "../world/Park.h" +#include "../world/Particle.h" #include "../world/Scenery.h" #include "../world/SmallScenery.h" #include "../world/Sprite.h" @@ -40,6 +41,7 @@ #include "Station.h" #include "Track.h" #include "TrackData.h" +#include "TrainManager.h" #include "VehicleData.h" #include "VehicleSubpositionData.h" @@ -733,7 +735,7 @@ static const struct template<> bool SpriteBase::Is() const { - return sprite_identifier == SpriteIdentifier::Vehicle; + return Type == EntityType::Vehicle; } static bool vehicle_move_info_valid( @@ -1295,7 +1297,7 @@ void vehicle_sounds_update() vehicle_sounds_update_window_setup(); - for (auto vehicle : EntityList(EntityListId::TrainHead)) + for (auto vehicle : TrainManager::View()) { vehicle->UpdateSoundParams(vehicleSoundParamsList); } @@ -1378,7 +1380,7 @@ void vehicle_update_all() if ((gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER) && gS6Info.editor_step != EditorStep::RollercoasterDesigner) return; - for (auto vehicle : EntityList(EntityListId::TrainHead)) + for (auto vehicle : TrainManager::View()) { vehicle->Update(); } @@ -1885,11 +1887,11 @@ void Vehicle::UpdateMeasurements() if (tileElement->GetType() != TILE_ELEMENT_TYPE_SMALL_SCENERY) continue; - rct_scenery_entry* scenery = tileElement->AsSmallScenery()->GetEntry(); - if (scenery == nullptr) + auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + if (sceneryEntry == nullptr) continue; - if (scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_FULL_TILE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) { coverFound = true; break; @@ -1908,20 +1910,16 @@ void Vehicle::UpdateMeasurements() { curRide->testing_flags |= RIDE_TESTING_SHELTERED; - uint8_t numShelteredSections = curRide->num_sheltered_sections & 0x1F; - if (numShelteredSections != 0x1F) - numShelteredSections++; - curRide->num_sheltered_sections &= ~0x1F; - curRide->num_sheltered_sections |= numShelteredSections; + curRide->IncreaseNumShelteredSections(); - if (vehicle_sprite_type != 0) + if (Pitch != 0) { - curRide->num_sheltered_sections |= (1 << 5); + curRide->num_sheltered_sections |= ShelteredSectionsBits::RotatingWhileSheltered; } if (bank_rotation != 0) { - curRide->num_sheltered_sections |= (1 << 6); + curRide->num_sheltered_sections |= ShelteredSectionsBits::BankingWhileSheltered; } } @@ -1984,7 +1982,7 @@ void Vehicle::GetLiftHillSound(Ride* curRide, SoundIdVolume& curSound) void Vehicle::Update() { // The cable lift uses a ride entry index of NULL - if (ride_subtype == RIDE_ENTRY_INDEX_NULL) + if (ride_subtype == OBJECT_ENTRY_INDEX_NULL) { CableLiftUpdate(); return; @@ -2011,7 +2009,7 @@ void Vehicle::Update() auto vehicleEntry = &rideEntry->vehicles[vehicle_type]; if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_POWERED) && curRide->breakdown_reason_pending == BREAKDOWN_SAFETY_CUT_OUT) { - if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_WATER_RIDE) || (vehicle_sprite_type == 2 && velocity <= 0x20000)) + if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_WATER_RIDE) || (Pitch == 2 && velocity <= 0x20000)) { SetUpdateFlag(VEHICLE_UPDATE_FLAG_ZERO_VELOCITY); } @@ -2217,7 +2215,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se if (curRide == nullptr) return; - if (curRide->status == RIDE_STATUS_OPEN && !(curRide->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) + if (curRide->status == RideStatus::Open && !(curRide->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) && !HasUpdateFlag(VEHICLE_UPDATE_FLAG_TRAIN_READY_DEPART)) { return; @@ -2227,7 +2225,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se { // Original code did not check if the ride was a boat hire, causing empty boats to leave the platform when closing a // Boat Hire with passengers on it. - if (curRide->status != RIDE_STATUS_CLOSED || (curRide->num_riders != 0 && curRide->type != RIDE_TYPE_BOAT_HIRE)) + if (curRide->status != RideStatus::Closed || (curRide->num_riders != 0 && curRide->type != RIDE_TYPE_BOAT_HIRE)) { curRide->stations[current_station].TrainAtStation = RideStation::NO_TRAIN; sub_state = 2; @@ -2237,7 +2235,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se if (curRide->mode == RideMode::ForwardRotation || curRide->mode == RideMode::BackwardRotation) { - uint8_t seat = ((-vehicle_sprite_type) / 8) & 0xF; + uint8_t seat = ((-Pitch) / 8) & 0xF; if (peep[seat] != SPRITE_INDEX_NULL) { curRide->stations[current_station].TrainAtStation = RideStation::NO_TRAIN; @@ -2341,7 +2339,7 @@ void Vehicle::UpdateWaitingForPassengers() num_seats_on_train &= 0x7F; - if (curRide->SupportsStatus(RIDE_STATUS_TESTING)) + if (curRide->SupportsStatus(RideStatus::Testing)) { if (time_waiting < 20) { @@ -2520,11 +2518,11 @@ void Vehicle::UpdateWaitingToDepart() } bool skipCheck = false; - if (shouldBreak || curRide->status != RIDE_STATUS_OPEN) + if (shouldBreak || curRide->status != RideStatus::Open) { if (curRide->mode == RideMode::ForwardRotation || curRide->mode == RideMode::BackwardRotation) { - uint8_t seat = ((-vehicle_sprite_type) >> 3) & 0xF; + uint8_t seat = ((-Pitch) >> 3) & 0xF; if (peep[seat * 2] == SPRITE_INDEX_NULL) { if (num_peeps == 0) @@ -2650,13 +2648,13 @@ void Vehicle::UpdateWaitingToDepart() } } current_time = -1; - vehicle_sprite_type = 0; + Pitch = 0; bank_rotation = 0; UpdateTopSpinOperating(); break; case RideMode::ForwardRotation: case RideMode::BackwardRotation: - SetState(Vehicle::Status::FerrisWheelRotating, vehicle_sprite_type); + SetState(Vehicle::Status::FerrisWheelRotating, Pitch); var_CE = 0; ferris_wheel_var_0 = 8; ferris_wheel_var_1 = 8; @@ -2693,19 +2691,19 @@ void Vehicle::UpdateWaitingToDepart() break; case RideMode::SpaceRings: SetState(Vehicle::Status::SpaceRingsOperating); - vehicle_sprite_type = 0; + Pitch = 0; current_time = -1; UpdateSpaceRingsOperating(); break; case RideMode::HauntedHouse: SetState(Vehicle::Status::HauntedHouseOperating); - vehicle_sprite_type = 0; + Pitch = 0; current_time = -1; UpdateHauntedHouseOperating(); break; case RideMode::CrookedHouse: SetState(Vehicle::Status::CrookedHouseOperating); - vehicle_sprite_type = 0; + Pitch = 0; current_time = -1; UpdateCrookedHouseOperating(); break; @@ -2899,14 +2897,14 @@ static bool ride_station_can_depart_synchronised(const Ride& ride, StationIndex if (!(sv_ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)) { - if (sv_ride->status != RIDE_STATUS_CLOSED) + if (sv_ride->status != RideStatus::Closed) { if (sv_ride->IsBlockSectioned()) { if (!(sv_ride->stations[sv->stationIndex].Depart & STATION_DEPART_FLAG)) { sv = _synchronisedVehicles; - uint8_t rideId = RIDE_ID_NULL; + ride_id_t rideId = RIDE_ID_NULL; for (; sv < _lastSynchronisedVehicle; sv++) { if (rideId == RIDE_ID_NULL) @@ -3561,7 +3559,7 @@ void Vehicle::UpdateCollisionSetup() if (curRide == nullptr) return; - if (curRide->status == RIDE_STATUS_SIMULATING) + if (curRide->status == RideStatus::Simulating) { SimulateCrash(); return; @@ -3580,10 +3578,10 @@ void Vehicle::UpdateCollisionSetup() curRide->Crash(*trainIndex); - if (curRide->status != RIDE_STATUS_CLOSED) + if (curRide->status != RideStatus::Closed) { // We require this to execute right away during the simulation, always ignore network and queue. - auto gameAction = RideSetStatusAction(curRide->id, RIDE_STATUS_CLOSED); + auto gameAction = RideSetStatusAction(curRide->id, RideStatus::Closed); GameActions::ExecuteNested(&gameAction); } } @@ -3602,14 +3600,14 @@ void Vehicle::UpdateCollisionSetup() OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Crash, { train->x, train->y, train->z }); - sprite_misc_explosion_cloud_create({ train->x, train->y, train->z }); + ExplosionCloud::Create({ train->x, train->y, train->z }); for (int32_t i = 0; i < 10; i++) { - crashed_vehicle_particle_create(train->colours, { train->x, train->y, train->z }); + VehicleCrashParticle::Create(train->colours, { train->x, train->y, train->z }); } - train->flags |= SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE; + train->IsCrashedVehicle = true; train->var_C8 = scenario_rand(); train->var_CA = scenario_rand(); @@ -3652,7 +3650,7 @@ static constexpr const CoordsXY stru_9A3AC4[] = { void Vehicle::UpdateCrashSetup() { auto curRide = GetRide(); - if (curRide != nullptr && curRide->status == RIDE_STATUS_SIMULATING) + if (curRide != nullptr && curRide->status == RideStatus::Simulating) { SimulateCrash(); return; @@ -3680,9 +3678,9 @@ void Vehicle::UpdateCrashSetup() trainVehicle->sub_state = 0; int32_t trainX = stru_9A3AC4[trainVehicle->sprite_direction / 2].x; int32_t trainY = stru_9A3AC4[trainVehicle->sprite_direction / 2].y; - auto trainZ = Unk9A38D4[trainVehicle->vehicle_sprite_type] >> 23; + auto trainZ = Unk9A38D4[trainVehicle->Pitch] >> 23; - int32_t ecx = Unk9A37E4[trainVehicle->vehicle_sprite_type] >> 15; + int32_t ecx = Unk9A37E4[trainVehicle->Pitch] >> 15; trainX *= ecx; trainY *= ecx; trainX >>= 16; @@ -4132,7 +4130,7 @@ void Vehicle::UpdateUnloadingPassengers() if (curRide->mode == RideMode::ForwardRotation || curRide->mode == RideMode::BackwardRotation) { - uint8_t seat = ((-vehicle_sprite_type) >> 3) & 0xF; + uint8_t seat = ((-Pitch) >> 3) & 0xF; if (restraints_position == 255 && (peep[seat * 2] != SPRITE_INDEX_NULL)) { next_free_seat -= 2; @@ -4658,7 +4656,7 @@ void Vehicle::UpdateBoatLocation() if (location.ToTileStart() == returnPosition.ToCoordsXY()) { sub_state = 1; - BoatLocation = location; + BoatLocation = location.ToTileStart(); return; } @@ -4702,13 +4700,13 @@ void Vehicle::UpdateBoatLocation() continue; } - BoatLocation = trackLocation; + BoatLocation = trackLocation.ToTileStart(); return; } CoordsXY trackLocation = TrackLocation; trackLocation += CoordsDirectionDelta[curDirection & 3]; - BoatLocation = trackLocation; + BoatLocation = trackLocation.ToTileStart(); } /** @@ -4778,10 +4776,10 @@ void Vehicle::UpdateSwinging() if (spriteType != -128) { current_time++; - if (static_cast(spriteType) != vehicle_sprite_type) + if (static_cast(spriteType) != Pitch) { // Used to know which sprite to draw - vehicle_sprite_type = static_cast(spriteType); + Pitch = static_cast(spriteType); Invalidate(); } return; @@ -4789,7 +4787,7 @@ void Vehicle::UpdateSwinging() current_time = -1; var_CE++; - if (curRide->status != RIDE_STATUS_CLOSED) + if (curRide->status != RideStatus::Closed) { // It takes 3 swings to get into full swing // ride->rotations already takes this into account @@ -4856,14 +4854,14 @@ void Vehicle::UpdateFerrisWheelRotating() ferris_wheel_var_1 = curFerrisWheelVar0; } - uint8_t rotation = vehicle_sprite_type; + uint8_t rotation = Pitch; if (curRide->mode == RideMode::ForwardRotation) rotation++; else rotation--; rotation &= 0x7F; - vehicle_sprite_type = rotation; + Pitch = rotation; if (rotation == sub_state) var_CE++; @@ -4877,10 +4875,10 @@ void Vehicle::UpdateFerrisWheelRotating() subState--; subState &= 0x7F; - if (subState == vehicle_sprite_type) + if (subState == Pitch) { bool shouldStop = true; - if (curRide->status != RIDE_STATUS_CLOSED) + if (curRide->status != RideStatus::Closed) { if (var_CE < curRide->rotations) shouldStop = false; @@ -4904,7 +4902,7 @@ void Vehicle::UpdateFerrisWheelRotating() subState -= 8; subState &= 0x7F; - if (subState != vehicle_sprite_type) + if (subState != Pitch) return; SetState(Vehicle::Status::Arriving); @@ -4926,9 +4924,9 @@ void Vehicle::UpdateSimulatorOperating() if (al != 0xFF) { current_time++; - if (al == vehicle_sprite_type) + if (al == Pitch) return; - vehicle_sprite_type = al; + Pitch = al; Invalidate(); return; } @@ -4981,9 +4979,9 @@ void Vehicle::UpdateRotating() if (sprite != 0xFF) { current_time = static_cast(time); - if (sprite == vehicle_sprite_type) + if (sprite == Pitch) return; - vehicle_sprite_type = sprite; + Pitch = sprite; Invalidate(); return; } @@ -4993,7 +4991,7 @@ void Vehicle::UpdateRotating() if (_vehicleBreakdown != BREAKDOWN_CONTROL_FAILURE) { bool shouldStop = true; - if (curRide->status != RIDE_STATUS_CLOSED) + if (curRide->status != RideStatus::Closed) { sprite = var_CE + 1; if (curRide->type == RIDE_TYPE_ENTERPRISE) @@ -5041,9 +5039,9 @@ void Vehicle::UpdateSpaceRingsOperating() if (spriteType != 255) { current_time++; - if (spriteType != vehicle_sprite_type) + if (spriteType != Pitch) { - vehicle_sprite_type = spriteType; + Pitch = spriteType; Invalidate(); } } @@ -5063,15 +5061,15 @@ void Vehicle::UpdateHauntedHouseOperating() if (_vehicleBreakdown == 0) return; - if (vehicle_sprite_type != 0) + if (Pitch != 0) { if (gCurrentTicks & 1) { - vehicle_sprite_type++; + Pitch++; Invalidate(); - if (vehicle_sprite_type == 19) - vehicle_sprite_type = 0; + if (Pitch == 19) + Pitch = 0; } } @@ -5089,7 +5087,7 @@ void Vehicle::UpdateHauntedHouseOperating() OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::HauntedHouseScare, { x, y, z }); break; case 75: - vehicle_sprite_type = 1; + Pitch = 1; Invalidate(); break; case 400: @@ -5099,7 +5097,7 @@ void Vehicle::UpdateHauntedHouseOperating() OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::HauntedHouseScare, { x, y, z }); break; case 775: - vehicle_sprite_type = 1; + Pitch = 1; Invalidate(); break; case 1100: @@ -5142,9 +5140,9 @@ void Vehicle::UpdateTopSpinOperating() if (rotation != 0xFF) { current_time = current_time + 1; - if (rotation != vehicle_sprite_type) + if (rotation != Pitch) { - vehicle_sprite_type = rotation; + Pitch = rotation; Invalidate(); } rotation = sprite_map[current_time].bank_rotation; @@ -5324,7 +5322,7 @@ void Vehicle::CrashOnLand() if (curRide == nullptr) return; - if (curRide->status == RIDE_STATUS_SIMULATING) + if (curRide->status == RideStatus::Simulating) { SimulateCrash(); return; @@ -5342,10 +5340,10 @@ void Vehicle::CrashOnLand() curRide->Crash(*trainIndex); - if (curRide->status != RIDE_STATUS_CLOSED) + if (curRide->status != RideStatus::Closed) { // We require this to execute right away during the simulation, always ignore network and queue. - auto gameAction = RideSetStatusAction(curRide->id, RIDE_STATUS_CLOSED); + auto gameAction = RideSetStatusAction(curRide->id, RideStatus::Closed); GameActions::ExecuteNested(&gameAction); } } @@ -5360,15 +5358,15 @@ void Vehicle::CrashOnLand() sub_state = 2; OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Crash, { x, y, z }); - sprite_misc_explosion_cloud_create({ x, y, z }); - sprite_misc_explosion_flare_create({ x, y, z }); + ExplosionCloud::Create({ x, y, z }); + ExplosionFlare::Create({ x, y, z }); uint8_t numParticles = std::min(sprite_width, static_cast(7)); while (numParticles-- != 0) - crashed_vehicle_particle_create(colours, { x, y, z }); + VehicleCrashParticle::Create(colours, { x, y, z }); - flags |= SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE; + IsCrashedVehicle = true; animation_frame = 0; var_C8 = 0; sprite_width = 13; @@ -5386,7 +5384,7 @@ void Vehicle::CrashOnWater() if (curRide == nullptr) return; - if (curRide->status == RIDE_STATUS_SIMULATING) + if (curRide->status == RideStatus::Simulating) { SimulateCrash(); return; @@ -5404,10 +5402,10 @@ void Vehicle::CrashOnWater() curRide->Crash(*trainIndex); - if (curRide->status != RIDE_STATUS_CLOSED) + if (curRide->status != RideStatus::Closed) { // We require this to execute right away during the simulation, always ignore network and queue. - auto gameAction = RideSetStatusAction(curRide->id, RIDE_STATUS_CLOSED); + auto gameAction = RideSetStatusAction(curRide->id, RideStatus::Closed); GameActions::ExecuteNested(&gameAction); } } @@ -5422,16 +5420,16 @@ void Vehicle::CrashOnWater() sub_state = 2; OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Water1, { x, y, z }); - crash_splash_create({ x, y, z }); - crash_splash_create({ x - 8, y - 9, z }); - crash_splash_create({ x + 11, y - 9, z }); - crash_splash_create({ x + 11, y + 8, z }); - crash_splash_create({ x - 4, y + 8, z }); + CrashSplashParticle::Create({ x, y, z }); + CrashSplashParticle::Create({ x - 8, y - 9, z }); + CrashSplashParticle::Create({ x + 11, y - 9, z }); + CrashSplashParticle::Create({ x + 11, y + 8, z }); + CrashSplashParticle::Create({ x - 4, y + 8, z }); for (int32_t i = 0; i < 10; ++i) - crashed_vehicle_particle_create(colours, { x - 4, y + 8, z }); + VehicleCrashParticle::Create(colours, { x - 4, y + 8, z }); - flags |= SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE; + IsCrashedVehicle = true; animation_frame = 0; var_C8 = 0; sprite_width = 13; @@ -5461,7 +5459,7 @@ void Vehicle::UpdateCrash() { int32_t xOffset = (scenario_rand() & 2) - 1; int32_t yOffset = (scenario_rand() & 2) - 1; - sprite_misc_explosion_cloud_create({ curVehicle->x + xOffset, curVehicle->y + yOffset, curVehicle->z }); + ExplosionCloud::Create({ curVehicle->x + xOffset, curVehicle->y + yOffset, curVehicle->z }); } } if (curVehicle->var_C8 + 7281 > 0xFFFF) @@ -5657,13 +5655,13 @@ OpenRCT2::Audio::SoundId Vehicle::UpdateScreamSound() for (Vehicle* vehicle2 = GetEntity(sprite_index); vehicle2 != nullptr; vehicle2 = GetEntity(vehicle2->next_vehicle_on_train)) { - if (vehicle2->vehicle_sprite_type < 1) + if (vehicle2->Pitch < 1) continue; - if (vehicle2->vehicle_sprite_type <= 4) + if (vehicle2->Pitch <= 4) return ProduceScreamSound(totalNumPeeps); - if (vehicle2->vehicle_sprite_type < 9) + if (vehicle2->Pitch < 9) continue; - if (vehicle2->vehicle_sprite_type <= 15) + if (vehicle2->Pitch <= 15) return ProduceScreamSound(totalNumPeeps); } return OpenRCT2::Audio::SoundId::Null; @@ -5675,13 +5673,13 @@ OpenRCT2::Audio::SoundId Vehicle::UpdateScreamSound() for (Vehicle* vehicle2 = GetEntity(sprite_index); vehicle2 != nullptr; vehicle2 = GetEntity(vehicle2->next_vehicle_on_train)) { - if (vehicle2->vehicle_sprite_type < 5) + if (vehicle2->Pitch < 5) continue; - if (vehicle2->vehicle_sprite_type <= 8) + if (vehicle2->Pitch <= 8) return ProduceScreamSound(totalNumPeeps); - if (vehicle2->vehicle_sprite_type < 17) + if (vehicle2->Pitch < 17) continue; - if (vehicle2->vehicle_sprite_type <= 23) + if (vehicle2->Pitch <= 23) return ProduceScreamSound(totalNumPeeps); } return OpenRCT2::Audio::SoundId::Null; @@ -5731,7 +5729,7 @@ OpenRCT2::Audio::SoundId Vehicle::ProduceScreamSound(const int32_t totalNumPeeps */ GForces Vehicle::GetGForces() const { - int32_t gForceVert = ((static_cast(0x280000)) * Unk9A37E4[vehicle_sprite_type]) >> 32; + int32_t gForceVert = ((static_cast(0x280000)) * Unk9A37E4[Pitch]) >> 32; gForceVert = ((static_cast(gForceVert)) * Unk9A39C4[bank_rotation]) >> 32; int32_t lateralFactor = 0, vertFactor = 0; @@ -6572,7 +6570,7 @@ void Vehicle::UpdateTrackMotionUpStopCheck() const gForces.LateralG = std::abs(gForces.LateralG); if (gForces.LateralG <= 150) { - if (dword_9A2970[vehicle_sprite_type] < 0) + if (dword_9A2970[Pitch] < 0) { if (gForces.VerticalG > -40) { @@ -6585,7 +6583,7 @@ void Vehicle::UpdateTrackMotionUpStopCheck() const } } - if (vehicle_sprite_type != 8) + if (Pitch != 8) { _vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_VEHICLE_DERAILED; } @@ -6599,7 +6597,7 @@ void Vehicle::UpdateTrackMotionUpStopCheck() const { auto gForces = GetGForces(); - if (dword_9A2970[vehicle_sprite_type] < 0) + if (dword_9A2970[Pitch] < 0) { if (gForces.VerticalG > -45) { @@ -6614,7 +6612,7 @@ void Vehicle::UpdateTrackMotionUpStopCheck() const } } - if (vehicle_sprite_type != 8 && vehicle_sprite_type != 55) + if (Pitch != 8 && Pitch != 55) { _vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_VEHICLE_DERAILED; } @@ -7002,11 +7000,11 @@ void Vehicle::UpdateSwingingCar() return; } int16_t dx = 3185; - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_21) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SUSPENDED_SWING) { dx = 5006; } - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_25) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING) { dx = 1820; } @@ -7227,30 +7225,6 @@ void Vehicle::UpdateSpinningCar() Invalidate(); } -/** - * - * rct2: 0x006734B2 - */ -static void steam_particle_create(const CoordsXYZ& coords) -{ - auto surfaceElement = map_get_surface_element_at(coords); - if (surfaceElement != nullptr && coords.z > surfaceElement->GetBaseZ()) - { - SteamParticle* steam = &create_sprite(SpriteIdentifier::Misc)->steam_particle; - if (steam == nullptr) - return; - - steam->sprite_width = 20; - steam->sprite_height_negative = 18; - steam->sprite_height_positive = 16; - steam->sprite_identifier = SpriteIdentifier::Misc; - steam->SubType = MiscEntityType::SteamParticle; - steam->frame = 256; - steam->time_to_move = 0; - steam->MoveTo(coords); - } -} - /** * * rct2: 0x006D63D4 @@ -7288,7 +7262,7 @@ void Vehicle::UpdateAdditionalAnimation() || (status != Vehicle::Status::MovingToEndOfStation && status != Vehicle::Status::Arriving)) { int32_t typeIndex = [&] { - switch (vehicle_sprite_type) + switch (Pitch) { case 2: // uphill @@ -7302,7 +7276,7 @@ void Vehicle::UpdateAdditionalAnimation() }(); int32_t directionIndex = sprite_direction >> 1; auto offset = SteamParticleOffsets[typeIndex][directionIndex]; - steam_particle_create({ x + offset.x, y + offset.y, z + offset.z }); + SteamParticle::Create({ x + offset.x, y + offset.y, z + offset.z }); } } } @@ -7413,7 +7387,7 @@ void Vehicle::UpdateAdditionalAnimation() */ static void play_scenery_door_open_sound(const CoordsXYZ& loc, WallElement* tileElement) { - rct_scenery_entry* wallEntry = tileElement->GetEntry(); + auto* wallEntry = tileElement->GetEntry(); int32_t doorSoundType = wall_entry_get_door_sound(wallEntry); if (doorSoundType != 0) { @@ -7431,7 +7405,7 @@ static void play_scenery_door_open_sound(const CoordsXYZ& loc, WallElement* tile */ static void play_scenery_door_close_sound(const CoordsXYZ& loc, WallElement* tileElement) { - rct_scenery_entry* wallEntry = tileElement->GetEntry(); + auto* wallEntry = tileElement->GetEntry(); int32_t doorSoundType = wall_entry_get_door_sound(wallEntry); if (doorSoundType != 0) { @@ -7750,7 +7724,7 @@ bool Vehicle::UpdateMotionCollisionDetection(const CoordsXYZ& loc, uint16_t* oth if (z_diff > 16) continue; - if (vehicle2->ride_subtype == RIDE_ENTRY_INDEX_NULL) + if (vehicle2->ride_subtype == OBJECT_ENTRY_INDEX_NULL) continue; auto collideVehicleEntry = vehicle2->Entry(); @@ -8330,11 +8304,11 @@ loc_6DAEB9: unk_F64E20 = loc; sprite_direction = moveInfo->direction; bank_rotation = moveInfo->bank_rotation; - vehicle_sprite_type = moveInfo->vehicle_sprite_type; + Pitch = moveInfo->Pitch; - moveInfovehicleSpriteType = moveInfo->vehicle_sprite_type; + moveInfovehicleSpriteType = moveInfo->Pitch; - if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_25) && moveInfo->vehicle_sprite_type != 0) + if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING) && moveInfo->Pitch != 0) { SwingSprite = 0; SwingPosition = 0; @@ -8640,10 +8614,10 @@ loc_6DBA33:; unk_F64E20 = loc; sprite_direction = moveInfo->direction; bank_rotation = moveInfo->bank_rotation; - vehicle_sprite_type = moveInfo->vehicle_sprite_type; - moveInfoVehicleSpriteType = moveInfo->vehicle_sprite_type; + Pitch = moveInfo->Pitch; + moveInfoVehicleSpriteType = moveInfo->Pitch; - if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_25) && vehicle_sprite_type != 0) + if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING) && Pitch != 0) { SwingSprite = 0; SwingPosition = 0; @@ -8720,7 +8694,7 @@ void Vehicle::UpdateTrackMotionMiniGolfVehicle(Ride* curRide, rct_ride_entry* ri int32_t direction{}; _vehicleUnkF64E10 = 1; - acceleration = dword_9A2970[vehicle_sprite_type]; + acceleration = dword_9A2970[Pitch]; if (!HasUpdateFlag(VEHICLE_UPDATE_FLAG_SINGLE_CAR_POSITION)) { remaining_distance = _vehicleVelocityF64E0C + remaining_distance; @@ -8994,11 +8968,11 @@ loc_6DC743: unk_F64E20 = trackPos; sprite_direction = moveInfo->direction; bank_rotation = moveInfo->bank_rotation; - vehicle_sprite_type = moveInfo->vehicle_sprite_type; + Pitch = moveInfo->Pitch; - if (rideEntry->vehicles[0].flags & VEHICLE_ENTRY_FLAG_25) + if (rideEntry->vehicles[0].flags & VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING) { - if (vehicle_sprite_type != 0) + if (Pitch != 0) { SwingSprite = 0; SwingPosition = 0; @@ -9028,7 +9002,7 @@ loc_6DC99A: { goto loc_6DCDE4; } - acceleration = dword_9A2970[vehicle_sprite_type]; + acceleration = dword_9A2970[Pitch]; _vehicleUnkF64E10++; goto loc_6DC462; @@ -9110,11 +9084,11 @@ loc_6DCC2C: unk_F64E20 = trackPos; sprite_direction = moveInfo->direction; bank_rotation = moveInfo->bank_rotation; - vehicle_sprite_type = moveInfo->vehicle_sprite_type; + Pitch = moveInfo->Pitch; - if (rideEntry->vehicles[0].flags & VEHICLE_ENTRY_FLAG_25) + if (rideEntry->vehicles[0].flags & VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING) { - if (vehicle_sprite_type != 0) + if (Pitch != 0) { SwingSprite = 0; SwingPosition = 0; @@ -9139,7 +9113,7 @@ loc_6DCD2B: { goto loc_6DCDE4; } - acceleration += dword_9A2970[vehicle_sprite_type]; + acceleration += dword_9A2970[Pitch]; _vehicleUnkF64E10++; goto loc_6DCA9A; @@ -9338,12 +9312,12 @@ int32_t Vehicle::UpdateTrackMotionMiniGolf(int32_t* outStation) spin_speed = std::clamp(spin_speed, VEHICLE_MIN_SPIN_SPEED_WATER_RIDE, VEHICLE_MAX_SPIN_SPEED_WATER_RIDE); } - if (vehicle_sprite_type != 0) + if (Pitch != 0) { poweredAcceleration = std::max(0, poweredAcceleration); if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SPINNING) { - if (vehicle_sprite_type == 2) + if (Pitch == 2) { spin_speed = 0; } @@ -9447,7 +9421,7 @@ int32_t Vehicle::UpdateTrackMotionPoweredRideAcceleration( spin_speed = std::clamp(spin_speed, VEHICLE_MIN_SPIN_SPEED_WATER_RIDE, VEHICLE_MAX_SPIN_SPEED_WATER_RIDE); } - if (vehicle_sprite_type != 0) + if (Pitch != 0) { if (poweredAcceleration < 0) { @@ -9457,7 +9431,7 @@ int32_t Vehicle::UpdateTrackMotionPoweredRideAcceleration( if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_SPINNING) { // If the vehicle is on the up slope kill the spin speedModifier - if (vehicle_sprite_type == 2) + if (Pitch == 2) { spin_speed = 0; } @@ -9545,7 +9519,7 @@ int32_t Vehicle::UpdateTrackMotion(int32_t* outStation) { car->UpdateAdditionalAnimation(); } - car->acceleration = dword_9A2970[car->vehicle_sprite_type]; + car->acceleration = dword_9A2970[car->Pitch]; _vehicleUnkF64E10 = 1; if (!car->HasUpdateFlag(VEHICLE_UPDATE_FLAG_SINGLE_CAR_POSITION)) @@ -9574,7 +9548,7 @@ int32_t Vehicle::UpdateTrackMotion(int32_t* outStation) { break; } - car->acceleration += dword_9A2970[car->vehicle_sprite_type]; + car->acceleration += dword_9A2970[car->Pitch]; _vehicleUnkF64E10++; continue; } @@ -9594,7 +9568,7 @@ int32_t Vehicle::UpdateTrackMotion(int32_t* outStation) { break; } - car->acceleration = dword_9A2970[car->vehicle_sprite_type]; + car->acceleration = dword_9A2970[car->Pitch]; _vehicleUnkF64E10++; continue; } @@ -9928,7 +9902,7 @@ void Vehicle::SetState(Vehicle::Status vehicleStatus, uint8_t subState) bool Vehicle::IsGhost() const { auto r = GetRide(); - return r != nullptr && r->status == RIDE_STATUS_SIMULATING; + return r != nullptr && r->status == RideStatus::Simulating; } void Vehicle::EnableCollisionsForTrain() diff --git a/src/openrct2/ride/Vehicle.h b/src/openrct2/ride/Vehicle.h index 25eb39bd3c..7e23185a1d 100644 --- a/src/openrct2/ride/Vehicle.h +++ b/src/openrct2/ride/Vehicle.h @@ -28,6 +28,7 @@ using track_type_t = uint16_t; struct Ride; struct rct_ride_entry; +class DataSerialiser; struct GForces { @@ -38,12 +39,12 @@ struct GForces // Size: 0x09 struct rct_vehicle_info { - int16_t x; // 0x00 - int16_t y; // 0x02 - int16_t z; // 0x04 - uint8_t direction; // 0x06 - uint8_t vehicle_sprite_type; // 0x07 - uint8_t bank_rotation; // 0x08 + int16_t x; // 0x00 + int16_t y; // 0x02 + int16_t z; // 0x04 + uint8_t direction; // 0x06 + uint8_t Pitch; // 0x07 + uint8_t bank_rotation; // 0x08 }; struct SoundIdVolume; @@ -53,6 +54,8 @@ constexpr const uint16_t VehicleTrackTypeMask = 0b1111111111111100; struct Vehicle : SpriteBase { + static constexpr auto cEntityType = EntityType::Vehicle; + enum class Type : uint8_t { Head, @@ -95,7 +98,7 @@ struct Vehicle : SpriteBase }; Type SubType; - uint8_t vehicle_sprite_type; + uint8_t Pitch; uint8_t bank_rotation; int32_t remaining_distance; int32_t velocity; @@ -202,6 +205,7 @@ struct Vehicle : SpriteBase uint8_t seat_rotation; uint8_t target_seat_rotation; CoordsXY BoatLocation; + bool IsCrashedVehicle; constexpr bool IsHead() const { @@ -263,6 +267,7 @@ struct Vehicle : SpriteBase update_flags |= flag; } void ApplyMass(int16_t appliedMass); + void Serialise(DataSerialiser& stream); private: bool SoundCanPlay() const; @@ -360,6 +365,7 @@ private: void UpdateLandscapeDoor() const; void UpdateLandscapeDoorBackwards() const; }; +static_assert(sizeof(Vehicle) <= 512); struct train_ref { @@ -370,24 +376,27 @@ struct train_ref enum : uint32_t { VEHICLE_ENTRY_FLAG_POWERED_RIDE_UNRESTRICTED_GRAVITY = 1 - << 0, // Set on powered vehicles that do not slow down when going down a hill + << 0, // Set on powered vehicles that do not slow down when going down a hill. VEHICLE_ENTRY_FLAG_NO_UPSTOP_WHEELS = 1 << 1, VEHICLE_ENTRY_FLAG_NO_UPSTOP_BOBSLEIGH = 1 << 2, VEHICLE_ENTRY_FLAG_MINI_GOLF = 1 << 3, - VEHICLE_ENTRY_FLAG_4 = 1 << 4, - VEHICLE_ENTRY_FLAG_5 = 1 << 5, + VEHICLE_ENTRY_FLAG_REVERSER_BOGIE = 1 << 4, + VEHICLE_ENTRY_FLAG_REVERSER_PASSENGER_CAR = 1 << 5, VEHICLE_ENTRY_FLAG_HAS_INVERTED_SPRITE_SET = 1 << 6, // Set on vehicles that support running inverted for extended periods // of time, i.e. the Flying, Lay-down and Multi-dimension RCs. VEHICLE_ENTRY_FLAG_DODGEM_INUSE_LIGHTS = 1 << 7, // When set the vehicle has an additional frame for when in use. Used only by dodgems. - VEHICLE_ENTRY_FLAG_ALLOW_DOORS_DEPRECATED = 1 << 8, // Not used any more - every vehicle will now work with doors + VEHICLE_ENTRY_FLAG_ALLOW_DOORS_DEPRECATED = 1 << 8, // Not used any more - every vehicle will now work with doors. VEHICLE_ENTRY_FLAG_ENABLE_ADDITIONAL_COLOUR_2 = 1 << 9, - VEHICLE_ENTRY_FLAG_10 = 1 << 10, - VEHICLE_ENTRY_FLAG_11 = 1 << 11, + VEHICLE_ENTRY_FLAG_RECALCULATE_SPRITE_BOUNDS = 1 << 10, // Only used during loading of the objects. + VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES = 1 + << 11, // Instead of the default 32 rotation frames. Only used for boat hire and works only for non sloped sprites. VEHICLE_ENTRY_FLAG_OVERRIDE_NUM_VERTICAL_FRAMES = 1 << 12, // Setting this will cause the game to set vehicleEntry->num_vertical_frames to // vehicleEntry->num_vertical_frames_override, rather than determining it itself. - VEHICLE_ENTRY_FLAG_13 = 1 << 13, + VEHICLE_ENTRY_FLAG_SPRITE_BOUNDS_INCLUDE_INVERTED_SET = 1 + << 13, // Used together with HAS_INVERTED_SPRITE_SET and RECALCULATE_SPRITE_BOUNDS and includes the inverted sprites + // into the function that recalculates the sprite bounds. VEHICLE_ENTRY_FLAG_SPINNING_ADDITIONAL_FRAMES = 1 << 14, // 16x additional frames for vehicle. A spinning item with additional frames must always face forward to // load/unload. Spinning without can load/unload at 4 rotations. @@ -397,18 +406,19 @@ enum : uint32_t VEHICLE_ENTRY_FLAG_SPINNING = 1 << 18, VEHICLE_ENTRY_FLAG_POWERED = 1 << 19, VEHICLE_ENTRY_FLAG_RIDERS_SCREAM = 1 << 20, - VEHICLE_ENTRY_FLAG_21 = 1 << 21, // Swinging coaster?? + VEHICLE_ENTRY_FLAG_SUSPENDED_SWING = 1 << 21, // Suspended swinging coaster, or bobsleigh if SLIDE_SWING is also enabled. VEHICLE_ENTRY_FLAG_BOAT_HIRE_COLLISION_DETECTION = 1 << 22, VEHICLE_ENTRY_FLAG_VEHICLE_ANIMATION = 1 << 23, // Set on animated vehicles like the Multi-dimension coaster trains, // Miniature Railway locomotives and Helicycles. - VEHICLE_ENTRY_FLAG_RIDER_ANIMATION = 1 << 24, // Set when the animation updates rider sprite positions - VEHICLE_ENTRY_FLAG_25 = 1 << 25, + VEHICLE_ENTRY_FLAG_RIDER_ANIMATION = 1 << 24, // Set when the animation updates rider sprite positions. + VEHICLE_ENTRY_FLAG_WOODEN_WILD_MOUSE_SWING = 1 << 25, VEHICLE_ENTRY_FLAG_LOADING_WAYPOINTS = 1 - << 26, // Peep loading positions have x and y coordinates. Normal rides just have offsets + << 26, // Peep loading positions have x and y coordinates. Normal rides just have offsets. VEHICLE_ENTRY_FLAG_SLIDE_SWING = 1 << 27, // Set on dingy slides. They have there own swing value calculations and have a different amount of images. + // Also set on bobsleighs together with the SUSPENDED_SWING flag. VEHICLE_ENTRY_FLAG_CHAIRLIFT = 1 << 28, - VEHICLE_ENTRY_FLAG_WATER_RIDE = 1 << 29, // Set on rides where water would provide continuous propulsion + VEHICLE_ENTRY_FLAG_WATER_RIDE = 1 << 29, // Set on rides where water would provide continuous propulsion. VEHICLE_ENTRY_FLAG_GO_KART = 1 << 30, VEHICLE_ENTRY_FLAG_DODGEM_CAR_PLACEMENT = 1u << 31, }; @@ -465,7 +475,8 @@ enum : uint32_t VEHICLE_SPRITE_FLAG_CORKSCREWS = (1 << 12), VEHICLE_SPRITE_FLAG_RESTRAINT_ANIMATION = (1 << 13), VEHICLE_SPRITE_FLAG_CURVED_LIFT_HILL = (1 << 14), - VEHICLE_SPRITE_FLAG_15 = (1 << 15), + // Used only on lifts (the transport ride), to only use 4 rotation sprites instead of 32. + VEHICLE_SPRITE_FLAG_USE_4_ROTATION_FRAMES = (1 << 15), }; enum diff --git a/src/openrct2/ride/VehicleEntry.h b/src/openrct2/ride/VehicleEntry.h index d354729f5f..1955fb5aac 100644 --- a/src/openrct2/ride/VehicleEntry.h +++ b/src/openrct2/ride/VehicleEntry.h @@ -24,60 +24,57 @@ */ struct rct_ride_entry_vehicle { - uint16_t rotation_frame_mask; // 0x00 , 0x1A - uint8_t num_vertical_frames; // 0x02 , 0x1C, Appears to be unused, except as a temporary variable in RCT2 (not needed for - // OpenRCT2) - uint8_t num_horizontal_frames; // 0x03 , 0x1D, Appears to be unused, except as a temporary variable in RCT2 (not needed for - // OpenRCT2) - uint32_t spacing; // 0x04 , 0x1E - uint16_t car_mass; // 0x08 , 0x22 - int8_t tab_height; // 0x0A , 0x24 - uint8_t num_seats; // 0x0B , 0x25 - uint16_t sprite_flags; // 0x0C , 0x26 - uint8_t sprite_width; // 0x0E , 0x28 - uint8_t sprite_height_negative; // 0x0F , 0x29 - uint8_t sprite_height_positive; // 0x10 , 0x2A - uint8_t animation; // 0x11 , 0x2B - uint32_t flags; // 0x12 , 0x2C - uint16_t base_num_frames; // 0x16 , 0x30, The number of sprites for a flat non-banked track piece. - uint32_t base_image_id; // 0x18 , 0x32, Following image_id's populated during loading - uint32_t restraint_image_id; // 0x1C , 0x36 - uint32_t gentle_slope_image_id; // 0x20 , 0x3A - uint32_t steep_slope_image_id; // 0x24 , 0x3E - uint32_t vertical_slope_image_id; // 0x28 , 0x42 - uint32_t diagonal_slope_image_id; // 0x2C , 0x46 - uint32_t banked_image_id; // 0x30 , 0x4A - uint32_t inline_twist_image_id; // 0x34 , 0x4E - uint32_t flat_to_gentle_bank_image_id; // 0x38 , 0x52 - uint32_t diagonal_to_gentle_slope_bank_image_id; // 0x3C , 0x56 - uint32_t gentle_slope_to_bank_image_id; // 0x40 , 0x5A - uint32_t gentle_slope_bank_turn_image_id; // 0x44 , 0x5E - uint32_t flat_bank_to_gentle_slope_image_id; // 0x48 , 0x62 + uint16_t rotation_frame_mask; + uint8_t num_vertical_frames; // Appears to be unused, except as a temporary variable in RCT2 (not needed for OpenRCT2) + uint8_t num_horizontal_frames; // Appears to be unused, except as a temporary variable in RCT2 (not needed for OpenRCT2) + uint32_t spacing; + uint16_t car_mass; + int8_t tab_height; + uint8_t num_seats; + uint32_t sprite_flags; + uint8_t sprite_width; + uint8_t sprite_height_negative; + uint8_t sprite_height_positive; + uint8_t animation; + uint32_t flags; + uint16_t base_num_frames; // The number of sprites for a flat non-banked track piece. + uint32_t base_image_id; // Following image_id's populated during loading + uint32_t restraint_image_id; + uint32_t gentle_slope_image_id; + uint32_t steep_slope_image_id; + uint32_t vertical_slope_image_id; + uint32_t diagonal_slope_image_id; + uint32_t banked_image_id; + uint32_t inline_twist_image_id; + uint32_t flat_to_gentle_bank_image_id; + uint32_t diagonal_to_gentle_slope_bank_image_id; + uint32_t gentle_slope_to_bank_image_id; + uint32_t gentle_slope_bank_turn_image_id; + uint32_t flat_bank_to_gentle_slope_image_id; union { - uint32_t curved_lift_hill_image_id; // 0x4C , 0x66 - uint32_t corkscrew_image_id; // 0x4C , 0x66 + uint32_t curved_lift_hill_image_id; + uint32_t corkscrew_image_id; }; - uint32_t no_vehicle_images; // 0x50 , 0x6A - uint8_t no_seating_rows; // 0x54 , 0x6E - uint8_t spinning_inertia; // 0x55 , 0x6F - uint8_t spinning_friction; // 0x56 , 0x70 - OpenRCT2::Audio::SoundId friction_sound_id; // 0x57 , 0x71 - uint8_t log_flume_reverser_vehicle_type; // 0x58 , 0x72 - uint8_t sound_range; // 0x59 , 0x73 - uint8_t - double_sound_frequency; // 0x5A , 0x74 (Doubles the velocity when working out the sound frequency {used on go karts}) - uint8_t powered_acceleration; // 0x5B , 0x75 - uint8_t powered_max_speed; // 0x5C , 0x76 - uint8_t car_visual; // 0x5D , 0x77 + uint32_t no_vehicle_images; + uint8_t no_seating_rows; + uint8_t spinning_inertia; + uint8_t spinning_friction; + OpenRCT2::Audio::SoundId friction_sound_id; + uint8_t log_flume_reverser_vehicle_type; + uint8_t sound_range; + uint8_t double_sound_frequency; // (Doubles the velocity when working out the sound frequency {used on go karts}) + uint8_t powered_acceleration; + uint8_t powered_max_speed; + uint8_t car_visual; uint8_t effect_visual; uint8_t draw_order; - uint8_t num_vertical_frames_override; // 0x60 , 0x7A, A custom number that can be used rather than letting RCT2 determine - // it. Needs the VEHICLE_ENTRY_FLAG_OVERRIDE_NUM_VERTICAL_FRAMES flag to be set. - uint8_t peep_loading_waypoint_segments; // 0x61 new - uint8_t pad_62[6] = {}; // 0x62 , 0x7B + uint8_t num_vertical_frames_override; // A custom number that can be used rather than letting RCT2 determine it. + // Needs the VEHICLE_ENTRY_FLAG_OVERRIDE_NUM_VERTICAL_FRAMES flag to be set. + uint8_t peep_loading_waypoint_segments; + uint8_t pad_62[6] = {}; std::vector> peep_loading_waypoints = {}; - std::vector peep_loading_positions = {}; // previously 0x61 , 0x7B + std::vector peep_loading_positions = {}; }; #ifdef __TESTPAINT__ # pragma pack(pop) diff --git a/src/openrct2/ride/VehiclePaint.cpp b/src/openrct2/ride/VehiclePaint.cpp index 0fb8460eb1..cd9ddfa79f 100644 --- a/src/openrct2/ride/VehiclePaint.cpp +++ b/src/openrct2/ride/VehiclePaint.cpp @@ -14,8 +14,10 @@ #include "../drawing/LightFX.h" #include "../interface/Viewport.h" #include "../paint/Paint.h" +#include "../paint/sprite/Paint.Sprite.h" #include "../ride/RideData.h" -#include "../world/Sprite.h" +#include "../ride/Vehicle.h" +#include "../world/Entity.h" #include "Track.h" #include @@ -966,11 +968,11 @@ static void vehicle_sprite_paint_6D51EB( paint_session* session, const Vehicle* vehicle, int32_t ebx, int32_t z, const rct_ride_entry_vehicle* vehicleEntry) { int32_t ecx = ebx / 2; - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_11) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES) { ebx = ebx / 2; } - if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_15) + if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_USE_4_ROTATION_FRAMES) { ebx = ebx / 8; } @@ -2498,7 +2500,7 @@ static void vehicle_sprite_24( } if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_CORKSCREWS) { - int32_t eax = ((vehicle->vehicle_sprite_type - 24) * 4); + int32_t eax = ((vehicle->Pitch - 24) * 4); int32_t ecx = (imageDirection / 8) + eax + 144; int32_t ebx = (((imageDirection / 8) + eax) * vehicleEntry->base_num_frames) + vehicleEntry->corkscrew_image_id; vehicle_sprite_paint_6D520E(session, vehicle, ebx, ecx, z, vehicleEntry); @@ -2994,7 +2996,7 @@ static void vehicle_visual_splash2_effect(paint_session* session, int32_t z, con { return; } - if (vehicle->vehicle_sprite_type != 0) + if (vehicle->Pitch != 0) { return; } @@ -3017,7 +3019,7 @@ static void vehicle_visual_splash3_effect(paint_session* session, int32_t z, con { return; } - if (vehicle->vehicle_sprite_type != 0) + if (vehicle->Pitch != 0) { return; } @@ -3049,7 +3051,7 @@ static void vehicle_visual_splash4_effect(paint_session* session, int32_t z, con { return; } - if (vehicle->vehicle_sprite_type != 0) + if (vehicle->Pitch != 0) { return; } @@ -3077,7 +3079,7 @@ static void vehicle_visual_splash5_effect(paint_session* session, int32_t z, con { return; } - if (vehicle->vehicle_sprite_type != 0) + if (vehicle->Pitch != 0) { return; } @@ -3121,9 +3123,9 @@ void vehicle_visual_default( paint_session* session, int32_t imageDirection, int32_t z, const Vehicle* vehicle, const rct_ride_entry_vehicle* vehicleEntry) { - if (vehicle->vehicle_sprite_type < std::size(vehicle_sprite_funcs)) + if (vehicle->Pitch < std::size(vehicle_sprite_funcs)) { - vehicle_sprite_funcs[vehicle->vehicle_sprite_type](session, vehicle, imageDirection, z, vehicleEntry); + vehicle_sprite_funcs[vehicle->Pitch](session, vehicle, imageDirection, z, vehicleEntry); } } @@ -3131,7 +3133,7 @@ void vehicle_visual_default( * * rct2: 0x006D4244 */ -void vehicle_paint(paint_session* session, const Vehicle* vehicle, int32_t imageDirection) +template<> void PaintEntity(paint_session* session, const Vehicle* vehicle, int32_t imageDirection) { const rct_ride_entry_vehicle* vehicleEntry; @@ -3139,14 +3141,14 @@ void vehicle_paint(paint_session* session, const Vehicle* vehicle, int32_t image int32_t y = vehicle->y; int32_t z = vehicle->z; - if (vehicle->flags & SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE) + if (vehicle->IsCrashedVehicle) { uint32_t ebx = 22965 + vehicle->animation_frame; PaintAddImageAsParent(session, ebx, 0, 0, 1, 1, 0, z, 0, 0, z + 2); return; } - if (vehicle->ride_subtype == RIDE_ENTRY_INDEX_NULL) + if (vehicle->ride_subtype == OBJECT_ENTRY_INDEX_NULL) { vehicleEntry = &CableLiftVehicle; } diff --git a/src/openrct2/ride/VehiclePaint.h b/src/openrct2/ride/VehiclePaint.h index 91fadaa035..5bbe90dc61 100644 --- a/src/openrct2/ride/VehiclePaint.h +++ b/src/openrct2/ride/VehiclePaint.h @@ -28,8 +28,6 @@ struct vehicle_boundbox extern const vehicle_boundbox VehicleBoundboxes[16][224]; -void vehicle_paint(paint_session* session, const Vehicle* vehicle, int32_t imageDirection); - void vehicle_visual_default( paint_session* session, int32_t imageDirection, int32_t z, const Vehicle* vehicle, const rct_ride_entry_vehicle* vehicleEntry); diff --git a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp index 17c8bac9a4..920876083d 100644 --- a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp +++ b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" @@ -438,13 +437,13 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5( { uint32_t imageId = SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_FRONT_NW_SW_PART_4 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 26, height, 0, 27, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); } else if (direction == 3 && trackSequence == 0) { uint32_t imageId = SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_FRONT_SE_NE_PART_0 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 26, height, 27, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height }); } track_paint_util_right_quarter_turn_5_tiles_wooden_supports(session, height, direction, trackSequence); @@ -730,7 +729,7 @@ static void air_powered_vertical_rc_track_vertical_slope_up( { floorImageId = SPR_FLOOR_PLANKS | session->TrackColours[SCHEME_SUPPORTS]; } - PaintAddImageAsParent(session, floorImageId, 0, 0, 26, 26, 126, height, 3, 3, height); + PaintAddImageAsParent(session, floorImageId, { 0, 0, height }, { 26, 26, 126 }, { 3, 3, height }); PaintAddImageAsChildRotated(session, direction, supportsImageId, 0, 0, 26, 26, 126, height, 3, 3, height); } else @@ -914,13 +913,13 @@ static void air_powered_vertical_rc_track_booster( if (direction & 1) { uint32_t imageId = SPR_REVERSE_FREEFALL_RC_FLAT_NW_SE | colour; - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); } else { uint32_t imageId = SPR_REVERSE_FREEFALL_RC_FLAT_SW_NE | colour; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); } diff --git a/src/openrct2/ride/coaster/BobsleighCoaster.cpp b/src/openrct2/ride/coaster/BobsleighCoaster.cpp index 74cda2c0dc..07f7d83ba4 100644 --- a/src/openrct2/ride/coaster/BobsleighCoaster.cpp +++ b/src/openrct2/ride/coaster/BobsleighCoaster.cpp @@ -14,11 +14,22 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN = 14586; +static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_NW_SE_OPEN = 14587; +static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED = 14588; +static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_NW_SE_CLOSED = 14589; + +static constexpr const uint32_t _BobsleighBlockBrakeImages[NumOrthogonalDirections][2] = { + { BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN, BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED }, + { BOBSLEIGH_BLOCK_BRAKE_NW_SE_OPEN, BOBSLEIGH_BLOCK_BRAKE_NW_SE_CLOSED }, + { BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN, BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED }, + { BOBSLEIGH_BLOCK_BRAKE_NW_SE_OPEN, BOBSLEIGH_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + /** rct2: 0x006FE5B4 */ static void bobsleigh_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -3482,19 +3493,22 @@ static void bobsleigh_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); switch (direction) { case 0: case 2: PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 14586, 0, 0, 32, 20, 2, height, 0, 6, height); + session, direction, session->TrackColours[SCHEME_TRACK] | _BobsleighBlockBrakeImages[direction][isClosed], 0, 0, + 32, 20, 2, height, 0, 6, height); PaintAddImageAsParentRotated( session, direction, session->TrackColours[SCHEME_TRACK] | 14590, 0, 0, 32, 1, 26, height, 0, 27, height); break; case 1: case 3: PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 14587, 0, 0, 32, 20, 2, height, 0, 6, height); + session, direction, session->TrackColours[SCHEME_TRACK] | _BobsleighBlockBrakeImages[direction][isClosed], 0, 0, + 32, 20, 2, height, 0, 6, height); PaintAddImageAsParentRotated( session, direction, session->TrackColours[SCHEME_TRACK] | 14591, 0, 0, 32, 1, 26, height, 0, 27, height); break; diff --git a/src/openrct2/ride/coaster/BolligerMabillardTrack.cpp b/src/openrct2/ride/coaster/BolligerMabillardTrack.cpp index 3a1c52dd53..55bdd29ef7 100644 --- a/src/openrct2/ride/coaster/BolligerMabillardTrack.cpp +++ b/src/openrct2/ride/coaster/BolligerMabillardTrack.cpp @@ -16,11 +16,22 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t BM_BLOCK_BRAKE_SW_NE_OPEN = 17150; +static constexpr const uint32_t BM_BLOCK_BRAKE_NW_SE_OPEN = 17151; +static constexpr const uint32_t BM_BLOCK_BRAKE_SW_NE_CLOSED = 17152; +static constexpr const uint32_t BM_BLOCK_BRAKE_NW_SE_CLOSED = 17153; + +static constexpr const uint32_t _BolligerMabillardBlockBrakeImages[NumOrthogonalDirections][2] = { + { BM_BLOCK_BRAKE_SW_NE_OPEN, BM_BLOCK_BRAKE_SW_NE_CLOSED }, + { BM_BLOCK_BRAKE_NW_SE_OPEN, BM_BLOCK_BRAKE_NW_SE_CLOSED }, + { BM_BLOCK_BRAKE_SW_NE_OPEN, BM_BLOCK_BRAKE_SW_NE_CLOSED }, + { BM_BLOCK_BRAKE_NW_SE_OPEN, BM_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + void bolliger_mabillard_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement, int32_t supportType) @@ -60,18 +71,19 @@ void bolliger_mabillard_track_station( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement, int32_t supportType) { - static constexpr const uint32_t imageIds[4][3] = { - { 17154, 17150, SPR_STATION_BASE_A_SW_NE }, - { 17155, 17151, SPR_STATION_BASE_A_NW_SE }, - { 17154, 17150, SPR_STATION_BASE_A_SW_NE }, - { 17155, 17151, SPR_STATION_BASE_A_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 17154, SPR_STATION_BASE_A_SW_NE }, + { 17155, SPR_STATION_BASE_A_NW_SE }, + { 17154, SPR_STATION_BASE_A_SW_NE }, + { 17155, SPR_STATION_BASE_A_NW_SE }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, - height + 3); + session, direction, _BolligerMabillardBlockBrakeImages[direction][isClosed] | session->TrackColours[SCHEME_TRACK], + 0, 0, 32, 20, 1, height, 0, 6, height + 3); } else { @@ -80,7 +92,7 @@ void bolliger_mabillard_track_station( height + 3); } PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); track_paint_util_draw_station_metal_supports_2( session, direction, height, session->TrackColours[SCHEME_SUPPORTS], supportType); @@ -8831,17 +8843,22 @@ void bolliger_mabillard_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement, int32_t supportType) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); switch (direction) { case 0: case 2: PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 17150, 0, 0, 32, 20, 3, height, 0, 6, height); + session, direction, + session->TrackColours[SCHEME_TRACK] | _BolligerMabillardBlockBrakeImages[direction][isClosed], 0, 0, 32, 20, 3, + height, 0, 6, height); break; case 1: case 3: PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 17151, 0, 0, 32, 20, 3, height, 0, 6, height); + session, direction, + session->TrackColours[SCHEME_TRACK] | _BolligerMabillardBlockBrakeImages[direction][isClosed], 0, 0, 32, 20, 3, + height, 0, 6, height); break; } if (track_paint_util_should_paint_supports(session->MapPosition)) diff --git a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp index faa52ea5b5..96c6c68aad 100644 --- a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp +++ b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp index 47da3b21d1..f3bd5c62e2 100644 --- a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp @@ -14,11 +14,22 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN = 16232; +static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_NW_SE_OPEN = 16233; +static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED = 16234; +static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_NW_SE_CLOSED = 16235; + +static constexpr const uint32_t _CorkscrewRCBlockBrakeImages[NumOrthogonalDirections][2] = { + { CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED }, + { CORKSCREW_RC_BLOCK_BRAKE_NW_SE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_NW_SE_CLOSED }, + { CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED }, + { CORKSCREW_RC_BLOCK_BRAKE_NW_SE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + /** rct2: 0x008A7AF8 */ static void corkscrew_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -81,18 +92,19 @@ static void corkscrew_rc_track_station( paint_session* session, ride_id_t rideIndex, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 16236, 16232, SPR_STATION_BASE_A_SW_NE }, - { 16237, 16233, SPR_STATION_BASE_A_NW_SE }, - { 16236, 16232, SPR_STATION_BASE_A_SW_NE }, - { 16237, 16233, SPR_STATION_BASE_A_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 16236, SPR_STATION_BASE_A_SW_NE }, + { 16237, SPR_STATION_BASE_A_NW_SE }, + { 16236, SPR_STATION_BASE_A_SW_NE }, + { 16237, SPR_STATION_BASE_A_NW_SE }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, - height + 3); + session, direction, _CorkscrewRCBlockBrakeImages[direction][isClosed] | session->TrackColours[SCHEME_TRACK], 0, 0, + 32, 20, 1, height, 0, 6, height + 3); } else { @@ -101,7 +113,7 @@ static void corkscrew_rc_track_station( height + 3); } PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); track_paint_util_draw_station_metal_supports_2(session, direction, height, session->TrackColours[SCHEME_SUPPORTS], 0); track_paint_util_draw_station_2(session, rideIndex, direction, height, tileElement, 9, 11); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -8516,19 +8528,10 @@ static void corkscrew_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 16232, 0, 0, 32, 20, 3, height, 0, 6, height); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 16233, 0, 0, 32, 20, 3, height, 0, 6, height); - break; - } + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _CorkscrewRCBlockBrakeImages[direction][isClosed], 0, 0, 32, + 20, 3, height, 0, 6, height); metal_a_supports_paint_setup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS]); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_0); paint_util_set_segment_support_height( diff --git a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp index 20d69d6735..df2a5b8c97 100644 --- a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/GigaCoaster.cpp b/src/openrct2/ride/coaster/GigaCoaster.cpp index 54be599157..45a1ca2843 100644 --- a/src/openrct2/ride/coaster/GigaCoaster.cpp +++ b/src/openrct2/ride/coaster/GigaCoaster.cpp @@ -14,11 +14,31 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +// Closed block brakes and regular brakes use the same images +static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_OPEN_1 = 18076; +static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_OPEN_1 = 18077; +static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_CLOSED_1 = 18078; +static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_CLOSED_1 = 18079; +static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_OPEN_2 = 18080; +static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_OPEN_2 = 18081; +static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_CLOSED_2 = 18082; +static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_CLOSED_2 = 18083; + +static constexpr const uint32_t _GigaCoasterBrakeImages[NumOrthogonalDirections][2][2] = { + { { GIGA_COASTER_BRAKE_SW_NE_OPEN_1, GIGA_COASTER_BRAKE_SW_NE_OPEN_2 }, + { GIGA_COASTER_BRAKE_SW_NE_CLOSED_1, GIGA_COASTER_BRAKE_SW_NE_CLOSED_2 } }, + { { GIGA_COASTER_BRAKE_NW_SE_OPEN_1, GIGA_COASTER_BRAKE_NW_SE_OPEN_2 }, + { GIGA_COASTER_BRAKE_NW_SE_CLOSED_1, GIGA_COASTER_BRAKE_NW_SE_CLOSED_2 } }, + { { GIGA_COASTER_BRAKE_SW_NE_OPEN_1, GIGA_COASTER_BRAKE_SW_NE_OPEN_2 }, + { GIGA_COASTER_BRAKE_SW_NE_CLOSED_1, GIGA_COASTER_BRAKE_SW_NE_CLOSED_2 } }, + { { GIGA_COASTER_BRAKE_NW_SE_OPEN_1, GIGA_COASTER_BRAKE_NW_SE_OPEN_2 }, + { GIGA_COASTER_BRAKE_NW_SE_CLOSED_1, GIGA_COASTER_BRAKE_NW_SE_CLOSED_2 } }, +}; + /** rct2: 0x008AD674 */ static void giga_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -100,18 +120,19 @@ static void giga_rc_track_station( paint_session* session, ride_id_t rideIndex, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 18084, 18076, SPR_STATION_BASE_A_SW_NE }, - { 18085, 18077, SPR_STATION_BASE_A_NW_SE }, - { 18084, 18076, SPR_STATION_BASE_A_SW_NE }, - { 18085, 18077, SPR_STATION_BASE_A_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 18084, SPR_STATION_BASE_A_SW_NE }, + { 18085, SPR_STATION_BASE_A_NW_SE }, + { 18084, SPR_STATION_BASE_A_SW_NE }, + { 18085, SPR_STATION_BASE_A_NW_SE }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, - height + 3); + session, direction, _GigaCoasterBrakeImages[direction][isClosed][0] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, + 20, 1, height, 0, 6, height + 3); } else { @@ -120,7 +141,7 @@ static void giga_rc_track_station( height + 3); } PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); track_paint_util_draw_station_metal_supports_2(session, direction, height, session->TrackColours[SCHEME_SUPPORTS], 0); track_paint_util_draw_station_2(session, rideIndex, direction, height, tileElement, 9, 11); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -3774,16 +3795,20 @@ static void giga_rc_track_brakes( case 0: case 2: PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18078, 0, 0, 32, 20, 3, height, 0, 6, height); + session, direction, session->TrackColours[SCHEME_TRACK] | GIGA_COASTER_BRAKE_SW_NE_CLOSED_1, 0, 0, 32, 20, 3, + height, 0, 6, height); PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18082, 0, 0, 32, 1, 11, height, 0, 27, height + 5); + session, direction, session->TrackColours[SCHEME_TRACK] | GIGA_COASTER_BRAKE_SW_NE_CLOSED_2, 0, 0, 32, 1, 11, + height, 0, 27, height + 5); break; case 1: case 3: PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18079, 0, 0, 32, 20, 3, height, 0, 6, height); + session, direction, session->TrackColours[SCHEME_TRACK] | GIGA_COASTER_BRAKE_NW_SE_CLOSED_1, 0, 0, 32, 20, 3, + height, 0, 6, height); PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18083, 0, 0, 32, 1, 11, height, 0, 27, height + 5); + session, direction, session->TrackColours[SCHEME_TRACK] | GIGA_COASTER_BRAKE_NW_SE_CLOSED_2, 0, 0, 32, 1, 11, + height, 0, 27, height + 5); break; } if (track_paint_util_should_paint_supports(session->MapPosition)) @@ -7724,23 +7749,14 @@ static void giga_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18076, 0, 0, 32, 20, 3, height, 0, 6, height); - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18080, 0, 0, 32, 1, 11, height, 0, 27, height + 5); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18077, 0, 0, 32, 20, 3, height, 0, 6, height); - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18081, 0, 0, 32, 1, 11, height, 0, 27, height + 5); - break; - } + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _GigaCoasterBrakeImages[direction][isClosed][0], 0, 0, 32, 20, + 3, height, 0, 6, height); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _GigaCoasterBrakeImages[direction][isClosed][1], 0, 0, 32, 1, + 11, height, 0, 27, height + 5); + if (track_paint_util_should_paint_supports(session->MapPosition)) { metal_a_supports_paint_setup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS]); diff --git a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp index 7dfde2aa92..2164a1ace9 100644 --- a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp +++ b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/HybridCoaster.cpp b/src/openrct2/ride/coaster/HybridCoaster.cpp index e598dc6dc2..5b332640ff 100644 --- a/src/openrct2/ride/coaster/HybridCoaster.cpp +++ b/src/openrct2/ride/coaster/HybridCoaster.cpp @@ -20,7 +20,6 @@ #include "../../paint/Supports.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp index 120e70afdf..3890fb9aa5 100644 --- a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp index 02e5fcbfbd..0b92ceea7c 100644 --- a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp index da28e95172..e1fc2654d1 100644 --- a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp index e38622147e..c78eed4ea0 100644 --- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp @@ -17,7 +17,6 @@ #include "../../paint/Supports.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" @@ -1652,7 +1651,7 @@ void junior_rc_paint_station( { // height -= 2 (height - 2) imageId = SPR_STATION_BASE_B_SW_NE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height - 2, 0, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height - 2 }, { 32, 28, 1 }, { 0, 2, height }); // height += 2 (height) if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && rideType == RIDE_TYPE_JUNIOR_ROLLER_COASTER) @@ -1674,7 +1673,7 @@ void junior_rc_paint_station( { // height -= 2 (height - 2) imageId = SPR_STATION_BASE_B_NW_SE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height - 2, 2, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height - 2 }, { 28, 32, 1 }, { 2, 0, height }); // height += 2 (height) if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation && rideType == RIDE_TYPE_JUNIOR_ROLLER_COASTER) @@ -1898,13 +1897,13 @@ static void junior_rc_flat_to_left_bank_paint_setup( image_id = junior_rc_track_pieces_flat_to_left_bank[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); paint_util_push_tunnel_right(session, height, 0); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); paint_util_push_tunnel_left(session, height, 0); } @@ -1915,11 +1914,11 @@ static void junior_rc_flat_to_left_bank_paint_setup( if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 1, 32, 26, height, 27, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 1, 26, height, 0, 27, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); } } @@ -1946,13 +1945,13 @@ static void junior_rc_flat_to_right_bank_paint_setup( image_id = junior_rc_track_pieces_flat_to_right_bank[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); paint_util_push_tunnel_right(session, height, 0); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); paint_util_push_tunnel_left(session, height, 0); } @@ -1963,11 +1962,11 @@ static void junior_rc_flat_to_right_bank_paint_setup( if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 1, 32, 26, height, 27, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 1, 26, height, 0, 27, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); } } @@ -2076,12 +2075,12 @@ static void junior_rc_banked_right_quarter_turn_5_tiles_paint_setup( if (direction == 1 && trackSequence == 6) { uint32_t imageId = SPR_JUNIOR_RC_BANKED_QUARTER_TURN_5_TILES_NW_SW_PART_4_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 26, height, 0, 27, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); } else if (direction == 3 && trackSequence == 0) { uint32_t imageId = SPR_JUNIOR_RC_BANKED_QUARTER_TURN_5_TILES_SE_NE_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 26, height, 27, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height }); } int32_t supportHeight = height; @@ -2174,11 +2173,11 @@ static void junior_rc_left_bank_to_25_deg_up_paint_setup( image_id = junior_rc_track_pieces_left_banked_to_25_deg_up[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); } if (junior_rc_track_pieces_left_banked_to_25_deg_up[direction][1] != 0) @@ -2187,11 +2186,11 @@ static void junior_rc_left_bank_to_25_deg_up_paint_setup( if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 1, 32, 34, height, 27, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 32, 34 }, { 27, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 1, 34, height, 0, 27, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); } } @@ -2234,11 +2233,11 @@ static void junior_rc_right_bank_to_25_deg_up_paint_setup( image_id = junior_rc_track_pieces_right_banked_to_25_deg_up[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); } if (junior_rc_track_pieces_right_banked_to_25_deg_up[direction][1] != 0) @@ -2247,11 +2246,11 @@ static void junior_rc_right_bank_to_25_deg_up_paint_setup( if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 1, 32, 34, height, 27, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 32, 34 }, { 27, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 1, 34, height, 0, 27, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); } } @@ -2307,13 +2306,13 @@ static void junior_rc_25_deg_up_to_left_bank_paint_setup( image_id = junior_rc_track_pieces_25_deg_up_to_left_bank[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); paint_util_push_tunnel_right(session, tunnelHeight, tunnelType); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); paint_util_push_tunnel_left(session, tunnelHeight, tunnelType); } @@ -2324,11 +2323,11 @@ static void junior_rc_25_deg_up_to_left_bank_paint_setup( if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 1, 32, 34, height, 27, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 32, 34 }, { 27, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 1, 34, height, 0, 27, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); } } @@ -2368,13 +2367,13 @@ static void junior_rc_25_deg_up_to_right_bank_paint_setup( image_id = junior_rc_track_pieces_25_deg_up_to_right_bank[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); paint_util_push_tunnel_right(session, tunnelHeight, tunnelType); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); paint_util_push_tunnel_left(session, tunnelHeight, tunnelType); } @@ -2385,11 +2384,11 @@ static void junior_rc_25_deg_up_to_right_bank_paint_setup( if (direction & 1) { - PaintAddImageAsParent(session, image_id, 0, 0, 1, 32, 34, height, 27, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 32, 34 }, { 27, 0, height }); } else { - PaintAddImageAsParent(session, image_id, 0, 0, 32, 1, 34, height, 0, 27, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); } } @@ -3028,12 +3027,12 @@ static void junior_rc_right_quarter_turn_3_tiles_bank_paint_setup( if (direction == 1 && trackSequence == 3) { uint32_t imageId = SPR_JUNIOR_RC_BANKED_QUARTER_TURN_3_TILES_NW_SW_PART_2_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 26, height, 0, 27, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); } else if (direction == 3 && trackSequence == 0) { uint32_t imageId = SPR_JUNIOR_RC_BANKED_QUARTER_TURN_3_TILES_SE_NE_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 26, height, 27, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height }); } uint8_t supportType[2][4] = { { 1, 0, 0, 2 }, { 2, 0, 0, 1 } }; @@ -3660,13 +3659,13 @@ static void junior_rc_brake_paint_setup( image_id = junior_rc_track_pieces_brake[direction] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 6, 0, 20, 32, 1, height); + PaintAddImageAsParent(session, image_id, { 6, 0, height }, { 20, 32, 1 }); paint_util_push_tunnel_right(session, height, TUNNEL_0); } else { - PaintAddImageAsParent(session, image_id, 0, 6, 32, 20, 1, height); + PaintAddImageAsParent(session, image_id, { 0, 6, height }, { 32, 20, 1 }); paint_util_push_tunnel_left(session, height, TUNNEL_0); } @@ -3696,13 +3695,13 @@ static void junior_rc_block_brake_paint_setup( image_id = junior_rc_track_pieces_block_brake[isBraked][direction] | session->TrackColours[SCHEME_TRACK]; if (direction & 1) { - PaintAddImageAsParent(session, image_id, 6, 0, 20, 32, 1, height); + PaintAddImageAsParent(session, image_id, { 6, 0, height }, { 20, 32, 1 }); paint_util_push_tunnel_right(session, height, TUNNEL_0); } else { - PaintAddImageAsParent(session, image_id, 0, 6, 32, 20, 1, height); + PaintAddImageAsParent(session, image_id, { 0, 6, height }, { 32, 20, 1 }); paint_util_push_tunnel_left(session, height, TUNNEL_0); } @@ -4563,7 +4562,7 @@ static void junior_rc_diag_flat_to_left_bank_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_W_E_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 27); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 27 }); } if (trackSequence == 3) { @@ -4590,7 +4589,7 @@ static void junior_rc_diag_flat_to_right_bank_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_E_W_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 27); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 27 }); } if (trackSequence == 3) { @@ -4617,7 +4616,7 @@ static void junior_rc_diag_left_bank_to_flat_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_E_W_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 27); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 27 }); } if (trackSequence == 3) { @@ -4644,7 +4643,7 @@ static void junior_rc_diag_right_bank_to_flat_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_W_E_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 27); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 27 }); } if (trackSequence == 3) { @@ -4671,7 +4670,7 @@ static void junior_rc_diag_left_bank_to_25_deg_up_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_W_E_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4698,7 +4697,7 @@ static void junior_rc_diag_right_bank_to_25_deg_up_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_E_W_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4725,7 +4724,7 @@ static void junior_rc_diag_25_deg_up_to_left_bank_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_W_E_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4752,7 +4751,7 @@ static void junior_rc_diag_25_deg_up_to_right_bank_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_E_W_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4779,7 +4778,7 @@ static void junior_rc_diag_left_bank_to_25_deg_down_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_E_W_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4806,7 +4805,7 @@ static void junior_rc_diag_right_bank_to_25_deg_down_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_W_E_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4833,7 +4832,7 @@ static void junior_rc_diag_25_deg_down_to_left_bank_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_E_W_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { @@ -4860,7 +4859,7 @@ static void junior_rc_diag_25_deg_down_to_right_bank_paint_setup( { uint32_t imageId = SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_W_E_PART_0_2 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, -16, -16, 32, 32, 0, height, -16, -16, height + 35); + PaintAddImageAsParent(session, imageId, { -16, -16, height }, { 32, 32, 0 }, { -16, -16, height + 35 }); } if (trackSequence == 3) { diff --git a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp index 10dd20eb72..2c44019139 100644 --- a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp index 5c962d5489..9eaf612ef5 100644 --- a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp @@ -14,28 +14,40 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN = 15020; +static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_OPEN = 15021; +static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED = 15022; +static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_CLOSED = 15023; + +static constexpr const uint32_t _LimLauncherBlockBrakeImages[NumOrthogonalDirections][2] = { + { LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED }, + { LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_CLOSED }, + { LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED }, + { LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + /** rct2: 0x008A6D50, 0x008A6D60, 0x008A6D70 */ static void lim_launched_rc_track_station( paint_session* session, ride_id_t rideIndex, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 15018, 15020, SPR_STATION_BASE_B_SW_NE }, - { 15019, 15021, SPR_STATION_BASE_B_NW_SE }, - { 15018, 15020, SPR_STATION_BASE_B_SW_NE }, - { 15019, 15021, SPR_STATION_BASE_B_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 15018, SPR_STATION_BASE_B_SW_NE }, + { 15019, SPR_STATION_BASE_B_NW_SE }, + { 15018, SPR_STATION_BASE_B_SW_NE }, + { 15019, SPR_STATION_BASE_B_NW_SE }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, - height + 3); + session, direction, _LimLauncherBlockBrakeImages[direction][isClosed] | session->TrackColours[SCHEME_TRACK], 0, 0, + 32, 20, 1, height, 0, 6, height + 3); } else { @@ -44,7 +56,7 @@ static void lim_launched_rc_track_station( height + 3); } PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); track_paint_util_draw_station_metal_supports_2(session, direction, height, session->TrackColours[SCHEME_SUPPORTS], 0); track_paint_util_draw_station(session, rideIndex, direction, height, tileElement); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -1643,19 +1655,11 @@ static void lim_launched_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 15020, 0, 0, 32, 20, 3, height, 0, 6, height); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 15021, 0, 0, 32, 20, 3, height, 0, 6, height); - break; - } + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _LimLauncherBlockBrakeImages[direction][isClosed], 0, 0, 32, + 20, 3, height, 0, 6, height); + if (track_paint_util_should_paint_supports(session->MapPosition)) { metal_a_supports_paint_setup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS]); diff --git a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp index 509679e03f..dfebe07764 100644 --- a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/MineRide.cpp b/src/openrct2/ride/coaster/MineRide.cpp index a5d84a3371..a86f9c5226 100644 --- a/src/openrct2/ride/coaster/MineRide.cpp +++ b/src/openrct2/ride/coaster/MineRide.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/MineTrainCoaster.cpp b/src/openrct2/ride/coaster/MineTrainCoaster.cpp index d945638051..698824fda3 100644 --- a/src/openrct2/ride/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/ride/coaster/MineTrainCoaster.cpp @@ -14,11 +14,22 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN = 20060; +static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_NW_SE_OPEN = 20061; +static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED = 20062; +static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_NW_SE_CLOSED = 20063; + +static constexpr const uint32_t _MineTrainBlockBrakeImages[NumOrthogonalDirections][2] = { + { MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN, MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED }, + { MINE_TRAIN_BLOCK_BRAKE_NW_SE_OPEN, MINE_TRAIN_BLOCK_BRAKE_NW_SE_CLOSED }, + { MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN, MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED }, + { MINE_TRAIN_BLOCK_BRAKE_NW_SE_OPEN, MINE_TRAIN_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + /** rct2: 0x0071BFA4 */ static void mine_train_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -78,21 +89,22 @@ static void mine_train_rc_track_station( paint_session* session, ride_id_t rideIndex, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 20064, 20060, SPR_STATION_BASE_B_SW_NE }, - { 20065, 20061, SPR_STATION_BASE_B_NW_SE }, - { 20064, 20060, SPR_STATION_BASE_B_SW_NE }, - { 20065, 20061, SPR_STATION_BASE_B_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 20064, SPR_STATION_BASE_B_SW_NE }, + { 20065, SPR_STATION_BASE_B_NW_SE }, + { 20064, SPR_STATION_BASE_B_SW_NE }, + { 20065, SPR_STATION_BASE_B_NW_SE }, }; PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height - 2, 0, 2, + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height - 2, 0, 2, height); if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsChildRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 0, - height); + session, direction, _MineTrainBlockBrakeImages[direction][isClosed] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, + 20, 1, height, 0, 0, height); } else { @@ -7279,21 +7291,11 @@ static void mine_train_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 20060, 0, 0, 32, 20, 1, height, 0, 6, height); - wooden_a_supports_paint_setup(session, 6, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 20061, 0, 0, 32, 20, 1, height, 0, 6, height); - wooden_a_supports_paint_setup(session, 7, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); - break; - } + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _MineTrainBlockBrakeImages[direction][isClosed], 0, 0, 32, 20, + 1, height, 0, 6, height); + wooden_a_supports_paint_setup(session, 7, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0); paint_util_set_general_support_height(session, height + 32, 0x20); diff --git a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp index ea6c9291b5..9a4f4d1648 100644 --- a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp @@ -14,11 +14,22 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_SW_NE_OPEN = 18742; +static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_NW_SE_OPEN = 18743; +static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED = 18744; +static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_NW_SE_CLOSED = 18745; + +static constexpr const uint32_t _MiniRCBlockBrakeImages[NumOrthogonalDirections][2] = { + { MINI_RC_BLOCK_BRAKE_SW_NE_OPEN, MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED }, + { MINI_RC_BLOCK_BRAKE_NW_SE_OPEN, MINI_RC_BLOCK_BRAKE_NW_SE_CLOSED }, + { MINI_RC_BLOCK_BRAKE_SW_NE_OPEN, MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED }, + { MINI_RC_BLOCK_BRAKE_NW_SE_OPEN, MINI_RC_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + /** rct2: 0x008A4ABC */ static void mini_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -102,18 +113,19 @@ static void mini_rc_track_station( paint_session* session, ride_id_t rideIndex, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 18746, 18742, SPR_STATION_BASE_A_SW_NE }, - { 18747, 18743, SPR_STATION_BASE_A_NW_SE }, - { 18746, 18742, SPR_STATION_BASE_A_SW_NE }, - { 18747, 18743, SPR_STATION_BASE_A_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 18746, SPR_STATION_BASE_A_SW_NE }, + { 18747, SPR_STATION_BASE_A_NW_SE }, + { 18746, SPR_STATION_BASE_A_SW_NE }, + { 18747, SPR_STATION_BASE_A_NW_SE }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, - height + 3); + session, direction, _MiniRCBlockBrakeImages[direction][isClosed] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, + 20, 1, height, 0, 6, height + 3); } else { @@ -122,7 +134,7 @@ static void mini_rc_track_station( height + 3); } PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); track_paint_util_draw_station_metal_supports_2(session, direction, height, session->TrackColours[SCHEME_SUPPORTS], 0); track_paint_util_draw_station_2(session, rideIndex, direction, height, tileElement, 9, 11); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -7524,12 +7536,14 @@ static void mini_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _MiniRCBlockBrakeImages[direction][isClosed], 0, 0, 32, 20, 3, + height, 0, 6, height); switch (direction) { case 0: case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18742, 0, 0, 32, 20, 3, height, 0, 6, height); if (track_paint_util_should_paint_supports(session->MapPosition)) { metal_a_supports_paint_setup( @@ -7538,8 +7552,6 @@ static void mini_rc_track_block_brakes( break; case 1: case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 18743, 0, 0, 32, 20, 3, height, 0, 6, height); if (track_paint_util_should_paint_supports(session->MapPosition)) { metal_a_supports_paint_setup( diff --git a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp index c835db3741..70050350c3 100644 --- a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp index 6ce838c52f..30b5c07847 100644 --- a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp @@ -14,11 +14,25 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN = 15812; +static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_OPEN = 15813; +static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED = 15814; +static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_CLOSED = 15815; + +static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN = 16220; +static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_OPEN = 16221; +static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED = 16222; +static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 16223; + +static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN = 26551; +static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_OPEN = 26552; +static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED = 26553; +static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 26554; + /** rct2: 0x00792D88 */ static void multi_dimension_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -108,18 +122,20 @@ static void multi_dimension_rc_track_station( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 15810, 15812, SPR_STATION_INVERTED_BAR_A_SW_NE }, - { 15811, 15813, SPR_STATION_INVERTED_BAR_A_NW_SE }, - { 15810, 15812, SPR_STATION_INVERTED_BAR_A_SW_NE }, - { 15811, 15813, SPR_STATION_INVERTED_BAR_A_NW_SE }, + static constexpr const uint32_t imageIds[NumOrthogonalDirections][3] = { + { 15810, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED }, + { 15811, MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_CLOSED }, + { 15810, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED }, + { 15811, MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_CLOSED }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + uint8_t offset = isClosed ? 2 : 1; PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 26, 1, height, 0, 3, - height + 3); + session, direction, imageIds[direction][offset] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 26, 1, height, 0, + 3, height + 3); } else { @@ -12497,21 +12513,20 @@ static void multi_dimension_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + if (!tileElement->AsTrack()->IsInverted()) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 16220, 0, 0, 32, 20, 3, height, 0, 6, height); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 16221, 0, 0, 32, 20, 3, height, 0, 6, height); - break; - } + static constexpr const uint32_t imageIds[NumOrthogonalDirections][2] = { + { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, + { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED }, + { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, + { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED }, + }; + + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | imageIds[direction][isClosed], 0, 0, 32, 20, 3, height, 0, + 6, height); metal_a_supports_paint_setup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS]); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -12520,21 +12535,16 @@ static void multi_dimension_rc_track_block_brakes( } else { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 26551, 0, 0, 32, 20, 3, height + 24, 0, 6, - height + 24); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 26552, 0, 0, 32, 20, 3, height + 24, 0, 6, - height + 24); - break; - } + static constexpr const uint32_t imageIds[NumOrthogonalDirections][2] = { + { MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, + { MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED }, + { MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, + { MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED }, + }; + + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | imageIds[direction][isClosed], 0, 0, 32, 20, 3, + height + 24, 0, 6, height + 24); paint_util_set_segment_support_height( session, paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); diff --git a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp index 763336958b..fb860fb3c0 100644 --- a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp +++ b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp index 52034432ee..bb9b68d4be 100644 --- a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp @@ -13,11 +13,12 @@ #include "../../paint/Supports.h" #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" +#include "../../world/Entity.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +#include "../Vehicle.h" #include "../VehiclePaint.h" #ifndef NO_VEHICLES diff --git a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp index 4efbe19574..b01962c004 100644 --- a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp index df74d5aaa0..363c90fa93 100644 --- a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp @@ -20,7 +20,6 @@ #include "../../paint/Supports.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp index 53cdf1f784..e4a419055d 100644 --- a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp @@ -14,11 +14,22 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_SW_NE_OPEN = 25571; +static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_NW_SE_OPEN = 25572; +static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED = 25573; +static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_NW_SE_CLOSED = 25574; + +static constexpr const uint32_t _StandUpBlockBrakeImages[NumOrthogonalDirections][2] = { + { STAND_UP_BLOCK_BRAKE_SW_NE_OPEN, STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED }, + { STAND_UP_BLOCK_BRAKE_NW_SE_OPEN, STAND_UP_BLOCK_BRAKE_NW_SE_CLOSED }, + { STAND_UP_BLOCK_BRAKE_SW_NE_OPEN, STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED }, + { STAND_UP_BLOCK_BRAKE_NW_SE_OPEN, STAND_UP_BLOCK_BRAKE_NW_SE_CLOSED }, +}; + /** rct2: 0x008A7114 */ static void stand_up_rc_track_flat( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -81,18 +92,19 @@ static void stand_up_rc_track_station( paint_session* session, ride_id_t rideIndex, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - static constexpr const uint32_t imageIds[4][3] = { - { 25567, 25571, SPR_STATION_BASE_A_SW_NE }, - { 25568, 25572, SPR_STATION_BASE_A_NW_SE }, - { 25567, 25571, SPR_STATION_BASE_A_SW_NE }, - { 25568, 25572, SPR_STATION_BASE_A_NW_SE }, + static constexpr const uint32_t imageIds[4][2] = { + { 25567, SPR_STATION_BASE_A_SW_NE }, + { 25568, SPR_STATION_BASE_A_NW_SE }, + { 25567, SPR_STATION_BASE_A_SW_NE }, + { 25568, SPR_STATION_BASE_A_NW_SE }, }; if (tileElement->AsTrack()->GetTrackType() == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsParentRotated( - session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_TRACK], 0, 6, 32, 20, 1, height, 0, 6, - height + 3); + session, direction, _StandUpBlockBrakeImages[direction][isClosed] | session->TrackColours[SCHEME_TRACK], 0, 6, 32, + 20, 1, height, 0, 6, height + 3); } else { @@ -101,7 +113,7 @@ static void stand_up_rc_track_station( height + 3); } PaintAddImageAsParentRotated( - session, direction, imageIds[direction][2] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); + session, direction, imageIds[direction][1] | session->TrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height); track_paint_util_draw_station_metal_supports_2(session, direction, height, session->TrackColours[SCHEME_SUPPORTS], 0); track_paint_util_draw_station_2(session, rideIndex, direction, height, tileElement, 9, 11); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -8414,19 +8426,11 @@ static void stand_up_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 25571, 0, 6, 32, 20, 3, height); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session->TrackColours[SCHEME_TRACK] | 25572, 0, 6, 32, 20, 3, height); - break; - } + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + PaintAddImageAsParentRotated( + session, direction, session->TrackColours[SCHEME_TRACK] | _StandUpBlockBrakeImages[direction][isClosed], 0, 6, 32, 20, + 3, height); + if (track_paint_util_should_paint_supports(session->MapPosition)) { metal_a_supports_paint_setup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS]); diff --git a/src/openrct2/ride/coaster/Steeplechase.cpp b/src/openrct2/ride/coaster/Steeplechase.cpp index bc6612f750..bf05e574f2 100644 --- a/src/openrct2/ride/coaster/Steeplechase.cpp +++ b/src/openrct2/ride/coaster/Steeplechase.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp index 6d359c22bd..e304d1a82b 100644 --- a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp +++ b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/TwisterRollerCoaster.cpp b/src/openrct2/ride/coaster/TwisterRollerCoaster.cpp index 5a47b1cdac..a9453b8903 100644 --- a/src/openrct2/ride/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/TwisterRollerCoaster.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/coaster/VirginiaReel.cpp b/src/openrct2/ride/coaster/VirginiaReel.cpp index e559de03b5..64515f12ba 100644 --- a/src/openrct2/ride/coaster/VirginiaReel.cpp +++ b/src/openrct2/ride/coaster/VirginiaReel.cpp @@ -158,7 +158,7 @@ void vehicle_visual_virginia_reel( const uint8_t rotation = session->CurrentRotation; int32_t ecx = ((vehicle->spin_sprite / 8) + (rotation * 8)) & 31; int32_t baseImage_id = [&] { - switch (vehicle->vehicle_sprite_type) + switch (vehicle->Pitch) { case 1: return (imageDirection & 24) + 8; diff --git a/src/openrct2/ride/coaster/WildMouse.cpp b/src/openrct2/ride/coaster/WildMouse.cpp index 95fea44fd2..406a3b7ca8 100644 --- a/src/openrct2/ride/coaster/WildMouse.cpp +++ b/src/openrct2/ride/coaster/WildMouse.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" @@ -25,8 +24,10 @@ enum SPR_WILD_MOUSE_FLAT_NW_SE = 16901, SPR_WILD_MOUSE_BRAKES_SW_NE = 16902, SPR_WILD_MOUSE_BRAKES_NW_SE = 16903, - SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE = 16904, - SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE = 16905, + SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_OPEN = 16904, + SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_OPEN = 16905, + SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_CLOSED = 16906, + SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_CLOSED = 16907, SPR_WILD_MOUSE_ROTATION_CONTROL_TOGGLE_SW_NE = 16908, SPR_WILD_MOUSE_ROTATION_CONTROL_TOGGLE_NW_SE = 16909, @@ -155,11 +156,11 @@ static constexpr const uint32_t _wild_mouse_brakes_image_ids[4] = { SPR_WILD_MOUSE_BRAKES_NW_SE, }; -static constexpr const uint32_t _wild_mouse_block_brakes_image_ids[4] = { - SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE, - SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE, - SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE, - SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE, +static constexpr const uint32_t _wild_mouse_block_brakes_image_ids[NumOrthogonalDirections][2] = { + { SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_CLOSED }, + { SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_CLOSED }, + { SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_CLOSED }, + { SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_CLOSED }, }; /** rct2: 0x0078B1E4 */ @@ -204,9 +205,10 @@ static void wild_mouse_track_station( height); if (trackType == TrackElemType::EndStation) { + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); PaintAddImageAsChildRotated( - session, direction, _wild_mouse_block_brakes_image_ids[direction] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, - 20, 2, height, 0, 0, height); + session, direction, _wild_mouse_block_brakes_image_ids[direction][isClosed] | session->TrackColours[SCHEME_TRACK], + 0, 0, 32, 20, 2, height, 0, 0, height); } else { @@ -923,7 +925,8 @@ static void wild_mouse_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - uint32_t imageId = _wild_mouse_block_brakes_image_ids[direction] | session->TrackColours[SCHEME_TRACK]; + bool isClosed = tileElement->AsTrack()->BlockBrakeClosed(); + uint32_t imageId = _wild_mouse_block_brakes_image_ids[direction][isClosed] | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsParentRotated(session, direction, imageId, 0, 0, 32, 20, 3, height, 0, 6, height); if (track_paint_util_should_paint_supports(session->MapPosition)) { diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp index 4fcabd3b6c..1e41d69211 100644 --- a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp @@ -7,14 +7,15 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "../../config/Config.h" #include "../../drawing/Drawing.h" #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" +#include "../../paint/tile_element/Paint.Surface.h" #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" @@ -200,8 +201,10 @@ enum SPR_WOODEN_RC_FLAT_NW_SE = 23754, SPR_WOODEN_RC_BRAKES_SW_NE = 23755, SPR_WOODEN_RC_BRAKES_NW_SE = 23756, - SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE = 23757, - SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE = 23758, + SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_OPEN = 23757, + SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_OPEN = 23758, + SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_CLOSED = 23759, + SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_CLOSED = 23760, SPR_WOODEN_RC_STATION_SW_NE = 23973, SPR_WOODEN_RC_STATION_NW_SE = 23974, @@ -383,11 +386,11 @@ enum SPR_WOODEN_RC_STATION_RAILS_NW_SE = 24840, }; -static constexpr const uint32_t _wooden_rc_block_brakes_image_ids[4][2] = { - { SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_SW_NE }, - { SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_NW_SE }, - { SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_SW_NE }, - { SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_NW_SE }, +static constexpr const uint32_t _wooden_rc_block_brakes_image_ids[4][3] = { + { SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_SW_NE }, + { SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_NW_SE }, + { SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_SW_NE }, + { SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_NW_SE }, }; static uint32_t wooden_rc_get_track_colour(paint_session* session) @@ -475,9 +478,11 @@ static void wooden_rc_track_station( int32_t trackType = tileElement->AsTrack()->GetTrackType(); if (trackType == TrackElemType::EndStation) { + const auto brakeImg = tileElement->AsTrack()->BlockBrakeClosed() ? _wooden_rc_block_brakes_image_ids[direction][1] + : _wooden_rc_block_brakes_image_ids[direction][0]; wooden_rc_track_paint( - session, _wooden_rc_block_brakes_image_ids[direction][0], _wooden_rc_block_brakes_image_ids[direction][1], - direction, 0, 2, 32, 27, 2, height, 0, 2, height); + session, brakeImg, _wooden_rc_block_brakes_image_ids[direction][2], direction, 0, 2, 32, 27, 2, height, 0, 2, + height); } else { @@ -6078,6 +6083,9 @@ static void wooden_rc_track_water_splash( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { + const bool transparent = gConfigGeneral.transparent_water || (session->ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); + const uint32_t waterOverlay = transparent ? SPR_WATER_OVERLAY : SPR_RCT1_WATER_OVERLAY; + switch (trackSequence) { case 0: @@ -6089,9 +6097,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24855, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23997, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6109,9 +6117,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24856, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23998, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6129,9 +6137,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24853, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23995, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6149,9 +6157,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24854, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23996, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6178,9 +6186,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24843, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23985, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6198,9 +6206,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24844, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23986, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6218,9 +6226,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24841, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23983, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6238,9 +6246,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24842, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23984, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6267,9 +6275,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24865, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 24003, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6288,9 +6296,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24866, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 24004, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6316,9 +6324,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24841, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23983, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6336,9 +6344,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24842, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23984, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6356,9 +6364,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24843, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23985, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6376,9 +6384,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24844, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23986, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6404,9 +6412,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24853, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23995, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6424,9 +6432,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24854, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23996, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6444,9 +6452,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24855, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23997, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -6464,9 +6472,9 @@ static void wooden_rc_track_water_splash( PaintAddImageAsChildRotated( session, direction, wooden_rc_get_rails_colour(session) | 24856, 0, 0, 32, 25, 2, height, 0, 3, height); PaintAddImageAsChildRotated( - session, direction, 0x61000000 | 5048, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x61000000 | SPR_WATER_MASK, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( - session, direction, 0x00000000 | 5053, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); + session, direction, 0x00000000 | waterOverlay, 0, 0, 32, 25, 2, height + 16, 0, 3, height + 16); PaintAddImageAsChildRotated( session, direction, session->TrackColours[SCHEME_SUPPORTS] | 23998, 0, 0, 32, 25, 2, height, 0, 3, height); @@ -11483,9 +11491,10 @@ static void wooden_rc_track_block_brakes( paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { + const auto brakeImg = tileElement->AsTrack()->BlockBrakeClosed() ? _wooden_rc_block_brakes_image_ids[direction][1] + : _wooden_rc_block_brakes_image_ids[direction][0]; wooden_rc_track_paint( - session, _wooden_rc_block_brakes_image_ids[direction][0], _wooden_rc_block_brakes_image_ids[direction][1], direction, 0, - 2, 32, 25, 2, height, 0, 3, height); + session, brakeImg, _wooden_rc_block_brakes_image_ids[direction][2], direction, 0, 2, 32, 25, 2, height, 0, 3, height); wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_SQUARE_FLAT); paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0); diff --git a/src/openrct2/ride/coaster/WoodenWildMouse.cpp b/src/openrct2/ride/coaster/WoodenWildMouse.cpp index a3780942b3..def3934974 100644 --- a/src/openrct2/ride/coaster/WoodenWildMouse.cpp +++ b/src/openrct2/ride/coaster/WoodenWildMouse.cpp @@ -14,7 +14,6 @@ #include "../../paint/tile_element/Paint.TileElement.h" #include "../../sprites.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/gentle/CarRide.cpp b/src/openrct2/ride/gentle/CarRide.cpp index cc5799d0a7..1113493bf4 100644 --- a/src/openrct2/ride/gentle/CarRide.cpp +++ b/src/openrct2/ride/gentle/CarRide.cpp @@ -152,11 +152,11 @@ static void paint_car_ride_track_flat( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 1, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 1 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 1, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 1 }); } if (direction == 0 || direction == 2) @@ -183,11 +183,11 @@ static void paint_car_ride_track_25_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 2, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 2, height }, { 32, 20, 1 }, { 0, 6, height }); } else { - PaintAddImageAsParent(session, imageId, 2, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 2, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } switch (direction) @@ -221,11 +221,11 @@ static void paint_car_ride_track_flat_to_25_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 2, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 2, height }, { 32, 20, 1 }, { 0, 6, height }); } else { - PaintAddImageAsParent(session, imageId, 2, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 2, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } switch (direction) @@ -259,11 +259,11 @@ static void paint_car_ride_track_25_deg_up_to_flat( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 2, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 2, height }, { 32, 20, 1 }, { 0, 6, height }); } else { - PaintAddImageAsParent(session, imageId, 2, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 2, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } switch (direction) @@ -322,22 +322,22 @@ static void paint_car_ride_station( if (direction == 0 || direction == 2) { imageId = SPR_STATION_BASE_B_SW_NE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height - 2, 0, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height - 2 }, { 32, 28, 1 }, { 0, 2, height }); } else if (direction == 1 || direction == 3) { imageId = SPR_STATION_BASE_B_NW_SE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height - 2, 2, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height - 2 }, { 28, 32, 1 }, { 2, 0, height }); } imageId = car_ride_track_pieces_flat[direction] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - PaintAddImageAsChild(session, imageId, 0, 6, 32, 20, 1, height, 0, 0, height); + PaintAddImageAsChild(session, imageId, { 0, 6, height }, { 32, 20, 1 }, { 0, 0, height }); } else { - PaintAddImageAsChild(session, imageId, 6, 0, 20, 32, 1, height, 0, 0, height); + PaintAddImageAsChild(session, imageId, { 6, 0, height }, { 20, 32, 1 }, { 0, 0, height }); } if (direction == 0 || direction == 2) @@ -423,16 +423,16 @@ static void paint_car_ride_track_left_quarter_turn_1_tile( switch (direction) { case 0: - PaintAddImageAsParent(session, imageId, 6, 0, 26, 24, 1, height, 6, 2, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 26, 24, 1 }, { 6, 2, height }); break; case 1: - PaintAddImageAsParent(session, imageId, 0, 0, 26, 26, 1, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 26, 1 }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 6, 24, 26, 1, height, 2, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 24, 26, 1 }, { 2, 6, height }); break; case 3: - PaintAddImageAsParent(session, imageId, 6, 6, 24, 24, 1, height); + PaintAddImageAsParent(session, imageId, { 6, 6, height }, { 24, 24, 1 }); break; } @@ -461,11 +461,11 @@ static void paint_car_ride_track_spinning_tunnel( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 1, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 1 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 1, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 1 }); } track_paint_util_spinning_tunnel_paint(session, 1, height, direction); @@ -495,16 +495,16 @@ static void paint_car_ride_track_60_deg_up( switch (direction) { case 0: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); break; case 1: - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 98, height, 27, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 98 }, { 27, 0, height }); break; case 2: - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 98, height, 0, 27, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height }); break; case 3: - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); break; } @@ -543,11 +543,11 @@ static void paint_car_ride_track_25_deg_up_to_60_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } if (car_ride_track_pieces_25_deg_up_to_60_deg_up[direction][1] != 0) @@ -556,11 +556,11 @@ static void paint_car_ride_track_25_deg_up_to_60_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 66, height, 0, 27, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 66, height, 27, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 66 }, { 27, 0, height }); } } @@ -599,11 +599,11 @@ static void paint_car_ride_track_60_deg_up_to_25_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); } if (car_ride_track_pieces_60_deg_up_to_25_deg_up[direction][1] != 0) @@ -612,11 +612,11 @@ static void paint_car_ride_track_60_deg_up_to_25_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 66, height, 0, 27, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 66, height, 27, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 66 }, { 27, 0, height }); } } @@ -679,11 +679,11 @@ static void paint_car_ride_track_log_bumps( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 1, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 1 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 1, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 1 }); } if (direction == 0 || direction == 2) diff --git a/src/openrct2/ride/gentle/Circus.cpp b/src/openrct2/ride/gentle/Circus.cpp index 039af3bdab..ecdf7b25c4 100644 --- a/src/openrct2/ride/gentle/Circus.cpp +++ b/src/openrct2/ride/gentle/Circus.cpp @@ -10,7 +10,7 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/gentle/CrookedHouse.cpp b/src/openrct2/ride/gentle/CrookedHouse.cpp index 359cdfe35a..162d6d3ca2 100644 --- a/src/openrct2/ride/gentle/CrookedHouse.cpp +++ b/src/openrct2/ride/gentle/CrookedHouse.cpp @@ -10,7 +10,7 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/gentle/FerrisWheel.cpp b/src/openrct2/ride/gentle/FerrisWheel.cpp index 007f696a60..da58c30b44 100644 --- a/src/openrct2/ride/gentle/FerrisWheel.cpp +++ b/src/openrct2/ride/gentle/FerrisWheel.cpp @@ -10,9 +10,11 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../peep/Peep.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" static constexpr const uint8_t edges_1x4_ne_sw[] = { EDGE_NW | EDGE_SE, @@ -79,7 +81,7 @@ static void paint_ferris_wheel_structure( uint32_t imageOffset = 0; if (vehicle != nullptr) { - imageOffset = vehicle->vehicle_sprite_type % 8; + imageOffset = vehicle->Pitch % 8; } uint32_t imageColourFlags = session->TrackColours[SCHEME_MISC]; @@ -110,7 +112,7 @@ static void paint_ferris_wheel_structure( continue; } - int32_t frameNum = (vehicle->vehicle_sprite_type + i * 4) % 128; + int32_t frameNum = (vehicle->Pitch + i * 4) % 128; imageColourFlags = SPRITE_ID_PALETTE_COLOUR_2(vehicle->peep_tshirt_colours[i], vehicle->peep_tshirt_colours[i + 1]); imageId = (baseImageId + 32 + direction * 128 + frameNum) | imageColourFlags; PaintAddImageAsChild( diff --git a/src/openrct2/ride/gentle/FlyingSaucers.cpp b/src/openrct2/ride/gentle/FlyingSaucers.cpp index e47ecb9c84..44aaa9b951 100644 --- a/src/openrct2/ride/gentle/FlyingSaucers.cpp +++ b/src/openrct2/ride/gentle/FlyingSaucers.cpp @@ -43,7 +43,7 @@ static void paint_flying_saucers( wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr); uint32_t imageId = SPR_FLYING_SAUCERS_FLOOR | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 30, 30, 1, height, 1, 1, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 30, 30, 1 }, { 1, 1, height }); auto ride = get_ride(rideIndex); if (ride != nullptr) diff --git a/src/openrct2/ride/gentle/HauntedHouse.cpp b/src/openrct2/ride/gentle/HauntedHouse.cpp index f4a9d68309..33ffc26c6c 100644 --- a/src/openrct2/ride/gentle/HauntedHouse.cpp +++ b/src/openrct2/ride/gentle/HauntedHouse.cpp @@ -10,9 +10,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" struct haunted_house_bound_box { @@ -53,7 +54,7 @@ static void paint_haunted_house_structure( { session->InteractionType = ViewportInteractionItem::Entity; session->CurrentlyDrawnItem = vehicle; - frameNum = vehicle->vehicle_sprite_type; + frameNum = vehicle->Pitch; } uint32_t imageId = (baseImageId + direction) | session->TrackColours[SCHEME_MISC]; diff --git a/src/openrct2/ride/gentle/Maze.cpp b/src/openrct2/ride/gentle/Maze.cpp index 318d1994a6..c3a8f15fb0 100644 --- a/src/openrct2/ride/gentle/Maze.cpp +++ b/src/openrct2/ride/gentle/Maze.cpp @@ -54,7 +54,7 @@ static void maze_paint_setup( uint32_t rotation = session->CurrentRotation; // draw ground int32_t image_id = SPR_TERRAIN_DIRT | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, image_id, 0, 0, 32, 32, 0, height); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 32, 32, 0 }); wooden_a_supports_paint_setup(session, (rotation & 1) ? 0 : 1, 0, height, session->TrackColours[SCHEME_3], nullptr); @@ -81,92 +81,94 @@ static void maze_paint_setup( image_id = base_image_id + SPR_MAZE_OFFSET_WALL_CENTRE; if (maze_entry & MAZE_ENTRY_FLAG_3) - PaintAddImageAsParent(session, image_id, 2, 2, 10, 10, 9, height, 3, 3, height + 2); + PaintAddImageAsParent(session, image_id, { 2, 2, height }, { 10, 10, 9 }, { 3, 3, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_7) - PaintAddImageAsParent(session, image_id, 2, 18, 10, 10, 9, height, 3, 19, height + 2); + PaintAddImageAsParent(session, image_id, { 2, 18, height }, { 10, 10, 9 }, { 3, 19, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_11) - PaintAddImageAsParent(session, image_id, 18, 18, 10, 10, 9, height, 19, 19, height + 2); + PaintAddImageAsParent(session, image_id, { 18, 18, height }, { 10, 10, 9 }, { 19, 19, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_15) - PaintAddImageAsParent(session, image_id, 18, 2, 10, 10, 9, height, 19, 3, height + 2); + PaintAddImageAsParent(session, image_id, { 18, 2, height }, { 10, 10, 9 }, { 19, 3, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_WALL_TOP_LEFT; if (maze_entry & MAZE_ENTRY_FLAG_0) - PaintAddImageAsParent(session, image_id, 2, 0, 10, 1, 9, height, 3, 1, height + 2); + PaintAddImageAsParent(session, image_id, { 2, 0, height }, { 10, 1, 9 }, { 3, 1, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_13) - PaintAddImageAsParent(session, image_id, 18, 0, 10, 1, 9, height, 19, 1, height + 2); + PaintAddImageAsParent(session, image_id, { 18, 0, height }, { 10, 1, 9 }, { 19, 1, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_WALL_BOTTOM_RIGHT; if (maze_entry & MAZE_ENTRY_FLAG_5) - PaintAddImageAsParent(session, image_id, 2, 30, 10, 1, 9, height, 3, 30, height + 2); + PaintAddImageAsParent(session, image_id, { 2, 30, height }, { 10, 1, 9 }, { 3, 30, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_8) - PaintAddImageAsParent(session, image_id, 18, 30, 10, 1, 9, height, 19, 30, height + 2); + PaintAddImageAsParent(session, image_id, { 18, 30, height }, { 10, 1, 9 }, { 19, 30, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_WALL_TOP_RIGHT; if (maze_entry & MAZE_ENTRY_FLAG_1) - PaintAddImageAsParent(session, image_id, 0, 2, 1, 10, 9, height, 1, 3, height + 2); + PaintAddImageAsParent(session, image_id, { 0, 2, height }, { 1, 10, 9 }, { 1, 3, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_4) - PaintAddImageAsParent(session, image_id, 0, 18, 1, 10, 9, height, 1, 19, height + 2); + PaintAddImageAsParent(session, image_id, { 0, 18, height }, { 1, 10, 9 }, { 1, 19, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_WALL_BOTTOM_LEFT; if (maze_entry & MAZE_ENTRY_FLAG_12) - PaintAddImageAsParent(session, image_id, 30, 2, 1, 10, 9, height, 30, 3, height + 2); + PaintAddImageAsParent(session, image_id, { 30, 2, height }, { 1, 10, 9 }, { 30, 3, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_9) - PaintAddImageAsParent(session, image_id, 30, 18, 1, 10, 9, height, 30, 19, height + 2); + PaintAddImageAsParent(session, image_id, { 30, 18, height }, { 1, 10, 9 }, { 30, 19, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_WALL_INNER_NE_SW; if (maze_entry & MAZE_ENTRY_FLAG_2) - PaintAddImageAsParent(session, image_id, 2, 14, 10, 4, 9, height, 3, 14, height + 2); + PaintAddImageAsParent(session, image_id, { 2, 14, height }, { 10, 4, 9 }, { 3, 14, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_10) - PaintAddImageAsParent(session, image_id, 18, 14, 10, 4, 9, height, 19, 14, height + 2); + PaintAddImageAsParent(session, image_id, { 18, 14, height }, { 10, 4, 9 }, { 19, 14, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_WALL_INNER_NW_SE; if (maze_entry & MAZE_ENTRY_FLAG_14) - PaintAddImageAsParent(session, image_id, 14, 2, 4, 10, 9, height, 14, 3, height + 2); + PaintAddImageAsParent(session, image_id, { 14, 2, height }, { 4, 10, 9 }, { 14, 3, height + 2 }); if (maze_entry & MAZE_ENTRY_FLAG_6) - PaintAddImageAsParent(session, image_id, 14, 18, 4, 10, 9, height, 14, 19, height + 2); + PaintAddImageAsParent(session, image_id, { 14, 18, height }, { 4, 10, 9 }, { 14, 19, height + 2 }); image_id = base_image_id + SPR_MAZE_OFFSET_COLUMN_CORNER; if (maze_entry & (MAZE_ENTRY_FLAG_0 | MAZE_ENTRY_FLAG_1)) - PaintAddImageAsParent(session, image_id, 0, 0, 1, 1, 9, height, 1, 1, height + 2); + PaintAddImageAsParent(session, image_id, { 0, 0, height }, { 1, 1, 9 }, { 1, 1, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_4 | MAZE_ENTRY_FLAG_5)) - PaintAddImageAsParent(session, image_id, 0, 30, 1, 1, 9, height, 1, 30, height + 2); + PaintAddImageAsParent(session, image_id, { 0, 30, height }, { 1, 1, 9 }, { 1, 30, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_8 | MAZE_ENTRY_FLAG_9)) - PaintAddImageAsParent(session, image_id, 30, 30, 1, 1, 9, height, 30, 30, height + 2); + PaintAddImageAsParent(session, image_id, { 30, 30, height }, { 1, 1, 9 }, { 30, 30, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_12 | MAZE_ENTRY_FLAG_13)) - PaintAddImageAsParent(session, image_id, 30, 0, 1, 1, 9, height, 30, 1, height + 2); + PaintAddImageAsParent(session, image_id, { 30, 0, height }, { 1, 1, 9 }, { 30, 1, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_0 | MAZE_ENTRY_FLAG_13 | MAZE_ENTRY_FLAG_14)) PaintAddImageAsParent( - session, base_image_id + SPR_MAZE_OFFSET_COLUMN_TOP_LEFT, 14, 0, 2, 1, 9, height, 15, 1, height + 2); + session, base_image_id + SPR_MAZE_OFFSET_COLUMN_TOP_LEFT, { 14, 0, height }, { 2, 1, 9 }, { 15, 1, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_5 | MAZE_ENTRY_FLAG_6 | MAZE_ENTRY_FLAG_8)) PaintAddImageAsParent( - session, base_image_id + SPR_MAZE_OFFSET_COLUMN_BOTTOM_RIGHT, 14, 30, 2, 1, 9, height, 15, 30, height + 2); + session, base_image_id + SPR_MAZE_OFFSET_COLUMN_BOTTOM_RIGHT, { 14, 30, height }, { 2, 1, 9 }, + { 15, 30, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_1 | MAZE_ENTRY_FLAG_2 | MAZE_ENTRY_FLAG_4)) PaintAddImageAsParent( - session, base_image_id + SPR_MAZE_OFFSET_COLUMN_TOP_RIGHT, 0, 14, 1, 2, 9, height, 1, 15, height + 2); + session, base_image_id + SPR_MAZE_OFFSET_COLUMN_TOP_RIGHT, { 0, 14, height }, { 1, 2, 9 }, { 1, 15, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_9 | MAZE_ENTRY_FLAG_10 | MAZE_ENTRY_FLAG_12)) PaintAddImageAsParent( - session, base_image_id + SPR_MAZE_OFFSET_COLUMN_BOTTOM_LEFT, 30, 14, 1, 2, 9, height, 30, 15, height + 2); + session, base_image_id + SPR_MAZE_OFFSET_COLUMN_BOTTOM_LEFT, { 30, 14, height }, { 1, 2, 9 }, + { 30, 15, height + 2 }); if (maze_entry & (MAZE_ENTRY_FLAG_2 | MAZE_ENTRY_FLAG_6 | MAZE_ENTRY_FLAG_10 | MAZE_ENTRY_FLAG_14)) { PaintAddImageAsParent( - session, base_image_id + SPR_MAZE_OFFSET_COLUMN_CENTRE, 14, 14, 2, 2, 8, height, 15, 15, height + 2); + session, base_image_id + SPR_MAZE_OFFSET_COLUMN_CENTRE, { 14, 14, height }, { 2, 2, 8 }, { 15, 15, height + 2 }); paint_util_set_segment_support_height(session, SEGMENT_C4, height + 12, 0x20); } diff --git a/src/openrct2/ride/gentle/MerryGoRound.cpp b/src/openrct2/ride/gentle/MerryGoRound.cpp index b676a4fdb9..90778ee6d2 100644 --- a/src/openrct2/ride/gentle/MerryGoRound.cpp +++ b/src/openrct2/ride/gentle/MerryGoRound.cpp @@ -10,9 +10,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" /** rct2: 0x0142805C */ static constexpr const uint32_t merry_go_round_rider_offsets[] = { 0, 32, 64, 96, 16, 48, 80, 112 }; @@ -55,7 +56,7 @@ static void paint_merry_go_round_structure( if (vehicle != nullptr) { uint32_t rotation = ((vehicle->sprite_direction >> 3) + session->CurrentRotation) << 5; - rotationOffset = (vehicle->vehicle_sprite_type + rotation) % 128; + rotationOffset = (vehicle->Pitch + rotation) % 128; } uint32_t imageOffset = rotationOffset & 0x1F; @@ -67,10 +68,11 @@ static void paint_merry_go_round_structure( } uint32_t imageId = (baseImageId + imageOffset) | imageColourFlags; - PaintAddImageAsParent(session, imageId, xOffset, yOffset, 24, 24, 48, height, xOffset + 16, yOffset + 16, height); + PaintAddImageAsParent( + session, imageId, { xOffset, yOffset, height }, { 24, 24, 48 }, { xOffset + 16, yOffset + 16, height }); rct_drawpixelinfo* dpi = &session->DPI; - if (dpi->zoom_level == 0 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr) + if (dpi->zoom_level <= 0 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr) { for (int32_t peep = 0; peep <= 14; peep += 2) { diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/ride/gentle/MiniGolf.cpp index 5c94ca7bee..f59eac2b46 100644 --- a/src/openrct2/ride/gentle/MiniGolf.cpp +++ b/src/openrct2/ride/gentle/MiniGolf.cpp @@ -11,8 +11,9 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" +#include "../../peep/Peep.h" +#include "../../world/Entity.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../../world/Surface.h" #include "../RideData.h" #include "../TrackData.h" @@ -491,13 +492,13 @@ static void paint_mini_golf_track_flat( if (direction & 1) { imageId = SPR_MINI_GOLF_FLAT_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height }); paint_util_push_tunnel_right(session, height, TUNNEL_PATH_AND_MINI_GOLF); } else { imageId = SPR_MINI_GOLF_FLAT_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height }); paint_util_push_tunnel_left(session, height, TUNNEL_PATH_AND_MINI_GOLF); } @@ -510,18 +511,18 @@ static void paint_mini_golf_track_flat( if (direction & 1) { imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_NW_SE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 7, height, 10, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 7 }, { 10, 0, height + 2 }); imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_NW_SE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 7, height, 22, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 7 }, { 22, 0, height + 2 }); } else { imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_SW_NE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 7, height, 0, 10, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 7 }, { 0, 10, height + 2 }); imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_SW_NE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 7, height, 0, 22, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 7 }, { 0, 22, height + 2 }); } } @@ -699,7 +700,7 @@ static void paint_mini_golf_station( if (hasFence) { imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_NW_SE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 10, 0, 1, 32, 7, height, 31, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 10, 0, height }, { 1, 32, 7 }, { 31, 0, height + 2 }); } track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); @@ -722,7 +723,7 @@ static void paint_mini_golf_station( if (hasFence) { imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_SW_NE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 10, 32, 1, 7, height, 0, 31, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 10, height }, { 32, 1, 7 }, { 0, 31, height + 2 }); } track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); @@ -805,11 +806,11 @@ static void paint_mini_golf_track_left_quarter_turn_1_tile( { case 0: imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_INSIDE_SW_NW | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 5, 5, 5, height, 24, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 5, 5, 5 }, { 24, 0, height + 2 }); break; case 2: imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_INSIDE_NE_SE | session->TrackColours[SCHEME_MISC]; - PaintAddImageAsParent(session, imageId, 0, 0, 5, 5, 5, height, 0, 24, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 5, 5, 5 }, { 0, 24, height + 2 }); break; } } @@ -935,11 +936,11 @@ static void paint_mini_golf_hole_c( { case 0x01: case 0x20: - PaintAddImageAsParent(session, imageId, 0, 0, 2, 26, 3, height, 30, 3, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 26, 3 }, { 30, 3, height + 4 }); break; case 0x10: case 0x31: - PaintAddImageAsParent(session, imageId, 0, 0, 26, 2, 3, height, 3, 30, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 2, 3 }, { 3, 30, height + 4 }); break; default: PaintAddImageAsParent( @@ -1012,17 +1013,17 @@ static void paint_mini_golf_hole_d( { case 0x01: case 0x32: - PaintAddImageAsParent(session, imageId, 0, 0, 2, 26, 3, height, 30, 3, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 26, 3 }, { 30, 3, height + 4 }); break; case 0x02: - PaintAddImageAsParent(session, imageId, 0, 0, 23, 2, 3, height, 3, 30, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 23, 2, 3 }, { 3, 30, height + 4 }); break; case 0x10: - PaintAddImageAsParent(session, imageId, 0, 0, 2, 24, 3, height, 30, 3, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 24, 3 }, { 30, 3, height + 4 }); break; case 0x20: case 0x31: - PaintAddImageAsParent(session, imageId, 0, 0, 26, 2, 3, height, 3, 30, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 2, 3 }, { 3, 30, height + 4 }); break; default: PaintAddImageAsParent( @@ -1104,18 +1105,18 @@ static void paint_mini_golf_hole_e( switch ((direction << 4) | trackSequence) { case 0x01: - PaintAddImageAsParent(session, imageId, 0, 0, 2, 26, 3, height, 30, 3, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 26, 3 }, { 30, 3, height + 4 }); break; case 0x02: case 0x20: case 0x31: - PaintAddImageAsParent(session, imageId, 0, 0, 26, 2, 3, height, 3, 30, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 2, 3 }, { 3, 30, height + 4 }); break; case 0x10: - PaintAddImageAsParent(session, imageId, 0, 0, 2, 24, 3, height, 30, 3, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 24, 3 }, { 30, 3, height + 4 }); break; case 0x32: - PaintAddImageAsParent(session, imageId, 0, 0, 2, 23, 3, height, 30, 3, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 23, 3 }, { 30, 3, height + 4 }); break; default: PaintAddImageAsParent( @@ -1230,7 +1231,7 @@ void vehicle_visual_mini_golf_player( if (rideEntry == nullptr) return; - auto* peep = GetEntity(vehicle->peep[0]); + auto* peep = GetEntity(vehicle->peep[0]); if (peep == nullptr) return; @@ -1273,5 +1274,5 @@ void vehicle_visual_mini_golf_ball( return; uint32_t image_id = rideEntry->vehicles[0].base_image_id; - PaintAddImageAsParent(session, image_id, 0, 0, 1, 1, 0, z, 0, 0, z + 3); + PaintAddImageAsParent(session, image_id, { 0, 0, z }, { 1, 1, 0 }, { 0, 0, z + 3 }); } diff --git a/src/openrct2/ride/gentle/SpaceRings.cpp b/src/openrct2/ride/gentle/SpaceRings.cpp index 37c143f377..2a27d69183 100644 --- a/src/openrct2/ride/gentle/SpaceRings.cpp +++ b/src/openrct2/ride/gentle/SpaceRings.cpp @@ -11,10 +11,11 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../peep/Peep.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" - +#include "../Vehicle.h" enum { SPR_SPACE_RINGS_FENCE_NE = 22146, @@ -49,7 +50,7 @@ static void paint_space_rings_structure(paint_session* session, Ride* ride, uint { session->InteractionType = ViewportInteractionItem::Entity; session->CurrentlyDrawnItem = vehicle; - frameNum += static_cast(vehicle->vehicle_sprite_type) * 4; + frameNum += static_cast(vehicle->Pitch) * 4; } uint32_t imageColourFlags = session->TrackColours[SCHEME_MISC]; diff --git a/src/openrct2/ride/thrill/3dCinema.cpp b/src/openrct2/ride/thrill/3dCinema.cpp index 0f323a5689..bd85544280 100644 --- a/src/openrct2/ride/thrill/3dCinema.cpp +++ b/src/openrct2/ride/thrill/3dCinema.cpp @@ -10,7 +10,7 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/thrill/Enterprise.cpp b/src/openrct2/ride/thrill/Enterprise.cpp index c72a66aa7a..68b6d7a5fe 100644 --- a/src/openrct2/ride/thrill/Enterprise.cpp +++ b/src/openrct2/ride/thrill/Enterprise.cpp @@ -11,9 +11,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" /** rct2: 0x008A2ABC */ static void paint_enterprise_structure( @@ -42,7 +43,7 @@ static void paint_enterprise_structure( uint32_t imageOffset = tileElement->GetDirectionWithOffset(session->CurrentRotation); if (vehicle != nullptr) { - imageOffset = (vehicle->vehicle_sprite_type << 2) + (((vehicle->sprite_direction >> 3) + session->CurrentRotation) % 4); + imageOffset = (vehicle->Pitch << 2) + (((vehicle->sprite_direction >> 3) + session->CurrentRotation) % 4); } uint32_t imageColourFlags = session->TrackColours[SCHEME_MISC]; @@ -56,7 +57,7 @@ static void paint_enterprise_structure( rct_drawpixelinfo* dpi = &session->DPI; - if (dpi->zoom_level == 0 && imageOffset < 12 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr) + if (dpi->zoom_level <= 0 && imageOffset < 12 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr) { for (int32_t i = 0; i < 15; i++) { diff --git a/src/openrct2/ride/thrill/GoKarts.cpp b/src/openrct2/ride/thrill/GoKarts.cpp index 86e566ecd6..6fbbc33c99 100644 --- a/src/openrct2/ride/thrill/GoKarts.cpp +++ b/src/openrct2/ride/thrill/GoKarts.cpp @@ -132,20 +132,20 @@ static void paint_go_karts_track_flat( if (direction == 0 || direction == 2) { imageId = SPR_GO_KARTS_FLAT_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height, 0, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 28, 1 }, { 0, 2, height }); imageId = SPR_GO_KARTS_FLAT_FRONT_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 3, height, 0, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 3 }, { 0, 29, height + 2 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); } else { imageId = SPR_GO_KARTS_FLAT_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height, 2, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 32, 1 }, { 2, 0, height }); imageId = SPR_GO_KARTS_FLAT_FRONT_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 3, height, 29, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 3 }, { 29, 0, height + 2 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); } @@ -167,21 +167,21 @@ static void paint_go_karts_track_25_deg_up( imageId = go_karts_track_pieces_25_deg_up[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - ps = PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height, 0, 2, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 28, 1 }, { 0, 2, height }); } else { - ps = PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height, 2, 0, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 32, 1 }, { 2, 0, height }); } imageId = go_karts_track_pieces_25_deg_up[direction][1] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 11, height, 0, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 11 }, { 0, 29, height + 2 }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 11, height, 29, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 11 }, { 29, 0, height + 2 }); } session->WoodenSupportsPrependTo = ps; @@ -221,21 +221,21 @@ static void paint_go_karts_track_flat_to_25_deg_up( imageId = go_karts_track_pieces_flat_to_25_deg_up[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - ps = PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height, 0, 2, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 28, 1 }, { 0, 2, height }); } else { - ps = PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height, 2, 0, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 32, 1 }, { 2, 0, height }); } imageId = go_karts_track_pieces_flat_to_25_deg_up[direction][1] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 11, height, 0, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 11 }, { 0, 29, height + 2 }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 11, height, 29, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 11 }, { 29, 0, height + 2 }); } session->WoodenSupportsPrependTo = ps; @@ -275,21 +275,21 @@ static void paint_go_karts_track_25_deg_up_to_flat( imageId = go_karts_track_pieces_25_deg_up_to_flat[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - ps = PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height, 0, 2, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 28, 1 }, { 0, 2, height }); } else { - ps = PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height, 2, 0, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 32, 1 }, { 2, 0, height }); } imageId = go_karts_track_pieces_25_deg_up_to_flat[direction][1] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 11, height, 0, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 11 }, { 0, 29, height + 2 }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 11, height, 29, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 11 }, { 29, 0, height + 2 }); } session->WoodenSupportsPrependTo = ps; @@ -365,11 +365,11 @@ static void paint_go_karts_station( imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height, 0, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 28, 1 }, { 0, 2, height }); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height, 2, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 32, 1 }, { 2, 0, height }); } if (direction == 0 || direction == 2) @@ -386,13 +386,13 @@ static void paint_go_karts_station( imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 3, height, 0, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 3 }, { 0, 29, height + 2 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); } else { - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 3, height, 29, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 3 }, { 29, 0, height + 2 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); } @@ -417,34 +417,34 @@ static void paint_go_karts_station( case 0: imageId = (hasGreenLight ? SPR_GO_KARTS_START_POLE_GREEN_SW_NE : SPR_GO_KARTS_START_POLE_RED_SW_NE) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 1, 1, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 1, 1, height + 4 }); imageId = (hasGreenLight ? SPR_GO_KARTS_START_LIGHTS_GREEN_SW_NE : SPR_GO_KARTS_START_LIGHTS_RED_SW_NE) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 1, 28, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 1, 28, height + 4 }); break; case 1: imageId = SPR_GO_KARTS_START_POLE_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 1, 28, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 1, 28, height + 4 }); imageId = SPR_GO_KARTS_START_LIGHTS_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 28, 28, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 28, 28, height + 4 }); break; case 2: imageId = SPR_GO_KARTS_START_POLE_NE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 28, 1, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 28, 1, height + 4 }); imageId = SPR_GO_KARTS_START_LIGHTS_NE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 28, 28, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 28, 28, height + 4 }); break; case 3: imageId = (hasGreenLight ? SPR_GO_KARTS_START_POLE_GREEN_SE_NW : SPR_GO_KARTS_START_POLE_RED_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 1, 1, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 1, 1, height + 4 }); imageId = (hasGreenLight ? SPR_GO_KARTS_START_LIGHTS_GREEN_SE_NW : SPR_GO_KARTS_START_LIGHTS_RED_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 13, height, 28, 1, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 3, 3, 13 }, { 28, 1, height + 4 }); break; } } @@ -466,40 +466,40 @@ static void paint_go_karts_track_left_quarter_turn_1_tile( { case 0: imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 28, 1, height, 0, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 28, 1 }, { 0, 2, height }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 3, height, 29, 2, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 1, 3 }, { 29, 2, height + 2 }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 16, 1, 3, height, 14, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 16, 1, 3 }, { 14, 29, height + 2 }); break; case 1: imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 30, 30, 1, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 30, 30, 1 }, { 0, 0, height }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 16, 1, 3, height, 2, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 16, 1, 3 }, { 2, 29, height + 2 }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 16, 3, height, 29, 2, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 16, 3 }, { 29, 2, height + 2 }); break; case 2: imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 32, 1, height, 2, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 32, 1 }, { 2, 0, height }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 3, height, 2, 2, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 1, 3 }, { 2, 2, height + 2 }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 16, 3, height, 29, 14, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 16, 3 }, { 29, 14, height + 2 }); break; case 3: imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_SW_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 1, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, 1 }, { 0, 0, height }); imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SW_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 3, height, 29, 29, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 1, 3 }, { 29, 29, height + 2 }); // The empty sprite isn't drawn break; diff --git a/src/openrct2/ride/thrill/LaunchedFreefall.cpp b/src/openrct2/ride/thrill/LaunchedFreefall.cpp index 70c190c0d3..0b0ca3deac 100644 --- a/src/openrct2/ride/thrill/LaunchedFreefall.cpp +++ b/src/openrct2/ride/thrill/LaunchedFreefall.cpp @@ -12,9 +12,9 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" #include "../VehiclePaint.h" enum diff --git a/src/openrct2/ride/thrill/MagicCarpet.cpp b/src/openrct2/ride/thrill/MagicCarpet.cpp index 1603c29a3c..4300046f08 100644 --- a/src/openrct2/ride/thrill/MagicCarpet.cpp +++ b/src/openrct2/ride/thrill/MagicCarpet.cpp @@ -10,9 +10,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" enum { @@ -185,7 +186,7 @@ static void paint_magic_carpet_structure( uint32_t swingImageId = 0; if (vehicle != nullptr) { - swingImageId = vehicle->vehicle_sprite_type; + swingImageId = vehicle->Pitch; session->InteractionType = ViewportInteractionItem::Entity; session->CurrentlyDrawnItem = vehicle; } diff --git a/src/openrct2/ride/thrill/MotionSimulator.cpp b/src/openrct2/ride/thrill/MotionSimulator.cpp index 2d774b601e..ac687f3e22 100644 --- a/src/openrct2/ride/thrill/MotionSimulator.cpp +++ b/src/openrct2/ride/thrill/MotionSimulator.cpp @@ -10,9 +10,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" enum { @@ -64,7 +65,7 @@ static void paint_motionsimulator_vehicle( } else { - simulatorImageId += vehicle->vehicle_sprite_type * 4; + simulatorImageId += vehicle->Pitch * 4; } } diff --git a/src/openrct2/ride/thrill/SwingingInverterShip.cpp b/src/openrct2/ride/thrill/SwingingInverterShip.cpp index e1cf210216..b684c0b212 100644 --- a/src/openrct2/ride/thrill/SwingingInverterShip.cpp +++ b/src/openrct2/ride/thrill/SwingingInverterShip.cpp @@ -10,9 +10,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" /** rct2: 0x01428010 */ static constexpr const uint32_t swinging_inverter_ship_base_sprite_offset[] = { 0, 16, 0, 16 }; @@ -68,7 +69,7 @@ static void paint_swinging_inverter_ship_structure( uint32_t vehicleImageId = rideEntry->vehicles[0].base_image_id + swinging_inverter_ship_base_sprite_offset[direction]; if (vehicle != nullptr) { - int32_t rotation = static_cast(vehicle->vehicle_sprite_type); + int32_t rotation = static_cast(vehicle->Pitch); if (rotation != 0) { vehicleImageId = rideEntry->vehicles[0].base_image_id diff --git a/src/openrct2/ride/thrill/SwingingShip.cpp b/src/openrct2/ride/thrill/SwingingShip.cpp index 94f910dba5..675f4e446c 100644 --- a/src/openrct2/ride/thrill/SwingingShip.cpp +++ b/src/openrct2/ride/thrill/SwingingShip.cpp @@ -10,9 +10,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" // 1 2 0 3 4 static constexpr const uint8_t track_map_1x5[][5] = { @@ -63,6 +64,11 @@ static void paint_swinging_ship_structure( const TileElement* savedTileElement = static_cast(session->CurrentlyDrawnItem); rct_ride_entry* rideEntry = get_ride_entry(ride->subtype); + if (rideEntry == nullptr) + { + return; + } + Vehicle* vehicle = nullptr; int8_t xOffset = !(direction & 1) ? axisOffset : 0; @@ -81,7 +87,7 @@ static void paint_swinging_ship_structure( baseImageId = rideEntry->vehicles[0].base_image_id + swinging_ship_base_sprite_offset[direction]; if (vehicle != nullptr) { - int32_t rotation = static_cast(vehicle->vehicle_sprite_type); + int32_t rotation = static_cast(vehicle->Pitch); if (rotation != 0) { if (direction & 2) diff --git a/src/openrct2/ride/thrill/TopSpin.cpp b/src/openrct2/ride/thrill/TopSpin.cpp index dd43b86b0f..3487207786 100644 --- a/src/openrct2/ride/thrill/TopSpin.cpp +++ b/src/openrct2/ride/thrill/TopSpin.cpp @@ -12,11 +12,12 @@ #include "../../paint/Paint.h" #include "../../paint/Supports.h" #include "../../sprites.h" +#include "../../world/Entity.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../RideData.h" #include "../TrackData.h" #include "../TrackPaint.h" +#include "../Vehicle.h" #include @@ -66,7 +67,7 @@ static void top_spin_paint_vehicle( session->InteractionType = ViewportInteractionItem::Entity; session->CurrentlyDrawnItem = vehicle; - armRotation = vehicle->vehicle_sprite_type; + armRotation = vehicle->Pitch; seatRotation = vehicle->bank_rotation; } @@ -90,7 +91,7 @@ static void top_spin_paint_vehicle( // Left back bottom support image_id += 572; PaintAddImageAsParent( - session, image_id, al, cl, lengthX, lengthY, 90, height, boundBoxOffsetX, boundBoxOffsetY, boundBoxOffsetZ); + session, image_id, { al, cl, height }, { lengthX, lengthY, 90 }, { boundBoxOffsetX, boundBoxOffsetY, boundBoxOffsetZ }); image_id = session->TrackColours[SCHEME_MISC]; if (image_id == IMAGE_TYPE_REMAP) diff --git a/src/openrct2/ride/thrill/Twist.cpp b/src/openrct2/ride/thrill/Twist.cpp index c41bc3c3d4..1c0d26192c 100644 --- a/src/openrct2/ride/thrill/Twist.cpp +++ b/src/openrct2/ride/thrill/Twist.cpp @@ -11,9 +11,10 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" /** rct2: 0x0076E5C9 */ static void paint_twist_structure( @@ -44,7 +45,7 @@ static void paint_twist_structure( if (vehicle != nullptr) { frameNum += (vehicle->sprite_direction >> 3) << 4; - frameNum += vehicle->vehicle_sprite_type; + frameNum += vehicle->Pitch; frameNum = frameNum % 216; } diff --git a/src/openrct2/ride/transport/Chairlift.cpp b/src/openrct2/ride/transport/Chairlift.cpp index ebcecc843a..ce5e9f9083 100644 --- a/src/openrct2/ride/transport/Chairlift.cpp +++ b/src/openrct2/ride/transport/Chairlift.cpp @@ -193,11 +193,11 @@ static void chairlift_paint_station_ne_sw( if (!isStart && !isEnd) { imageId = ((direction == 0) ? SPR_20502 : SPR_20504) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); } imageId = SPR_FLOOR_METAL | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 1, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, 1 }, { 0, 0, height }); bool hasFence = track_paint_util_has_fence(EDGE_NW, pos, tileElement, ride, session->CurrentRotation); if (hasFence) @@ -217,7 +217,7 @@ static void chairlift_paint_station_ne_sw( if (hasFence) { imageId = SPR_FENCE_METAL_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 27, height, 0, 30, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 27 }, { 0, 30, height + 2 }); } track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); @@ -226,10 +226,10 @@ static void chairlift_paint_station_ne_sw( if ((direction == 0 && isStart) || (direction == 2 && isEnd)) { imageId = SPR_FENCE_METAL_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 28, 27, height, 30, 2, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 28, 27 }, { 30, 2, height + 4 }); imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 26 }, { 14, 14, height + 4 }); imageId = SPR_CHAIRLIFT_STATION_END_CAP_NE | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); @@ -239,7 +239,7 @@ static void chairlift_paint_station_ne_sw( else if ((direction == 2 && isStart) || (direction == 0 && isEnd)) { imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 26 }, { 14, 14, height + 4 }); imageId = SPR_CHAIRLIFT_STATION_END_CAP_SW | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); @@ -250,13 +250,14 @@ static void chairlift_paint_station_ne_sw( if (drawBackColumn) { imageId = SPR_CHAIRLIFT_STATION_COLUMN_NE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 16, 1, 1, 7, height + 2, 1, 16, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 16, height + 2 }, { 1, 1, 7 }, { 1, 16, height + 2 }); } if (drawFrontColumn) { imageId = SPR_CHAIRLIFT_STATION_COLUMN_NE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 30, 16, 1, 1, 7, height + 2, 1, 16, height + 2); // bound offset x is wrong? + PaintAddImageAsParent( + session, imageId, { 30, 16, height + 2 }, { 1, 1, 7 }, { 1, 16, height + 2 }); // bound offset x is wrong? } paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -286,11 +287,11 @@ static void chairlift_paint_station_se_nw( if (!isStart && !isEnd) { imageId = ((direction == 1) ? SPR_20503 : SPR_20505) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); } imageId = SPR_FLOOR_METAL | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 1, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, 1 }, { 0, 0, height }); bool hasFence = track_paint_util_has_fence(EDGE_NE, pos, tileElement, ride, session->CurrentRotation); if (hasFence) @@ -310,7 +311,7 @@ static void chairlift_paint_station_se_nw( if (hasFence) { imageId = SPR_FENCE_METAL_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 27, height, 30, 0, height + 2); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 27 }, { 30, 0, height + 2 }); } track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); @@ -319,7 +320,7 @@ static void chairlift_paint_station_se_nw( if ((direction == 1 && isStart) || (direction == 3 && isEnd)) { imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 26 }, { 14, 14, height + 4 }); imageId = SPR_CHAIRLIFT_STATION_END_CAP_SE | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); @@ -329,10 +330,10 @@ static void chairlift_paint_station_se_nw( else if ((direction == 3 && isStart) || (direction == 1 && isEnd)) { imageId = SPR_FENCE_METAL_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 1, 27, height, 2, 30, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 1, 27 }, { 2, 30, height + 4 }); imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 26 }, { 14, 14, height + 4 }); imageId = SPR_CHAIRLIFT_STATION_END_CAP_NW | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4); @@ -343,13 +344,14 @@ static void chairlift_paint_station_se_nw( if (drawLeftColumn) { imageId = SPR_CHAIRLIFT_STATION_COLUMN_SE_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 16, 0, 1, 1, 7, height + 2, 16, 1, height + 2); + PaintAddImageAsParent(session, imageId, { 16, 0, height + 2 }, { 1, 1, 7 }, { 16, 1, height + 2 }); } if (drawRightColumn) { imageId = SPR_CHAIRLIFT_STATION_COLUMN_SE_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 16, 30, 1, 1, 7, height + 2, 16, 1, height + 2); // bound offset x is wrong? + PaintAddImageAsParent( + session, imageId, { 16, 30, height + 2 }, { 1, 1, 7 }, { 16, 1, height + 2 }); // bound offset x is wrong? paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); } @@ -381,13 +383,13 @@ static void chairlift_paint_flat( if (direction & 1) { imageId = SPR_CHAIRLIFT_CABLE_FLAT_SE_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); } else { imageId = SPR_CHAIRLIFT_CABLE_FLAT_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); } @@ -406,25 +408,25 @@ static void chairlift_paint_25_deg_up( { case 0: imageId = SPR_CHAIRLIFT_CABLE_UP_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); paint_util_push_tunnel_left(session, height - 8, TUNNEL_SQUARE_7); break; case 1: imageId = SPR_CHAIRLIFT_CABLE_UP_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); paint_util_push_tunnel_right(session, height + 8, TUNNEL_SQUARE_8); break; case 2: imageId = SPR_CHAIRLIFT_CABLE_UP_NE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); paint_util_push_tunnel_left(session, height + 8, TUNNEL_SQUARE_8); break; case 3: imageId = SPR_CHAIRLIFT_CABLE_UP_SE_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); paint_util_push_tunnel_right(session, height - 8, TUNNEL_SQUARE_7); break; } @@ -444,40 +446,40 @@ static void chairlift_paint_flat_to_25_deg_up( { case 0: imageId = SPR_20508 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); imageId = SPR_20520 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); break; case 1: imageId = SPR_20509 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); imageId = SPR_20521 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_8); break; case 2: imageId = SPR_20510 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); imageId = SPR_20522 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_8); break; case 3: imageId = SPR_20511 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); imageId = SPR_20523 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); break; @@ -499,40 +501,40 @@ static void chairlift_paint_25_deg_up_to_flat( { case 0: imageId = SPR_20512 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); imageId = SPR_20524 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_left(session, height - 8, TUNNEL_SQUARE_FLAT); break; case 1: imageId = SPR_20513 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); imageId = SPR_20525 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_right(session, height + 8, TUNNEL_14); break; case 2: imageId = SPR_20514 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 2 }, { 0, 13, height + 28 }); imageId = SPR_20526 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_left(session, height + 8, TUNNEL_14); break; case 3: imageId = SPR_20515 | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 2 }, { 13, 0, height + 28 }); imageId = SPR_20527 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 4, 4, 25 }, { 14, 14, height + 1 }); paint_util_push_tunnel_right(session, height - 8, TUNNEL_SQUARE_FLAT); break; @@ -578,50 +580,50 @@ static void chairlift_paint_left_quarter_turn_1_tile( { case 0: imageId = SPR_CHAIRLIFT_CORNER_NW_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, 2, height, 16, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 16, 16, 2 }, { 16, 0, height + 28 }); imageId = SPR_20532 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 16, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 16, 4, height }); imageId = SPR_20536 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 28, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 28, 4, height }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); break; case 1: imageId = SPR_CHAIRLIFT_CORNER_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, 2, height, 0, 0, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 16, 16, 2 }, { 0, 0, height + 28 }); imageId = SPR_20533 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 16, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 16, 4, height }); imageId = SPR_20537 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 4, 16, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 4, 16, height }); break; case 2: imageId = SPR_CHAIRLIFT_CORNER_SE_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, 2, height, 0, 16, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 16, 16, 2 }, { 0, 16, height + 28 }); imageId = SPR_20534 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 4, 16, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 4, 16, height }); imageId = SPR_20538 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 16, 28, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 16, 28, height }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); break; case 3: imageId = SPR_CHAIRLIFT_CORNER_SW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 16, 16, 2, height, 16, 16, height + 28); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 16, 16, 2 }, { 16, 16, height + 28 }); imageId = SPR_20535 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 28, 16, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 28, 16, height }); imageId = SPR_20539 | session->TrackColours[SCHEME_SUPPORTS]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 2, 27, height, 16, 28, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 2, 27 }, { 16, 28, height }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); diff --git a/src/openrct2/ride/transport/Monorail.cpp b/src/openrct2/ride/transport/Monorail.cpp index d564f70c28..eccd89fa0f 100644 --- a/src/openrct2/ride/transport/Monorail.cpp +++ b/src/openrct2/ride/transport/Monorail.cpp @@ -426,11 +426,11 @@ static void paint_monorail_track_flat( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 }); } if (direction == 0 || direction == 2) @@ -515,11 +515,11 @@ static void paint_monorail_track_25_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 }); } switch (direction) @@ -557,11 +557,11 @@ static void paint_monorail_track_flat_to_25_deg_up( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 }); } switch (direction) @@ -599,11 +599,11 @@ static void paint_monorail_track_25_deg_up_to_flat( if (direction == 0 || direction == 2) { - PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height); + PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 }); } else { - PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height); + PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 }); } switch (direction) diff --git a/src/openrct2/ride/water/BoatHire.cpp b/src/openrct2/ride/water/BoatHire.cpp index 9fdf1345d7..c8c9e3e141 100644 --- a/src/openrct2/ride/water/BoatHire.cpp +++ b/src/openrct2/ride/water/BoatHire.cpp @@ -36,21 +36,22 @@ static void paint_boat_hire_track_flat( { uint32_t imageId; + const auto offset = CoordsXYZ{ 0, 0, height }; if (direction & 1) { imageId = SPR_BOAT_HIRE_FLAT_BACK_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 3, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, offset, { 1, 32, 3 }, { 4, 0, height }); imageId = SPR_BOAT_HIRE_FLAT_FRONT_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 3, height, 28, 0, height); + PaintAddImageAsParent(session, imageId, offset, { 1, 32, 3 }, { 28, 0, height }); } else { imageId = SPR_BOAT_HIRE_FLAT_BACK_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 3, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, offset, { 32, 1, 3 }, { 0, 4, height }); imageId = SPR_BOAT_HIRE_FLAT_FRONT_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 3, height, 0, 28, height); + PaintAddImageAsParent(session, imageId, offset, { 32, 1, 3 }, { 0, 28, height }); } paint_util_set_segment_support_height( @@ -92,35 +93,36 @@ static void paint_boat_hire_track_left_quarter_turn_1_tile( const TileElement* tileElement) { uint32_t imageId; + const auto offset = CoordsXYZ{ 0, 0, height }; switch (direction) { case 0: imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_BACK_SW_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 0, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, offset, { 32, 32, 0 }, { 0, 0, height }); imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_FRONT_SW_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2); + PaintAddImageAsParent(session, imageId, offset, { 3, 3, 3 }, { 28, 28, height + 2 }); break; case 1: imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_BACK_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 0, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, offset, { 32, 32, 0 }, { 0, 0, height }); imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_FRONT_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2); + PaintAddImageAsParent(session, imageId, offset, { 3, 3, 3 }, { 28, 28, height + 2 }); break; case 2: imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_BACK_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 0, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, offset, { 32, 32, 0 }, { 0, 0, height }); imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_FRONT_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2); + PaintAddImageAsParent(session, imageId, offset, { 3, 3, 3 }, { 28, 28, height + 2 }); break; case 3: imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_FRONT_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2); + PaintAddImageAsParent(session, imageId, offset, { 3, 3, 3 }, { 28, 28, height + 2 }); imageId = SPR_BOAT_HIRE_FLAT_QUARTER_TURN_1_TILE_BACK_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 32, 0, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, offset, { 32, 32, 0 }, { 0, 0, height }); break; } diff --git a/src/openrct2/ride/water/DingySlide.cpp b/src/openrct2/ride/water/DingySlide.cpp index e14dffa480..6695bdb73e 100644 --- a/src/openrct2/ride/water/DingySlide.cpp +++ b/src/openrct2/ride/water/DingySlide.cpp @@ -10,7 +10,6 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" #include "../Track.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/water/LogFlume.cpp b/src/openrct2/ride/water/LogFlume.cpp index 9c381a1741..12cdfffb84 100644 --- a/src/openrct2/ride/water/LogFlume.cpp +++ b/src/openrct2/ride/water/LogFlume.cpp @@ -10,7 +10,6 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" #include "../Track.h" #include "../TrackPaint.h" diff --git a/src/openrct2/ride/water/RiverRapids.cpp b/src/openrct2/ride/water/RiverRapids.cpp index 54d436cbba..b2b215d6f3 100644 --- a/src/openrct2/ride/water/RiverRapids.cpp +++ b/src/openrct2/ride/water/RiverRapids.cpp @@ -14,9 +14,9 @@ #include "../../paint/Supports.h" #include "../../scenario/Scenario.h" #include "../../world/Map.h" -#include "../../world/Sprite.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" #include "../VehiclePaint.h" #ifndef NO_VEHICLES @@ -186,15 +186,15 @@ void vehicle_visual_river_rapids( uint32_t rotation = session->CurrentRotation; int32_t ecx = ((vehicle->spin_sprite / 8) + (rotation * 8)) & 31; int32_t j = 0; - if (vehicle->vehicle_sprite_type == 0) + if (vehicle->Pitch == 0) { baseImage_id = ecx & 7; } else { - if (vehicle->vehicle_sprite_type == 1 || vehicle->vehicle_sprite_type == 5) + if (vehicle->Pitch == 1 || vehicle->Pitch == 5) { - if (vehicle->vehicle_sprite_type == 5) + if (vehicle->Pitch == 5) { baseImage_id = imageDirection ^ 16; } @@ -203,9 +203,9 @@ void vehicle_visual_river_rapids( baseImage_id += (ecx & 7); baseImage_id += 8; } - else if (vehicle->vehicle_sprite_type == 2 || vehicle->vehicle_sprite_type == 6) + else if (vehicle->Pitch == 2 || vehicle->Pitch == 6) { - if (vehicle->vehicle_sprite_type == 6) + if (vehicle->Pitch == 6) { baseImage_id = imageDirection ^ 16; } @@ -285,21 +285,21 @@ static void paint_river_rapids_track_flat( { imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_NW_SE : SPR_RIVER_RAPIDS_FLAT_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 11, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_FRONT_NW_SE : SPR_RIVER_RAPIDS_FLAT_FRONT_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 3, height, 27, 0, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 3 }, { 27, 0, height + 17 }); } else { imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_SW_NE : SPR_RIVER_RAPIDS_FLAT_NE_SW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 11, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_FRONT_SW_NE : SPR_RIVER_RAPIDS_FLAT_FRONT_NE_SW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 3, height, 0, 27, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 3 }, { 0, 27, height + 17 }); } wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); @@ -339,10 +339,10 @@ static void paint_river_rapids_track_25_deg( { case 0: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 4, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 4 }, { 0, 4, height }); imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 34, height, 0, 27, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height + 16 }); wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_left(session, height - 8, TUNNEL_SQUARE_7); @@ -350,11 +350,11 @@ static void paint_river_rapids_track_25_deg( case 1: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - ps = PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 4, height, 4, 0, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 4 }, { 4, 0, height }); session->WoodenSupportsPrependTo = ps; imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 34, height, 27, 0, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 34 }, { 27, 0, height + 16 }); wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_right(session, height + 8, TUNNEL_SQUARE_8); @@ -362,11 +362,11 @@ static void paint_river_rapids_track_25_deg( case 2: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - ps = PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 4, height, 0, 4, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 4 }, { 0, 4, height }); session->WoodenSupportsPrependTo = ps; imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 34, height, 0, 27, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height + 16 }); wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_left(session, height + 8, TUNNEL_SQUARE_8); @@ -374,10 +374,10 @@ static void paint_river_rapids_track_25_deg( case 3: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 4, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 4 }, { 4, 0, height }); imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 34, height, 27, 0, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 34 }, { 27, 0, height + 16 }); wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_right(session, height - 8, TUNNEL_SQUARE_7); @@ -398,10 +398,10 @@ static void paint_river_rapids_track_25_deg_to_flat_a( { case 0: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 4, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 4 }, { 0, 4, height }); imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 18, height, 0, 27, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 18 }, { 0, 27, height + 16 }); wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_left(session, height - 8, TUNNEL_SQUARE_FLAT); @@ -409,11 +409,11 @@ static void paint_river_rapids_track_25_deg_to_flat_a( case 1: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - ps = PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 4, height, 4, 0, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 4 }, { 4, 0, height }); session->WoodenSupportsPrependTo = ps; imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 18, height, 27, 0, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 18 }, { 27, 0, height + 16 }); wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_right(session, height + 8, TUNNEL_14); @@ -421,11 +421,11 @@ static void paint_river_rapids_track_25_deg_to_flat_a( case 2: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - ps = PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 4, height, 0, 4, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 4 }, { 0, 4, height }); session->WoodenSupportsPrependTo = ps; imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 18, height, 0, 27, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 18 }, { 0, 27, height + 16 }); wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_left(session, height + 8, TUNNEL_14); @@ -433,10 +433,10 @@ static void paint_river_rapids_track_25_deg_to_flat_a( case 3: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 4, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 4 }, { 4, 0, height }); imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 18, height, 27, 0, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 18 }, { 27, 0, height + 16 }); wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_right(session, height - 8, TUNNEL_SQUARE_FLAT); @@ -457,10 +457,10 @@ static void paint_river_rapids_track_25_deg_to_flat_b( { case 0: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 11, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 26, height, 0, 27, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height + 16 }); wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); @@ -468,11 +468,11 @@ static void paint_river_rapids_track_25_deg_to_flat_b( case 1: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - ps = PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 11, height, 4, 0, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); session->WoodenSupportsPrependTo = ps; imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 26, height, 27, 0, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height + 16 }); wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_8); @@ -480,11 +480,11 @@ static void paint_river_rapids_track_25_deg_to_flat_b( case 2: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - ps = PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 11, height, 0, 4, height); + ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); session->WoodenSupportsPrependTo = ps; imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 26, height, 0, 27, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height + 16 }); wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_8); @@ -492,10 +492,10 @@ static void paint_river_rapids_track_25_deg_to_flat_b( case 3: imageId = sprites[direction][0] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 11, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = sprites[direction][1] | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 26, height, 27, 0, height + 16); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height + 16 }); wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); @@ -566,41 +566,41 @@ static void paint_river_rapids_track_left_quarter_turn_1_tile( { case 0: imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_SW_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 26, 11, height, 4, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 26, 11 }, { 4, 2, height }); imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SW_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 1, 7, height, 28, 27, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 1, 7 }, { 28, 27, height + 13 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); break; case 1: imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 28, 11, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 28, 11 }, { 0, 0, height }); imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_LEFT_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 30, 7, height, 27, 1, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 30, 7 }, { 27, 1, height + 13 }); imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_RIGHT_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 30, 1, 7, height, 1, 27, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 30, 1, 7 }, { 1, 27, height + 13 }); break; case 2: imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 26, 28, 11, height, 2, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 28, 11 }, { 2, 4, height }); imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_NE_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 2, 7, height, 27, 28, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 2, 7 }, { 27, 28, height + 13 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); break; case 3: imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 28, 11, height, 4, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 28, 11 }, { 4, 4, height }); imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SE_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 7, height, 28, 28, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 1, 7 }, { 28, 28, height + 13 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); @@ -623,10 +623,10 @@ static void paint_river_rapids_track_right_quarter_turn_1_tile( { case 0: imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_SW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 28, 11, height, 4, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 28, 11 }, { 4, 4, height }); imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 1, 7, height, 28, 28, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 1, 7 }, { 28, 28, height + 13 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); @@ -634,31 +634,31 @@ static void paint_river_rapids_track_right_quarter_turn_1_tile( case 1: imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_SE_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 26, 11, height, 4, 2, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 26, 11 }, { 4, 2, height }); imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SE_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 2, 1, 7, height, 28, 27, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 2, 1, 7 }, { 28, 27, height + 13 }); paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT); break; case 2: imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_NE_NW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 28, 28, 11, height, 0, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 28, 11 }, { 0, 0, height }); imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_LEFT_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 30, 7, height, 27, 1, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 30, 7 }, { 27, 1, height + 13 }); imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_RIGHT_NW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 30, 1, 7, height, 1, 27, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 30, 1, 7 }, { 1, 27, height + 13 }); break; case 3: imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_NW_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 26, 28, 11, height, 2, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 26, 28, 11 }, { 2, 4, height }); imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_NW_SW | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 28, 7, height, 27, 2, height + 13); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 28, 7 }, { 27, 2, height + 13 }); paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT); break; @@ -682,17 +682,17 @@ static void paint_river_rapids_track_waterfall( { imageId = (direction == 1 ? SPR_RIVER_RAPIDS_WATERFALL_NW_SE : SPR_RIVER_RAPIDS_WATERFALL_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 11, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = (SPR_RIVER_RAPIDS_WATERFALL_BASE_NE_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = (SPR_RIVER_RAPIDS_WATERFALL_TOP_NE_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 27, height, 4, 0, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 27 }, { 4, 0, height + 17 }); imageId = (direction == 1 ? SPR_RIVER_RAPIDS_WATERFALL_FRONT_NW_SE : SPR_RIVER_RAPIDS_WATERFALL_FRONT_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 27, height, 27, 0, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 27 }, { 27, 0, height + 17 }); imageId = (SPR_RIVER_RAPIDS_WATERFALL_SIDE_SW_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, { 0, 0, height }, { 1, 32, 27 }, { 27, 0, height + 17 }); @@ -701,17 +701,17 @@ static void paint_river_rapids_track_waterfall( { imageId = (direction == 0 ? SPR_RIVER_RAPIDS_WATERFALL_SW_NE : SPR_RIVER_RAPIDS_WATERFALL_NE_SW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 11, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = (SPR_RIVER_RAPIDS_WATERFALL_BASE_NW_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = (SPR_RIVER_RAPIDS_WATERFALL_TOP_NW_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 27, height, 0, 4, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 27 }, { 0, 4, height + 17 }); imageId = (direction == 0 ? SPR_RIVER_RAPIDS_WATERFALL_FRONT_SW_NE : SPR_RIVER_RAPIDS_WATERFALL_FRONT_NE_SW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 27, height, 0, 27, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 27 }, { 0, 27, height + 17 }); imageId = (SPR_RIVER_RAPIDS_WATERFALL_SIDE_SE_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, { 0, 0, height }, { 32, 1, 27 }, { 0, 27, height + 17 }); @@ -744,18 +744,18 @@ static void paint_river_rapids_track_rapids( if (direction & 1) { imageId = (SPR_RIVER_RAPIDS_RAPIDS_NW_SE_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 11, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = SPR_RIVER_RAPIDS_RAPIDS_FRONT_NW_SE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 11, height, 27, 0, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 11 }, { 27, 0, height + 17 }); } else { imageId = (SPR_RIVER_RAPIDS_RAPIDS_SW_NE_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 11, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = SPR_RIVER_RAPIDS_RAPIDS_FRONT_SW_NE | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 11, height, 0, 27, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 11 }, { 0, 27, height + 17 }); } wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); @@ -796,27 +796,27 @@ static void paint_river_rapids_track_whirlpool( { imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_NW_SE : SPR_RIVER_RAPIDS_FLAT_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 24, 32, 11, height, 4, 0, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = (SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, { 0, 0, height }, { 24, 32, 11 }, { 4, 0, height }); imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_FRONT_NW_SE : SPR_RIVER_RAPIDS_FLAT_FRONT_SE_NW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 3, height, 27, 0, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 3 }, { 27, 0, height + 17 }); } else { imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_SW_NE : SPR_RIVER_RAPIDS_FLAT_NE_SW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 24, 11, height, 0, 4, height); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = (SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 + frameNum) | session->TrackColours[SCHEME_TRACK]; PaintAddImageAsChild(session, imageId, { 0, 0, height }, { 32, 24, 11 }, { 0, 4, height }); imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_FRONT_SW_NE : SPR_RIVER_RAPIDS_FLAT_FRONT_NE_SW) | session->TrackColours[SCHEME_TRACK]; - PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 3, height, 0, 27, height + 17); + PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 3 }, { 0, 27, height + 17 }); } wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr); diff --git a/src/openrct2/ride/water/SplashBoats.cpp b/src/openrct2/ride/water/SplashBoats.cpp index 935449548d..8d693895d4 100644 --- a/src/openrct2/ride/water/SplashBoats.cpp +++ b/src/openrct2/ride/water/SplashBoats.cpp @@ -11,9 +11,11 @@ #include "../../interface/Viewport.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" -#include "../../world/Sprite.h" +#include "../../paint/sprite/Paint.Sprite.h" +#include "../../world/Entity.h" #include "../Track.h" #include "../TrackPaint.h" +#include "../Vehicle.h" #include "../VehiclePaint.h" enum @@ -1269,6 +1271,6 @@ void vehicle_visual_splash_boats_or_water_coaster( imageDirection = ((session->CurrentRotation * 8) + vehicle->sprite_direction) & 0x1F; session->SpritePosition.x = vehicle->x; session->SpritePosition.y = vehicle->y; - vehicle_paint(session, vehicle, imageDirection); + PaintEntity(session, vehicle, imageDirection); } #endif diff --git a/src/openrct2/ride/water/SubmarineRide.cpp b/src/openrct2/ride/water/SubmarineRide.cpp index a8a2174d63..ad97018f6c 100644 --- a/src/openrct2/ride/water/SubmarineRide.cpp +++ b/src/openrct2/ride/water/SubmarineRide.cpp @@ -45,11 +45,11 @@ void vehicle_visual_submarine( } else { - if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_11) + if (vehicleEntry->flags & VEHICLE_ENTRY_FLAG_USE_16_ROTATION_FRAMES) { baseImage_id /= 2; } - if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_15) + if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_USE_4_ROTATION_FRAMES) { baseImage_id /= 8; } diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index a4b845ea9a..f8ebac8c36 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -41,10 +41,10 @@ #include "../util/Util.h" #include "../windows/Intent.h" #include "../world/Climate.h" +#include "../world/Duck.h" #include "../world/Map.h" #include "../world/Park.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "../world/Water.h" #include "ScenarioRepository.h" #include "ScenarioSources.h" @@ -73,6 +73,7 @@ random_engine_t gScenarioRand; Objective gScenarioObjective; +bool gAllowEarlyCompletionInNetworkPlay; uint16_t gScenarioParkRatingWarningDays; money32 gScenarioCompletedCompanyValue; money32 gScenarioCompanyValueRecord; @@ -152,7 +153,7 @@ void scenario_begin() award_reset(); reset_all_ride_build_dates(); date_reset(); - duck_remove_all(); + Duck::RemoveAll(); park_calculate_size(); map_count_remaining_land_rights(); Staff::ResetStats(); @@ -288,7 +289,6 @@ static void scenario_day_update() { finance_update_daily_profit(); peep_update_days_in_queue(); - bool allowEarlyCompletion = gConfigGeneral.allow_early_completion && (network_get_mode() == NETWORK_MODE_NONE); switch (gScenarioObjective.Type) { case OBJECTIVE_10_ROLLERCOASTERS: @@ -299,7 +299,7 @@ static void scenario_day_update() scenario_objective_check(); break; default: - if (allowEarlyCompletion) + if (AllowEarlyCompletion()) scenario_objective_check(); break; } @@ -478,7 +478,7 @@ bool scenario_create_ducks() CoordsXY targetPos{ centrePos.x + innerPos.x - SquareRadiusSize, centrePos.y + innerPos.y - SquareRadiusSize }; Guard::Assert(map_is_location_valid(targetPos)); - create_duck(targetPos); + Duck::Create(targetPos); } return true; @@ -713,9 +713,8 @@ ObjectiveStatus Objective::CheckGuestsBy() const { int16_t parkRating = gParkRating; int32_t currentMonthYear = gDateMonthsElapsed; - bool allowEarlyCompletion = gConfigGeneral.allow_early_completion && (network_get_mode() == NETWORK_MODE_NONE); - if (currentMonthYear == MONTH_COUNT * Year || allowEarlyCompletion) + if (currentMonthYear == MONTH_COUNT * Year || AllowEarlyCompletion()) { if (parkRating >= 600 && gNumGuestsInPark >= NumGuests) { @@ -735,9 +734,8 @@ ObjectiveStatus Objective::CheckParkValueBy() const int32_t currentMonthYear = gDateMonthsElapsed; money32 objectiveParkValue = Currency; money32 parkValue = gParkValue; - bool allowEarlyCompletion = gConfigGeneral.allow_early_completion && (network_get_mode() == NETWORK_MODE_NONE); - if (currentMonthYear == MONTH_COUNT * Year || allowEarlyCompletion) + if (currentMonthYear == MONTH_COUNT * Year || AllowEarlyCompletion()) { if (parkValue >= objectiveParkValue) { @@ -763,7 +761,7 @@ ObjectiveStatus Objective::Check10RollerCoasters() const std::bitset type_already_counted; for (const auto& ride : GetRideManager()) { - if (ride.status == RIDE_STATUS_OPEN && ride.excitement >= RIDE_RATING(6, 00) && ride.subtype != RIDE_ENTRY_INDEX_NULL) + if (ride.status == RideStatus::Open && ride.excitement >= RIDE_RATING(6, 00) && ride.subtype != OBJECT_ENTRY_INDEX_NULL) { auto rideEntry = ride.GetRideEntry(); if (rideEntry != nullptr) @@ -863,7 +861,7 @@ ObjectiveStatus Objective::Check10RollerCoastersLength() const auto rcs = 0; for (const auto& ride : GetRideManager()) { - if (ride.status == RIDE_STATUS_OPEN && ride.excitement >= RIDE_RATING(7, 00) && ride.subtype != RIDE_ENTRY_INDEX_NULL) + if (ride.status == RideStatus::Open && ride.excitement >= RIDE_RATING(7, 00) && ride.subtype != OBJECT_ENTRY_INDEX_NULL) { auto rideEntry = ride.GetRideEntry(); if (rideEntry != nullptr) @@ -894,7 +892,7 @@ ObjectiveStatus Objective::CheckFinish5RollerCoasters() const auto rcs = 0; for (const auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_CLOSED && ride.excitement >= MinimumExcitement) + if (ride.status != RideStatus::Closed && ride.excitement >= MinimumExcitement) { auto rideEntry = ride.GetRideEntry(); if (rideEntry != nullptr) @@ -944,6 +942,23 @@ ObjectiveStatus Objective::CheckMonthlyFoodIncome() const return ObjectiveStatus::Undecided; } +/* + * Returns the AllowEarlyCompletion-Option to be used + * depending on the Current Network-Mode. + */ +bool AllowEarlyCompletion() +{ + switch (network_get_mode()) + { + case NETWORK_MODE_CLIENT: + return gAllowEarlyCompletionInNetworkPlay; + case NETWORK_MODE_NONE: + case NETWORK_MODE_SERVER: + default: + return gConfigGeneral.allow_early_completion; + } +} + static void scenario_objective_check() { auto status = gScenarioObjective.Check(); diff --git a/src/openrct2/scenario/Scenario.h b/src/openrct2/scenario/Scenario.h index 5174ab3518..cb3daaf3dd 100644 --- a/src/openrct2/scenario/Scenario.h +++ b/src/openrct2/scenario/Scenario.h @@ -431,7 +431,7 @@ extern uint32_t gScenarioTicks; extern random_engine_t gScenarioRand; extern Objective gScenarioObjective; - +extern bool gAllowEarlyCompletionInNetworkPlay; extern uint16_t gScenarioParkRatingWarningDays; extern money32 gScenarioCompletedCompanyValue; extern money32 gScenarioCompanyValueRecord; @@ -452,6 +452,7 @@ void load_from_sc6(const char* path); void scenario_begin(); void scenario_update(); bool scenario_create_ducks(); +bool AllowEarlyCompletion(); const random_engine_t::state_type& scenario_rand_state(); void scenario_rand_seed(random_engine_t::result_type s0, random_engine_t::result_type s1); diff --git a/src/openrct2/scripting/HookEngine.cpp b/src/openrct2/scripting/HookEngine.cpp index 33b6dde3b2..266c7050d2 100644 --- a/src/openrct2/scripting/HookEngine.cpp +++ b/src/openrct2/scripting/HookEngine.cpp @@ -19,17 +19,19 @@ using namespace OpenRCT2::Scripting; HOOK_TYPE OpenRCT2::Scripting::GetHookType(const std::string& name) { - static const std::unordered_map LookupTable( - { { "action.query", HOOK_TYPE::ACTION_QUERY }, - { "action.execute", HOOK_TYPE::ACTION_EXECUTE }, - { "interval.tick", HOOK_TYPE::INTERVAL_TICK }, - { "interval.day", HOOK_TYPE::INTERVAL_DAY }, - { "network.chat", HOOK_TYPE::NETWORK_CHAT }, - { "network.authenticate", HOOK_TYPE::NETWORK_AUTHENTICATE }, - { "network.join", HOOK_TYPE::NETWORK_JOIN }, - { "network.leave", HOOK_TYPE::NETWORK_LEAVE }, - { "ride.ratings.calculate", HOOK_TYPE::RIDE_RATINGS_CALCULATE }, - { "action.location", HOOK_TYPE::ACTION_LOCATION } }); + static const std::unordered_map LookupTable({ + { "action.query", HOOK_TYPE::ACTION_QUERY }, + { "action.execute", HOOK_TYPE::ACTION_EXECUTE }, + { "interval.tick", HOOK_TYPE::INTERVAL_TICK }, + { "interval.day", HOOK_TYPE::INTERVAL_DAY }, + { "network.chat", HOOK_TYPE::NETWORK_CHAT }, + { "network.authenticate", HOOK_TYPE::NETWORK_AUTHENTICATE }, + { "network.join", HOOK_TYPE::NETWORK_JOIN }, + { "network.leave", HOOK_TYPE::NETWORK_LEAVE }, + { "ride.ratings.calculate", HOOK_TYPE::RIDE_RATINGS_CALCULATE }, + { "action.location", HOOK_TYPE::ACTION_LOCATION }, + { "guest.generation", HOOK_TYPE::GUEST_GENERATION }, + }); auto result = LookupTable.find(name); return (result != LookupTable.end()) ? result->second : HOOK_TYPE::UNDEFINED; } diff --git a/src/openrct2/scripting/HookEngine.h b/src/openrct2/scripting/HookEngine.h index 7323737e24..ce94ec8a20 100644 --- a/src/openrct2/scripting/HookEngine.h +++ b/src/openrct2/scripting/HookEngine.h @@ -38,6 +38,7 @@ namespace OpenRCT2::Scripting NETWORK_LEAVE, RIDE_RATINGS_CALCULATE, ACTION_LOCATION, + GUEST_GENERATION, COUNT, UNDEFINED = -1, }; diff --git a/src/openrct2/scripting/ScCheats.hpp b/src/openrct2/scripting/ScCheats.hpp index f82b551c5e..fdcb606955 100644 --- a/src/openrct2/scripting/ScCheats.hpp +++ b/src/openrct2/scripting/ScCheats.hpp @@ -227,13 +227,13 @@ namespace OpenRCT2::Scripting bool fastLiftHill_get() { - return gCheatsFastLiftHill; + return gCheatsUnlockOperatingLimits; } void fastLiftHill_set(bool value) { ThrowIfGameStateNotMutable(); - gCheatsFastLiftHill = value; + gCheatsUnlockOperatingLimits = value; } bool freezeWeather_get() diff --git a/src/openrct2/scripting/ScClimate.hpp b/src/openrct2/scripting/ScClimate.hpp new file mode 100644 index 0000000000..779d22ada2 --- /dev/null +++ b/src/openrct2/scripting/ScClimate.hpp @@ -0,0 +1,129 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#ifdef ENABLE_SCRIPTING + +# include "../Context.h" +# include "../common.h" +# include "../core/String.hpp" +# include "../world/Climate.h" +# include "Duktape.hpp" +# include "ScriptEngine.h" + +namespace OpenRCT2::Scripting +{ + class ScClimateState + { + private: + std::string _weather; + int8_t _temperature; + + public: + ScClimateState(std::string weather, int8_t temperature) + : _weather(weather) + , _temperature(temperature) + { + } + + std::string weather_get() const + { + return _weather; + } + + int8_t temperature_get() const + { + return _temperature; + } + + static void Register(duk_context* ctx) + { + dukglue_register_property(ctx, &ScClimateState::weather_get, nullptr, "weather"); + dukglue_register_property(ctx, &ScClimateState::temperature_get, nullptr, "temperature"); + } + }; + + class ScClimate + { + public: + static std::string ClimateTypeToString(ClimateType token) + { + switch (token) + { + case ClimateType::CoolAndWet: + return "coolAndWet"; + case ClimateType::Warm: + return "warm"; + case ClimateType::HotAndDry: + return "hotAndDry"; + case ClimateType::Cold: + return "cold"; + case ClimateType::Count: + return ""; + } + return ""; + } + + static std::string WeatherTypeToString(WeatherType token) + { + switch (token) + { + case WeatherType::Sunny: + return "sunny"; + case WeatherType::PartiallyCloudy: + return "partiallyCloudy"; + case WeatherType::Cloudy: + return "cloudy"; + case WeatherType::Rain: + return "rain"; + case WeatherType::HeavyRain: + return "heavyRain"; + case WeatherType::Thunder: + return "thunder"; + case WeatherType::Snow: + return "snow"; + case WeatherType::HeavySnow: + return "heavySnow"; + case WeatherType::Blizzard: + return "blizzard"; + case WeatherType::Count: + return ""; + } + return ""; + } + + std::string type_get() const + { + return ClimateTypeToString(gClimate); + } + + std::shared_ptr current_get() const + { + std::string weatherType = WeatherTypeToString(gClimateCurrent.Weather); + return std::make_shared(weatherType, gClimateCurrent.Temperature); + } + + std::shared_ptr future_get() const + { + std::string weatherType = WeatherTypeToString(gClimateNext.Weather); + return std::make_shared(weatherType, gClimateNext.Temperature); + } + + static void Register(duk_context* ctx) + { + dukglue_register_property(ctx, &ScClimate::type_get, nullptr, "type"); + dukglue_register_property(ctx, &ScClimate::current_get, nullptr, "current"); + dukglue_register_property(ctx, &ScClimate::future_get, nullptr, "future"); + } + }; + +} // namespace OpenRCT2::Scripting + +#endif diff --git a/src/openrct2/scripting/ScContext.hpp b/src/openrct2/scripting/ScContext.hpp index 83b1905065..049e37963e 100644 --- a/src/openrct2/scripting/ScContext.hpp +++ b/src/openrct2/scripting/ScContext.hpp @@ -42,6 +42,11 @@ namespace OpenRCT2::Scripting } private: + int32_t apiVersion_get() + { + return OPENRCT2_PLUGIN_API_VERSION; + } + std::shared_ptr configuration_get() { return std::make_shared(); @@ -373,6 +378,7 @@ namespace OpenRCT2::Scripting public: static void Register(duk_context* ctx) { + dukglue_register_property(ctx, &ScContext::apiVersion_get, nullptr, "apiVersion"); dukglue_register_property(ctx, &ScContext::configuration_get, nullptr, "configuration"); dukglue_register_property(ctx, &ScContext::sharedStorage_get, nullptr, "sharedStorage"); dukglue_register_method(ctx, &ScContext::captureImage, "captureImage"); diff --git a/src/openrct2/scripting/ScEntity.hpp b/src/openrct2/scripting/ScEntity.hpp index d5cb5aa1aa..f1b581206d 100644 --- a/src/openrct2/scripting/ScEntity.hpp +++ b/src/openrct2/scripting/ScEntity.hpp @@ -51,50 +51,37 @@ namespace OpenRCT2::Scripting auto entity = GetEntity(); if (entity != nullptr) { - switch (entity->sprite_identifier) + switch (entity->Type) { - case SpriteIdentifier::Vehicle: + case EntityType::Vehicle: return "car"; - case SpriteIdentifier::Peep: + case EntityType::Guest: + case EntityType::Staff: return "peep"; - case SpriteIdentifier::Misc: - { - auto misc = entity->As(); - if (misc == nullptr) - { - return "unknown"; - } - switch (misc->SubType) - { - case MiscEntityType::SteamParticle: - return "steam_particle"; - case MiscEntityType::MoneyEffect: - return "money_effect"; - case MiscEntityType::CrashedVehicleParticle: - return "crashed_vehicle_particle"; - case MiscEntityType::ExplosionCloud: - return "explosion_cloud"; - case MiscEntityType::CrashSplash: - return "crash_splash"; - case MiscEntityType::ExplosionFlare: - return "explosion_flare"; - case MiscEntityType::JumpingFountainWater: - return "jumping_fountain_water"; - case MiscEntityType::Balloon: - return "balloon"; - case MiscEntityType::Duck: - return "duck"; - case MiscEntityType::JumpingFountainSnow: - return "jumping_fountain_snow"; - default: - break; - } - } - break; - case SpriteIdentifier::Litter: + case EntityType::SteamParticle: + return "steam_particle"; + case EntityType::MoneyEffect: + return "money_effect"; + case EntityType::CrashedVehicleParticle: + return "crashed_vehicle_particle"; + case EntityType::ExplosionCloud: + return "explosion_cloud"; + case EntityType::CrashSplash: + return "crash_splash"; + case EntityType::ExplosionFlare: + return "explosion_flare"; + case EntityType::Balloon: + return "balloon"; + case EntityType::Duck: + return "duck"; + case EntityType::JumpingFountain: + return "jumping_fountain"; + case EntityType::Litter: return "litter"; - case SpriteIdentifier::Null: + case EntityType::Null: return "unknown"; + default: + break; } } return "unknown"; @@ -155,17 +142,18 @@ namespace OpenRCT2::Scripting if (entity != nullptr) { entity->Invalidate(); - switch (entity->sprite_identifier) + switch (entity->Type) { - case SpriteIdentifier::Vehicle: + case EntityType::Vehicle: duk_error(ctx, DUK_ERR_ERROR, "Removing a vehicle is currently unsupported."); break; - case SpriteIdentifier::Peep: + case EntityType::Guest: + case EntityType::Staff: { - auto peep = static_cast(entity); + auto peep = entity->As(); // We can't remove a single peep from a ride at the moment as this can cause complications with the // vehicle car having an unsupported peep capacity. - if (peep->State == PeepState::OnRide || peep->State == PeepState::EnteringRide) + if (peep == nullptr || peep->State == PeepState::OnRide || peep->State == PeepState::EnteringRide) { duk_error(ctx, DUK_ERR_ERROR, "Removing a peep that is on a ride is currently unsupported."); } @@ -175,11 +163,21 @@ namespace OpenRCT2::Scripting } break; } - case SpriteIdentifier::Misc: - case SpriteIdentifier::Litter: + case EntityType::SteamParticle: + case EntityType::MoneyEffect: + case EntityType::CrashedVehicleParticle: + case EntityType::ExplosionCloud: + case EntityType::CrashSplash: + case EntityType::ExplosionFlare: + case EntityType::JumpingFountain: + case EntityType::Balloon: + case EntityType::Duck: + case EntityType::Litter: sprite_remove(entity); break; - case SpriteIdentifier::Null: + case EntityType::Null: + break; + default: break; } } @@ -313,7 +311,7 @@ namespace OpenRCT2::Scripting uint8_t spriteType_get() const { auto vehicle = GetVehicle(); - return vehicle != nullptr ? vehicle->vehicle_sprite_type : 0; + return vehicle != nullptr ? vehicle->Pitch : 0; } void spriteType_set(uint8_t value) { @@ -321,7 +319,7 @@ namespace OpenRCT2::Scripting auto vehicle = GetVehicle(); if (vehicle != nullptr) { - vehicle->vehicle_sprite_type = value; + vehicle->Pitch = value; } } @@ -705,7 +703,7 @@ namespace OpenRCT2::Scripting auto peep = GetPeep(); if (peep != nullptr) { - return peep->AssignedPeepType == PeepType::Staff ? "staff" : "guest"; + return peep->Is() ? "staff" : "guest"; } return ""; } @@ -844,23 +842,18 @@ namespace OpenRCT2::Scripting private: Guest* GetGuest() const { - auto peep = GetPeep(); - if (peep != nullptr) - { - return peep->As(); - } - return nullptr; + return ::GetEntity(_id); } uint8_t tshirtColour_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->TshirtColour : 0; } void tshirtColour_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->TshirtColour = value; @@ -870,13 +863,13 @@ namespace OpenRCT2::Scripting uint8_t trousersColour_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->TrousersColour : 0; } void trousersColour_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->TrousersColour = value; @@ -886,13 +879,13 @@ namespace OpenRCT2::Scripting uint8_t balloonColour_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->BalloonColour : 0; } void balloonColour_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->BalloonColour = value; @@ -902,13 +895,13 @@ namespace OpenRCT2::Scripting uint8_t hatColour_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->HatColour : 0; } void hatColour_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->HatColour = value; @@ -918,13 +911,13 @@ namespace OpenRCT2::Scripting uint8_t umbrellaColour_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->UmbrellaColour : 0; } void umbrellaColour_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->UmbrellaColour = value; @@ -934,13 +927,13 @@ namespace OpenRCT2::Scripting uint8_t happiness_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Happiness : 0; } void happiness_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Happiness = value; @@ -949,13 +942,13 @@ namespace OpenRCT2::Scripting uint8_t happinessTarget_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->HappinessTarget : 0; } void happinessTarget_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->HappinessTarget = value; @@ -964,13 +957,13 @@ namespace OpenRCT2::Scripting uint8_t nausea_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Nausea : 0; } void nausea_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Nausea = value; @@ -979,13 +972,13 @@ namespace OpenRCT2::Scripting uint8_t nauseaTarget_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->NauseaTarget : 0; } void nauseaTarget_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->NauseaTarget = value; @@ -994,13 +987,13 @@ namespace OpenRCT2::Scripting uint8_t hunger_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Hunger : 0; } void hunger_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Hunger = value; @@ -1009,13 +1002,13 @@ namespace OpenRCT2::Scripting uint8_t thirst_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Thirst : 0; } void thirst_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Thirst = value; @@ -1024,13 +1017,13 @@ namespace OpenRCT2::Scripting uint8_t toilet_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Toilet : 0; } void toilet_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Toilet = value; @@ -1039,13 +1032,13 @@ namespace OpenRCT2::Scripting uint8_t mass_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Mass : 0; } void mass_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Mass = value; @@ -1054,13 +1047,13 @@ namespace OpenRCT2::Scripting uint8_t minIntensity_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Intensity.GetMinimum() : 0; } void minIntensity_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Intensity = peep->Intensity.WithMinimum(value); @@ -1069,13 +1062,13 @@ namespace OpenRCT2::Scripting uint8_t maxIntensity_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->Intensity.GetMaximum() : 0; } void maxIntensity_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->Intensity = peep->Intensity.WithMaximum(value); @@ -1084,13 +1077,13 @@ namespace OpenRCT2::Scripting uint8_t nauseaTolerance_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? EnumValue(peep->NauseaTolerance) : 0; } void nauseaTolerance_set(uint8_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->NauseaTolerance = static_cast(std::min(value, 3)); @@ -1099,13 +1092,13 @@ namespace OpenRCT2::Scripting int32_t cash_get() const { - auto peep = GetPeep(); + auto peep = GetGuest(); return peep != nullptr ? peep->CashInPocket : 0; } void cash_set(int32_t value) { ThrowIfGameStateNotMutable(); - auto peep = GetPeep(); + auto peep = GetGuest(); if (peep != nullptr) { peep->CashInPocket = std::max(0, value); @@ -1133,12 +1126,7 @@ namespace OpenRCT2::Scripting private: Staff* GetStaff() const { - auto peep = GetPeep(); - if (peep != nullptr) - { - return peep->As(); - } - return nullptr; + return ::GetEntity(_id); } std::string staffType_get() const diff --git a/src/openrct2/scripting/ScMap.hpp b/src/openrct2/scripting/ScMap.hpp index 870c266dd4..a86423cf63 100644 --- a/src/openrct2/scripting/ScMap.hpp +++ b/src/openrct2/scripting/ScMap.hpp @@ -13,6 +13,9 @@ # include "../common.h" # include "../ride/Ride.h" +# include "../ride/TrainManager.h" +# include "../world/Balloon.h" +# include "../world/Duck.h" # include "../world/EntityList.h" # include "../world/Map.h" # include "Duktape.hpp" @@ -88,7 +91,7 @@ namespace OpenRCT2::Scripting { auto spriteId = static_cast(id); auto sprite = GetEntity(spriteId); - if (sprite != nullptr && sprite->sprite_identifier != SpriteIdentifier::Null) + if (sprite != nullptr && sprite->Type != EntityType::Null) { return GetEntityAsDukValue(sprite); } @@ -99,63 +102,56 @@ namespace OpenRCT2::Scripting std::vector getAllEntities(const std::string& type) const { - EntityListId targetList{}; - MiscEntityType targetType{}; + std::vector result; if (type == "balloon") { - targetList = EntityListId::Misc; - targetType = MiscEntityType::Balloon; + for (auto sprite : EntityList()) + { + result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); + } } if (type == "car") { - targetList = EntityListId::TrainHead; - } - else if (type == "litter") - { - targetList = EntityListId::Litter; - } - else if (type == "duck") - { - targetList = EntityListId::Misc; - targetType = MiscEntityType::Duck; - } - else if (type == "peep") - { - targetList = EntityListId::Peep; - } - else - { - duk_error(_context, DUK_ERR_ERROR, "Invalid entity type."); - } - - std::vector result; - for (auto sprite : EntityList(targetList)) - { - if (targetList == EntityListId::Peep) + for (auto trainHead : TrainManager::View()) { - if (sprite->Is()) - result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); - else - result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); - } - else if (targetList == EntityListId::TrainHead) - { - for (auto carId = sprite->sprite_index; carId != SPRITE_INDEX_NULL;) + for (auto carId = trainHead->sprite_index; carId != SPRITE_INDEX_NULL;) { auto car = GetEntity(carId); result.push_back(GetObjectAsDukValue(_context, std::make_shared(carId))); carId = car->next_vehicle_on_train; } } - else if (targetList == EntityListId::Misc) + } + else if (type == "litter") + { + for (auto sprite : EntityList()) { - auto* misc = sprite->As(); - if (misc && misc->SubType == targetType) - { - result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); - } + result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); } } + else if (type == "duck") + { + for (auto sprite : EntityList()) + { + result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); + } + } + else if (type == "peep") + { + for (auto sprite : EntityList()) + { + result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); + } + for (auto sprite : EntityList()) + { + result.push_back(GetObjectAsDukValue(_context, std::make_shared(sprite->sprite_index))); + } + } + else + { + duk_error(_context, DUK_ERR_ERROR, "Invalid entity type."); + } + return result; } @@ -175,17 +171,14 @@ namespace OpenRCT2::Scripting DukValue GetEntityAsDukValue(const SpriteBase* sprite) const { auto spriteId = sprite->sprite_index; - switch (sprite->sprite_identifier) + switch (sprite->Type) { - case SpriteIdentifier::Vehicle: + case EntityType::Vehicle: return GetObjectAsDukValue(_context, std::make_shared(spriteId)); - case SpriteIdentifier::Peep: - { - if (sprite->Is()) - return GetObjectAsDukValue(_context, std::make_shared(spriteId)); - else - return GetObjectAsDukValue(_context, std::make_shared(spriteId)); - } + case EntityType::Staff: + return GetObjectAsDukValue(_context, std::make_shared(spriteId)); + case EntityType::Guest: + return GetObjectAsDukValue(_context, std::make_shared(spriteId)); default: return GetObjectAsDukValue(_context, std::make_shared(spriteId)); } diff --git a/src/openrct2/scripting/ScObject.hpp b/src/openrct2/scripting/ScObject.hpp index 4b23e7f84e..dfa3e0c457 100644 --- a/src/openrct2/scripting/ScObject.hpp +++ b/src/openrct2/scripting/ScObject.hpp @@ -942,7 +942,7 @@ namespace OpenRCT2::Scripting auto sceneryEntry = GetLegacyData(); if (sceneryEntry != nullptr) { - return sceneryEntry->small_scenery.flags; + return sceneryEntry->flags; } return 0; } @@ -952,7 +952,7 @@ namespace OpenRCT2::Scripting auto sceneryEntry = GetLegacyData(); if (sceneryEntry != nullptr) { - return sceneryEntry->small_scenery.height; + return sceneryEntry->height; } return 0; } @@ -962,7 +962,7 @@ namespace OpenRCT2::Scripting auto sceneryEntry = GetLegacyData(); if (sceneryEntry != nullptr) { - return sceneryEntry->small_scenery.price; + return sceneryEntry->price; } return 0; } @@ -972,18 +972,18 @@ namespace OpenRCT2::Scripting auto sceneryEntry = GetLegacyData(); if (sceneryEntry != nullptr) { - return sceneryEntry->small_scenery.removal_price; + return sceneryEntry->removal_price; } return 0; } protected: - rct_scenery_entry* GetLegacyData() const + SmallSceneryEntry* GetLegacyData() const { auto obj = GetObject(); if (obj != nullptr) { - return static_cast(obj->GetLegacyData()); + return static_cast(obj->GetLegacyData()); } return nullptr; } diff --git a/src/openrct2/scripting/ScPark.hpp b/src/openrct2/scripting/ScPark.hpp index 8a7b894e49..ba0b65a1e0 100644 --- a/src/openrct2/scripting/ScPark.hpp +++ b/src/openrct2/scripting/ScPark.hpp @@ -208,7 +208,7 @@ namespace OpenRCT2::Scripting { return msg->Text; } - return 0; + return {}; } void text_set(const std::string& value) @@ -332,6 +332,36 @@ namespace OpenRCT2::Scripting return gNumGuestsInPark; } + uint32_t suggestedGuestMaximum_get() const + { + return _suggestedGuestMaximum; + } + + int32_t guestGenerationProbability_get() const + { + return _guestGenerationProbability; + } + + money16 guestInitialCash_get() const + { + return gGuestInitialCash; + } + + uint8_t guestInitialHappiness_get() const + { + return gGuestInitialHappiness; + } + + uint8_t guestInitialHunger_get() const + { + return gGuestInitialHunger; + } + + uint8_t guestInitialThirst_get() const + { + return gGuestInitialThirst; + } + money32 value_get() const { return gParkValue; @@ -364,6 +394,11 @@ namespace OpenRCT2::Scripting } } + money16 totalRideValueForMoney_get() const + { + return gTotalRideValueForMoney; + } + uint32_t totalAdmissions_get() const { return gTotalAdmissions; @@ -546,8 +581,15 @@ namespace OpenRCT2::Scripting dukglue_register_property(ctx, &ScPark::maxBankLoan_get, &ScPark::maxBankLoan_set, "maxBankLoan"); dukglue_register_property(ctx, &ScPark::entranceFee_get, &ScPark::entranceFee_set, "entranceFee"); dukglue_register_property(ctx, &ScPark::guests_get, nullptr, "guests"); + dukglue_register_property(ctx, &ScPark::suggestedGuestMaximum_get, nullptr, "suggestedGuestMaximum"); + dukglue_register_property(ctx, &ScPark::guestGenerationProbability_get, nullptr, "guestGenerationProbability"); + dukglue_register_property(ctx, &ScPark::guestInitialCash_get, nullptr, "guestInitialCash"); + dukglue_register_property(ctx, &ScPark::guestInitialHappiness_get, nullptr, "guestInitialHappiness"); + dukglue_register_property(ctx, &ScPark::guestInitialHunger_get, nullptr, "guestInitialHunger"); + dukglue_register_property(ctx, &ScPark::guestInitialThirst_get, nullptr, "guestInitialThirst"); dukglue_register_property(ctx, &ScPark::value_get, &ScPark::value_set, "value"); dukglue_register_property(ctx, &ScPark::companyValue_get, &ScPark::companyValue_set, "companyValue"); + dukglue_register_property(ctx, &ScPark::totalRideValueForMoney_get, nullptr, "totalRideValueForMoney"); dukglue_register_property(ctx, &ScPark::totalAdmissions_get, &ScPark::totalAdmissions_set, "totalAdmissions"); dukglue_register_property( ctx, &ScPark::totalIncomeFromAdmissions_get, &ScPark::totalIncomeFromAdmissions_set, diff --git a/src/openrct2/scripting/ScRide.hpp b/src/openrct2/scripting/ScRide.hpp index 33adccd4da..877baca8f7 100644 --- a/src/openrct2/scripting/ScRide.hpp +++ b/src/openrct2/scripting/ScRide.hpp @@ -251,14 +251,16 @@ namespace OpenRCT2::Scripting { switch (ride->status) { - case RIDE_STATUS_CLOSED: + case RideStatus::Closed: return "closed"; - case RIDE_STATUS_OPEN: + case RideStatus::Open: return "open"; - case RIDE_STATUS_TESTING: + case RideStatus::Testing: return "testing"; - case RIDE_STATUS_SIMULATING: + case RideStatus::Simulating: return "simulating"; + case RideStatus::Count: // Meaningless but necessary to satisfy -Wswitch + return "count"; } } return ""; diff --git a/src/openrct2/scripting/ScTile.hpp b/src/openrct2/scripting/ScTile.hpp index de745a8269..e4dad4855b 100644 --- a/src/openrct2/scripting/ScTile.hpp +++ b/src/openrct2/scripting/ScTile.hpp @@ -440,7 +440,7 @@ namespace OpenRCT2::Scripting case TILE_ELEMENT_TYPE_PATH: { auto el = _element->AsPath(); - if (el->IsQueue() && el->GetRideIndex() != 0xFF) + if (el->IsQueue() && el->GetRideIndex() != RIDE_ID_NULL) duk_push_int(ctx, el->GetRideIndex()); else duk_push_null(ctx); @@ -466,7 +466,7 @@ namespace OpenRCT2::Scripting } return DukValue::take_from_stack(ctx); } - void ride_set(uint8_t value) + void ride_set(ride_id_t value) { ThrowIfGameStateNotMutable(); switch (_element->GetType()) @@ -506,7 +506,7 @@ namespace OpenRCT2::Scripting case TILE_ELEMENT_TYPE_PATH: { auto el = _element->AsPath(); - if (el->IsQueue() && el->GetRideIndex() != 0xFF) + if (el->IsQueue() && el->GetRideIndex() != RIDE_ID_NULL) duk_push_int(ctx, el->GetStationIndex()); else duk_push_null(ctx); @@ -836,7 +836,7 @@ namespace OpenRCT2::Scripting // Insert corrupt element at the end of the list for this tile // Note: Z = MAX_ELEMENT_HEIGHT to guarantee this TileElement* insertedElement = tile_element_insert( - { _coords, MAX_ELEMENT_HEIGHT }, 0, TileElementType::Corrupt); + { _coords, MAX_ELEMENT_HEIGHT * COORDS_Z_STEP }, 0, TileElementType::Corrupt); if (insertedElement == nullptr) { // TODO: Show error diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index 00f167150c..db2f1a1801 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -24,6 +24,7 @@ # include "../platform/Platform2.h" # include "Duktape.hpp" # include "ScCheats.hpp" +# include "ScClimate.hpp" # include "ScConsole.hpp" # include "ScContext.hpp" # include "ScDate.hpp" @@ -44,8 +45,6 @@ using namespace OpenRCT2; using namespace OpenRCT2::Scripting; -static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 24; - struct ExpressionStringifier final { private: @@ -379,6 +378,8 @@ void ScriptEngine::Initialise() { auto ctx = static_cast(_context); ScCheats::Register(ctx); + ScClimate::Register(ctx); + ScClimateState::Register(ctx); ScConfiguration::Register(ctx); ScConsole::Register(ctx); ScContext::Register(ctx); @@ -411,6 +412,7 @@ void ScriptEngine::Initialise() ScStaff::Register(ctx); dukglue_register_global(ctx, std::make_shared(), "cheats"); + dukglue_register_global(ctx, std::make_shared(), "climate"); dukglue_register_global(ctx, std::make_shared(_console), "console"); dukglue_register_global(ctx, std::make_shared(_execInfo, _hookEngine), "context"); dukglue_register_global(ctx, std::make_shared(), "date"); @@ -441,7 +443,7 @@ void ScriptEngine::LoadPlugins() if (Path::DirectoryExists(base)) { auto pattern = Path::Combine(base, "*.js"); - auto scanner = std::unique_ptr(Path::ScanDirectory(pattern, true)); + auto scanner = Path::ScanDirectory(pattern, true); while (scanner->Next()) { auto path = std::string(scanner->GetPath()); diff --git a/src/openrct2/scripting/ScriptEngine.h b/src/openrct2/scripting/ScriptEngine.h index 0c5ba8df20..3eebc71613 100644 --- a/src/openrct2/scripting/ScriptEngine.h +++ b/src/openrct2/scripting/ScriptEngine.h @@ -46,6 +46,8 @@ namespace OpenRCT2 namespace OpenRCT2::Scripting { + static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 31; + # ifndef DISABLE_NETWORK class ScSocketBase; # endif diff --git a/src/openrct2/title/TitleScreen.cpp b/src/openrct2/title/TitleScreen.cpp index 7b87271972..f267ae4891 100644 --- a/src/openrct2/title/TitleScreen.cpp +++ b/src/openrct2/title/TitleScreen.cpp @@ -436,7 +436,7 @@ void DrawOpenRCT2(rct_drawpixelinfo* dpi, const ScreenCoordsXY& screenCoords) { thread_local std::string buffer; buffer.clear(); - buffer.assign("{MEDIUMFONT}{OUTLINE}{WHITE}"); + buffer.assign("{OUTLINE}{WHITE}"); // Write name and version information buffer += gVersionInfoFull; @@ -448,7 +448,7 @@ void DrawOpenRCT2(rct_drawpixelinfo* dpi, const ScreenCoordsXY& screenCoords) { screenCoords, screenCoords + ScreenCoordsXY{ width, 30 } }); // 30 is an arbitrary height to catch both strings // Write platform information - buffer.assign("{MEDIUMFONT}{OUTLINE}{WHITE}"); + buffer.assign("{OUTLINE}{WHITE}"); buffer.append(OPENRCT2_PLATFORM); buffer.append(" ("); buffer.append(OPENRCT2_ARCHITECTURE); diff --git a/src/openrct2/title/TitleSequence.cpp b/src/openrct2/title/TitleSequence.cpp index 87d513ae4f..c5e47ca72a 100644 --- a/src/openrct2/title/TitleSequence.cpp +++ b/src/openrct2/title/TitleSequence.cpp @@ -292,7 +292,7 @@ static std::vector GetSaves(const std::string& directory) std::vector saves; auto pattern = Path::Combine(directory, "*.sc6;*.sv6"); - IFileScanner* scanner = Path::ScanDirectory(pattern, true); + auto scanner = Path::ScanDirectory(pattern, true); while (scanner->Next()) { const utf8* path = scanner->GetPathRelative(); diff --git a/src/openrct2/title/TitleSequenceManager.cpp b/src/openrct2/title/TitleSequenceManager.cpp index 02c8c381f0..553c061596 100644 --- a/src/openrct2/title/TitleSequenceManager.cpp +++ b/src/openrct2/title/TitleSequenceManager.cpp @@ -209,12 +209,11 @@ namespace TitleSequenceManager static void Scan(const std::string& directory) { auto pattern = Path::Combine(directory, "script.txt;*.parkseq"); - IFileScanner* fileScanner = Path::ScanDirectory(pattern, true); + auto fileScanner = Path::ScanDirectory(pattern, true); while (fileScanner->Next()) { AddSequence(fileScanner->GetPath()); } - delete fileScanner; } static void AddSequence(const std::string& scanPath) diff --git a/src/openrct2/windows/_legacy.cpp b/src/openrct2/windows/_legacy.cpp index f5f32ec940..3116c22498 100644 --- a/src/openrct2/windows/_legacy.cpp +++ b/src/openrct2/windows/_legacy.cpp @@ -22,7 +22,6 @@ #include "../ride/TrackData.h" #include "../world/Banner.h" #include "../world/Scenery.h" -#include "../world/Sprite.h" #include "Intent.h" #include diff --git a/src/openrct2/world/Balloon.cpp b/src/openrct2/world/Balloon.cpp index bdb00a6abc..4ea3655ada 100644 --- a/src/openrct2/world/Balloon.cpp +++ b/src/openrct2/world/Balloon.cpp @@ -7,6 +7,8 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "Balloon.h" + #include "../Game.h" #include "../audio/audio.h" #include "../network/network.h" @@ -16,8 +18,7 @@ template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::Balloon; + return Type == EntityType::Balloon; } void Balloon::Update() @@ -80,16 +81,11 @@ void Balloon::Pop() OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::BalloonPop, { x, y, z }); } -void create_balloon(const CoordsXYZ& balloonPos, int32_t colour, bool isPopped) +void Balloon::Create(const CoordsXYZ& balloonPos, int32_t colour, bool isPopped) { - rct_sprite* sprite = create_sprite(SpriteIdentifier::Misc); - if (sprite == nullptr) - return; - sprite->misc.sprite_identifier = SpriteIdentifier::Misc; - sprite->misc.SubType = MiscEntityType::Balloon; - auto balloon = sprite->misc.As(); + auto* balloon = CreateEntity(); if (balloon == nullptr) - return; // can never happen + return; balloon->sprite_width = 13; balloon->sprite_height_negative = 22; @@ -100,8 +96,3 @@ void create_balloon(const CoordsXYZ& balloonPos, int32_t colour, bool isPopped) balloon->colour = colour; balloon->popped = (isPopped ? 1 : 0); } - -void balloon_update(Balloon* balloon) -{ - balloon->Update(); -} diff --git a/src/openrct2/world/Balloon.h b/src/openrct2/world/Balloon.h new file mode 100644 index 0000000000..46cc2e611e --- /dev/null +++ b/src/openrct2/world/Balloon.h @@ -0,0 +1,28 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "SpriteBase.h" + +class DataSerialiser; +struct CoordsXYZ; + +struct Balloon : MiscEntity +{ + static constexpr auto cEntityType = EntityType::Balloon; + uint16_t popped; + uint8_t time_to_move; + uint8_t colour; + static void Create(const CoordsXYZ& balloonPos, int32_t colour, bool isPopped); + void Update(); + void Pop(); + void Press(); + void Serialise(DataSerialiser& stream); +}; diff --git a/src/openrct2/world/Banner.cpp b/src/openrct2/world/Banner.cpp index 0291fb83c2..de001a8541 100644 --- a/src/openrct2/world/Banner.cpp +++ b/src/openrct2/world/Banner.cpp @@ -85,7 +85,7 @@ void Banner::FormatTextTo(Formatter& ft) const * * rct2: 0x006B7EAB */ -static uint8_t banner_get_ride_index_at(const CoordsXYZ& bannerCoords) +static ride_id_t banner_get_ride_index_at(const CoordsXYZ& bannerCoords) { TileElement* tileElement = map_get_first_element_at(bannerCoords); ride_id_t resultRideIndex = RIDE_ID_NULL; @@ -202,8 +202,8 @@ WallElement* banner_get_scrolling_wall_tile_element(BannerIndex bannerIndex) if (wallElement == nullptr) continue; - rct_scenery_entry* scenery_entry = wallElement->GetEntry(); - if (scenery_entry->wall.scrolling_mode == SCROLLING_MODE_NONE) + auto* wallEntry = wallElement->GetEntry(); + if (wallEntry->scrolling_mode == SCROLLING_MODE_NONE) continue; if (wallElement->GetBannerIndex() != bannerIndex) continue; @@ -217,7 +217,7 @@ WallElement* banner_get_scrolling_wall_tile_element(BannerIndex bannerIndex) * * rct2: 0x006B7D86 */ -uint8_t banner_get_closest_ride_index(const CoordsXYZ& mapPos) +ride_id_t banner_get_closest_ride_index(const CoordsXYZ& mapPos) { static constexpr const std::array NeighbourCheckOrder = { CoordsXY{ COORDS_XY_STEP, 0 }, CoordsXY{ -COORDS_XY_STEP, 0 }, @@ -333,7 +333,7 @@ Banner* BannerElement::GetBanner() const return ::GetBanner(GetIndex()); } -rct_scenery_entry* BannerElement::GetEntry() const +BannerSceneryEntry* BannerElement::GetEntry() const { auto banner = GetBanner(); if (banner != nullptr) diff --git a/src/openrct2/world/Banner.h b/src/openrct2/world/Banner.h index c7c739ffe6..e586b0a3d5 100644 --- a/src/openrct2/world/Banner.h +++ b/src/openrct2/world/Banner.h @@ -59,7 +59,7 @@ void banner_init(); BannerIndex create_new_banner(uint8_t flags); TileElement* banner_get_tile_element(BannerIndex bannerIndex); WallElement* banner_get_scrolling_wall_tile_element(BannerIndex bannerIndex); -uint8_t banner_get_closest_ride_index(const CoordsXYZ& mapPos); +ride_id_t banner_get_closest_ride_index(const CoordsXYZ& mapPos); void banner_reset_broken_index(); void fix_duplicated_banners(); Banner* GetBanner(BannerIndex id); diff --git a/src/openrct2/world/Duck.cpp b/src/openrct2/world/Duck.cpp index af8167f502..e6cf1a282f 100644 --- a/src/openrct2/world/Duck.cpp +++ b/src/openrct2/world/Duck.cpp @@ -6,6 +6,7 @@ * * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "Duck.h" #include "../Game.h" #include "../audio/audio.h" @@ -68,8 +69,7 @@ static constexpr const uint8_t * DuckAnimations[] = template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::Duck; + return Type == EntityType::Duck; } bool Duck::IsFlying() @@ -279,10 +279,10 @@ uint32_t Duck::GetFrameImage(int32_t direction) const return imageId; } -void create_duck(const CoordsXY& pos) +void Duck::Create(const CoordsXY& pos) { - rct_sprite* sprite = create_sprite(SpriteIdentifier::Misc); - if (sprite == nullptr) + auto* duck = CreateEntity(); + if (duck == nullptr) return; CoordsXY targetPos = pos; @@ -291,11 +291,6 @@ void create_duck(const CoordsXY& pos) targetPos.x += offsetXY; targetPos.y += offsetXY; - sprite->misc.sprite_identifier = SpriteIdentifier::Misc; - sprite->misc.SubType = MiscEntityType::Duck; - auto duck = sprite->misc.As(); - if (duck == nullptr) - return; // can never happen duck->sprite_width = 9; duck->sprite_height_negative = 12; duck->sprite_height_positive = 9; @@ -345,14 +340,14 @@ void Duck::Update() } } -void duck_press(Duck* duck) +void Duck::Press() { - OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Quack, { duck->x, duck->y, duck->z }); + OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Quack, { x, y, z }); } -void duck_remove_all() +void Duck::RemoveAll() { - for (auto duck : EntityList(EntityListId::Misc)) + for (auto duck : EntityList()) { duck->Remove(); } diff --git a/src/openrct2/world/Duck.h b/src/openrct2/world/Duck.h new file mode 100644 index 0000000000..feef90e15e --- /dev/null +++ b/src/openrct2/world/Duck.h @@ -0,0 +1,47 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "SpriteBase.h" + +class DataSerialiser; +struct CoordsXY; + +struct Duck : MiscEntity +{ + static constexpr auto cEntityType = EntityType::Duck; + enum class DuckState : uint8_t + { + FlyToWater, + Swim, + Drink, + DoubleDrink, + FlyAway, + }; + int16_t target_x; + int16_t target_y; + DuckState state; + + static void Create(const CoordsXY& pos); + static void RemoveAll(); + void Press(); + void Update(); + uint32_t GetFrameImage(int32_t direction) const; + bool IsFlying(); + void Remove(); + void Serialise(DataSerialiser& stream); + +private: + void UpdateFlyToWater(); + void UpdateSwim(); + void UpdateDrink(); + void UpdateDoubleDrink(); + void UpdateFlyAway(); +}; diff --git a/src/openrct2/world/Entity.cpp b/src/openrct2/world/Entity.cpp new file mode 100644 index 0000000000..3d3624dd4e --- /dev/null +++ b/src/openrct2/world/Entity.cpp @@ -0,0 +1,300 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "Entity.h" + +#include "../core/DataSerialiser.h" +#include "../peep/Peep.h" +#include "../ride/Vehicle.h" +#include "Balloon.h" +#include "Duck.h" +#include "Fountain.h" +#include "MoneyEffect.h" +#include "Particle.h" + +static void EntityBaseSerialise(SpriteBase& base, DataSerialiser& stream) +{ + stream << base.Type; + stream << base.sprite_index; + stream << base.x; + stream << base.y; + stream << base.z; + stream << base.sprite_direction; +} + +void Litter::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << SubType; + stream << creationTick; +} + +void Balloon::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; + stream << popped; + stream << time_to_move; + stream << colour; +} + +void Duck::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; + stream << target_x; + stream << target_y; + stream << state; +} + +void MoneyEffect::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; + stream << MoveDelay; + stream << NumMovements; + stream << Vertical; + stream << Value; + stream << OffsetX; + stream << Wiggle; +} + +void VehicleCrashParticle::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; + stream << time_to_live; + stream << colour; + stream << crashed_sprite_base; + stream << velocity_x; + stream << velocity_y; + stream << velocity_z; + stream << acceleration_x; + stream << acceleration_y; + stream << acceleration_z; +} + +void ExplosionFlare::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; +} + +void ExplosionCloud::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; +} + +void CrashSplashParticle::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; +} + +void SteamParticle::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; + stream << time_to_move; +} + +void JumpingFountain::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << frame; + stream << FountainType; + stream << NumTicksAlive; + stream << FountainFlags; + stream << TargetX; + stream << TargetY; + stream << Iteration; +} + +static void PeepBaseSerialise(Peep& base, DataSerialiser& stream) +{ + EntityBaseSerialise(base, stream); + if (stream.IsLoading()) + { + base.Name = nullptr; + } + stream << base.NextLoc; + stream << base.NextFlags; + stream << base.State; + stream << base.SubState; + stream << base.SpriteType; + stream << base.TshirtColour; + stream << base.TrousersColour; + stream << base.DestinationX; + stream << base.DestinationY; + stream << base.DestinationTolerance; + stream << base.Var37; + stream << base.Energy; + stream << base.EnergyTarget; + stream << base.Mass; + // stream << base.WindowInvalidateFlags; + stream << base.CurrentRide; + stream << base.CurrentRideStation; + stream << base.CurrentTrain; + stream << base.CurrentCar; + stream << base.CurrentSeat; + stream << base.SpecialSprite; + stream << base.ActionSpriteType; + stream << base.NextActionSpriteType; + stream << base.ActionSpriteImageOffset; + stream << base.Action; + stream << base.ActionFrame; + stream << base.StepProgress; + stream << base.PeepDirection; + stream << base.InteractionRideIndex; + stream << base.Id; + stream << base.PathCheckOptimisation; + stream << base.PathfindGoal; + stream << base.PathfindHistory; + stream << base.WalkingFrameNum; + stream << base.PeepFlags; +} + +void Guest::Serialise(DataSerialiser& stream) +{ + PeepBaseSerialise(*this, stream); + stream << GuestNumRides; + stream << GuestNextInQueue; + stream << ParkEntryTime; + stream << GuestHeadingToRideId; + stream << GuestIsLostCountdown; + stream << GuestTimeOnRide; + stream << PaidToEnter; + stream << PaidOnRides; + stream << PaidOnFood; + stream << PaidOnDrink; + stream << PaidOnSouvenirs; + stream << OutsideOfPark; + stream << Happiness; + stream << HappinessTarget; + stream << Nausea; + stream << NauseaTarget; + stream << Hunger; + stream << Thirst; + stream << Toilet; + stream << TimeToConsume; + stream << Intensity; + stream << NauseaTolerance; + stream << RideTypesBeenOn; + stream << TimeInQueue; + stream << RidesBeenOn; + stream << CashInPocket; + stream << CashSpent; + stream << Photo1RideRef; + stream << Photo2RideRef; + stream << Photo3RideRef; + stream << Photo4RideRef; + stream << RejoinQueueTimeout; + stream << PreviousRide; + stream << PreviousRideTimeOut; + stream << Thoughts; + stream << LitterCount; + stream << DisgustingCount; + stream << AmountOfFood; + stream << AmountOfDrinks; + stream << AmountOfSouvenirs; + stream << VandalismSeen; + stream << VoucherType; + stream << VoucherRideId; + stream << SurroundingsThoughtTimeout; + stream << Angriness; + stream << TimeLost; + stream << DaysInQueue; + stream << BalloonColour; + stream << UmbrellaColour; + stream << HatColour; + stream << FavouriteRide; + stream << FavouriteRideRating; + stream << ItemFlags; +} + +void Staff::Serialise(DataSerialiser& stream) +{ + PeepBaseSerialise(*this, stream); + stream << AssignedStaffType; + stream << MechanicTimeSinceCall; + stream << HireDate; + stream << StaffId; + stream << StaffOrders; + stream << StaffMowingTimeout; + stream << StaffLawnsMown; + stream << StaffGardensWatered; + stream << StaffLitterSwept; + stream << StaffBinsEmptied; +} + +void Vehicle::Serialise(DataSerialiser& stream) +{ + EntityBaseSerialise(*this, stream); + stream << SubType; + stream << Pitch; + stream << bank_rotation; + stream << remaining_distance; + stream << velocity; + stream << acceleration; + stream << ride; + stream << vehicle_type; + stream << colours; + stream << track_progress; + stream << TrackTypeAndDirection; + stream << TrackLocation; + stream << next_vehicle_on_train; + stream << prev_vehicle_on_ride; + stream << next_vehicle_on_ride; + stream << var_44; + stream << mass; + stream << update_flags; + stream << SwingSprite; + stream << current_station; + stream << SwingPosition; + stream << SwingSpeed; + stream << status; + stream << sub_state; + stream << peep; + stream << peep_tshirt_colours; + stream << num_seats; + stream << num_peeps; + stream << next_free_seat; + stream << restraints_position; + stream << spin_speed; + stream << sound2_flags; + stream << spin_sprite; + stream << sound1_id; + stream << sound1_volume; + stream << sound2_id; + stream << sound2_volume; + stream << sound_vector_factor; + stream << var_C0; + stream << speed; + stream << powered_acceleration; + stream << dodgems_collision_direction; + stream << animation_frame; + stream << var_C8; + stream << var_CA; + stream << scream_sound_id; + stream << TrackSubposition; + stream << var_CE; + stream << var_CF; + stream << lost_time_out; + stream << vertical_drop_countdown; + stream << var_D3; + stream << mini_golf_current_animation; + stream << mini_golf_flags; + stream << ride_subtype; + stream << colours_extended; + stream << seat_rotation; + stream << target_seat_rotation; + stream << BoatLocation; + stream << IsCrashedVehicle; +} diff --git a/src/openrct2/world/Entity.h b/src/openrct2/world/Entity.h index 2259d47bcd..e2e6fd7cd4 100644 --- a/src/openrct2/world/Entity.h +++ b/src/openrct2/world/Entity.h @@ -27,3 +27,17 @@ template T* TryGetEntity(size_t sprite_idx) auto spr = try_get_sprite(sprite_idx); return spr != nullptr ? spr->As() : nullptr; } + +SpriteBase* CreateEntity(EntityType type); +template T* CreateEntity() +{ + return static_cast(CreateEntity(T::cEntityType)); +} + +// Use only with imports that must happen at a specified index +SpriteBase* CreateEntityAt(const uint16_t index, const EntityType type); +// Use only with imports that must happen at a specified index +template T* CreateEntityAt(const uint16_t index) +{ + return static_cast(CreateEntityAt(index, T::cEntityType)); +} diff --git a/src/openrct2/world/EntityList.h b/src/openrct2/world/EntityList.h index 6f2d61ea7c..2c43d33c9f 100644 --- a/src/openrct2/world/EntityList.h +++ b/src/openrct2/world/EntityList.h @@ -20,78 +20,16 @@ enum class EntityListId : uint8_t { - Free, - TrainHead, - Peep, - Misc, - Litter, - Vehicle, - Count, + Count = 6, }; -const std::list& GetEntityList(const EntityListId id); +const std::list& GetEntityList(const EntityType id); -uint16_t GetEntityListCount(EntityListId list); +uint16_t GetEntityListCount(EntityType list); +uint16_t GetMiscEntityCount(); uint16_t GetNumFreeEntities(); -void RebuildEntityLists(); const std::vector& GetEntityTileList(const CoordsXY& spritePos); -template class EntityIterator -{ -private: - T* Entity = nullptr; - uint16_t NextEntityId = SPRITE_INDEX_NULL; - -public: - EntityIterator(const uint16_t _EntityId) - : NextEntityId(_EntityId) - { - ++(*this); - } - EntityIterator& operator++() - { - Entity = nullptr; - - while (NextEntityId != SPRITE_INDEX_NULL && Entity == nullptr) - { - auto baseEntity = GetEntity(NextEntityId); - if (!baseEntity) - { - NextEntityId = SPRITE_INDEX_NULL; - continue; - } - NextEntityId = baseEntity->*NextList; - Entity = baseEntity->template As(); - } - return *this; - } - - EntityIterator operator++(int) - { - EntityIterator retval = *this; - ++(*this); - return retval; - } - bool operator==(EntityIterator other) const - { - return Entity == other.Entity; - } - bool operator!=(EntityIterator other) const - { - return !(*this == other); - } - T* operator*() - { - return Entity; - } - // iterator traits - using difference_type = std::ptrdiff_t; - using value_type = T; - using pointer = const T*; - using reference = const T&; - using iterator_category = std::forward_iterator_tag; -}; - template class EntityTileIterator { private: @@ -222,8 +160,8 @@ private: const std::list& vec; public: - EntityList(EntityListId type) - : vec(GetEntityList(type)) + EntityList() + : vec(GetEntityList(T::cEntityType)) { } diff --git a/src/openrct2/world/EntityTweener.cpp b/src/openrct2/world/EntityTweener.cpp new file mode 100644 index 0000000000..aa77dd5a05 --- /dev/null +++ b/src/openrct2/world/EntityTweener.cpp @@ -0,0 +1,122 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ +#include "EntityTweener.h" + +#include "../peep/Peep.h" +#include "../ride/Vehicle.h" +#include "EntityList.h" +#include "Sprite.h" + +#include + +void EntityTweener::PopulateEntities() +{ + for (auto ent : EntityList()) + { + Entities.push_back(ent); + PrePos.emplace_back(ent->x, ent->y, ent->z); + } + for (auto ent : EntityList()) + { + Entities.push_back(ent); + PrePos.emplace_back(ent->x, ent->y, ent->z); + } + for (auto ent : EntityList()) + { + Entities.push_back(ent); + PrePos.emplace_back(ent->x, ent->y, ent->z); + } +} + +void EntityTweener::PreTick() +{ + Restore(); + Reset(); + PopulateEntities(); +} + +void EntityTweener::PostTick() +{ + for (auto* ent : Entities) + { + if (ent == nullptr) + { + // Sprite was removed, add a dummy position to keep the index aligned. + PostPos.emplace_back(0, 0, 0); + } + else + { + PostPos.emplace_back(ent->x, ent->y, ent->z); + } + } +} + +void EntityTweener::RemoveEntity(SpriteBase* entity) +{ + if (!entity->Is() && !entity->Is()) + { + // Only peeps and vehicles are tweened, bail if type is incorrect. + return; + } + + auto it = std::find(Entities.begin(), Entities.end(), entity); + if (it != Entities.end()) + *it = nullptr; +} + +void EntityTweener::Tween(float alpha) +{ + const float inv = (1.0f - alpha); + for (size_t i = 0; i < Entities.size(); ++i) + { + auto* ent = Entities[i]; + if (ent == nullptr) + continue; + + auto& posA = PrePos[i]; + auto& posB = PostPos[i]; + + if (posA == posB) + continue; + + sprite_set_coordinates( + { static_cast(std::round(posB.x * alpha + posA.x * inv)), + static_cast(std::round(posB.y * alpha + posA.y * inv)), + static_cast(std::round(posB.z * alpha + posA.z * inv)) }, + ent); + ent->Invalidate(); + } +} + +void EntityTweener::Restore() +{ + for (size_t i = 0; i < Entities.size(); ++i) + { + auto* ent = Entities[i]; + if (ent == nullptr) + continue; + + sprite_set_coordinates(PostPos[i], ent); + ent->Invalidate(); + } +} + +void EntityTweener::Reset() +{ + Entities.clear(); + PrePos.clear(); + PostPos.clear(); +} + +static EntityTweener tweener; + +EntityTweener& EntityTweener::Get() +{ + return tweener; +} diff --git a/src/openrct2/world/EntityTweener.h b/src/openrct2/world/EntityTweener.h new file mode 100644 index 0000000000..7e6dfaf843 --- /dev/null +++ b/src/openrct2/world/EntityTweener.h @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "SpriteBase.h" + +#include + +class EntityTweener +{ + std::vector Entities; + std::vector PrePos; + std::vector PostPos; + +private: + void PopulateEntities(); + +public: + static EntityTweener& Get(); + + void PreTick(); + void PostTick(); + void RemoveEntity(SpriteBase* entity); + void Tween(float alpha); + void Restore(); + void Reset(); +}; diff --git a/src/openrct2/world/Entrance.cpp b/src/openrct2/world/Entrance.cpp index b5fbc0b81f..73b3e17c08 100644 --- a/src/openrct2/world/Entrance.cpp +++ b/src/openrct2/world/Entrance.cpp @@ -24,7 +24,6 @@ #include "Map.h" #include "MapAnimation.h" #include "Park.h" -#include "Sprite.h" #include diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index 9c420a0c66..c165741480 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -40,22 +40,14 @@ void footpath_update_queue_entrance_banner(const CoordsXY& footpathPos, TileElement* tileElement); -uint8_t gFootpathProvisionalFlags; -CoordsXYZ gFootpathProvisionalPosition; -uint8_t gFootpathProvisionalType; -uint8_t gFootpathProvisionalSlope; -uint8_t gFootpathConstructionMode; +ProvisionalFootpath gProvisionalFootpath; uint16_t gFootpathSelectedId; -uint8_t gFootpathSelectedType; CoordsXYZ gFootpathConstructFromPosition; -uint8_t gFootpathConstructDirection; uint8_t gFootpathConstructSlope; -uint8_t gFootpathConstructValidDirections; -money32 gFootpathPrice; uint8_t gFootpathGroundFlags; -static uint8_t* _footpathQueueChainNext; -static uint8_t _footpathQueueChain[64]; +static ride_id_t* _footpathQueueChainNext; +static ride_id_t _footpathQueueChain[64]; // This is the coordinates that a user of the bin should move to // rct2: 0x00992A4C @@ -158,10 +150,10 @@ money32 footpath_provisional_set(int32_t type, const CoordsXYZ& footpathLoc, int cost = res->Error == GameActions::Status::Ok ? res->Cost : MONEY32_UNDEFINED; if (res->Error == GameActions::Status::Ok) { - gFootpathProvisionalType = type; - gFootpathProvisionalPosition = footpathLoc; - gFootpathProvisionalSlope = slope; - gFootpathProvisionalFlags |= PROVISIONAL_PATH_FLAG_1; + gProvisionalFootpath.Type = type; + gProvisionalFootpath.Position = footpathLoc; + gProvisionalFootpath.Slope = slope; + gProvisionalFootpath.Flags |= PROVISIONAL_PATH_FLAG_1; if (gFootpathGroundFlags & ELEMENT_IS_UNDERGROUND) { @@ -185,15 +177,15 @@ money32 footpath_provisional_set(int32_t type, const CoordsXYZ& footpathLoc, int } else if ( gFootpathConstructSlope == TILE_ELEMENT_SLOPE_FLAT - || gFootpathProvisionalPosition.z < gFootpathConstructFromPosition.z) + || gProvisionalFootpath.Position.z < gFootpathConstructFromPosition.z) { // Going either straight on, or down. - virtual_floor_set_height(gFootpathProvisionalPosition.z); + virtual_floor_set_height(gProvisionalFootpath.Position.z); } else { // Going up in the world! - virtual_floor_set_height(gFootpathProvisionalPosition.z + LAND_HEIGHT_STEP); + virtual_floor_set_height(gProvisionalFootpath.Position.z + LAND_HEIGHT_STEP); } } @@ -206,12 +198,12 @@ money32 footpath_provisional_set(int32_t type, const CoordsXYZ& footpathLoc, int */ void footpath_provisional_remove() { - if (gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_1) + if (gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_1) { - gFootpathProvisionalFlags &= ~PROVISIONAL_PATH_FLAG_1; + gProvisionalFootpath.Flags &= ~PROVISIONAL_PATH_FLAG_1; footpath_remove( - gFootpathProvisionalPosition, + gProvisionalFootpath.Position, GAME_COMMAND_FLAG_APPLY | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_NO_SPEND | GAME_COMMAND_FLAG_GHOST); } @@ -223,9 +215,9 @@ void footpath_provisional_remove() */ void footpath_provisional_update() { - if (gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_SHOW_ARROW) + if (gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_SHOW_ARROW) { - gFootpathProvisionalFlags &= ~PROVISIONAL_PATH_FLAG_SHOW_ARROW; + gProvisionalFootpath.Flags &= ~PROVISIONAL_PATH_FLAG_SHOW_ARROW; gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_ARROW; map_invalidate_tile_full(gFootpathConstructFromPosition); @@ -572,7 +564,7 @@ struct rct_neighbour { uint8_t order; uint8_t direction; - uint8_t ride_index; + ride_id_t ride_index; uint8_t entrance_index; }; @@ -809,7 +801,7 @@ static void loc_6A6F1F( } else { - neighbour_list_push(neighbourList, 2, direction, 255, 255); + neighbour_list_push(neighbourList, 2, direction, RIDE_ID_NULL, 255); } } else @@ -838,7 +830,7 @@ static void loc_6A6D7E( { if (query) { - neighbour_list_push(neighbourList, 7, direction, 255, 255); + neighbour_list_push(neighbourList, 7, direction, RIDE_ID_NULL, 255); } loc_6A6FD2(initialTileElementPos, direction, initialTileElement, query); } @@ -1199,7 +1191,7 @@ void footpath_queue_chain_push(ride_id_t rideIndex) { if (rideIndex != RIDE_ID_NULL) { - uint8_t* lastSlot = _footpathQueueChain + std::size(_footpathQueueChain) - 1; + auto* lastSlot = _footpathQueueChain + std::size(_footpathQueueChain) - 1; if (_footpathQueueChainNext <= lastSlot) { *_footpathQueueChainNext++ = rideIndex; @@ -1213,7 +1205,7 @@ void footpath_queue_chain_push(ride_id_t rideIndex) */ void footpath_update_queue_chains() { - for (uint8_t* queueChainPtr = _footpathQueueChain; queueChainPtr < _footpathQueueChainNext; queueChainPtr++) + for (auto* queueChainPtr = _footpathQueueChain; queueChainPtr < _footpathQueueChainNext; queueChainPtr++) { ride_id_t rideIndex = *queueChainPtr; auto ride = get_ride(rideIndex); @@ -1624,7 +1616,7 @@ ObjectEntryIndex PathElement::GetAdditionEntryIndex() const return GetAddition() - 1; } -rct_scenery_entry* PathElement::GetAdditionEntry() const +PathBitEntry* PathElement::GetAdditionEntry() const { if (!HasAddition()) return nullptr; @@ -1960,7 +1952,7 @@ void footpath_update_queue_entrance_banner(const CoordsXY& footpathPos, TileElem { if (tileElement->AsPath()->GetEdges() & (1 << direction)) { - footpath_chain_ride_queue(255, 0, footpathPos, tileElement, direction); + footpath_chain_ride_queue(RIDE_ID_NULL, 0, footpathPos, tileElement, direction); } } tileElement->AsPath()->SetRideIndex(RIDE_ID_NULL); @@ -1970,7 +1962,8 @@ void footpath_update_queue_entrance_banner(const CoordsXY& footpathPos, TileElem if (tileElement->AsEntrance()->GetEntranceType() == ENTRANCE_TYPE_RIDE_ENTRANCE) { footpath_queue_chain_push(tileElement->AsEntrance()->GetRideIndex()); - footpath_chain_ride_queue(255, 0, footpathPos, tileElement, direction_reverse(tileElement->GetDirection())); + footpath_chain_ride_queue( + RIDE_ID_NULL, 0, footpathPos, tileElement, direction_reverse(tileElement->GetDirection())); } break; } diff --git a/src/openrct2/world/Footpath.h b/src/openrct2/world/Footpath.h index 94435e0f6c..98318556fd 100644 --- a/src/openrct2/world/Footpath.h +++ b/src/openrct2/world/Footpath.h @@ -72,6 +72,14 @@ struct PathRailingsEntry uint8_t scrolling_mode; }; +struct ProvisionalFootpath +{ + ObjectEntryIndex Type; + CoordsXYZ Position; + uint8_t Slope; + uint8_t Flags; +}; + // Masks for values stored in TileElement.type enum { @@ -158,18 +166,10 @@ enum FOOTPATH_CONNECTED_MAP_EDGE_IGNORE_NO_ENTRY = (1 << 7) }; -extern uint8_t gFootpathProvisionalFlags; -extern CoordsXYZ gFootpathProvisionalPosition; -extern uint8_t gFootpathProvisionalType; -extern uint8_t gFootpathProvisionalSlope; -extern uint8_t gFootpathConstructionMode; +extern ProvisionalFootpath gProvisionalFootpath; extern uint16_t gFootpathSelectedId; -extern uint8_t gFootpathSelectedType; extern CoordsXYZ gFootpathConstructFromPosition; -extern uint8_t gFootpathConstructDirection; extern uint8_t gFootpathConstructSlope; -extern uint8_t gFootpathConstructValidDirections; -extern money32 gFootpathPrice; extern uint8_t gFootpathGroundFlags; // Given a direction, this will return how to increase/decrease the x and y coordinates. diff --git a/src/openrct2/world/Fountain.cpp b/src/openrct2/world/Fountain.cpp index 33fc38d85b..13cb54bb79 100644 --- a/src/openrct2/world/Fountain.cpp +++ b/src/openrct2/world/Fountain.cpp @@ -72,12 +72,10 @@ const uint8_t _fountainPatternFlags[] = { template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc - && (misc->SubType == MiscEntityType::JumpingFountainSnow || misc->SubType == MiscEntityType::JumpingFountainWater); + return Type == EntityType::JumpingFountain; } -void JumpingFountain::StartAnimation(const int32_t newType, const CoordsXY& newLoc, const TileElement* tileElement) +void JumpingFountain::StartAnimation(const JumpingFountainType newType, const CoordsXY& newLoc, const TileElement* tileElement) { int32_t randomIndex; auto newZ = tileElement->GetBaseZ(); @@ -127,9 +125,10 @@ void JumpingFountain::StartAnimation(const int32_t newType, const CoordsXY& newL } void JumpingFountain::Create( - const int32_t newType, const CoordsXYZ& newLoc, const int32_t direction, const int32_t newFlags, const int32_t iteration) + const JumpingFountainType newType, const CoordsXYZ& newLoc, const int32_t direction, const int32_t newFlags, + const int32_t iteration) { - auto* jumpingFountain = reinterpret_cast(create_sprite(SpriteIdentifier::Misc)); + auto* jumpingFountain = CreateEntity(); if (jumpingFountain != nullptr) { jumpingFountain->Iteration = iteration; @@ -138,10 +137,8 @@ void JumpingFountain::Create( jumpingFountain->sprite_width = 33; jumpingFountain->sprite_height_negative = 36; jumpingFountain->sprite_height_positive = 12; - jumpingFountain->sprite_identifier = SpriteIdentifier::Misc; jumpingFountain->MoveTo(newLoc); - jumpingFountain->SubType = newType == JUMPING_FOUNTAIN_TYPE_SNOW ? MiscEntityType::JumpingFountainSnow - : MiscEntityType::JumpingFountainWater; + jumpingFountain->FountainType = newType; jumpingFountain->NumTicksAlive = 0; jumpingFountain->frame = 0; } @@ -162,9 +159,9 @@ void JumpingFountain::Update() Invalidate(); frame++; - switch (SubType) + switch (FountainType) { - case MiscEntityType::JumpingFountainWater: + case JumpingFountainType::Water: if (frame == 11 && (FountainFlags & FOUNTAIN_FLAG::FAST)) { AdvanceAnimation(); @@ -174,7 +171,7 @@ void JumpingFountain::Update() AdvanceAnimation(); } break; - case MiscEntityType::JumpingFountainSnow: + case JumpingFountainType::Snow: if (frame == 16) { AdvanceAnimation(); @@ -190,16 +187,14 @@ void JumpingFountain::Update() } } -int32_t JumpingFountain::GetType() const +JumpingFountainType JumpingFountain::GetType() const { - const int32_t fountainType = SubType == MiscEntityType::JumpingFountainSnow ? JUMPING_FOUNTAIN_TYPE_SNOW - : JUMPING_FOUNTAIN_TYPE_WATER; - return fountainType; + return FountainType; } void JumpingFountain::AdvanceAnimation() { - const int32_t newType = GetType(); + const JumpingFountainType newType = GetType(); const int32_t direction = (sprite_direction >> 3) & 7; const CoordsXY newLoc = CoordsXY{ x, y } + CoordsDirectionDelta[direction]; @@ -243,10 +238,10 @@ void JumpingFountain::AdvanceAnimation() Random({ newLoc, z }, availableDirections); } -bool JumpingFountain::IsJumpingFountain(const int32_t newType, const CoordsXYZ& newLoc) +bool JumpingFountain::IsJumpingFountain(const JumpingFountainType newType, const CoordsXYZ& newLoc) { - const int32_t pathBitFlagMask = newType == JUMPING_FOUNTAIN_TYPE_SNOW ? PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW - : PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER; + const int32_t pathBitFlagMask = newType == JumpingFountainType::Snow ? PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW + : PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER; TileElement* tileElement = map_get_first_element_at(newLoc); if (tileElement == nullptr) @@ -262,9 +257,8 @@ bool JumpingFountain::IsJumpingFountain(const int32_t newType, const CoordsXYZ& if (!tileElement->AsPath()->HasAddition()) continue; - const auto additionIndex = tileElement->AsPath()->GetAdditionEntryIndex(); - rct_scenery_entry* sceneryEntry = get_footpath_item_entry(additionIndex); - if (sceneryEntry != nullptr && sceneryEntry->path_bit.flags & pathBitFlagMask) + auto* pathBitEntry = tileElement->AsPath()->GetAdditionEntry(); + if (pathBitEntry != nullptr && pathBitEntry->flags & pathBitFlagMask) { return true; } @@ -335,7 +329,7 @@ void JumpingFountain::Split(const CoordsXYZ& newLoc, int32_t availableDirections { if (Iteration < 3) { - const int32_t newType = GetType(); + const auto newType = GetType(); int32_t direction = ((sprite_direction >> 3) ^ 2) << 1; availableDirections &= ~(1 << direction); availableDirections &= ~(1 << (direction + 1)); @@ -373,7 +367,7 @@ void JumpingFountain::Random(const CoordsXYZ& newLoc, int32_t availableDirection void JumpingFountain::CreateNext(const CoordsXYZ& newLoc, int32_t direction) const { - const int32_t newType = GetType(); + const auto newType = GetType(); int32_t newFlags = FountainFlags & ~FOUNTAIN_FLAG::DIRECTION; if (direction & 1) { diff --git a/src/openrct2/world/Fountain.h b/src/openrct2/world/Fountain.h index 790e42898f..068c9a0dcc 100644 --- a/src/openrct2/world/Fountain.h +++ b/src/openrct2/world/Fountain.h @@ -13,33 +13,39 @@ #include "Map.h" #include "SpriteBase.h" +class DataSerialiser; + +enum class JumpingFountainType : uint8_t +{ + Water, + Snow +}; + struct JumpingFountain : MiscEntity { + static constexpr auto cEntityType = EntityType::JumpingFountain; + + JumpingFountainType FountainType; uint8_t NumTicksAlive; uint8_t FountainFlags; int16_t TargetX; int16_t TargetY; uint16_t Iteration; - void Update(); - static void StartAnimation(int32_t newType, const CoordsXY& newLoc, const TileElement* tileElement); + static void StartAnimation(JumpingFountainType newType, const CoordsXY& newLoc, const TileElement* tileElement); + void Serialise(DataSerialiser& stream); private: - int32_t GetType() const; + JumpingFountainType GetType() const; void AdvanceAnimation(); void GoToEdge(const CoordsXYZ& newLoc, int32_t availableDirections) const; void Bounce(const CoordsXYZ& newLoc, int32_t availableDirections); void Split(const CoordsXYZ& newLoc, int32_t availableDirections) const; void Random(const CoordsXYZ& newLoc, int32_t availableDirections) const; void CreateNext(const CoordsXYZ& newLoc, int32_t direction) const; - static void Create(int32_t newType, const CoordsXYZ& newLoc, int32_t direction, int32_t newFlags, int32_t iteration); - static bool IsJumpingFountain(int32_t newType, const CoordsXYZ& newLoc); -}; - -enum -{ - JUMPING_FOUNTAIN_TYPE_WATER, - JUMPING_FOUNTAIN_TYPE_SNOW + static void Create( + JumpingFountainType newType, const CoordsXYZ& newLoc, int32_t direction, int32_t newFlags, int32_t iteration); + static bool IsJumpingFountain(JumpingFountainType newType, const CoordsXYZ& newLoc); }; namespace FOUNTAIN_FLAG diff --git a/src/openrct2/world/LargeScenery.cpp b/src/openrct2/world/LargeScenery.cpp index 8435f129ad..6103d5b648 100644 --- a/src/openrct2/world/LargeScenery.cpp +++ b/src/openrct2/world/LargeScenery.cpp @@ -75,7 +75,7 @@ ObjectEntryIndex LargeSceneryElement::GetEntryIndex() const return EntryIndex; } -rct_scenery_entry* LargeSceneryElement::GetEntry() const +LargeSceneryEntry* LargeSceneryElement::GetEntry() const { return get_large_scenery_entry(GetEntryIndex()); } @@ -100,14 +100,14 @@ void LargeSceneryElement::SetSequenceIndex(uint8_t sequence) SequenceIndex = sequence; } -rct_scenery_entry* get_large_scenery_entry(ObjectEntryIndex entryIndex) +LargeSceneryEntry* get_large_scenery_entry(ObjectEntryIndex entryIndex) { - rct_scenery_entry* result = nullptr; + LargeSceneryEntry* result = nullptr; auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); auto obj = objMgr.GetLoadedObject(ObjectType::LargeScenery, entryIndex); if (obj != nullptr) { - result = static_cast(obj->GetLegacyData()); + result = static_cast(obj->GetLegacyData()); } return result; } diff --git a/src/openrct2/world/LargeScenery.h b/src/openrct2/world/LargeScenery.h index 93827815c5..f433715a57 100644 --- a/src/openrct2/world/LargeScenery.h +++ b/src/openrct2/world/LargeScenery.h @@ -13,7 +13,7 @@ #include "Map.h" #include "TileElement.h" -rct_scenery_entry* get_large_scenery_entry(ObjectEntryIndex entryIndex); +LargeSceneryEntry* get_large_scenery_entry(ObjectEntryIndex entryIndex); enum { diff --git a/src/openrct2/world/Litter.cpp b/src/openrct2/world/Litter.cpp new file mode 100644 index 0000000000..f2fa1d8108 --- /dev/null +++ b/src/openrct2/world/Litter.cpp @@ -0,0 +1,127 @@ +#include "Litter.h" + +#include "../Cheats.h" +#include "../localisation/StringIds.h" +#include "../scenario/Scenario.h" +#include "EntityList.h" +#include "Map.h" +#include "Sprite.h" + +static bool isLocationLitterable(const CoordsXYZ& mapPos) +{ + TileElement* tileElement; + + if (!map_is_location_owned(mapPos)) + return false; + + tileElement = map_get_first_element_at(mapPos); + if (tileElement == nullptr) + return false; + do + { + if (tileElement->GetType() != TILE_ELEMENT_TYPE_PATH) + continue; + + int32_t pathZ = tileElement->GetBaseZ(); + if (pathZ < mapPos.z || pathZ >= mapPos.z + PATH_CLEARANCE) + continue; + + return !tile_element_is_underground(tileElement); + } while (!(tileElement++)->IsLastForTile()); + return false; +} + +/** + * + * rct2: 0x0067375D + */ +void Litter::Create(const CoordsXYZD& litterPos, Type type) +{ + if (gCheatsDisableLittering) + return; + + auto offsetLitterPos = litterPos + + CoordsXY{ CoordsDirectionDelta[litterPos.direction >> 3].x / 8, + CoordsDirectionDelta[litterPos.direction >> 3].y / 8 }; + + if (!isLocationLitterable(offsetLitterPos)) + return; + + if (GetEntityListCount(EntityType::Litter) >= 500) + { + Litter* newestLitter = nullptr; + uint32_t newestLitterCreationTick = 0; + for (auto litter : EntityList()) + { + if (newestLitterCreationTick <= litter->creationTick) + { + newestLitterCreationTick = litter->creationTick; + newestLitter = litter; + } + } + + if (newestLitter != nullptr) + { + newestLitter->Invalidate(); + sprite_remove(newestLitter); + } + } + + Litter* litter = CreateEntity(); + if (litter == nullptr) + return; + + litter->sprite_direction = offsetLitterPos.direction; + litter->sprite_width = 6; + litter->sprite_height_negative = 6; + litter->sprite_height_positive = 3; + litter->SubType = type; + litter->MoveTo(offsetLitterPos); + litter->creationTick = gScenarioTicks; +} + +/** + * + * rct2: 0x006738E1 + */ +void Litter::RemoveAt(const CoordsXYZ& litterPos) +{ + std::vector removals; + for (auto litter : EntityTileList(litterPos)) + { + if (abs(litter->z - litterPos.z) <= 16) + { + if (abs(litter->x - litterPos.x) <= 8 && abs(litter->y - litterPos.y) <= 8) + { + removals.push_back(litter); + } + } + } + for (auto* litter : removals) + { + litter->Invalidate(); + sprite_remove(litter); + } +} + +static const rct_string_id litterNames[12] = { + STR_LITTER_VOMIT, + STR_LITTER_VOMIT, + STR_SHOP_ITEM_SINGULAR_EMPTY_CAN, + STR_SHOP_ITEM_SINGULAR_RUBBISH, + STR_SHOP_ITEM_SINGULAR_EMPTY_BURGER_BOX, + STR_SHOP_ITEM_SINGULAR_EMPTY_CUP, + STR_SHOP_ITEM_SINGULAR_EMPTY_BOX, + STR_SHOP_ITEM_SINGULAR_EMPTY_BOTTLE, + STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_RED, + STR_SHOP_ITEM_SINGULAR_EMPTY_DRINK_CARTON, + STR_SHOP_ITEM_SINGULAR_EMPTY_JUICE_CUP, + STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_BLUE, +}; + +rct_string_id Litter::GetName() const +{ + if (EnumValue(SubType) >= sizeof(litterNames)) + return STR_NONE; + return litterNames[EnumValue(SubType)]; +} diff --git a/src/openrct2/world/Litter.h b/src/openrct2/world/Litter.h new file mode 100644 index 0000000000..b1cfe0a62f --- /dev/null +++ b/src/openrct2/world/Litter.h @@ -0,0 +1,43 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "SpriteBase.h" + +class DataSerialiser; +struct CoordsXYZ; +struct CoordsXYZD; + +struct Litter : SpriteBase +{ + enum class Type : uint8_t + { + Vomit, + VomitAlt, + EmptyCan, + Rubbish, + BurgerBox, + EmptyCup, + EmptyBox, + EmptyBottle, + EmptyBowlRed, + EmptyDrinkCarton, + EmptyJuiceCup, + EmptyBowlBlue, + }; + + static constexpr auto cEntityType = EntityType::Litter; + Type SubType; + uint32_t creationTick; + static void Create(const CoordsXYZD& litterPos, Type type); + static void RemoveAt(const CoordsXYZ& litterPos); + void Serialise(DataSerialiser& stream); + rct_string_id GetName() const; +}; diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index fae9ba192a..7fd725fffa 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -22,21 +22,6 @@ constexpr const int32_t COORDS_Z_PER_TINY_Z = 16; constexpr const auto NumOrthogonalDirections = 4; -#pragma pack(push, 1) - -struct LocationXY16 -{ - int16_t x, y; -}; -assert_struct_size(LocationXY16, 4); - -struct LocationXYZ16 -{ - int16_t x, y, z; -}; -assert_struct_size(LocationXYZ16, 6); -#pragma pack(pop) - constexpr int32_t COORDS_NULL = 0xFFFF8000; struct ScreenCoordsXY diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index 9b1be4a87f..618ec14d36 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -81,6 +81,8 @@ const std::array CoordsDirectionDelta = { const TileCoordsXY TileDirectionDelta[] = { { -1, 0 }, { 0, +1 }, { +1, 0 }, { 0, -1 }, { -1, +1 }, { +1, +1 }, { +1, -1 }, { -1, -1 } }; +constexpr size_t MIN_TILE_ELEMENTS = 1024; + uint16_t gMapSelectFlags; uint16_t gMapSelectType; CoordsXY gMapSelectPositionA; @@ -88,10 +90,7 @@ CoordsXY gMapSelectPositionB; CoordsXYZ gMapSelectArrowPosition; uint8_t gMapSelectArrowDirection; -uint8_t gMapGroundFlags; - -uint16_t gWidePathTileLoopX; -uint16_t gWidePathTileLoopY; +TileCoordsXY gWidePathTileLoopPosition; uint16_t gGrassSceneryTileLoopPosition; int16_t gMapSizeUnits; @@ -100,14 +99,9 @@ int16_t gMapSize; int16_t gMapSizeMaxXY; int16_t gMapBaseZ; -TileElement gTileElements[MAX_TILE_ELEMENTS_WITH_SPARE_ROOM]; -TileElement* gTileElementTilePointers[MAX_TILE_TILE_ELEMENT_POINTERS]; std::vector gMapSelectionTiles; std::vector gPeepSpawns; -TileElement* gNextFreeTileElement; -uint32_t gNextFreeTileElementPointerIndex; - bool gLandMountainMode; bool gLandPaintMode; bool gClearSmallScenery; @@ -119,6 +113,139 @@ uint16_t gLandRemainingConstructionSales; bool gMapLandRightsUpdateSuccess; +static TilePointerIndex _tileIndex; +static std::vector _tileElements; +static TilePointerIndex _tileIndexStash; +static std::vector _tileElementsStash; +static size_t _tileElementsInUse; +static size_t _tileElementsInUseStash; +static int32_t _mapSizeUnitsStash; +static int32_t _mapSizeMinus2Stash; +static int32_t _mapSizeStash; +static int32_t _currentRotationStash; + +void StashMap() +{ + _tileIndexStash = std::move(_tileIndex); + _tileElementsStash = std::move(_tileElements); + _mapSizeUnitsStash = gMapSizeUnits; + _mapSizeMinus2Stash = gMapSizeMinus2; + _mapSizeStash = gMapSize; + _currentRotationStash = gCurrentRotation; + _tileElementsInUseStash = _tileElementsInUse; +} + +void UnstashMap() +{ + _tileIndex = std::move(_tileIndexStash); + _tileElements = std::move(_tileElementsStash); + gMapSizeUnits = _mapSizeUnitsStash; + gMapSizeMinus2 = _mapSizeMinus2Stash; + gMapSize = _mapSizeStash; + gCurrentRotation = _currentRotationStash; + _tileElementsInUse = _tileElementsInUseStash; +} + +const std::vector& GetTileElements() +{ + return _tileElements; +} + +void SetTileElements(std::vector&& tileElements) +{ + _tileElements = std::move(tileElements); + _tileIndex = TilePointerIndex(MAXIMUM_MAP_SIZE_TECHNICAL, _tileElements.data()); + _tileElementsInUse = _tileElements.size(); +} + +static void ReorganiseTileElements(size_t capacity) +{ + context_setcurrentcursor(CursorID::ZZZ); + + std::vector newElements; + newElements.reserve(std::max(MIN_TILE_ELEMENTS, capacity)); + for (int32_t y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) + { + for (int32_t x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) + { + const auto* element = map_get_first_element_at(TileCoordsXY{ x, y }.ToCoordsXY()); + if (element == nullptr) + { + auto& newElement = newElements.emplace_back(); + newElement.ClearAs(TILE_ELEMENT_TYPE_SURFACE); + newElement.SetLastForTile(true); + newElement.base_height = 14; + newElement.clearance_height = 14; + newElement.AsSurface()->SetWaterHeight(0); + newElement.AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT); + newElement.AsSurface()->SetGrassLength(GRASS_LENGTH_CLEAR_0); + newElement.AsSurface()->SetOwnership(OWNERSHIP_UNOWNED); + newElement.AsSurface()->SetParkFences(0); + newElement.AsSurface()->SetSurfaceStyle(0); + newElement.AsSurface()->SetEdgeStyle(0); + } + else + { + do + { + newElements.push_back(*element); + } while (!(element++)->IsLastForTile()); + } + } + } + + SetTileElements(std::move(newElements)); +} + +void ReorganiseTileElements() +{ + ReorganiseTileElements(_tileElements.size()); +} + +static bool map_check_free_elements_and_reorganise(size_t numElementsOnTile, size_t numNewElements) +{ + // Check hard cap on num in use tiles (this would be the size of _tileElements immediately after a reorg) + if (_tileElementsInUse + numNewElements > MAX_TILE_ELEMENTS) + { + gGameCommandErrorText = STR_ERR_LANDSCAPE_DATA_AREA_FULL; + return false; + } + + auto totalElementsRequired = numElementsOnTile + numNewElements; + auto freeElements = _tileElements.capacity() - _tileElements.size(); + if (freeElements >= totalElementsRequired) + { + return true; + } + else + { + // if space issue is due to fragmentation then Reorg Tiles without increasing capacity + if (_tileElements.size() > totalElementsRequired + _tileElementsInUse) + { + ReorganiseTileElements(); + // This check is not expected to fail + freeElements = _tileElements.capacity() - _tileElements.size(); + if (freeElements >= totalElementsRequired) + { + return true; + } + } + + // Capacity must increase to handle the space (Note capacity can go above MAX_TILE_ELEMENTS) + auto newCapacity = _tileElements.capacity() * 2; + ReorganiseTileElements(newCapacity); + return true; + } +} + +static size_t CountElementsOnTile(const CoordsXY& loc); + +bool MapCheckCapacityAndReorganise(const CoordsXY& loc, size_t numElements) +{ + auto numElementsOnTile = CountElementsOnTile(loc); + return map_check_free_elements_and_reorganise(numElementsOnTile, numElements); +} + static void clear_elements_at(const CoordsXY& loc); static ScreenCoordsXY translate_3d_to_2d(int32_t rotation, const CoordsXY& pos); @@ -174,7 +301,7 @@ TileElement* map_get_first_element_at(const CoordsXY& elementPos) return nullptr; } auto tileElementPos = TileCoordsXY{ elementPos }; - return gTileElementTilePointers[tileElementPos.x + tileElementPos.y * MAXIMUM_MAP_SIZE_TECHNICAL]; + return _tileIndex.GetFirstElementAt(tileElementPos); } TileElement* map_get_nth_element_at(const CoordsXY& coords, int32_t n) @@ -211,7 +338,7 @@ void map_set_tile_element(const TileCoordsXY& tilePos, TileElement* elements) log_error("Trying to access element outside of range"); return; } - gTileElementTilePointers[tilePos.x + tilePos.y * MAXIMUM_MAP_SIZE_TECHNICAL] = elements; + _tileIndex.SetTile(tilePos, elements); } SurfaceElement* map_get_surface_element_at(const CoordsXY& coords) @@ -254,33 +381,34 @@ BannerElement* map_get_banner_element_at(const CoordsXYZ& bannerPos, uint8_t pos */ void map_init(int32_t size) { - gNextFreeTileElementPointerIndex = 0; + auto numTiles = MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL; - for (int32_t i = 0; i < MAX_TILE_TILE_ELEMENT_POINTERS; i++) + std::vector tileElements; + tileElements.resize(numTiles); + for (int32_t i = 0; i < numTiles; i++) { - TileElement* tile_element = &gTileElements[i]; - tile_element->ClearAs(TILE_ELEMENT_TYPE_SURFACE); - tile_element->SetLastForTile(true); - tile_element->base_height = 14; - tile_element->clearance_height = 14; - tile_element->AsSurface()->SetWaterHeight(0); - tile_element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT); - tile_element->AsSurface()->SetGrassLength(GRASS_LENGTH_CLEAR_0); - tile_element->AsSurface()->SetOwnership(OWNERSHIP_UNOWNED); - tile_element->AsSurface()->SetParkFences(0); - tile_element->AsSurface()->SetSurfaceStyle(TERRAIN_GRASS); - tile_element->AsSurface()->SetEdgeStyle(TERRAIN_EDGE_ROCK); + auto* element = &tileElements[i]; + element->ClearAs(TILE_ELEMENT_TYPE_SURFACE); + element->SetLastForTile(true); + element->base_height = 14; + element->clearance_height = 14; + element->AsSurface()->SetWaterHeight(0); + element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT); + element->AsSurface()->SetGrassLength(GRASS_LENGTH_CLEAR_0); + element->AsSurface()->SetOwnership(OWNERSHIP_UNOWNED); + element->AsSurface()->SetParkFences(0); + element->AsSurface()->SetSurfaceStyle(0); + element->AsSurface()->SetEdgeStyle(0); } + SetTileElements(std::move(tileElements)); gGrassSceneryTileLoopPosition = 0; - gWidePathTileLoopX = 0; - gWidePathTileLoopY = 0; + gWidePathTileLoopPosition = {}; gMapSizeUnits = size * 32 - 32; gMapSizeMinus2 = size * 32 - 2; gMapSize = size; gMapSizeMaxXY = size * 32 - 33; gMapBaseZ = 7; - map_update_tile_pointers(); map_remove_out_of_range_elements(); AutoCreateMapAnimations(); @@ -340,40 +468,12 @@ void map_count_remaining_land_rights() */ void map_strip_ghost_flag_from_elements() { - for (auto& element : gTileElements) + for (auto& element : _tileElements) { element.SetGhost(false); } } -/** - * - * rct2: 0x0068AFFD - */ -void map_update_tile_pointers() -{ - int32_t i, x, y; - - for (i = 0; i < MAX_TILE_TILE_ELEMENT_POINTERS; i++) - { - gTileElementTilePointers[i] = TILE_UNDEFINED_TILE_ELEMENT; - } - - TileElement* tileElement = gTileElements; - TileElement** tile = gTileElementTilePointers; - for (y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) - { - for (x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) - { - *tile++ = tileElement; - while (!(tileElement++)->IsLastForTile()) - ; - } - } - - gNextFreeTileElement = tileElement; -} - /** * Return the absolute height of an element, given its (x,y) coordinates * @@ -599,8 +699,8 @@ void map_update_path_wide_flags() // Presumably update_path_wide_flags is too computationally expensive to call for every // tile every update, so gWidePathTileLoopX and gWidePathTileLoopY store the x and y // progress. A maximum of 128 calls is done per update. - uint16_t x = gWidePathTileLoopX; - uint16_t y = gWidePathTileLoopY; + auto x = gWidePathTileLoopPosition.x; + auto y = gWidePathTileLoopPosition.y; for (int32_t i = 0; i < 128; i++) { footpath_update_path_wide_flags({ x, y }); @@ -617,8 +717,8 @@ void map_update_path_wide_flags() } } } - gWidePathTileLoopX = x; - gWidePathTileLoopY = y; + gWidePathTileLoopPosition.x = x; + gWidePathTileLoopPosition.y = y; } /** @@ -926,10 +1026,10 @@ void tile_element_remove(TileElement* tileElement) // Mark the latest element with the last element flag. (tileElement - 1)->SetLastForTile(true); tileElement->base_height = MAX_ELEMENT_HEIGHT; - - if ((tileElement + 1) == gNextFreeTileElement) + _tileElementsInUse--; + if (tileElement == &_tileElements.back()) { - gNextFreeTileElement--; + _tileElements.pop_back(); } } @@ -1031,77 +1131,29 @@ void map_invalidate_selection_rect() viewports_invalidate(left, top, right, bottom); } -/** - * - * rct2: 0x0068B111 - */ -void map_reorganise_elements() +static size_t CountElementsOnTile(const CoordsXY& loc) { - context_setcurrentcursor(CursorID::ZZZ); - - auto newTileElements = std::make_unique(MAX_TILE_ELEMENTS_WITH_SPARE_ROOM); - TileElement* newElementsPtr = newTileElements.get(); - - if (newTileElements == nullptr) + size_t count = 0; + auto* element = _tileIndex.GetFirstElementAt(TileCoordsXY(loc)); + do { - log_fatal("Unable to allocate memory for map elements."); - return; - } - - for (int32_t y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) - { - for (int32_t x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) - { - TileElement* startElement = map_get_first_element_at(TileCoordsXY{ x, y }.ToCoordsXY()); - if (startElement == nullptr) - continue; - TileElement* endElement = startElement; - while (!(endElement++)->IsLastForTile()) - ; - - const auto numElements = static_cast(endElement - startElement); - std::memcpy(newElementsPtr, startElement, numElements * sizeof(TileElement)); - newElementsPtr += numElements; - } - } - - const auto numElements = static_cast(newElementsPtr - newTileElements.get()); - std::memcpy(gTileElements, newTileElements.get(), numElements * sizeof(TileElement)); - std::memset(gTileElements + numElements, 0, (MAX_TILE_ELEMENTS_WITH_SPARE_ROOM - numElements) * sizeof(TileElement)); - - map_update_tile_pointers(); + count++; + } while (!(element++)->IsLastForTile()); + return count; } -/** - * - * rct2: 0x0068B044 - * Returns true on space available for more elements - * Reorganises the map elements to check for space - */ -bool map_check_free_elements_and_reorganise(int32_t numElements) +static TileElement* AllocateTileElements(size_t numElementsOnTile, size_t numNewElements) { - if (numElements != 0) + if (!map_check_free_elements_and_reorganise(numElementsOnTile, numNewElements)) { - auto tileElementEnd = &gTileElements[MAX_TILE_ELEMENTS]; - - // Check if is there is room for the required number of elements - auto newTileElementEnd = gNextFreeTileElement + numElements; - if (newTileElementEnd > tileElementEnd) - { - // Defragment the map element list - map_reorganise_elements(); - - // Check if there is any room again - newTileElementEnd = gNextFreeTileElement + numElements; - if (newTileElementEnd > tileElementEnd) - { - // Not enough spare elements left :'( - gGameCommandErrorText = STR_ERR_LANDSCAPE_DATA_AREA_FULL; - return false; - } - } + log_error("Cannot insert new element"); + return nullptr; } - return true; + + auto oldSize = _tileElements.size(); + _tileElements.resize(_tileElements.size() + numElementsOnTile + numNewElements); + _tileElementsInUse += numNewElements; + return &_tileElements[oldSize]; } /** @@ -1111,21 +1163,19 @@ bool map_check_free_elements_and_reorganise(int32_t numElements) TileElement* tile_element_insert(const CoordsXYZ& loc, int32_t occupiedQuadrants, TileElementType type) { const auto& tileLoc = TileCoordsXYZ(loc); - TileElement *originalTileElement, *newTileElement, *insertedElement; - bool isLastForTile = false; - if (!map_check_free_elements_and_reorganise(1)) + auto numElementsOnTileOld = CountElementsOnTile(loc); + auto* newTileElement = AllocateTileElements(numElementsOnTileOld, 1); + auto* originalTileElement = _tileIndex.GetFirstElementAt(tileLoc); + if (newTileElement == nullptr) { - log_error("Cannot insert new element"); return nullptr; } - newTileElement = gNextFreeTileElement; - originalTileElement = gTileElementTilePointers[tileLoc.y * MAXIMUM_MAP_SIZE_TECHNICAL + tileLoc.x]; - // Set tile index pointer to point to new element block - gTileElementTilePointers[tileLoc.y * MAXIMUM_MAP_SIZE_TECHNICAL + tileLoc.x] = newTileElement; + _tileIndex.SetTile(tileLoc, newTileElement); + bool isLastForTile = false; if (originalTileElement == nullptr) { isLastForTile = true; @@ -1152,7 +1202,7 @@ TileElement* tile_element_insert(const CoordsXYZ& loc, int32_t occupiedQuadrants } // Insert new map element - insertedElement = newTileElement; + auto* insertedElement = newTileElement; newTileElement->type = 0; newTileElement->SetType(static_cast(type)); newTileElement->SetBaseZ(loc.z); @@ -1178,7 +1228,6 @@ TileElement* tile_element_insert(const CoordsXYZ& loc, int32_t occupiedQuadrants } while (!((newTileElement - 1)->IsLastForTile())); } - gNextFreeTileElement = newTileElement; return insertedElement; } @@ -1189,7 +1238,6 @@ TileElement* tile_element_insert(const CoordsXYZ& loc, int32_t occupiedQuadrants void map_obstruction_set_error_text(TileElement* tileElement, GameActions::Result& res) { Ride* ride; - rct_scenery_entry* sceneryEntry; res.ErrorMessage = STR_OBJECT_IN_THE_WAY; switch (tileElement->GetType()) @@ -1212,7 +1260,7 @@ void map_obstruction_set_error_text(TileElement* tileElement, GameActions::Resul break; case TILE_ELEMENT_TYPE_SMALL_SCENERY: { - sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); res.ErrorMessage = STR_X_IN_THE_WAY; auto ft = Formatter(res.ErrorMessageArgs.data()); rct_string_id stringId = sceneryEntry != nullptr ? sceneryEntry->name : static_cast(STR_EMPTY); @@ -1235,16 +1283,16 @@ void map_obstruction_set_error_text(TileElement* tileElement, GameActions::Resul break; case TILE_ELEMENT_TYPE_WALL: { - sceneryEntry = tileElement->AsWall()->GetEntry(); + auto* wallEntry = tileElement->AsWall()->GetEntry(); res.ErrorMessage = STR_X_IN_THE_WAY; auto ft = Formatter(res.ErrorMessageArgs.data()); - rct_string_id stringId = sceneryEntry != nullptr ? sceneryEntry->name : static_cast(STR_EMPTY); + rct_string_id stringId = wallEntry != nullptr ? wallEntry->name : static_cast(STR_EMPTY); ft.Add(stringId); break; } case TILE_ELEMENT_TYPE_LARGE_SCENERY: { - sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); res.ErrorMessage = STR_X_IN_THE_WAY; auto ft = Formatter(res.ErrorMessageArgs.data()); rct_string_id stringId = sceneryEntry != nullptr ? sceneryEntry->name : static_cast(STR_EMPTY); @@ -1265,7 +1313,7 @@ void map_obstruction_set_error_text(TileElement* tileElement, GameActions::Resul * bl = bl */ std::unique_ptr MapCanConstructWithClearAt( - const CoordsXYRangedZ& pos, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags, uint8_t crossingMode) + const CoordsXYRangedZ& pos, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags, uint8_t crossingMode, bool isTree) { int32_t northZ, eastZ, baseHeight, southZ, westZ, water_height; northZ = eastZ = baseHeight = southZ = westZ = water_height = 0; @@ -1274,7 +1322,7 @@ std::unique_ptr MapCanConstructWithClearAt( res->GroundFlags = ELEMENT_IS_ABOVE_GROUND; bool canBuildCrossing = false; - if (pos.x >= gMapSizeUnits || pos.y >= gMapSizeUnits || pos.x < 32 || pos.y < 32) + if (map_is_edge(pos)) { res->Error = GameActions::Status::InvalidParameters; res->ErrorMessage = STR_OFF_EDGE_OF_MAP; @@ -1317,7 +1365,7 @@ std::unique_ptr MapCanConstructWithClearAt( } } loc_68B9B7: - if (gParkFlags & PARK_FLAGS_FORBID_HIGH_CONSTRUCTION) + if (gParkFlags & PARK_FLAGS_FORBID_HIGH_CONSTRUCTION && !isTree) { auto heightFromGround = pos.clearanceZ - tileElement->GetBaseZ(); @@ -1442,37 +1490,9 @@ std::unique_ptr MapCanConstructWithClearAt( return res; } -bool map_can_construct_with_clear_at( - const CoordsXYRangedZ& pos, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags, money32* price, - uint8_t crossingMode) -{ - auto res = MapCanConstructWithClearAt(pos, clearFunc, quarterTile, flags, crossingMode); - if (auto message = res->ErrorMessage.AsStringId()) - gGameCommandErrorText = *message; - else - gGameCommandErrorText = STR_NONE; - std::copy(res->ErrorMessageArgs.begin(), res->ErrorMessageArgs.end(), gCommonFormatArgs); - if (price != nullptr) - { - *price += res->Cost; - } - - gMapGroundFlags = res->GroundFlags; - return res->Error == GameActions::Status::Ok; -} - -/** - * - * rct2: 0x0068B93A - */ -int32_t map_can_construct_at(const CoordsXYRangedZ& pos, QuarterTile bl) -{ - return map_can_construct_with_clear_at(pos, nullptr, bl, 0, nullptr, CREATE_CROSSING_MODE_NONE); -} - std::unique_ptr MapCanConstructAt(const CoordsXYRangedZ& pos, QuarterTile bl) { - return MapCanConstructWithClearAt(pos, nullptr, bl, 0, CREATE_CROSSING_MODE_NONE); + return MapCanConstructWithClearAt(pos, nullptr, bl, 0); } /** * Updates grass length, scenery age and jumping fountains. @@ -1485,7 +1505,7 @@ void map_update_tiles() if (gScreenFlags & ignoreScreenFlags) return; - // Update 43 more tiles + // Update 43 more tiles (for each 256x256 block) for (int32_t j = 0; j < 43; j++) { int32_t x = 0; @@ -1500,12 +1520,19 @@ void map_update_tiles() interleaved_xy >>= 1; } - auto mapPos = TileCoordsXY{ x, y }.ToCoordsXY(); - auto* surfaceElement = map_get_surface_element_at(mapPos); - if (surfaceElement != nullptr) + // Repeat for each 256x256 block on the map + for (int32_t blockY = 0; blockY < gMapSize; blockY += 256) { - surfaceElement->UpdateGrassLength(mapPos); - scenery_update_tile(mapPos); + for (int32_t blockX = 0; blockX < gMapSize; blockX += 256) + { + auto mapPos = TileCoordsXY{ blockX + x, blockY + y }.ToCoordsXY(); + auto* surfaceElement = map_get_surface_element_at(mapPos); + if (surfaceElement != nullptr) + { + surfaceElement->UpdateGrassLength(mapPos); + scenery_update_tile(mapPos); + } + } } gGrassSceneryTileLoopPosition++; @@ -1515,10 +1542,10 @@ void map_update_tiles() void map_remove_provisional_elements() { - if (gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_1) + if (gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_1) { footpath_provisional_remove(); - gFootpathProvisionalFlags |= PROVISIONAL_PATH_FLAG_1; + gProvisionalFootpath.Flags |= PROVISIONAL_PATH_FLAG_1; } if (window_find_by_class(WC_RIDE_CONSTRUCTION) != nullptr) { @@ -1536,10 +1563,10 @@ void map_remove_provisional_elements() void map_restore_provisional_elements() { - if (gFootpathProvisionalFlags & PROVISIONAL_PATH_FLAG_1) + if (gProvisionalFootpath.Flags & PROVISIONAL_PATH_FLAG_1) { - gFootpathProvisionalFlags &= ~PROVISIONAL_PATH_FLAG_1; - footpath_provisional_set(gFootpathProvisionalType, gFootpathProvisionalPosition, gFootpathProvisionalSlope); + gProvisionalFootpath.Flags &= ~PROVISIONAL_PATH_FLAG_1; + footpath_provisional_set(gProvisionalFootpath.Type, gProvisionalFootpath.Position, gProvisionalFootpath.Slope); } if (window_find_by_class(WC_RIDE_CONSTRUCTION) != nullptr) { @@ -1682,8 +1709,8 @@ static void clear_element_at(const CoordsXY& loc, TileElement** elementPtr) element->clearance_height = MINIMUM_LAND_HEIGHT; element->owner = 0; element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT); - element->AsSurface()->SetSurfaceStyle(TERRAIN_GRASS); - element->AsSurface()->SetEdgeStyle(TERRAIN_EDGE_ROCK); + element->AsSurface()->SetSurfaceStyle(0); + element->AsSurface()->SetEdgeStyle(0); element->AsSurface()->SetGrassLength(GRASS_LENGTH_CLEAR_0); element->AsSurface()->SetOwnership(OWNERSHIP_UNOWNED); element->AsSurface()->SetParkFences(0); @@ -1927,15 +1954,14 @@ SmallSceneryElement* map_get_small_scenery_element_at(const CoordsXYZ& sceneryCo std::optional map_large_scenery_get_origin( const CoordsXYZD& sceneryPos, int32_t sequence, LargeSceneryElement** outElement) { - rct_scenery_entry* sceneryEntry; rct_large_scenery_tile* tile; auto tileElement = map_get_large_scenery_segment(sceneryPos, sequence); if (tileElement == nullptr) return std::nullopt; - sceneryEntry = tileElement->GetEntry(); - tile = &sceneryEntry->large_scenery.tiles[sequence]; + auto* sceneryEntry = tileElement->GetEntry(); + tile = &sceneryEntry->tiles[sequence]; CoordsXY offsetPos{ tile->x_offset, tile->y_offset }; auto rotatedOffsetPos = offsetPos.Rotate(sceneryPos.direction); @@ -1954,7 +1980,6 @@ std::optional map_large_scenery_get_origin( bool map_large_scenery_sign_set_colour(const CoordsXYZD& signPos, int32_t sequence, uint8_t mainColour, uint8_t textColour) { LargeSceneryElement* tileElement; - rct_scenery_entry* sceneryEntry; rct_large_scenery_tile *sceneryTiles, *tile; auto sceneryOrigin = map_large_scenery_get_origin(signPos, sequence, &tileElement); @@ -1963,8 +1988,8 @@ bool map_large_scenery_sign_set_colour(const CoordsXYZD& signPos, int32_t sequen return false; } - sceneryEntry = tileElement->GetEntry(); - sceneryTiles = sceneryEntry->large_scenery.tiles; + auto* sceneryEntry = tileElement->GetEntry(); + sceneryTiles = sceneryEntry->tiles; // Iterate through each tile of the large scenery element sequence = 0; @@ -2133,12 +2158,12 @@ bool map_surface_is_blocked(const CoordsXY& mapCoords) if (tileElement->GetType() != TILE_ELEMENT_TYPE_SMALL_SCENERY) return true; - rct_scenery_entry* scenery = tileElement->AsSmallScenery()->GetEntry(); - if (scenery == nullptr) + auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + if (sceneryEntry == nullptr) { return false; } - if (scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_FULL_TILE)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_FULL_TILE)) return true; } return false; diff --git a/src/openrct2/world/Map.h b/src/openrct2/world/Map.h index f98fca3bcd..ec2ff4f335 100644 --- a/src/openrct2/world/Map.h +++ b/src/openrct2/world/Map.h @@ -85,7 +85,7 @@ enum MAP_SELECT_TYPE_EDGE_3, }; -// Used when calling map_can_construct_with_clear_at(); +// Used when calling MapCanConstructWithClearAt(); // This assumes that the caller has already done the check on the element it wants to place, // as this function can only check the element the player wants to build through. enum @@ -98,8 +98,7 @@ enum extern const std::array CoordsDirectionDelta; extern const TileCoordsXY TileDirectionDelta[]; -extern uint16_t gWidePathTileLoopX; -extern uint16_t gWidePathTileLoopY; +extern TileCoordsXY gWidePathTileLoopPosition; extern uint16_t gGrassSceneryTileLoopPosition; extern int16_t gMapSizeUnits; @@ -115,17 +114,9 @@ extern CoordsXY gMapSelectPositionB; extern CoordsXYZ gMapSelectArrowPosition; extern uint8_t gMapSelectArrowDirection; -extern uint8_t gMapGroundFlags; - -extern TileElement gTileElements[MAX_TILE_ELEMENTS_WITH_SPARE_ROOM]; -extern TileElement* gTileElementTilePointers[MAX_TILE_TILE_ELEMENT_POINTERS]; - extern std::vector gMapSelectionTiles; extern std::vector gPeepSpawns; -extern TileElement* gNextFreeTileElement; -extern uint32_t gNextFreeTileElementPointerIndex; - // Used in the land tool window to enable mountain tool / land smoothing extern bool gLandMountainMode; // Used in the land tool window to allow dragging and changing land styles @@ -147,9 +138,11 @@ extern const uint8_t tile_element_raise_styles[9][32]; template class TilePointerIndex { std::vector TilePointers; - uint16_t MapSize; + uint16_t MapSize{}; public: + TilePointerIndex() = default; + explicit TilePointerIndex(const uint16_t mapSize, T* tileElements) { MapSize = mapSize; @@ -172,13 +165,23 @@ public: { return TilePointers[coords.x + (coords.y * MapSize)]; } + + void SetTile(TileCoordsXY coords, T* tileElement) + { + TilePointers[coords.x + (coords.y * MapSize)] = tileElement; + } }; +void ReorganiseTileElements(); +const std::vector& GetTileElements(); +void SetTileElements(std::vector&& tileElements); +void StashMap(); +void UnstashMap(); + void map_init(int32_t size); void map_count_remaining_land_rights(); void map_strip_ghost_flag_from_elements(); -void map_update_tile_pointers(); TileElement* map_get_first_element_at(const CoordsXY& elementPos); TileElement* map_get_nth_element_at(const CoordsXY& coords, int32_t n); void map_set_tile_element(const TileCoordsXY& tilePos, TileElement* elements); @@ -211,14 +214,13 @@ void tile_element_remove(TileElement* tileElement); void map_remove_all_rides(); void map_invalidate_map_selection_tiles(); void map_invalidate_selection_rect(); -void map_reorganise_elements(); -bool map_check_free_elements_and_reorganise(int32_t num_elements); +bool MapCheckCapacityAndReorganise(const CoordsXY& loc, size_t numElements = 1); TileElement* tile_element_insert(const CoordsXYZ& loc, int32_t occupiedQuadrants, TileElementType type); template T* TileElementInsert(const CoordsXYZ& loc, int32_t occupiedQuadrants) { auto* element = tile_element_insert(loc, occupiedQuadrants, T::ElementType); - return element->template as(); + return (element != nullptr) ? element->template as() : nullptr; } namespace GameActions @@ -231,13 +233,10 @@ using CLEAR_FUNC = int32_t (*)(TileElement** tile_element, const CoordsXY& coord int32_t map_place_non_scenery_clear_func(TileElement** tile_element, const CoordsXY& coords, uint8_t flags, money32* price); int32_t map_place_scenery_clear_func(TileElement** tile_element, const CoordsXY& coords, uint8_t flags, money32* price); -bool map_can_construct_with_clear_at( - const CoordsXYRangedZ& pos, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags, money32* price, - uint8_t crossingMode); std::unique_ptr MapCanConstructWithClearAt( - const CoordsXYRangedZ& pos, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags, uint8_t crossingMode); + const CoordsXYRangedZ& pos, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags, + uint8_t crossingMode = CREATE_CROSSING_MODE_NONE, bool isTree = false); std::unique_ptr MapCanConstructAt(const CoordsXYRangedZ& pos, QuarterTile bl); -int32_t map_can_construct_at(const CoordsXYRangedZ& pos, QuarterTile bl); struct tile_element_iterator { diff --git a/src/openrct2/world/MapAnimation.cpp b/src/openrct2/world/MapAnimation.cpp index cc86e52e00..5f6d7c467b 100644 --- a/src/openrct2/world/MapAnimation.cpp +++ b/src/openrct2/world/MapAnimation.cpp @@ -13,6 +13,7 @@ #include "../Game.h" #include "../interface/Viewport.h" #include "../object/StationObject.h" +#include "../peep/Peep.h" #include "../ride/Ride.h" #include "../ride/RideData.h" #include "../ride/Track.h" @@ -24,7 +25,6 @@ #include "Map.h" #include "Scenery.h" #include "SmallScenery.h" -#include "Sprite.h" using map_animation_invalidate_event_handler = bool (*)(const CoordsXYZ& loc); @@ -173,7 +173,7 @@ static bool map_animation_invalidate_small_scenery(const CoordsXYZ& loc) if (tileElement->IsGhost()) continue; - auto sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); + auto* sceneryEntry = tileElement->AsSmallScenery()->GetEntry(); if (sceneryEntry == nullptr) continue; @@ -199,7 +199,7 @@ static bool map_animation_invalidate_small_scenery(const CoordsXYZ& loc) continue; if (peep->z != loc.z) continue; - if (peep->Action < PeepActionType::None1) + if (peep->Action < PeepActionType::Idle) continue; peep->Action = PeepActionType::CheckTime; @@ -447,7 +447,6 @@ static bool map_animation_invalidate_large_scenery(const CoordsXYZ& loc) { TileCoordsXYZ tileLoc{ loc }; TileElement* tileElement; - rct_scenery_entry* sceneryEntry; bool wasInvalidated = false; tileElement = map_get_first_element_at(loc); @@ -460,8 +459,8 @@ static bool map_animation_invalidate_large_scenery(const CoordsXYZ& loc) if (tileElement->GetType() != TILE_ELEMENT_TYPE_LARGE_SCENERY) continue; - sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); - if (sceneryEntry->large_scenery.flags & LARGE_SCENERY_FLAG_ANIMATED) + auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + if (sceneryEntry->flags & LARGE_SCENERY_FLAG_ANIMATED) { map_invalidate_tile_zoom1({ loc, loc.z, loc.z + 16 }); wasInvalidated = true; @@ -479,7 +478,6 @@ static bool map_animation_invalidate_wall_door(const CoordsXYZ& loc) { TileCoordsXYZ tileLoc{ loc }; TileElement* tileElement; - rct_scenery_entry* sceneryEntry; if (gCurrentTicks & 1) return false; @@ -495,8 +493,8 @@ static bool map_animation_invalidate_wall_door(const CoordsXYZ& loc) if (tileElement->GetType() != TILE_ELEMENT_TYPE_WALL) continue; - sceneryEntry = tileElement->AsWall()->GetEntry(); - if (!(sceneryEntry->wall.flags & WALL_SCENERY_IS_DOOR)) + auto* wallEntry = tileElement->AsWall()->GetEntry(); + if (wallEntry == nullptr || !(wallEntry->flags & WALL_SCENERY_IS_DOOR)) continue; if (game_is_paused()) @@ -519,7 +517,7 @@ static bool map_animation_invalidate_wall_door(const CoordsXYZ& loc) if (currentFrame != 5) { currentFrame++; - if (currentFrame == 13 && !(sceneryEntry->wall.flags & WALL_SCENERY_LONG_DOOR_ANIMATION)) + if (currentFrame == 13 && !(wallEntry->flags & WALL_SCENERY_LONG_DOOR_ANIMATION)) currentFrame = 15; invalidate = true; @@ -544,7 +542,6 @@ static bool map_animation_invalidate_wall(const CoordsXYZ& loc) { TileCoordsXYZ tileLoc{ loc }; TileElement* tileElement; - rct_scenery_entry* sceneryEntry; bool wasInvalidated = false; tileElement = map_get_first_element_at(loc); @@ -557,11 +554,10 @@ static bool map_animation_invalidate_wall(const CoordsXYZ& loc) if (tileElement->GetType() != TILE_ELEMENT_TYPE_WALL) continue; - sceneryEntry = tileElement->AsWall()->GetEntry(); + auto* wallEntry = tileElement->AsWall()->GetEntry(); - if (!sceneryEntry - || (!(sceneryEntry->wall.flags2 & WALL_SCENERY_2_ANIMATED) - && sceneryEntry->wall.scrolling_mode == SCROLLING_MODE_NONE)) + if (wallEntry == nullptr + || (!(wallEntry->flags2 & WALL_SCENERY_2_ANIMATED) && wallEntry->scrolling_mode == SCROLLING_MODE_NONE)) continue; map_invalidate_tile_zoom1({ loc, loc.z, loc.z + 16 }); @@ -632,9 +628,9 @@ void AutoCreateMapAnimations() case TILE_ELEMENT_TYPE_WALL: { auto wallEl = el->AsWall(); - auto entry = wallEl->GetEntry(); + auto* entry = wallEl->GetEntry(); if (entry != nullptr - && ((entry->wall.flags2 & WALL_SCENERY_2_ANIMATED) || entry->wall.scrolling_mode != SCROLLING_MODE_NONE)) + && ((entry->flags2 & WALL_SCENERY_2_ANIMATED) || entry->scrolling_mode != SCROLLING_MODE_NONE)) { map_animation_create(MAP_ANIMATION_TYPE_WALL, loc); } @@ -643,8 +639,8 @@ void AutoCreateMapAnimations() case TILE_ELEMENT_TYPE_SMALL_SCENERY: { auto sceneryEl = el->AsSmallScenery(); - auto entry = sceneryEl->GetEntry(); - if (entry != nullptr && scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_ANIMATED)) + auto* sceneryEntry = sceneryEl->GetEntry(); + if (sceneryEntry != nullptr && scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_ANIMATED)) { map_animation_create(MAP_ANIMATION_TYPE_SMALL_SCENERY, loc); } @@ -654,7 +650,7 @@ void AutoCreateMapAnimations() { auto sceneryEl = el->AsLargeScenery(); auto entry = sceneryEl->GetEntry(); - if (entry != nullptr && (entry->large_scenery.flags & LARGE_SCENERY_FLAG_ANIMATED)) + if (entry != nullptr && (entry->flags & LARGE_SCENERY_FLAG_ANIMATED)) { map_animation_create(MAP_ANIMATION_TYPE_LARGE_SCENERY, loc); } diff --git a/src/openrct2/world/MapGen.cpp b/src/openrct2/world/MapGen.cpp index 548af4f5e9..cefb0081e6 100644 --- a/src/openrct2/world/MapGen.cpp +++ b/src/openrct2/world/MapGen.cpp @@ -18,6 +18,9 @@ #include "../localisation/Localisation.h" #include "../localisation/StringIds.h" #include "../object/Object.h" +#include "../object/ObjectManager.h" +#include "../object/TerrainEdgeObject.h" +#include "../object/TerrainSurfaceObject.h" #include "../platform/platform.h" #include "../util/Util.h" #include "Map.h" @@ -82,7 +85,8 @@ static constexpr const char* SnowTrees[] = { #pragma endregion // Randomly chosen base terrains. We rarely want a whole map made out of chequerboard or rock. -static constexpr const uint8_t BaseTerrain[] = { TERRAIN_GRASS, TERRAIN_SAND, TERRAIN_SAND_LIGHT, TERRAIN_DIRT, TERRAIN_ICE }; +static constexpr const std::string_view BaseTerrain[] = { "rct2.surface.grass", "rct2.surface.sand", "rct2.surface.sandbrown", + "rct2.surface.dirt", "rct2.surface.ice" }; static void mapgen_place_trees(); static void mapgen_set_water_level(int32_t waterLevel); @@ -134,46 +138,43 @@ void mapgen_generate_blank(mapgen_settings* settings) void mapgen_generate(mapgen_settings* settings) { - int32_t x, y, mapSize, floorTexture, wallTexture, waterLevel; + auto mapSize = settings->mapSize; + auto waterLevel = settings->water_level; + const auto selectedFloor = TerrainSurfaceObject::GetById(settings->floor); + std::string floorTexture = selectedFloor != nullptr ? std::string(selectedFloor->GetIdentifier()) : ""; + const auto selectedEdge = TerrainEdgeObject::GetById(settings->wall); + std::string edgeTexture = selectedFloor != nullptr ? std::string(selectedEdge->GetIdentifier()) : ""; - mapSize = settings->mapSize; - floorTexture = settings->floor; - wallTexture = settings->wall; - waterLevel = settings->water_level; - - if (floorTexture == -1) + if (floorTexture.empty()) floorTexture = BaseTerrain[util_rand() % std::size(BaseTerrain)]; - if (wallTexture == -1) + if (edgeTexture.empty()) { // Base edge type on surface type - switch (floorTexture) - { - case TERRAIN_DIRT: - wallTexture = TERRAIN_EDGE_WOOD_RED; - break; - case TERRAIN_ICE: - wallTexture = TERRAIN_EDGE_ICE; - break; - default: - wallTexture = TERRAIN_EDGE_ROCK; - break; - } + if (floorTexture == "rct2.surface.dirt") + edgeTexture = "rct2.edge.woodred"; + else if (floorTexture == "rct2.surface.ice") + edgeTexture = "rct2.edge.ice"; + else + edgeTexture = "rct2.edge.rock"; } + auto floorTextureId = object_manager_get_loaded_object_entry_index(ObjectEntryDescriptor(floorTexture)); + auto edgeTextureId = object_manager_get_loaded_object_entry_index(ObjectEntryDescriptor(edgeTexture)); + map_clear_all_elements(); // Initialise the base map map_init(mapSize); - for (y = 1; y < mapSize - 1; y++) + for (auto y = 1; y < mapSize - 1; y++) { - for (x = 1; x < mapSize - 1; x++) + for (auto x = 1; x < mapSize - 1; x++) { auto surfaceElement = map_get_surface_element_at(TileCoordsXY{ x, y }.ToCoordsXY()); if (surfaceElement != nullptr) { - surfaceElement->SetSurfaceStyle(floorTexture); - surfaceElement->SetEdgeStyle(wallTexture); + surfaceElement->SetSurfaceStyle(floorTextureId); + surfaceElement->SetEdgeStyle(edgeTextureId); surfaceElement->base_height = settings->height; surfaceElement->clearance_height = settings->height; } @@ -201,40 +202,40 @@ void mapgen_generate(mapgen_settings* settings) mapgen_set_water_level(waterLevel); // Add sandy beaches - int32_t beachTexture = floorTexture; - if (settings->floor == -1 && floorTexture == TERRAIN_GRASS) + std::string beachTexture = std::string(floorTexture); + if (settings->floor == -1 && floorTexture == "rct2.surface.grass") { switch (util_rand() % 4) { case 0: - beachTexture = TERRAIN_SAND; + beachTexture = "rct2.surface.sand"; break; case 1: - beachTexture = TERRAIN_SAND_LIGHT; + beachTexture = "rct2.surface.sandbrown"; break; } } - for (y = 1; y < mapSize - 1; y++) + auto beachTextureId = object_manager_get_loaded_object_entry_index(ObjectEntryDescriptor(beachTexture)); + + for (auto y = 1; y < mapSize - 1; y++) { - for (x = 1; x < mapSize - 1; x++) + for (auto x = 1; x < mapSize - 1; x++) { auto surfaceElement = map_get_surface_element_at(TileCoordsXY{ x, y }.ToCoordsXY()); if (surfaceElement != nullptr && surfaceElement->base_height < waterLevel + 6) - surfaceElement->SetSurfaceStyle(beachTexture); + surfaceElement->SetSurfaceStyle(beachTextureId); } } // Place the trees if (settings->trees != 0) mapgen_place_trees(); - - map_reorganise_elements(); } static void mapgen_place_tree(int32_t type, const CoordsXY& loc) { - rct_scenery_entry* sceneryEntry = get_small_scenery_entry(type); + auto* sceneryEntry = get_small_scenery_entry(type); if (sceneryEntry == nullptr) { return; @@ -245,13 +246,31 @@ static void mapgen_place_tree(int32_t type, const CoordsXY& loc) auto* sceneryElement = TileElementInsert({ loc, surfaceZ }, 0b1111); Guard::Assert(sceneryElement != nullptr); - sceneryElement->SetClearanceZ(surfaceZ + sceneryEntry->small_scenery.height); + sceneryElement->SetClearanceZ(surfaceZ + sceneryEntry->height); sceneryElement->SetDirection(util_rand() & 3); sceneryElement->SetEntryIndex(type); sceneryElement->SetAge(0); sceneryElement->SetPrimaryColour(COLOUR_YELLOW); } +static bool MapGenSurfaceTakesGrassTrees(const TerrainSurfaceObject& surface) +{ + const auto& id = surface.GetIdentifier(); + return id == "rct2.surface.grass" || id == "rct2.surface.grassclumps" || id == "rct2.surface.dirt"; +} + +static bool MapGenSurfaceTakesSandTrees(const TerrainSurfaceObject& surface) +{ + const auto& id = surface.GetIdentifier(); + return id == "rct2.surface.sand" || id == "rct2.surface.sandbrown" || id == "rct2.surface.sandred"; +} + +static bool MapGenSurfaceTakesSnowTrees(const TerrainSurfaceObject& surface) +{ + const auto& id = surface.GetIdentifier(); + return id == "rct2.surface.ice"; +} + /** * Randomly places a selection of preset trees on the map. Picks the right tree for the terrain it is placing it on. */ @@ -263,7 +282,7 @@ static void mapgen_place_trees() for (int32_t i = 0; i < object_entry_group_counts[EnumValue(ObjectType::SmallScenery)]; i++) { - auto sceneryEntry = get_small_scenery_entry(i); + auto* sceneryEntry = get_small_scenery_entry(i); auto entry = object_entry_get_object(ObjectType::SmallScenery, i); if (sceneryEntry == nullptr) @@ -353,33 +372,28 @@ static void mapgen_place_trees() auto* surfaceElement = map_get_surface_element_at(pos.ToCoordsXY()); if (surfaceElement == nullptr) continue; - switch (surfaceElement->GetSurfaceStyle()) + const auto* object = TerrainSurfaceObject::GetById(surfaceElement->GetSurfaceStyle()); + if (MapGenSurfaceTakesGrassTrees(*object)) { - case TERRAIN_GRASS: - case TERRAIN_DIRT: - case TERRAIN_GRASS_CLUMPS: - if (grassTreeIds.empty()) - break; - - type = grassTreeIds[util_rand() % grassTreeIds.size()]; + if (grassTreeIds.empty()) break; - case TERRAIN_SAND: - case TERRAIN_SAND_DARK: - case TERRAIN_SAND_LIGHT: - if (desertTreeIds.empty()) - break; - - if (util_rand() % 4 == 0) - type = desertTreeIds[util_rand() % desertTreeIds.size()]; + type = grassTreeIds[util_rand() % grassTreeIds.size()]; + } + else if (MapGenSurfaceTakesSandTrees(*object)) + { + if (desertTreeIds.empty()) break; - case TERRAIN_ICE: - if (snowTreeIds.empty()) - break; - - type = snowTreeIds[util_rand() % snowTreeIds.size()]; + if (util_rand() % 4 == 0) + type = desertTreeIds[util_rand() % desertTreeIds.size()]; + } + else if (MapGenSurfaceTakesSnowTrees(*object)) + { + if (snowTreeIds.empty()) break; + + type = snowTreeIds[util_rand() % snowTreeIds.size()]; } if (type != -1) diff --git a/src/openrct2/world/MoneyEffect.cpp b/src/openrct2/world/MoneyEffect.cpp index 944f75c309..4ff854a571 100644 --- a/src/openrct2/world/MoneyEffect.cpp +++ b/src/openrct2/world/MoneyEffect.cpp @@ -6,6 +6,7 @@ * * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "MoneyEffect.h" #include "../OpenRCT2.h" #include "../drawing/Drawing.h" @@ -13,6 +14,7 @@ #include "../interface/Window.h" #include "../localisation/Localisation.h" #include "../network/network.h" +#include "Entity.h" #include "Map.h" #include "Sprite.h" @@ -20,8 +22,7 @@ static constexpr const CoordsXY _moneyEffectMoveOffset[] = { { 1, -1 }, { 1, 1 } template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::MoneyEffect; + return Type == EntityType::MoneyEffect; } /** @@ -33,7 +34,7 @@ void MoneyEffect::CreateAt(money32 value, const CoordsXYZ& effectPos, bool verti if (value == MONEY(0, 00)) return; - MoneyEffect* moneyEffect = &create_sprite(SpriteIdentifier::Misc)->money_effect; + MoneyEffect* moneyEffect = CreateEntity(); if (moneyEffect == nullptr) return; @@ -42,9 +43,7 @@ void MoneyEffect::CreateAt(money32 value, const CoordsXYZ& effectPos, bool verti moneyEffect->sprite_width = 64; moneyEffect->sprite_height_negative = 20; moneyEffect->sprite_height_positive = 30; - moneyEffect->sprite_identifier = SpriteIdentifier::Misc; moneyEffect->MoveTo(effectPos); - moneyEffect->SubType = MiscEntityType::MoneyEffect; moneyEffect->NumMovements = 0; moneyEffect->MoveDelay = 0; diff --git a/src/openrct2/world/MoneyEffect.h b/src/openrct2/world/MoneyEffect.h new file mode 100644 index 0000000000..ba6aa34c81 --- /dev/null +++ b/src/openrct2/world/MoneyEffect.h @@ -0,0 +1,32 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "SpriteBase.h" + +class DataSerialiser; +struct CoordsXYZ; + +struct MoneyEffect : MiscEntity +{ + static constexpr auto cEntityType = EntityType::MoneyEffect; + uint16_t MoveDelay; + uint8_t NumMovements; + uint8_t Vertical; + money32 Value; + int16_t OffsetX; + uint16_t Wiggle; + + static void CreateAt(money32 value, const CoordsXYZ& effectPos, bool vertical); + static void Create(money32 value, const CoordsXYZ& loc); + void Update(); + std::pair GetStringId() const; + void Serialise(DataSerialiser& stream); +}; diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index efb646c598..1fb1b4db18 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -36,8 +36,8 @@ #include "../util/Util.h" #include "../windows/Intent.h" #include "Entrance.h" +#include "Litter.h" #include "Map.h" -#include "Sprite.h" #include "Surface.h" #include @@ -383,7 +383,7 @@ int32_t Park::CalculateParkRating() const // Find the number of happy peeps and the number of peeps who can't find the park exit uint32_t happyGuestCount = 0; uint32_t lostGuestCount = 0; - for (auto peep : EntityList(EntityListId::Peep)) + for (auto peep : EntityList()) { if (!peep->OutsideOfPark) { @@ -466,7 +466,7 @@ int32_t Park::CalculateParkRating() const // Litter { int32_t litterCount = 0; - for (auto litter : EntityList(EntityListId::Litter)) + for (auto litter : EntityList()) { // Ignore recently dropped litter if (litter->creationTick - gScenarioTicks >= 7680) @@ -524,7 +524,7 @@ money16 Park::CalculateTotalRideValueForMoney() const bool ridePricesUnlocked = park_ride_prices_unlocked() && !(gParkFlags & PARK_FLAGS_NO_MONEY); for (auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_OPEN) + if (ride.status != RideStatus::Open) continue; if (ride.lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) continue; @@ -555,7 +555,7 @@ uint32_t Park::CalculateSuggestedMaxGuests() const // TODO combine the two ride loops for (auto& ride : GetRideManager()) { - if (ride.status != RIDE_STATUS_OPEN) + if (ride.status != RideStatus::Open) continue; if (ride.lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) continue; @@ -699,7 +699,7 @@ void Park::GenerateGuests() } } -Peep* Park::GenerateGuestFromCampaign(int32_t campaign) +Guest* Park::GenerateGuestFromCampaign(int32_t campaign) { auto peep = GenerateGuest(); if (peep != nullptr) @@ -709,14 +709,14 @@ Peep* Park::GenerateGuestFromCampaign(int32_t campaign) return peep; } -Peep* Park::GenerateGuest() +Guest* Park::GenerateGuest() { - Peep* peep = nullptr; + Guest* peep = nullptr; const auto spawn = get_random_peep_spawn(); if (spawn != nullptr) { auto direction = direction_reverse(spawn->direction); - peep = Peep::Generate({ spawn->x, spawn->y, spawn->z }); + peep = Guest::Generate({ spawn->x, spawn->y, spawn->z }); if (peep != nullptr) { peep->sprite_direction = direction << 3; diff --git a/src/openrct2/world/Park.h b/src/openrct2/world/Park.h index 46f159089c..8340666370 100644 --- a/src/openrct2/world/Park.h +++ b/src/openrct2/world/Park.h @@ -18,8 +18,6 @@ #define MAX_ENTRANCE_FEE MONEY(200, 00) -struct Peep; - enum : uint32_t { PARK_FLAGS_PARK_OPEN = (1 << 0), @@ -43,7 +41,7 @@ enum : uint32_t PARK_FLAGS_UNLOCK_ALL_PRICES = (1u << 31), // OpenRCT2 only! }; -struct Peep; +struct Guest; struct rct_ride; namespace OpenRCT2 @@ -73,7 +71,7 @@ namespace OpenRCT2 money32 CalculateCompanyValue() const; static uint8_t CalculateGuestInitialHappiness(uint8_t percentage); - Peep* GenerateGuest(); + Guest* GenerateGuest(); void ResetHistories(); void UpdateHistories(); @@ -85,7 +83,7 @@ namespace OpenRCT2 uint32_t CalculateGuestGenerationProbability() const; void GenerateGuests(); - Peep* GenerateGuestFromCampaign(int32_t campaign); + Guest* GenerateGuestFromCampaign(int32_t campaign); }; } // namespace OpenRCT2 diff --git a/src/openrct2/world/Particle.cpp b/src/openrct2/world/Particle.cpp index 7c3bbcf9de..80d94b8765 100644 --- a/src/openrct2/world/Particle.cpp +++ b/src/openrct2/world/Particle.cpp @@ -6,6 +6,7 @@ * * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "Particle.h" #include "../audio/audio.h" #include "../paint/sprite/Paint.Sprite.h" @@ -16,22 +17,20 @@ template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::CrashedVehicleParticle; + return Type == EntityType::CrashedVehicleParticle; } template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::CrashSplash; + return Type == EntityType::CrashSplash; } /** * * rct2: 0x006735A1 */ -void crashed_vehicle_particle_create(rct_vehicle_colour colours, const CoordsXYZ& vehiclePos) +void VehicleCrashParticle::Create(rct_vehicle_colour colours, const CoordsXYZ& vehiclePos) { - VehicleCrashParticle* sprite = &create_sprite(SpriteIdentifier::Misc)->crashed_vehicle_particle; + VehicleCrashParticle* sprite = CreateEntity(); if (sprite != nullptr) { sprite->colour[0] = colours.body_colour; @@ -39,9 +38,7 @@ void crashed_vehicle_particle_create(rct_vehicle_colour colours, const CoordsXYZ sprite->sprite_width = 8; sprite->sprite_height_negative = 8; sprite->sprite_height_positive = 8; - sprite->sprite_identifier = SpriteIdentifier::Misc; sprite->MoveTo(vehiclePos); - sprite->SubType = MiscEntityType::CrashedVehicleParticle; sprite->frame = (scenario_rand() & 0xFF) * 12; sprite->time_to_live = (scenario_rand() & 0x7F) + 140; @@ -96,7 +93,7 @@ void VehicleCrashParticle::Update() { // Splash OpenRCT2::Audio::Play3D(OpenRCT2::Audio::SoundId::Water2, { x, y, waterZ }); - crash_splash_create({ x, y, waterZ }); + CrashSplashParticle::Create({ x, y, waterZ }); sprite_remove(this); return; } @@ -120,17 +117,15 @@ void VehicleCrashParticle::Update() * * rct2: 0x00673699 */ -void crash_splash_create(const CoordsXYZ& splashPos) +void CrashSplashParticle::Create(const CoordsXYZ& splashPos) { - MiscEntity* sprite = &create_sprite(SpriteIdentifier::Misc)->misc; + auto* sprite = CreateEntity(); if (sprite != nullptr) { sprite->sprite_width = 33; sprite->sprite_height_negative = 51; sprite->sprite_height_positive = 16; - sprite->sprite_identifier = SpriteIdentifier::Misc; sprite->MoveTo(splashPos + CoordsXYZ{ 0, 0, 3 }); - sprite->SubType = MiscEntityType::CrashSplash; sprite->frame = 0; } } @@ -148,3 +143,108 @@ void CrashSplashParticle::Update() sprite_remove(this); } } + +/** + * + * rct2: 0x006734B2 + */ +void SteamParticle::Create(const CoordsXYZ& coords) +{ + auto surfaceElement = map_get_surface_element_at(coords); + if (surfaceElement != nullptr && coords.z > surfaceElement->GetBaseZ()) + { + SteamParticle* steam = CreateEntity(); + if (steam == nullptr) + return; + + steam->sprite_width = 20; + steam->sprite_height_negative = 18; + steam->sprite_height_positive = 16; + steam->frame = 256; + steam->time_to_move = 0; + steam->MoveTo(coords); + } +} + +/** + * + * rct2: 0x00673200 + */ +void SteamParticle::Update() +{ + // Move up 1 z every 3 ticks (Starts after 4 ticks) + Invalidate(); + time_to_move++; + if (time_to_move >= 4) + { + time_to_move = 1; + MoveTo({ x, y, z + 1 }); + } + frame += 64; + if (frame >= (56 * 64)) + { + sprite_remove(this); + } +} + +/** + * + * rct2: 0x0067363D + */ +void ExplosionCloud::Create(const CoordsXYZ& cloudPos) +{ + auto* entity = CreateEntity(); + if (entity != nullptr) + { + entity->sprite_width = 44; + entity->sprite_height_negative = 32; + entity->sprite_height_positive = 34; + entity->MoveTo(cloudPos + CoordsXYZ{ 0, 0, 4 }); + entity->frame = 0; + } +} + +/** + * + * rct2: 0x00673385 + */ +void ExplosionCloud::Update() +{ + Invalidate(); + frame += 128; + if (frame >= (36 * 128)) + { + sprite_remove(this); + } +} + +/** + * + * rct2: 0x0067366B + */ +void ExplosionFlare::Create(const CoordsXYZ& flarePos) +{ + auto* entity = CreateEntity(); + if (entity != nullptr) + { + entity->sprite_width = 25; + entity->sprite_height_negative = 85; + entity->sprite_height_positive = 8; + entity->MoveTo(flarePos + CoordsXYZ{ 0, 0, 4 }); + entity->frame = 0; + } +} + +/** + * + * rct2: 0x006733B4 + */ +void ExplosionFlare::Update() +{ + Invalidate(); + frame += 64; + if (frame >= (124 * 64)) + { + sprite_remove(this); + } +} diff --git a/src/openrct2/world/Particle.h b/src/openrct2/world/Particle.h new file mode 100644 index 0000000000..53ba024785 --- /dev/null +++ b/src/openrct2/world/Particle.h @@ -0,0 +1,67 @@ +/***************************************************************************** + * Copyright (c) 2014-2021 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "../ride/VehicleColour.h" +#include "SpriteBase.h" + +class DataSerialiser; +struct CoordsXYZ; + +struct VehicleCrashParticle : MiscEntity +{ + static constexpr auto cEntityType = EntityType::CrashedVehicleParticle; + uint16_t time_to_live; + uint8_t colour[2]; + uint16_t crashed_sprite_base; + int16_t velocity_x; + int16_t velocity_y; + int16_t velocity_z; + int32_t acceleration_x; + int32_t acceleration_y; + int32_t acceleration_z; + static void Create(rct_vehicle_colour colours, const CoordsXYZ& vehiclePos); + void Update(); + void Serialise(DataSerialiser& stream); +}; + +struct CrashSplashParticle : MiscEntity +{ + static constexpr auto cEntityType = EntityType::CrashSplash; + static void Create(const CoordsXYZ& splashPos); + void Update(); + void Serialise(DataSerialiser& stream); +}; + +struct ExplosionFlare : MiscEntity +{ + static constexpr auto cEntityType = EntityType::ExplosionFlare; + static void Create(const CoordsXYZ& flarePos); + void Update(); + void Serialise(DataSerialiser& stream); +}; + +struct ExplosionCloud : MiscEntity +{ + static constexpr auto cEntityType = EntityType::ExplosionCloud; + static void Create(const CoordsXYZ& cloudPos); + void Update(); + void Serialise(DataSerialiser& stream); +}; + +struct SteamParticle : MiscEntity +{ + static constexpr auto cEntityType = EntityType::SteamParticle; + uint16_t time_to_move; + + static void Create(const CoordsXYZ& coords); + void Update(); + void Serialise(DataSerialiser& stream); +}; diff --git a/src/openrct2/world/Scenery.cpp b/src/openrct2/world/Scenery.cpp index 5240a7fdff..47c3e0366b 100644 --- a/src/openrct2/world/Scenery.cpp +++ b/src/openrct2/world/Scenery.cpp @@ -80,16 +80,16 @@ void scenery_update_tile(const CoordsXY& sceneryPos) { if (tileElement->AsPath()->HasAddition() && !tileElement->AsPath()->AdditionIsGhost()) { - rct_scenery_entry* sceneryEntry = tileElement->AsPath()->GetAdditionEntry(); - if (sceneryEntry != nullptr) + auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); + if (pathAddEntry != nullptr) { - if (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER) + if (pathAddEntry->flags & PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER) { - JumpingFountain::StartAnimation(JUMPING_FOUNTAIN_TYPE_WATER, sceneryPos, tileElement); + JumpingFountain::StartAnimation(JumpingFountainType::Water, sceneryPos, tileElement); } - else if (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW) + else if (pathAddEntry->flags & PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW) { - JumpingFountain::StartAnimation(JUMPING_FOUNTAIN_TYPE_SNOW, sceneryPos, tileElement); + JumpingFountain::StartAnimation(JumpingFountainType::Snow, sceneryPos, tileElement); } } } @@ -229,38 +229,38 @@ void scenery_remove_ghost_tool_placement() } } -rct_scenery_entry* get_wall_entry(ObjectEntryIndex entryIndex) +WallSceneryEntry* get_wall_entry(ObjectEntryIndex entryIndex) { - rct_scenery_entry* result = nullptr; + WallSceneryEntry* result = nullptr; auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); auto obj = objMgr.GetLoadedObject(ObjectType::Walls, entryIndex); if (obj != nullptr) { - result = static_cast(obj->GetLegacyData()); + result = static_cast(obj->GetLegacyData()); } return result; } -rct_scenery_entry* get_banner_entry(ObjectEntryIndex entryIndex) +BannerSceneryEntry* get_banner_entry(ObjectEntryIndex entryIndex) { - rct_scenery_entry* result = nullptr; + BannerSceneryEntry* result = nullptr; auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); auto obj = objMgr.GetLoadedObject(ObjectType::Banners, entryIndex); if (obj != nullptr) { - result = static_cast(obj->GetLegacyData()); + result = static_cast(obj->GetLegacyData()); } return result; } -rct_scenery_entry* get_footpath_item_entry(ObjectEntryIndex entryIndex) +PathBitEntry* get_footpath_item_entry(ObjectEntryIndex entryIndex) { - rct_scenery_entry* result = nullptr; + PathBitEntry* result = nullptr; auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); auto obj = objMgr.GetLoadedObject(ObjectType::PathBits, entryIndex); if (obj != nullptr) { - result = static_cast(obj->GetLegacyData()); + result = static_cast(obj->GetLegacyData()); } return result; } @@ -277,7 +277,7 @@ rct_scenery_group_entry* get_scenery_group_entry(ObjectEntryIndex entryIndex) return result; } -int32_t wall_entry_get_door_sound(const rct_scenery_entry* wallEntry) +int32_t wall_entry_get_door_sound(const WallSceneryEntry* wallEntry) { - return (wallEntry->wall.flags2 & WALL_SCENERY_2_DOOR_SOUND_MASK) >> WALL_SCENERY_2_DOOR_SOUND_SHIFT; + return (wallEntry->flags2 & WALL_SCENERY_2_DOOR_SOUND_MASK) >> WALL_SCENERY_2_DOOR_SOUND_SHIFT; } diff --git a/src/openrct2/world/Scenery.h b/src/openrct2/world/Scenery.h index 410d9022cf..b26027cb3b 100644 --- a/src/openrct2/world/Scenery.h +++ b/src/openrct2/world/Scenery.h @@ -20,19 +20,14 @@ #define SCENERY_WITHER_AGE_THRESHOLD_1 0x28 #define SCENERY_WITHER_AGE_THRESHOLD_2 0x37 +struct LargeSceneryText; + #pragma pack(push, 1) -struct rct_small_scenery_entry + +struct SceneryEntryBase { - uint32_t flags; // 0x06 - uint8_t height; // 0x0A - CursorID tool_id; // 0x0B - int16_t price; // 0x0C - int16_t removal_price; // 0x0E - uint8_t* frame_offsets; // 0x10 - uint16_t animation_delay; // 0x14 - uint16_t animation_mask; // 0x16 - uint16_t num_frames; // 0x18 - ObjectEntryIndex scenery_tab_id; // 0x1A + rct_string_id name; + uint32_t image; }; struct rct_large_scenery_tile @@ -63,7 +58,10 @@ assert_struct_size(rct_large_scenery_text_glyph, 4); struct rct_large_scenery_text { - LocationXY16 offset[2]; // 0x0 + struct + { + int16_t x, y; + } offset[2]; // 0x0 uint16_t max_width; // 0x8 uint16_t pad_A; // 0xA uint8_t flags; // 0xC @@ -78,7 +76,7 @@ enum LARGE_SCENERY_TEXT_FLAGS LARGE_SCENERY_TEXT_FLAG_TWO_LINE = (1 << 1), // 0x2 }; -struct rct_large_scenery_entry +struct LargeSceneryEntry : SceneryEntryBase { CursorID tool_id; uint8_t flags; @@ -87,7 +85,7 @@ struct rct_large_scenery_entry rct_large_scenery_tile* tiles; ObjectEntryIndex scenery_tab_id; uint8_t scrolling_mode; - rct_large_scenery_text* text; + LargeSceneryText* text; uint32_t text_image; }; @@ -98,17 +96,7 @@ enum LARGE_SCENERY_FLAGS LARGE_SCENERY_FLAG_3D_TEXT = (1 << 2), // 0x4 LARGE_SCENERY_FLAG_ANIMATED = (1 << 3), // 0x8 LARGE_SCENERY_FLAG_PHOTOGENIC = (1 << 4), // 0x10 -}; - -struct rct_wall_scenery_entry -{ - CursorID tool_id; - uint8_t flags; - uint8_t height; - uint8_t flags2; - int16_t price; - ObjectEntryIndex scenery_tab_id; - uint8_t scrolling_mode; + LARGE_SCENERY_FLAG_IS_TREE = (1 << 5), // 0x20 }; enum WALL_SCENERY_FLAGS @@ -116,7 +104,7 @@ enum WALL_SCENERY_FLAGS WALL_SCENERY_HAS_PRIMARY_COLOUR = (1 << 0), // 0x1 WALL_SCENERY_HAS_GLASS = (1 << 1), // 0x2 WALL_SCENERY_CANT_BUILD_ON_SLOPE = (1 << 2), // 0x4 - WALL_SCENERY_IS_BANNER = (1 << 3), // 0x8 // Probably indicates translucency + WALL_SCENERY_IS_DOUBLE_SIDED = (1 << 3), // 0x8 WALL_SCENERY_IS_DOOR = (1 << 4), // 0x10 WALL_SCENERY_LONG_DOOR_ANIMATION = (1 << 5), // 0x20 WALL_SCENERY_HAS_SECONDARY_COLOUR = (1 << 6), // 0x40 @@ -132,39 +120,78 @@ enum WALL_SCENERY_2_FLAGS WALL_SCENERY_2_ANIMATED = (1 << 4), // 0x10 }; -struct rct_path_bit_scenery_entry +struct SmallSceneryEntry : SceneryEntryBase { - uint16_t flags; // 0x06 - uint8_t draw_type; // 0x08 - CursorID tool_id; // 0x09 - int16_t price; // 0x0A - ObjectEntryIndex scenery_tab_id; // 0x0C + uint32_t flags; + uint8_t height; + CursorID tool_id; + int16_t price; + int16_t removal_price; + uint8_t* frame_offsets; + uint16_t animation_delay; + uint16_t animation_mask; + uint16_t num_frames; + ObjectEntryIndex scenery_tab_id; }; -struct rct_banner_scenery_entry +struct WallSceneryEntry : SceneryEntryBase { - uint8_t scrolling_mode; // 0x06 - uint8_t flags; // 0x07 - int16_t price; // 0x08 - ObjectEntryIndex scenery_tab_id; // 0x0A + CursorID tool_id; + uint8_t flags; + uint8_t height; + uint8_t flags2; + int16_t price; + ObjectEntryIndex scenery_tab_id; + uint8_t scrolling_mode; +}; +enum class PathBitDrawType : uint8_t; + +struct PathBitEntry : SceneryEntryBase +{ + uint16_t flags; + PathBitDrawType draw_type; + CursorID tool_id; + int16_t price; + ObjectEntryIndex scenery_tab_id; }; -struct rct_scenery_entry +struct BannerSceneryEntry : SceneryEntryBase { - rct_string_id name; // 0x00 - uint32_t image; // 0x02 - union - { - rct_small_scenery_entry small_scenery; - rct_large_scenery_entry large_scenery; - rct_wall_scenery_entry wall; - rct_path_bit_scenery_entry path_bit; - rct_banner_scenery_entry banner; - }; + uint8_t scrolling_mode; + uint8_t flags; + int16_t price; + ObjectEntryIndex scenery_tab_id; }; #pragma pack(pop) +struct LargeSceneryText +{ + CoordsXY offset[2]; + uint16_t max_width; + uint8_t flags; + uint16_t num_images; + rct_large_scenery_text_glyph glyphs[256]; + + LargeSceneryText() = default; + + explicit LargeSceneryText(const rct_large_scenery_text& original) + { + for (size_t i = 0; i < std::size(original.offset); i++) + { + offset[i].x = original.offset[i].x; + offset[i].y = original.offset[i].y; + } + max_width = original.max_width; + flags = original.flags; + num_images = original.num_images; + for (size_t i = 0; i < std::size(original.glyphs); i++) + { + glyphs[i] = original.glyphs[i]; + } + } +}; + struct rct_scenery_group_entry { rct_string_id name; @@ -188,12 +215,12 @@ enum PATH_BIT_FLAG_IS_QUEUE_SCREEN = 1 << 8 }; -enum +enum class PathBitDrawType : uint8_t { - PATH_BIT_DRAW_TYPE_LIGHTS, - PATH_BIT_DRAW_TYPE_BINS, - PATH_BIT_DRAW_TYPE_BENCHES, - PATH_BIT_DRAW_TYPE_JUMPING_FOUNTAINS + Light, + Bin, + Bench, + JumpingFountain, }; enum @@ -257,11 +284,11 @@ void scenery_update_tile(const CoordsXY& sceneryPos); void scenery_set_default_placement_configuration(); void scenery_remove_ghost_tool_placement(); -rct_scenery_entry* get_wall_entry(ObjectEntryIndex entryIndex); -rct_scenery_entry* get_banner_entry(ObjectEntryIndex entryIndex); -rct_scenery_entry* get_footpath_item_entry(ObjectEntryIndex entryIndex); +WallSceneryEntry* get_wall_entry(ObjectEntryIndex entryIndex); +BannerSceneryEntry* get_banner_entry(ObjectEntryIndex entryIndex); +PathBitEntry* get_footpath_item_entry(ObjectEntryIndex entryIndex); rct_scenery_group_entry* get_scenery_group_entry(ObjectEntryIndex entryIndex); -int32_t wall_entry_get_door_sound(const rct_scenery_entry* wallEntry); +int32_t wall_entry_get_door_sound(const WallSceneryEntry* wallEntry); #endif diff --git a/src/openrct2/world/SmallScenery.cpp b/src/openrct2/world/SmallScenery.cpp index 637169cbfc..c71fc753f4 100644 --- a/src/openrct2/world/SmallScenery.cpp +++ b/src/openrct2/world/SmallScenery.cpp @@ -33,7 +33,7 @@ static int32_t map_place_clear_func( if (is_scenery && !(flags & GAME_COMMAND_FLAG_PATH_SCENERY)) return 1; - rct_scenery_entry* scenery = (*tile_element)->AsSmallScenery()->GetEntry(); + auto* scenery = (*tile_element)->AsSmallScenery()->GetEntry(); if (gParkFlags & PARK_FLAGS_FORBID_TREE_REMOVAL) { @@ -42,7 +42,7 @@ static int32_t map_place_clear_func( } if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) - *price += scenery->small_scenery.removal_price * 10; + *price += scenery->removal_price * 10; if (flags & GAME_COMMAND_FLAG_GHOST) return 0; @@ -76,9 +76,9 @@ int32_t map_place_non_scenery_clear_func(TileElement** tile_element, const Coord return map_place_clear_func(tile_element, coords, flags, price, /*is_scenery=*/false); } -bool scenery_small_entry_has_flag(const rct_scenery_entry* sceneryEntry, uint32_t flags) +bool scenery_small_entry_has_flag(const SmallSceneryEntry* sceneryEntry, uint32_t flags) { - return static_cast(sceneryEntry->small_scenery.flags & flags); + return static_cast(sceneryEntry->flags & flags); } uint8_t SmallSceneryElement::GetSceneryQuadrant() const @@ -124,9 +124,9 @@ void SmallSceneryElement::IncreaseAge(const CoordsXY& sceneryPos) // Only invalidate tiles when scenery crosses the withering thresholds, and can be withered. if (newAge == SCENERY_WITHER_AGE_THRESHOLD_1 || newAge == SCENERY_WITHER_AGE_THRESHOLD_2) { - rct_scenery_entry* entry = GetEntry(); + auto* sceneryEntry = GetEntry(); - if (scenery_small_entry_has_flag(entry, SMALL_SCENERY_FLAG_CAN_WITHER)) + if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_CAN_WITHER)) { map_invalidate_tile_zoom1({ sceneryPos, GetBaseZ(), GetClearanceZ() }); } @@ -168,19 +168,19 @@ void SmallSceneryElement::SetNeedsSupports() colour_1 |= MAP_ELEM_SMALL_SCENERY_COLOUR_FLAG_NEEDS_SUPPORTS; } -rct_scenery_entry* SmallSceneryElement::GetEntry() const +SmallSceneryEntry* SmallSceneryElement::GetEntry() const { return get_small_scenery_entry(entryIndex); } -rct_scenery_entry* get_small_scenery_entry(ObjectEntryIndex entryIndex) +SmallSceneryEntry* get_small_scenery_entry(ObjectEntryIndex entryIndex) { - rct_scenery_entry* result = nullptr; + SmallSceneryEntry* result = nullptr; auto& objMgr = OpenRCT2::GetContext()->GetObjectManager(); auto obj = objMgr.GetLoadedObject(ObjectType::SmallScenery, entryIndex); if (obj != nullptr) { - result = static_cast(obj->GetLegacyData()); + result = static_cast(obj->GetLegacyData()); } return result; } diff --git a/src/openrct2/world/SmallScenery.h b/src/openrct2/world/SmallScenery.h index 09275bd75d..5094dcf8b8 100644 --- a/src/openrct2/world/SmallScenery.h +++ b/src/openrct2/world/SmallScenery.h @@ -53,5 +53,5 @@ enum MAP_ELEM_SMALL_SCENERY_COLOUR_FLAG_NEEDS_SUPPORTS = (1 << 5), }; -bool scenery_small_entry_has_flag(const rct_scenery_entry* sceneryEntry, uint32_t flags); -rct_scenery_entry* get_small_scenery_entry(ObjectEntryIndex entryIndex); +bool scenery_small_entry_has_flag(const SmallSceneryEntry* sceneryEntry, uint32_t flags); +SmallSceneryEntry* get_small_scenery_entry(ObjectEntryIndex entryIndex); diff --git a/src/openrct2/world/Sprite.cpp b/src/openrct2/world/Sprite.cpp index 2bba77688d..8c0a36a03f 100644 --- a/src/openrct2/world/Sprite.cpp +++ b/src/openrct2/world/Sprite.cpp @@ -9,43 +9,39 @@ #include "Sprite.h" -#include "../Cheats.h" #include "../Game.h" -#include "../OpenRCT2.h" -#include "../audio/audio.h" +#include "../core/ChecksumStream.h" #include "../core/Crypt.h" +#include "../core/DataSerialiser.h" #include "../core/Guard.hpp" +#include "../core/MemoryStream.h" #include "../interface/Viewport.h" -#include "../localisation/Date.h" -#include "../localisation/Localisation.h" +#include "../peep/Peep.h" +#include "../ride/Vehicle.h" #include "../scenario/Scenario.h" +#include "Balloon.h" +#include "Duck.h" +#include "EntityTweener.h" #include "Fountain.h" +#include "MoneyEffect.h" +#include "Particle.h" #include #include #include +#include #include static rct_sprite _spriteList[MAX_ENTITIES]; -static std::array, EnumValue(EntityListId::Count)> gEntityLists; +static std::array, EnumValue(EntityType::Count)> gEntityLists; static std::vector _freeIdList; static bool _spriteFlashingList[MAX_ENTITIES]; -static std::array, SPATIAL_INDEX_SIZE> gSpriteSpatialIndex; +constexpr const uint32_t SPATIAL_INDEX_SIZE = (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) + 1; +constexpr const uint32_t SPATIAL_INDEX_LOCATION_NULL = SPATIAL_INDEX_SIZE - 1; -const rct_string_id litterNames[12] = { STR_LITTER_VOMIT, - STR_LITTER_VOMIT, - STR_SHOP_ITEM_SINGULAR_EMPTY_CAN, - STR_SHOP_ITEM_SINGULAR_RUBBISH, - STR_SHOP_ITEM_SINGULAR_EMPTY_BURGER_BOX, - STR_SHOP_ITEM_SINGULAR_EMPTY_CUP, - STR_SHOP_ITEM_SINGULAR_EMPTY_BOX, - STR_SHOP_ITEM_SINGULAR_EMPTY_BOTTLE, - STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_RED, - STR_SHOP_ITEM_SINGULAR_EMPTY_DRINK_CARTON, - STR_SHOP_ITEM_SINGULAR_EMPTY_JUICE_CUP, - STR_SHOP_ITEM_SINGULAR_EMPTY_BOWL_BLUE }; +static std::array, SPATIAL_INDEX_SIZE> gSpriteSpatialIndex; constexpr size_t GetSpatialIndexOffset(int32_t x, int32_t y) { @@ -75,35 +71,51 @@ template<> bool SpriteBase::Is() const template<> bool SpriteBase::Is() const { - return sprite_identifier == SpriteIdentifier::Litter; + return Type == EntityType::Litter; +} + +constexpr bool EntityTypeIsMiscEntity(const EntityType type) +{ + switch (type) + { + case EntityType::SteamParticle: + case EntityType::MoneyEffect: + case EntityType::CrashedVehicleParticle: + case EntityType::ExplosionCloud: + case EntityType::CrashSplash: + case EntityType::ExplosionFlare: + case EntityType::JumpingFountain: + case EntityType::Balloon: + case EntityType::Duck: + return true; + default: + return false; + } } template<> bool SpriteBase::Is() const { - return sprite_identifier == SpriteIdentifier::Misc; + return EntityTypeIsMiscEntity(Type); } template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::SteamParticle; + return Type == EntityType::SteamParticle; } template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::ExplosionFlare; + return Type == EntityType::ExplosionFlare; } template<> bool SpriteBase::Is() const { - auto* misc = As(); - return misc && misc->SubType == MiscEntityType::ExplosionCloud; + return Type == EntityType::ExplosionCloud; } -uint16_t GetEntityListCount(EntityListId list) +uint16_t GetEntityListCount(EntityType type) { - return static_cast(gEntityLists[static_cast(list)].size()); + return static_cast(gEntityLists[EnumValue(type)].size()); } uint16_t GetNumFreeEntities() @@ -119,7 +131,7 @@ std::string rct_sprite_checksum::ToString() const for (auto b : raw) { char buf[3]; - snprintf(buf, 3, "%02x", b); + snprintf(buf, 3, "%02x", static_cast(b)); result.append(buf); } @@ -128,7 +140,7 @@ std::string rct_sprite_checksum::ToString() const SpriteBase* try_get_sprite(size_t spriteIndex) { - return spriteIndex >= MAX_ENTITIES ? nullptr : &_spriteList[spriteIndex].misc; + return spriteIndex >= MAX_ENTITIES ? nullptr : &_spriteList[spriteIndex].base; } SpriteBase* get_sprite(size_t spriteIndex) @@ -152,43 +164,29 @@ void SpriteBase::Invalidate() return; int32_t maxZoom = 0; - switch (sprite_identifier) + switch (Type) { - case SpriteIdentifier::Vehicle: - case SpriteIdentifier::Peep: + case EntityType::Vehicle: + case EntityType::Guest: + case EntityType::Staff: maxZoom = 2; break; - case SpriteIdentifier::Misc: - { - auto* misc = As(); - if (misc == nullptr) - { - return; - } - switch (misc->SubType) - { - case MiscEntityType::CrashedVehicleParticle: - case MiscEntityType::JumpingFountainWater: - case MiscEntityType::JumpingFountainSnow: - maxZoom = 0; - break; - case MiscEntityType::Duck: - maxZoom = 1; - break; - case MiscEntityType::SteamParticle: - case MiscEntityType::MoneyEffect: - case MiscEntityType::ExplosionCloud: - case MiscEntityType::CrashSplash: - case MiscEntityType::ExplosionFlare: - case MiscEntityType::Balloon: - maxZoom = 2; - break; - default: - break; - } - } - break; - case SpriteIdentifier::Litter: + case EntityType::CrashedVehicleParticle: + case EntityType::JumpingFountain: + maxZoom = 0; + break; + case EntityType::Duck: + maxZoom = 1; + break; + case EntityType::SteamParticle: + case EntityType::MoneyEffect: + case EntityType::ExplosionCloud: + case EntityType::CrashSplash: + case EntityType::ExplosionFlare: + case EntityType::Balloon: + maxZoom = 2; + break; + case EntityType::Litter: maxZoom = 0; break; default: @@ -197,55 +195,25 @@ void SpriteBase::Invalidate() viewports_invalidate(sprite_left, sprite_top, sprite_right, sprite_bottom, maxZoom); } -constexpr EntityListId EntityIdentifierToListId(const SpriteIdentifier type) -{ - EntityListId linkedListIndex = EntityListId::Free; - switch (type) - { - case SpriteIdentifier::Vehicle: - linkedListIndex = EntityListId::Vehicle; - break; - case SpriteIdentifier::Peep: - linkedListIndex = EntityListId::Peep; - break; - case SpriteIdentifier::Misc: - linkedListIndex = EntityListId::Misc; - break; - case SpriteIdentifier::Litter: - linkedListIndex = EntityListId::Litter; - break; - default: - break; - } - return linkedListIndex; -} -void RebuildEntityLists() +static void ResetEntityLists() { for (auto& list : gEntityLists) { list.clear(); } - - _freeIdList.clear(); - - for (auto& ent : _spriteList) - { - if (ent.misc.sprite_identifier == SpriteIdentifier::Null) - { - _freeIdList.push_back(ent.misc.sprite_index); - } - else - { - // auto listId = EntityIdentifierToListId(ent.misc.sprite_identifier); - gEntityLists[EnumValue(ent.misc.linked_list_index)].push_back(ent.misc.sprite_index); - } - } - // List needs to be back to front to simplify removing - std::sort(std::begin(_freeIdList), std::end(_freeIdList), std::greater()); } -const std::list& GetEntityList(const EntityListId id) +static void ResetFreeIds() +{ + _freeIdList.clear(); + + _freeIdList.resize(MAX_ENTITIES); + // List needs to be back to front to simplify removing + std::iota(std::rbegin(_freeIdList), std::rend(_freeIdList), 0); +} + +const std::list& GetEntityList(const EntityType id) { return gEntityLists[EnumValue(id)]; } @@ -266,13 +234,13 @@ void reset_sprite_list() continue; } - spr->sprite_identifier = SpriteIdentifier::Null; + spr->Type = EntityType::Null; spr->sprite_index = i; - spr->linked_list_index = EntityListId::Free; _spriteFlashingList[i] = false; } - RebuildEntityLists(); + ResetEntityLists(); + ResetFreeIds(); reset_sprite_spatial_index(); } @@ -293,7 +261,7 @@ void reset_sprite_spatial_index() for (size_t i = 0; i < MAX_ENTITIES; i++) { auto* spr = GetEntity(i); - if (spr != nullptr && spr->sprite_identifier != SpriteIdentifier::Null) + if (spr != nullptr && spr->Type != EntityType::Null) { SpriteSpatialInsert(spr, { spr->x, spr->y }); } @@ -302,60 +270,26 @@ void reset_sprite_spatial_index() #ifndef DISABLE_NETWORK +template void NetworkSerialseEntityType(DataSerialiser& ds) +{ + for (auto* ent : EntityList()) + { + ent->Serialise(ds); + } +} + +template void NetworkSerialiseEntityTypes(DataSerialiser& ds) +{ + (NetworkSerialseEntityType(ds), ...); +} + rct_sprite_checksum sprite_checksum() { - using namespace Crypt; + rct_sprite_checksum checksum{}; - // TODO Remove statics, should be one of these per sprite manager / OpenRCT2 context. - // Alternatively, make a new class for this functionality. - static std::unique_ptr> _spriteHashAlg; - - rct_sprite_checksum checksum; - - try - { - if (_spriteHashAlg == nullptr) - { - _spriteHashAlg = CreateSHA1(); - } - - _spriteHashAlg->Clear(); - for (size_t i = 0; i < MAX_ENTITIES; i++) - { - // TODO create a way to copy only the specific type - auto sprite = GetEntity(i); - if (sprite != nullptr && sprite->sprite_identifier != SpriteIdentifier::Null - && sprite->sprite_identifier != SpriteIdentifier::Misc) - { - // Upconvert it to rct_sprite so that the full size is copied. - auto copy = *reinterpret_cast(sprite); - - // Only required for rendering/invalidation, has no meaning to the game state. - copy.misc.sprite_left = copy.misc.sprite_right = copy.misc.sprite_top = copy.misc.sprite_bottom = 0; - copy.misc.sprite_width = copy.misc.sprite_height_negative = copy.misc.sprite_height_positive = 0; - - if (copy.misc.Is()) - { - // Name is pointer and will not be the same across clients - copy.peep.Name = {}; - - // We set this to 0 because as soon the client selects a guest the window will remove the - // invalidation flags causing the sprite checksum to be different than on server, the flag does not - // affect game state. - copy.peep.WindowInvalidateFlags = 0; - } - - _spriteHashAlg->Update(©, sizeof(copy)); - } - } - - checksum.raw = _spriteHashAlg->Finish(); - } - catch (std::exception& e) - { - log_error("sprite_checksum failed: %s", e.what()); - throw; - } + OpenRCT2::ChecksumStream ms(checksum.raw); + DataSerialiser ds(true, ms); + NetworkSerialiseEntityTypes(ds); return checksum; } @@ -371,42 +305,19 @@ rct_sprite_checksum sprite_checksum() static void sprite_reset(SpriteBase* sprite) { // Need to retain how the sprite is linked in lists - auto llto = sprite->linked_list_index; uint16_t sprite_index = sprite->sprite_index; _spriteFlashingList[sprite_index] = false; std::memset(sprite, 0, sizeof(rct_sprite)); - sprite->linked_list_index = llto; sprite->sprite_index = sprite_index; - sprite->sprite_identifier = SpriteIdentifier::Null; -} - -/** - * Clears all the unused sprite memory to zero. Probably so that it can be compressed better when saving. - * rct2: 0x0069EBA4 - */ -void sprite_clear_all_unused() -{ - for (auto index : _freeIdList) - { - auto* entity = GetEntity(index); - if (entity == nullptr) - { - continue; - } - sprite_reset(entity); - entity->linked_list_index = EntityListId::Free; - - _spriteFlashingList[entity->sprite_index] = false; - } + sprite->Type = EntityType::Null; } static constexpr uint16_t MAX_MISC_SPRITES = 300; -static void AddToEntityList(const EntityListId linkedListIndex, SpriteBase* entity) +static void AddToEntityList(SpriteBase* entity) { - auto& list = gEntityLists[EnumValue(linkedListIndex)]; - entity->linked_list_index = linkedListIndex; + auto& list = gEntityLists[EnumValue(entity->Type)]; // Entity list must be in sprite_index order to prevent desync issues list.insert(std::lower_bound(std::begin(list), std::end(list), entity->sprite_index), entity->sprite_index); } @@ -419,7 +330,7 @@ static void AddToFreeList(uint16_t index) static void RemoveFromEntityList(SpriteBase* entity) { - auto& list = gEntityLists[EnumValue(entity->linked_list_index)]; + auto& list = gEntityLists[EnumValue(entity->Type)]; auto ptr = std::lower_bound(std::begin(list), std::end(list), entity->sprite_index); if (ptr != std::end(list) && *ptr == entity->sprite_index) { @@ -427,7 +338,39 @@ static void RemoveFromEntityList(SpriteBase* entity) } } -rct_sprite* create_sprite(SpriteIdentifier spriteIdentifier, EntityListId linkedListIndex) +uint16_t GetMiscEntityCount() +{ + uint16_t count = 0; + for (auto id : { EntityType::SteamParticle, EntityType::MoneyEffect, EntityType::CrashedVehicleParticle, + EntityType::ExplosionCloud, EntityType::CrashSplash, EntityType::ExplosionFlare, + EntityType::JumpingFountain, EntityType::Balloon, EntityType::Duck }) + { + count += GetEntityListCount(id); + } + return count; +} + +static void PrepareNewEntity(SpriteBase* base, const EntityType type) +{ + // Need to reset all sprite data, as the uninitialised values + // may contain garbage and cause a desync later on. + sprite_reset(base); + + base->Type = type; + AddToEntityList(base); + + base->x = LOCATION_NULL; + base->y = LOCATION_NULL; + base->z = 0; + base->sprite_width = 0x10; + base->sprite_height_negative = 0x14; + base->sprite_height_positive = 0x8; + base->sprite_left = LOCATION_NULL; + + SpriteSpatialInsert(base, { LOCATION_NULL, 0 }); +} + +SpriteBase* CreateEntity(EntityType type) { if (_freeIdList.size() == 0) { @@ -435,158 +378,53 @@ rct_sprite* create_sprite(SpriteIdentifier spriteIdentifier, EntityListId linked return nullptr; } - if (linkedListIndex == EntityListId::Misc) + if (EntityTypeIsMiscEntity(type)) { // Misc sprites are commonly used for effects, if there are less than MAX_MISC_SPRITES // free it will fail to keep slots for more relevant sprites. // Also there can't be more than MAX_MISC_SPRITES sprites in this list. - uint16_t miscSlotsRemaining = MAX_MISC_SPRITES - GetEntityListCount(EntityListId::Misc); + uint16_t miscSlotsRemaining = MAX_MISC_SPRITES - GetMiscEntityCount(); if (miscSlotsRemaining >= _freeIdList.size()) { return nullptr; } } - auto* sprite = GetEntity(_freeIdList.back()); - if (sprite == nullptr) + auto* entity = GetEntity(_freeIdList.back()); + if (entity == nullptr) { return nullptr; } _freeIdList.pop_back(); - AddToEntityList(linkedListIndex, sprite); - // Need to reset all sprite data, as the uninitialised values - // may contain garbage and cause a desync later on. - sprite_reset(sprite); + PrepareNewEntity(entity, type); - sprite->x = LOCATION_NULL; - sprite->y = LOCATION_NULL; - sprite->z = 0; - sprite->sprite_width = 0x10; - sprite->sprite_height_negative = 0x14; - sprite->sprite_height_positive = 0x8; - sprite->flags = 0; - sprite->sprite_left = LOCATION_NULL; - - SpriteSpatialInsert(sprite, { LOCATION_NULL, 0 }); - - return reinterpret_cast(sprite); + return entity; } -rct_sprite* create_sprite(SpriteIdentifier spriteIdentifier) +SpriteBase* CreateEntityAt(const uint16_t index, const EntityType type) { - EntityListId linkedListIndex = EntityListId::Free; - switch (spriteIdentifier) + auto id = std::lower_bound(std::rbegin(_freeIdList), std::rend(_freeIdList), index); + if (id == std::rend(_freeIdList) || *id != index) { - case SpriteIdentifier::Vehicle: - linkedListIndex = EntityListId::Vehicle; - break; - case SpriteIdentifier::Peep: - linkedListIndex = EntityListId::Peep; - break; - case SpriteIdentifier::Misc: - linkedListIndex = EntityListId::Misc; - break; - case SpriteIdentifier::Litter: - linkedListIndex = EntityListId::Litter; - break; - default: - Guard::Assert(false, "Invalid sprite identifier: 0x%02X", spriteIdentifier); - return nullptr; + return nullptr; } - return create_sprite(spriteIdentifier, linkedListIndex); -} -/** - * - * rct2: 0x00673200 - */ -void SteamParticle::Update() -{ - // Move up 1 z every 3 ticks (Starts after 4 ticks) - Invalidate(); - time_to_move++; - if (time_to_move >= 4) + auto* entity = GetEntity(index); + if (entity == nullptr) { - time_to_move = 1; - MoveTo({ x, y, z + 1 }); + return nullptr; } - frame += 64; - if (frame >= (56 * 64)) - { - sprite_remove(this); - } -} -/** - * - * rct2: 0x0067363D - */ -void sprite_misc_explosion_cloud_create(const CoordsXYZ& cloudPos) -{ - MiscEntity* sprite = &create_sprite(SpriteIdentifier::Misc)->misc; - if (sprite != nullptr) - { - sprite->sprite_width = 44; - sprite->sprite_height_negative = 32; - sprite->sprite_height_positive = 34; - sprite->sprite_identifier = SpriteIdentifier::Misc; - sprite->MoveTo(cloudPos + CoordsXYZ{ 0, 0, 4 }); - sprite->SubType = MiscEntityType::ExplosionCloud; - sprite->frame = 0; - } -} + _freeIdList.erase(std::next(id).base()); -/** - * - * rct2: 0x00673385 - */ -void ExplosionCloud::Update() -{ - Invalidate(); - frame += 128; - if (frame >= (36 * 128)) - { - sprite_remove(this); - } -} - -/** - * - * rct2: 0x0067366B - */ -void sprite_misc_explosion_flare_create(const CoordsXYZ& flarePos) -{ - MiscEntity* sprite = &create_sprite(SpriteIdentifier::Misc)->misc; - if (sprite != nullptr) - { - sprite->sprite_width = 25; - sprite->sprite_height_negative = 85; - sprite->sprite_height_positive = 8; - sprite->sprite_identifier = SpriteIdentifier::Misc; - sprite->MoveTo(flarePos + CoordsXYZ{ 0, 0, 4 }); - sprite->SubType = MiscEntityType::ExplosionFlare; - sprite->frame = 0; - } -} - -/** - * - * rct2: 0x006733B4 - */ -void ExplosionFlare::Update() -{ - Invalidate(); - frame += 64; - if (frame >= (124 * 64)) - { - sprite_remove(this); - } + PrepareNewEntity(entity, type); + return entity; } template void MiscUpdateAllType() { - for (auto misc : EntityList(EntityListId::Misc)) + for (auto misc : EntityList()) { misc->Update(); } @@ -719,104 +557,6 @@ void sprite_remove(SpriteBase* sprite) sprite_reset(sprite); } -static bool litter_can_be_at(const CoordsXYZ& mapPos) -{ - TileElement* tileElement; - - if (!map_is_location_owned(mapPos)) - return false; - - tileElement = map_get_first_element_at(mapPos); - if (tileElement == nullptr) - return false; - do - { - if (tileElement->GetType() != TILE_ELEMENT_TYPE_PATH) - continue; - - int32_t pathZ = tileElement->GetBaseZ(); - if (pathZ < mapPos.z || pathZ >= mapPos.z + 32) - continue; - - return !tile_element_is_underground(tileElement); - } while (!(tileElement++)->IsLastForTile()); - return false; -} - -/** - * - * rct2: 0x0067375D - */ -void litter_create(const CoordsXYZD& litterPos, LitterType type) -{ - if (gCheatsDisableLittering) - return; - - auto offsetLitterPos = litterPos - + CoordsXY{ CoordsDirectionDelta[litterPos.direction >> 3].x / 8, - CoordsDirectionDelta[litterPos.direction >> 3].y / 8 }; - - if (!litter_can_be_at(offsetLitterPos)) - return; - - if (GetEntityListCount(EntityListId::Litter) >= 500) - { - Litter* newestLitter = nullptr; - uint32_t newestLitterCreationTick = 0; - for (auto litter : EntityList(EntityListId::Litter)) - { - if (newestLitterCreationTick <= litter->creationTick) - { - newestLitterCreationTick = litter->creationTick; - newestLitter = litter; - } - } - - if (newestLitter != nullptr) - { - newestLitter->Invalidate(); - sprite_remove(newestLitter); - } - } - - Litter* litter = reinterpret_cast(create_sprite(SpriteIdentifier::Litter)); - if (litter == nullptr) - return; - - litter->sprite_direction = offsetLitterPos.direction; - litter->sprite_width = 6; - litter->sprite_height_negative = 6; - litter->sprite_height_positive = 3; - litter->sprite_identifier = SpriteIdentifier::Litter; - litter->SubType = type; - litter->MoveTo(offsetLitterPos); - litter->creationTick = gScenarioTicks; -} - -/** - * - * rct2: 0x006738E1 - */ -void litter_remove_at(const CoordsXYZ& litterPos) -{ - std::vector removals; - for (auto litter : EntityTileList(litterPos)) - { - if (abs(litter->z - litterPos.z) <= 16) - { - if (abs(litter->x - litterPos.x) <= 8 && abs(litter->y - litterPos.y) <= 8) - { - removals.push_back(litter); - } - } - } - for (auto* litter : removals) - { - litter->Invalidate(); - sprite_remove(litter); - } -} - /** * Loops through all sprites, finds floating objects and removes them. * Returns the amount of removed objects as feedback. @@ -824,12 +564,12 @@ void litter_remove_at(const CoordsXYZ& litterPos) uint16_t remove_floating_sprites() { uint16_t removed = 0; - for (auto* balloon : EntityList(EntityListId::Misc)) + for (auto* balloon : EntityList()) { sprite_remove(balloon); removed++; } - for (auto* duck : EntityList(EntityListId::Misc)) + for (auto* duck : EntityList()) { if (duck->IsFlying()) { @@ -837,7 +577,7 @@ uint16_t remove_floating_sprites() removed++; } } - for (auto* money : EntityList(EntityListId::Misc)) + for (auto* money : EntityList()) { sprite_remove(money); removed++; @@ -845,104 +585,6 @@ uint16_t remove_floating_sprites() return removed; } -void EntityTweener::PopulateEntities(EntityListId id) -{ - for (auto ent : EntityList(id)) - { - Entities.push_back(ent); - PrePos.emplace_back(ent->x, ent->y, ent->z); - } -} - -void EntityTweener::PreTick() -{ - Restore(); - Reset(); - PopulateEntities(EntityListId::Peep); - PopulateEntities(EntityListId::Vehicle); - PopulateEntities(EntityListId::TrainHead); -} - -void EntityTweener::PostTick() -{ - for (auto* ent : Entities) - { - if (ent == nullptr) - { - // Sprite was removed, add a dummy position to keep the index aligned. - PostPos.emplace_back(0, 0, 0); - } - else - { - PostPos.emplace_back(ent->x, ent->y, ent->z); - } - } -} - -void EntityTweener::RemoveEntity(SpriteBase* entity) -{ - if (entity->sprite_identifier != SpriteIdentifier::Peep && entity->sprite_identifier != SpriteIdentifier::Vehicle) - { - // Only peeps and vehicles are tweened, bail if type is incorrect. - return; - } - - auto it = std::find(Entities.begin(), Entities.end(), entity); - if (it != Entities.end()) - *it = nullptr; -} - -void EntityTweener::Tween(float alpha) -{ - const float inv = (1.0f - alpha); - for (size_t i = 0; i < Entities.size(); ++i) - { - auto* ent = Entities[i]; - if (ent == nullptr) - continue; - - auto& posA = PrePos[i]; - auto& posB = PostPos[i]; - - if (posA == posB) - continue; - - sprite_set_coordinates( - { static_cast(std::round(posB.x * alpha + posA.x * inv)), - static_cast(std::round(posB.y * alpha + posA.y * inv)), - static_cast(std::round(posB.z * alpha + posA.z * inv)) }, - ent); - ent->Invalidate(); - } -} - -void EntityTweener::Restore() -{ - for (size_t i = 0; i < Entities.size(); ++i) - { - auto* ent = Entities[i]; - if (ent == nullptr) - continue; - - sprite_set_coordinates(PostPos[i], ent); - ent->Invalidate(); - } -} - -void EntityTweener::Reset() -{ - Entities.clear(); - PrePos.clear(); - PostPos.clear(); -} - -static EntityTweener tweener; - -EntityTweener& EntityTweener::Get() -{ - return tweener; -} - void sprite_set_flashing(SpriteBase* sprite, bool flashing) { assert(sprite->sprite_index < MAX_ENTITIES); diff --git a/src/openrct2/world/Sprite.h b/src/openrct2/world/Sprite.h index 0058633787..6ac0545b30 100644 --- a/src/openrct2/world/Sprite.h +++ b/src/openrct2/world/Sprite.h @@ -11,118 +11,9 @@ #define _SPRITE_H_ #include "../common.h" -#include "../peep/Peep.h" -#include "../ride/Vehicle.h" -#include "Entity.h" -#include "Fountain.h" #include "SpriteBase.h" -enum class SpriteIdentifier : uint8_t -{ - Vehicle = 0, - Peep = 1, - Misc = 2, - Litter = 3, - Null = 255 -}; - -enum LitterType : uint8_t; - -struct Litter : SpriteBase -{ - LitterType SubType; - uint32_t creationTick; -}; - -struct Balloon : MiscEntity -{ - uint16_t popped; - uint8_t time_to_move; - uint8_t colour; - - void Update(); - void Pop(); - void Press(); -}; - -struct Duck : MiscEntity -{ - enum class DuckState : uint8_t - { - FlyToWater, - Swim, - Drink, - DoubleDrink, - FlyAway, - }; - int16_t target_x; - int16_t target_y; - DuckState state; - - void Update(); - uint32_t GetFrameImage(int32_t direction) const; - bool IsFlying(); - void Remove(); - -private: - void UpdateFlyToWater(); - void UpdateSwim(); - void UpdateDrink(); - void UpdateDoubleDrink(); - void UpdateFlyAway(); -}; - -struct MoneyEffect : MiscEntity -{ - uint16_t MoveDelay; - uint8_t NumMovements; - uint8_t Vertical; - money32 Value; - int16_t OffsetX; - uint16_t Wiggle; - - static void CreateAt(money32 value, const CoordsXYZ& effectPos, bool vertical); - static void Create(money32 value, const CoordsXYZ& loc); - void Update(); - std::pair GetStringId() const; -}; - -struct VehicleCrashParticle : MiscEntity -{ - uint16_t time_to_live; - uint8_t colour[2]; - uint16_t crashed_sprite_base; - int16_t velocity_x; - int16_t velocity_y; - int16_t velocity_z; - int32_t acceleration_x; - int32_t acceleration_y; - int32_t acceleration_z; - - void Update(); -}; - -struct ExplosionFlare : MiscEntity -{ - void Update(); -}; - -struct ExplosionCloud : MiscEntity -{ - void Update(); -}; - -struct CrashSplashParticle : MiscEntity -{ - void Update(); -}; - -struct SteamParticle : MiscEntity -{ - uint16_t time_to_move; - - void Update(); -}; +#include #pragma pack(push, 1) /** @@ -132,133 +23,29 @@ struct SteamParticle : MiscEntity union rct_sprite { uint8_t pad_00[0x200]; - MiscEntity misc; - Peep peep; - Litter litter; - Vehicle vehicle; - Balloon balloon; - Duck duck; - JumpingFountain jumping_fountain; - MoneyEffect money_effect; - VehicleCrashParticle crashed_vehicle_particle; - CrashSplashParticle crash_splash; - SteamParticle steam_particle; - - // Default constructor to prevent non trivial construction issues - rct_sprite() - : pad_00() - { - } + SpriteBase base; }; assert_struct_size(rct_sprite, 0x200); struct rct_sprite_checksum { - std::array raw; + std::array raw; std::string ToString() const; }; #pragma pack(pop) -enum class MiscEntityType : uint8_t -{ - SteamParticle, - MoneyEffect, - CrashedVehicleParticle, - ExplosionCloud, - CrashSplash, - ExplosionFlare, - JumpingFountainWater, - Balloon, - Duck, - JumpingFountainSnow -}; - -enum -{ - SPRITE_FLAGS_IS_CRASHED_VEHICLE_SPRITE = 1 << 7, - SPRITE_FLAGS_PEEP_VISIBLE = 1 << 8, // Peep is eligible to show in summarized guest list window (is inside park?) - SPRITE_FLAGS_PEEP_FLASHING = 1 << 9, // Deprecated: Use sprite_set_flashing/sprite_get_flashing instead. -}; - -enum LitterType : uint8_t -{ - LITTER_TYPE_SICK, - LITTER_TYPE_SICK_ALT, - LITTER_TYPE_EMPTY_CAN, - LITTER_TYPE_RUBBISH, - LITTER_TYPE_EMPTY_BURGER_BOX, - LITTER_TYPE_EMPTY_CUP, - LITTER_TYPE_EMPTY_BOX, - LITTER_TYPE_EMPTY_BOTTLE, - LITTER_TYPE_EMPTY_BOWL_RED, - LITTER_TYPE_EMPTY_DRINK_CARTON, - LITTER_TYPE_EMPTY_JUICE_CUP, - LITTER_TYPE_EMPTY_BOWL_BLUE, -}; - -constexpr const uint32_t SPATIAL_INDEX_SIZE = (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) + 1; -constexpr const uint32_t SPATIAL_INDEX_LOCATION_NULL = SPATIAL_INDEX_SIZE - 1; - -extern const rct_string_id litterNames[12]; - -rct_sprite* create_sprite(SpriteIdentifier spriteIdentifier); -rct_sprite* create_sprite(SpriteIdentifier spriteIdentifier, EntityListId linkedListIndex); void reset_sprite_list(); void reset_sprite_spatial_index(); -void sprite_clear_all_unused(); void sprite_misc_update_all(); void sprite_set_coordinates(const CoordsXYZ& spritePos, SpriteBase* sprite); void sprite_remove(SpriteBase* sprite); -void litter_create(const CoordsXYZD& litterPos, LitterType type); -void litter_remove_at(const CoordsXYZ& litterPos); uint16_t remove_floating_sprites(); -void sprite_misc_explosion_cloud_create(const CoordsXYZ& cloudPos); -void sprite_misc_explosion_flare_create(const CoordsXYZ& flarePos); - -/////////////////////////////////////////////////////////////// -// Balloon -/////////////////////////////////////////////////////////////// -void create_balloon(const CoordsXYZ& balloonPos, int32_t colour, bool isPopped); -void balloon_update(Balloon* balloon); - -/////////////////////////////////////////////////////////////// -// Duck -/////////////////////////////////////////////////////////////// -void create_duck(const CoordsXY& pos); -void duck_press(Duck* duck); -void duck_remove_all(); - -/////////////////////////////////////////////////////////////// -// Crash particles -/////////////////////////////////////////////////////////////// -void crashed_vehicle_particle_create(rct_vehicle_colour colours, const CoordsXYZ& vehiclePos); -void crash_splash_create(const CoordsXYZ& splashPos); rct_sprite_checksum sprite_checksum(); void sprite_set_flashing(SpriteBase* sprite, bool flashing); bool sprite_get_flashing(SpriteBase* sprite); -class EntityTweener -{ - std::vector Entities; - std::vector PrePos; - std::vector PostPos; - -private: - void PopulateEntities(EntityListId id); - -public: - static EntityTweener& Get(); - - void PreTick(); - void PostTick(); - void RemoveEntity(SpriteBase* entity); - void Tween(float alpha); - void Restore(); - void Reset(); -}; - #endif diff --git a/src/openrct2/world/SpriteBase.h b/src/openrct2/world/SpriteBase.h index 25d792b819..ee84d6d62c 100644 --- a/src/openrct2/world/SpriteBase.h +++ b/src/openrct2/world/SpriteBase.h @@ -3,23 +3,37 @@ #include "../common.h" struct CoordsXYZ; -enum class EntityListId : uint8_t; -enum class SpriteIdentifier : uint8_t; + +enum class EntityType : uint8_t +{ + Vehicle, + Guest, + Staff, + Litter, + SteamParticle, + MoneyEffect, + CrashedVehicleParticle, + ExplosionCloud, + CrashSplash, + ExplosionFlare, + JumpingFountain, + Balloon, + Duck, + Count, + Null = 255 +}; struct SpriteBase { - SpriteIdentifier sprite_identifier; - // Valid values are EntityListId::... - EntityListId linked_list_index; - // Height from centre of sprite to bottom - uint8_t sprite_height_negative; + EntityType Type; uint16_t sprite_index; - uint16_t flags; int16_t x; int16_t y; int16_t z; // Width from centre of sprite to edge uint8_t sprite_width; + // Height from centre of sprite to bottom + uint8_t sprite_height_negative; // Height from centre of sprite to top uint8_t sprite_height_positive; // Screen Coordinates of sprite @@ -60,9 +74,7 @@ struct SpriteBase } }; -enum class MiscEntityType : uint8_t; struct MiscEntity : SpriteBase { - MiscEntityType SubType; uint16_t frame; }; diff --git a/src/openrct2/world/TileElement.cpp b/src/openrct2/world/TileElement.cpp index 46c6ecd7bb..0dbc860b71 100644 --- a/src/openrct2/world/TileElement.cpp +++ b/src/openrct2/world/TileElement.cpp @@ -31,22 +31,24 @@ bool tile_element_is_underground(TileElement* tileElement) BannerIndex TileElement::GetBannerIndex() const { - rct_scenery_entry* sceneryEntry; - switch (GetType()) { case TILE_ELEMENT_TYPE_LARGE_SCENERY: - sceneryEntry = AsLargeScenery()->GetEntry(); - if (sceneryEntry == nullptr || sceneryEntry->large_scenery.scrolling_mode == SCROLLING_MODE_NONE) + { + auto* sceneryEntry = AsLargeScenery()->GetEntry(); + if (sceneryEntry == nullptr || sceneryEntry->scrolling_mode == SCROLLING_MODE_NONE) return BANNER_INDEX_NULL; return AsLargeScenery()->GetBannerIndex(); + } case TILE_ELEMENT_TYPE_WALL: - sceneryEntry = AsWall()->GetEntry(); - if (sceneryEntry == nullptr || sceneryEntry->wall.scrolling_mode == SCROLLING_MODE_NONE) + { + auto* wallEntry = AsWall()->GetEntry(); + if (wallEntry == nullptr || wallEntry->scrolling_mode == SCROLLING_MODE_NONE) return BANNER_INDEX_NULL; return AsWall()->GetBannerIndex(); + } case TILE_ELEMENT_TYPE_BANNER: return AsBanner()->GetIndex(); default: diff --git a/src/openrct2/world/TileElement.h b/src/openrct2/world/TileElement.h index 46342baaba..7efd8744a7 100644 --- a/src/openrct2/world/TileElement.h +++ b/src/openrct2/world/TileElement.h @@ -17,7 +17,11 @@ struct Banner; struct CoordsXY; -struct rct_scenery_entry; +struct LargeSceneryEntry; +struct SmallSceneryEntry; +struct WallSceneryEntry; +struct PathBitEntry; +struct BannerSceneryEntry; struct rct_footpath_entry; class LargeSceneryObject; class TerrainSurfaceObject; @@ -324,7 +328,7 @@ public: bool HasAddition() const; uint8_t GetAddition() const; ObjectEntryIndex GetAdditionEntryIndex() const; - rct_scenery_entry* GetAdditionEntry() const; + PathBitEntry* GetAdditionEntry() const; void SetAddition(uint8_t newAddition); bool AdditionIsGhost() const; @@ -458,7 +462,7 @@ private: public: ObjectEntryIndex GetEntryIndex() const; void SetEntryIndex(ObjectEntryIndex newIndex); - rct_scenery_entry* GetEntry() const; + SmallSceneryEntry* GetEntry() const; uint8_t GetAge() const; void SetAge(uint8_t newAge); void IncreaseAge(const CoordsXY& sceneryPos); @@ -492,7 +496,7 @@ private: public: ObjectEntryIndex GetEntryIndex() const; void SetEntryIndex(ObjectEntryIndex newIndex); - rct_scenery_entry* GetEntry() const; + LargeSceneryEntry* GetEntry() const; const LargeSceneryObject* GetObject() const; uint8_t GetSequenceIndex() const; @@ -531,7 +535,7 @@ private: public: uint16_t GetEntryIndex() const; void SetEntryIndex(uint16_t newIndex); - rct_scenery_entry* GetEntry() const; + WallSceneryEntry* GetEntry() const; uint8_t GetSlope() const; void SetSlope(uint8_t newslope); @@ -604,7 +608,7 @@ private: #pragma clang diagnostic pop public: Banner* GetBanner() const; - rct_scenery_entry* GetEntry() const; + BannerSceneryEntry* GetEntry() const; BannerIndex GetIndex() const; void SetIndex(BannerIndex newIndex); diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index 1aa8423a71..7dbb1dec4f 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -94,7 +94,7 @@ namespace OpenRCT2::TileInspector GameActionResultPtr InsertCorruptElementAt(const CoordsXY& loc, int16_t elementIndex, bool isExecuting) { // Make sure there is enough space for the new element - if (!map_check_free_elements_and_reorganise(1)) + if (!MapCheckCapacityAndReorganise(loc)) return std::make_unique(GameActions::Status::NoFreeElements, STR_NONE); if (isExecuting) @@ -149,10 +149,10 @@ namespace OpenRCT2::TileInspector static int32_t numLargeScenerySequences(const CoordsXY& loc, const LargeSceneryElement* const largeScenery) { - const rct_scenery_entry* const largeEntry = largeScenery->GetEntry(); + const auto* const largeEntry = largeScenery->GetEntry(); const auto direction = largeScenery->GetDirection(); const auto sequenceIndex = largeScenery->GetSequenceIndex(); - const auto* tiles = largeEntry->large_scenery.tiles; + const auto* tiles = largeEntry->tiles; const auto& tile = tiles[sequenceIndex]; const auto rotatedFirstTile = CoordsXYZ{ CoordsXY{ tile.x_offset, tile.y_offset }.Rotate(direction), @@ -359,7 +359,7 @@ namespace OpenRCT2::TileInspector GameActionResultPtr PasteElementAt(const CoordsXY& loc, TileElement element, bool isExecuting) { // Make sure there is enough space for the new element - if (!map_check_free_elements_and_reorganise(1)) + if (!MapCheckCapacityAndReorganise(loc)) { return std::make_unique(GameActions::Status::NoFreeElements, STR_NONE); } diff --git a/src/openrct2/world/Wall.cpp b/src/openrct2/world/Wall.cpp index d84b9214ac..89bc53b0b0 100644 --- a/src/openrct2/world/Wall.cpp +++ b/src/openrct2/world/Wall.cpp @@ -138,7 +138,7 @@ uint16_t WallElement::GetEntryIndex() const return entryIndex; } -rct_scenery_entry* WallElement::GetEntry() const +WallSceneryEntry* WallElement::GetEntry() const { return get_wall_entry(entryIndex); } diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index e819989d88..7c2f408090 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -154,18 +154,17 @@ template<> bool SpriteBase::Is() const template<> bool SpriteBase::Is() const { - return sprite_identifier == SpriteIdentifier::Peep; + return Type == EntityType::Guest || Type == EntityType::Staff; } template<> bool SpriteBase::Is() const { - auto peep = As(); - return peep && peep->AssignedPeepType == PeepType::Guest; + return Type == EntityType::Guest; } template<> bool SpriteBase::Is() const { - return sprite_identifier == SpriteIdentifier::Vehicle; + return Type == EntityType::Vehicle; } SpriteBase* get_sprite(size_t sprite_idx) @@ -473,7 +472,7 @@ Ride* Vehicle::GetRide() const bool Vehicle::IsGhost() const { auto r = GetRide(); - return r != nullptr && r->status == RIDE_STATUS_SIMULATING; + return r != nullptr && r->status == RideStatus::Simulating; } uint8_t TileElementBase::GetOccupiedQuadrants() const diff --git a/test/testpaint/PaintIntercept.cpp b/test/testpaint/PaintIntercept.cpp index 1067c70dd2..f5f0ec2df3 100644 --- a/test/testpaint/PaintIntercept.cpp +++ b/test/testpaint/PaintIntercept.cpp @@ -369,6 +369,15 @@ paint_struct* PaintAddImageAsParent( bound_box_offset_x, bound_box_offset_y, bound_box_offset_z, session->CurrentRotation); } +paint_struct* PaintAddImageAsParent( + paint_session* session, uint32_t image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize, + const CoordsXYZ& boundBoxOffset) +{ + return PaintAddImageAsParent( + session, image_id, offset.x, offset.y, boundBoxSize.x, boundBoxSize.y, boundBoxSize.z, offset.z, boundBoxOffset.x, + boundBoxOffset.y, boundBoxOffset.z); +} + paint_struct* PaintAddImageAsChild( paint_session* session, uint32_t image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxLength, const CoordsXYZ& boundBoxOffset) diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index 974f5c6136..df55e74b3e 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -68,8 +68,8 @@ protected: { // Our start position is in tile coordinates, but we need to give the peep spawn // position in actual world coords (32 units per tile X/Y, 8 per Z level). - // Add 16 so the peep spawns in the center of the tile. - Peep* peep = Peep::Generate(pos->ToCoordsXYZ().ToTileCentre()); + // Add 16 so the peep spawns in the centre of the tile. + auto* peep = Guest::Generate(pos->ToCoordsXYZ().ToTileCentre()); // Peeps that are outside of the park use specialized pathfinding which we don't want to // use here diff --git a/test/tests/PlayTests.cpp b/test/tests/PlayTests.cpp index bc203938d5..9ff2d3846e 100644 --- a/test/tests/PlayTests.cpp +++ b/test/tests/PlayTests.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -53,7 +54,6 @@ static std::unique_ptr localStartGame(const std::string& parkPath) reset_all_sprite_quadrant_placements(); scenery_set_default_placement_configuration(); load_palette(); - map_reorganise_elements(); EntityTweener::Get().Reset(); AutoCreateMapAnimations(); fix_invalid_vehicle_sprite_sizes(); @@ -107,7 +107,7 @@ TEST_F(PlayTests, SecondGuestInQueueShouldNotRideIfNoFunds) Ride& ferrisWheel = *it; // Open it for free - ride_set_status(&ferrisWheel, RIDE_STATUS_OPEN); + ride_set_status(&ferrisWheel, RideStatus::Open); execute(ferrisWheel.id, 0, true); // Ignore intensity to stimulate peeps to queue into ferris wheel @@ -167,7 +167,7 @@ TEST_F(PlayTests, CarRideWithOneCarOnlyAcceptsTwoGuests) Ride& carRide = *it; // Open it for free - ride_set_status(&carRide, RIDE_STATUS_OPEN); + ride_set_status(&carRide, RideStatus::Open); execute(carRide.id, 0, true); // Ignore intensity to stimulate peeps to queue into the ride diff --git a/test/tests/ReplayTests.cpp b/test/tests/ReplayTests.cpp index 8a0192a150..83b8c8f4b5 100644 --- a/test/tests/ReplayTests.cpp +++ b/test/tests/ReplayTests.cpp @@ -53,7 +53,7 @@ static std::vector GetReplayFiles() std::string replayPathPattern = Path::Combine(replayPath, "*.sv6r"); std::vector files; - std::unique_ptr scanner = std::unique_ptr(Path::ScanDirectory(replayPathPattern, true)); + auto scanner = Path::ScanDirectory(replayPathPattern, true); while (scanner->Next()) { ReplayTestData test; @@ -71,10 +71,6 @@ protected: TEST_P(ReplayTests, RunReplay) { -#ifdef PLATFORM_32BIT - log_warning("Replay Tests have not been performed. OpenRCT2/OpenRCT2#11279."); - return; -#else gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; core_init(); @@ -103,7 +99,6 @@ TEST_P(ReplayTests, RunReplay) } ASSERT_FALSE(replayManager->IsReplaying()); ASSERT_FALSE(replayManager->IsPlaybackStateMismatching()); -#endif } static void PrintTo(const ReplayTestData& testData, std::ostream* os) diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 3ea6af2704..327042c350 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -28,18 +29,13 @@ #include #include #include -#include +#include #include #include #include using namespace OpenRCT2; -struct GameState_t -{ - rct_sprite sprites[MAX_ENTITIES]; -}; - static bool LoadFileToBuffer(MemoryStream& stream, const std::string& filePath) { FILE* fp = fopen(filePath.c_str(), "rb"); @@ -67,7 +63,6 @@ static void GameInit(bool retainSpatialIndices) reset_all_sprite_quadrant_placements(); scenery_set_default_placement_configuration(); load_palette(); - map_reorganise_elements(); EntityTweener::Get().Reset(); AutoCreateMapAnimations(); fix_invalid_vehicle_sprite_sizes(); @@ -103,18 +98,15 @@ static bool ExportSave(MemoryStream& stream, std::unique_ptr& context) return true; } -static std::unique_ptr GetGameState(std::unique_ptr& context) +static void RecordGameStateSnapshot(std::unique_ptr& context, MemoryStream& snapshotStream) { - std::unique_ptr res = std::make_unique(); - for (size_t spriteIdx = 0; spriteIdx < MAX_ENTITIES; spriteIdx++) - { - rct_sprite* sprite = reinterpret_cast(GetEntity(spriteIdx)); - if (sprite == nullptr) - res->sprites[spriteIdx].misc.sprite_identifier = SpriteIdentifier::Null; - else - res->sprites[spriteIdx] = *sprite; - } - return res; + auto* snapshots = context->GetGameStateSnapshots(); + + auto& snapshot = snapshots->CreateSnapshot(); + snapshots->Capture(snapshot); + snapshots->LinkSnapshot(snapshot, gCurrentTicks, scenario_rand_state().s0); + DataSerialiser snapShotDs(true, snapshotStream); + snapshots->SerialiseSnapshot(snapshot, snapShotDs); } static void AdvanceGameTicks(uint32_t ticks, std::unique_ptr& context) @@ -126,332 +118,7 @@ static void AdvanceGameTicks(uint32_t ticks, std::unique_ptr& context) } } -#define COMPARE_FIELD(field) EXPECT_EQ(left.field, right.field) - -static void CompareSpriteDataCommon(const SpriteBase& left, const SpriteBase& right) -{ - COMPARE_FIELD(sprite_identifier); - COMPARE_FIELD(linked_list_index); - COMPARE_FIELD(sprite_index); - COMPARE_FIELD(flags); - COMPARE_FIELD(x); - COMPARE_FIELD(y); - COMPARE_FIELD(z); - // INVESTIGATE: These fields never match but are also not important to the game state. - /* - COMPARE_FIELD(sprite_width); - COMPARE_FIELD(sprite_height_negative); - COMPARE_FIELD(sprite_height_positive); - COMPARE_FIELD(sprite_left); - COMPARE_FIELD(sprite_top); - COMPARE_FIELD(sprite_right); - COMPARE_FIELD(sprite_bottom); - */ - COMPARE_FIELD(sprite_direction); -} - -static void CompareSpriteDataPeep(const Peep& left, const Peep& right) -{ - COMPARE_FIELD(NextLoc.x); - COMPARE_FIELD(NextLoc.y); - COMPARE_FIELD(NextLoc.z); - COMPARE_FIELD(NextFlags); - COMPARE_FIELD(OutsideOfPark); - COMPARE_FIELD(State); - COMPARE_FIELD(SubState); - COMPARE_FIELD(SpriteType); - COMPARE_FIELD(AssignedPeepType); - COMPARE_FIELD(GuestNumRides); - COMPARE_FIELD(TshirtColour); - COMPARE_FIELD(TrousersColour); - COMPARE_FIELD(DestinationX); - COMPARE_FIELD(DestinationY); - COMPARE_FIELD(DestinationTolerance); - COMPARE_FIELD(Var37); - COMPARE_FIELD(Energy); - COMPARE_FIELD(EnergyTarget); - COMPARE_FIELD(Happiness); - COMPARE_FIELD(HappinessTarget); - COMPARE_FIELD(Nausea); - COMPARE_FIELD(NauseaTarget); - COMPARE_FIELD(Hunger); - COMPARE_FIELD(Thirst); - COMPARE_FIELD(Toilet); - COMPARE_FIELD(Mass); - COMPARE_FIELD(TimeToConsume); - COMPARE_FIELD(Intensity); - COMPARE_FIELD(NauseaTolerance); - COMPARE_FIELD(WindowInvalidateFlags); - COMPARE_FIELD(PaidOnDrink); - for (int i = 0; i < PEEP_MAX_THOUGHTS; i++) - { - COMPARE_FIELD(RideTypesBeenOn[i]); - } - COMPARE_FIELD(ItemFlags); - COMPARE_FIELD(Photo2RideRef); - COMPARE_FIELD(Photo3RideRef); - COMPARE_FIELD(Photo4RideRef); - COMPARE_FIELD(CurrentRide); - COMPARE_FIELD(CurrentRideStation); - COMPARE_FIELD(CurrentTrain); - COMPARE_FIELD(TimeToSitdown); - COMPARE_FIELD(SpecialSprite); - COMPARE_FIELD(ActionSpriteType); - COMPARE_FIELD(NextActionSpriteType); - COMPARE_FIELD(ActionSpriteImageOffset); - COMPARE_FIELD(Action); - COMPARE_FIELD(ActionFrame); - COMPARE_FIELD(StepProgress); - COMPARE_FIELD(GuestNextInQueue); - COMPARE_FIELD(MazeLastEdge); - COMPARE_FIELD(InteractionRideIndex); - COMPARE_FIELD(TimeInQueue); - for (int i = 0; i < 32; i++) - { - COMPARE_FIELD(RidesBeenOn[i]); - } - COMPARE_FIELD(Id); - COMPARE_FIELD(CashInPocket); - COMPARE_FIELD(CashSpent); - COMPARE_FIELD(ParkEntryTime); - COMPARE_FIELD(RejoinQueueTimeout); - COMPARE_FIELD(PreviousRide); - COMPARE_FIELD(PreviousRideTimeOut); - for (int i = 0; i < PEEP_MAX_THOUGHTS; i++) - { - COMPARE_FIELD(Thoughts[i].type); - COMPARE_FIELD(Thoughts[i].item); - COMPARE_FIELD(Thoughts[i].freshness); - COMPARE_FIELD(Thoughts[i].fresh_timeout); - } - COMPARE_FIELD(PathCheckOptimisation); - COMPARE_FIELD(GuestHeadingToRideId); - COMPARE_FIELD(StaffOrders); - COMPARE_FIELD(Photo1RideRef); - COMPARE_FIELD(PeepFlags); - COMPARE_FIELD(PathfindGoal.x); - COMPARE_FIELD(PathfindGoal.y); - COMPARE_FIELD(PathfindGoal.z); - COMPARE_FIELD(PathfindGoal.direction); - for (int i = 0; i < 4; i++) - { - COMPARE_FIELD(PathfindHistory[i].x); - COMPARE_FIELD(PathfindHistory[i].y); - COMPARE_FIELD(PathfindHistory[i].z); - COMPARE_FIELD(PathfindHistory[i].direction); - } - COMPARE_FIELD(WalkingFrameNum); - COMPARE_FIELD(LitterCount); - COMPARE_FIELD(GuestTimeOnRide); - COMPARE_FIELD(DisgustingCount); - COMPARE_FIELD(PaidToEnter); - COMPARE_FIELD(PaidOnRides); - COMPARE_FIELD(PaidOnFood); - COMPARE_FIELD(PaidOnSouvenirs); - COMPARE_FIELD(AmountOfFood); - COMPARE_FIELD(AmountOfDrinks); - COMPARE_FIELD(AmountOfSouvenirs); - COMPARE_FIELD(VandalismSeen); - COMPARE_FIELD(VoucherType); - COMPARE_FIELD(VoucherRideId); - COMPARE_FIELD(SurroundingsThoughtTimeout); - COMPARE_FIELD(Angriness); - COMPARE_FIELD(TimeLost); - COMPARE_FIELD(DaysInQueue); - COMPARE_FIELD(BalloonColour); - COMPARE_FIELD(UmbrellaColour); - COMPARE_FIELD(HatColour); - COMPARE_FIELD(FavouriteRide); - COMPARE_FIELD(FavouriteRideRating); -} - -static void CompareSpriteDataVehicle(const Vehicle& left, const Vehicle& right) -{ - COMPARE_FIELD(SubType); - COMPARE_FIELD(vehicle_sprite_type); - COMPARE_FIELD(bank_rotation); - COMPARE_FIELD(remaining_distance); - COMPARE_FIELD(velocity); - COMPARE_FIELD(acceleration); - COMPARE_FIELD(ride); - COMPARE_FIELD(vehicle_type); - COMPARE_FIELD(colours.body_colour); - COMPARE_FIELD(colours.trim_colour); - COMPARE_FIELD(track_progress); - COMPARE_FIELD(TrackTypeAndDirection); - COMPARE_FIELD(TrackLocation.x); - COMPARE_FIELD(TrackLocation.y); - COMPARE_FIELD(TrackLocation.z); - COMPARE_FIELD(next_vehicle_on_train); - COMPARE_FIELD(prev_vehicle_on_ride); - COMPARE_FIELD(next_vehicle_on_ride); - COMPARE_FIELD(var_44); - COMPARE_FIELD(mass); - COMPARE_FIELD(update_flags); - COMPARE_FIELD(SwingSprite); - COMPARE_FIELD(current_station); - COMPARE_FIELD(SwingPosition); - COMPARE_FIELD(SwingSpeed); - COMPARE_FIELD(status); - COMPARE_FIELD(sub_state); - for (int i = 0; i < 32; i++) - { - COMPARE_FIELD(peep[i]); - } - for (int i = 0; i < 32; i++) - { - COMPARE_FIELD(peep_tshirt_colours[i]); - } - COMPARE_FIELD(num_seats); - COMPARE_FIELD(num_peeps); - COMPARE_FIELD(next_free_seat); - COMPARE_FIELD(restraints_position); - COMPARE_FIELD(spin_speed); - COMPARE_FIELD(sound2_flags); - COMPARE_FIELD(spin_sprite); - COMPARE_FIELD(sound1_id); - COMPARE_FIELD(sound1_volume); - COMPARE_FIELD(sound2_id); - COMPARE_FIELD(sound2_volume); - COMPARE_FIELD(sound_vector_factor); - COMPARE_FIELD(cable_lift_target); - COMPARE_FIELD(speed); - COMPARE_FIELD(powered_acceleration); - COMPARE_FIELD(var_C4); - COMPARE_FIELD(animation_frame); - for (int i = 0; i < 2; i++) - { - COMPARE_FIELD(pad_C6[i]); - } - COMPARE_FIELD(var_C8); - COMPARE_FIELD(var_CA); - COMPARE_FIELD(scream_sound_id); - COMPARE_FIELD(TrackSubposition); - COMPARE_FIELD(num_laps); - COMPARE_FIELD(brake_speed); - COMPARE_FIELD(lost_time_out); - COMPARE_FIELD(vertical_drop_countdown); - COMPARE_FIELD(var_D3); - COMPARE_FIELD(mini_golf_current_animation); - COMPARE_FIELD(mini_golf_flags); - COMPARE_FIELD(ride_subtype); - COMPARE_FIELD(colours_extended); - COMPARE_FIELD(seat_rotation); - COMPARE_FIELD(target_seat_rotation); -} - -static void CompareSpriteDataLitter(const Litter& left, const Litter& right) -{ - COMPARE_FIELD(SubType); - COMPARE_FIELD(creationTick); -} - -static void CompareSpriteDataSteamParticle(const SteamParticle& left, const SteamParticle& right) -{ - COMPARE_FIELD(time_to_move); -} - -static void CompareSpriteDataMoneyEffect(const MoneyEffect& left, const MoneyEffect& right) -{ - COMPARE_FIELD(MoveDelay); - COMPARE_FIELD(NumMovements); - COMPARE_FIELD(Vertical); - COMPARE_FIELD(Value); - COMPARE_FIELD(OffsetX); - COMPARE_FIELD(Wiggle); -} - -static void CompareSpriteDataCrashedVehicleParticle(const VehicleCrashParticle& left, const VehicleCrashParticle& right) -{ - COMPARE_FIELD(time_to_live); - for (size_t i = 0; i < std::size(left.colour); i++) - { - COMPARE_FIELD(colour[i]); - } - COMPARE_FIELD(crashed_sprite_base); - COMPARE_FIELD(velocity_x); - COMPARE_FIELD(velocity_y); - COMPARE_FIELD(velocity_z); - COMPARE_FIELD(acceleration_x); - COMPARE_FIELD(acceleration_y); - COMPARE_FIELD(acceleration_z); -} - -static void CompareSpriteDataJumpingFountain(const JumpingFountain& left, const JumpingFountain& right) -{ - COMPARE_FIELD(NumTicksAlive); - COMPARE_FIELD(FountainFlags); - COMPARE_FIELD(TargetX); - COMPARE_FIELD(TargetY); - COMPARE_FIELD(Iteration); -} - -static void CompareSpriteDataBalloon(const Balloon& left, const Balloon& right) -{ - COMPARE_FIELD(popped); - COMPARE_FIELD(time_to_move); - COMPARE_FIELD(colour); -} - -static void CompareSpriteDataDuck(const Duck& left, const Duck& right) -{ - COMPARE_FIELD(target_x); - COMPARE_FIELD(target_y); - COMPARE_FIELD(state); -} - -static void CompareSpriteData(const rct_sprite& left, const rct_sprite& right) -{ - CompareSpriteDataCommon(left.misc, right.misc); - if (left.misc.sprite_identifier == right.misc.sprite_identifier) - { - switch (left.misc.sprite_identifier) - { - case SpriteIdentifier::Peep: - CompareSpriteDataPeep(left.peep, right.peep); - break; - case SpriteIdentifier::Vehicle: - CompareSpriteDataVehicle(left.vehicle, right.vehicle); - break; - case SpriteIdentifier::Litter: - CompareSpriteDataLitter(left.litter, right.litter); - break; - case SpriteIdentifier::Misc: - COMPARE_FIELD(misc.SubType); - switch (left.misc.SubType) - { - case MiscEntityType::SteamParticle: - CompareSpriteDataSteamParticle(left.steam_particle, right.steam_particle); - break; - case MiscEntityType::MoneyEffect: - CompareSpriteDataMoneyEffect(left.money_effect, right.money_effect); - break; - case MiscEntityType::CrashedVehicleParticle: - CompareSpriteDataCrashedVehicleParticle(left.crashed_vehicle_particle, right.crashed_vehicle_particle); - break; - case MiscEntityType::JumpingFountainSnow: - case MiscEntityType::JumpingFountainWater: - CompareSpriteDataJumpingFountain(left.jumping_fountain, right.jumping_fountain); - break; - case MiscEntityType::Balloon: - CompareSpriteDataBalloon(left.balloon, right.balloon); - break; - case MiscEntityType::Duck: - CompareSpriteDataDuck(left.duck, right.duck); - break; - default: - break; - } - break; - case SpriteIdentifier::Null: - break; - } - } -} - -static void CompareStates( - MemoryStream& importBuffer, MemoryStream& exportBuffer, std::unique_ptr& importedState, - std::unique_ptr& exportedState) +static void CompareStates(MemoryStream& importBuffer, MemoryStream& exportBuffer, MemoryStream& snapshotStream) { if (importBuffer.GetLength() != exportBuffer.GetLength()) { @@ -461,14 +128,39 @@ static void CompareStates( static_cast(exportBuffer.GetLength())); } - for (size_t spriteIdx = 0; spriteIdx < MAX_ENTITIES; ++spriteIdx) + std::unique_ptr context = CreateContext(); + EXPECT_NE(context, nullptr); + bool initialised = context->Initialise(); + ASSERT_TRUE(initialised); + + DataSerialiser ds(false, snapshotStream); + IGameStateSnapshots* snapshots = GetContext()->GetGameStateSnapshots(); + + GameStateSnapshot_t& importSnapshot = snapshots->CreateSnapshot(); + snapshots->SerialiseSnapshot(importSnapshot, ds); + + GameStateSnapshot_t& exportSnapshot = snapshots->CreateSnapshot(); + snapshots->SerialiseSnapshot(exportSnapshot, ds); + + try { - if (importedState->sprites[spriteIdx].misc.sprite_identifier == SpriteIdentifier::Null - && exportedState->sprites[spriteIdx].misc.sprite_identifier == SpriteIdentifier::Null) + GameStateCompareData_t cmpData = snapshots->Compare(importSnapshot, exportSnapshot); + + // Find out if there are any differences between the two states + auto res = std::find_if( + cmpData.spriteChanges.begin(), cmpData.spriteChanges.end(), + [](const GameStateSpriteChange_t& diff) { return diff.changeType != GameStateSpriteChange_t::EQUAL; }); + + if (res != cmpData.spriteChanges.end()) { - continue; + log_warning("Snapshot data differences. %s", snapshots->GetCompareDataText(cmpData).c_str()); + FAIL(); } - CompareSpriteData(importedState->sprites[spriteIdx], exportedState->sprites[spriteIdx]); + } + catch (const std::runtime_error& err) + { + log_warning("Snapshot data failed to be read. Snapshot not compared. %s", err.what()); + FAIL(); } } @@ -481,9 +173,7 @@ TEST(S6ImportExportBasic, all) MemoryStream importBuffer; MemoryStream exportBuffer; - - std::unique_ptr importedState; - std::unique_ptr exportedState; + MemoryStream snapshotStream; // Load initial park data. { @@ -496,8 +186,7 @@ TEST(S6ImportExportBasic, all) std::string testParkPath = TestData::GetParkPath("BigMapTest.sv6"); ASSERT_TRUE(LoadFileToBuffer(importBuffer, testParkPath)); ASSERT_TRUE(ImportSave(importBuffer, context, false)); - importedState = GetGameState(context); - ASSERT_NE(importedState, nullptr); + RecordGameStateSnapshot(context, snapshotStream); ASSERT_TRUE(ExportSave(exportBuffer, context)); } @@ -512,11 +201,11 @@ TEST(S6ImportExportBasic, all) ASSERT_TRUE(ImportSave(exportBuffer, context, true)); - exportedState = GetGameState(context); - ASSERT_NE(exportedState, nullptr); + RecordGameStateSnapshot(context, snapshotStream); } - CompareStates(importBuffer, exportBuffer, importedState, exportedState); + snapshotStream.SetPosition(0); + CompareStates(importBuffer, exportBuffer, snapshotStream); SUCCEED(); } @@ -530,9 +219,7 @@ TEST(S6ImportExportAdvanceTicks, all) MemoryStream importBuffer; MemoryStream exportBuffer; - - std::unique_ptr importedState; - std::unique_ptr exportedState; + MemoryStream snapshotStream; // Load initial park data. { @@ -548,8 +235,7 @@ TEST(S6ImportExportAdvanceTicks, all) AdvanceGameTicks(1000, context); ASSERT_TRUE(ExportSave(exportBuffer, context)); - importedState = GetGameState(context); - ASSERT_NE(importedState, nullptr); + RecordGameStateSnapshot(context, snapshotStream); } // Import the exported version. @@ -562,11 +248,11 @@ TEST(S6ImportExportAdvanceTicks, all) ASSERT_TRUE(ImportSave(exportBuffer, context, true)); - exportedState = GetGameState(context); - ASSERT_NE(exportedState, nullptr); + RecordGameStateSnapshot(context, snapshotStream); } - CompareStates(importBuffer, exportBuffer, importedState, exportedState); + snapshotStream.SetPosition(0); + CompareStates(importBuffer, exportBuffer, snapshotStream); SUCCEED(); } diff --git a/test/tests/testdata/ratings/bpb.sv6.txt b/test/tests/testdata/ratings/bpb.sv6.txt index 834338daac..eb6e683c24 100644 --- a/test/tests/testdata/ratings/bpb.sv6.txt +++ b/test/tests/testdata/ratings/bpb.sv6.txt @@ -7,7 +7,7 @@ RIDE_TYPE_BOBSLEIGH_COASTER: (559, 548, 440) RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (504, 533, 204) RIDE_TYPE_CAR_RIDE: (418, 58, 3) RIDE_TYPE_WOODEN_WILD_MOUSE: (324, 381, 220) -RIDE_TYPE_LOG_FLUME: (416, 139, 105) +RIDE_TYPE_LOG_FLUME: (208, 69, 52) RIDE_TYPE_3D_CINEMA: (350, 240, 140) RIDE_TYPE_HAUNTED_HOUSE: (341, 153, 10) RIDE_TYPE_MONORAIL: (439, 25, 5)