Commit Graph

23962 Commits

Author SHA1 Message Date
Rik Smeets 0c78a27d9f
Fix missing validation on invalid characters in file name (#18287)
When saving a new file with a name containing '/' or '\' on Windows, the incorrect file name would be determined since these characters represent a new folder. This would trigger a failure on save.

The user's input should be validated in all cases. Before, it was only executed for folder names. This change also applies the validation on file names.
2022-10-11 13:27:11 +02:00
OpenRCT2 git bot 10be64abad Merge Localisation/master into OpenRCT2/develop 2022-10-11 04:31:07 +00:00
Michael Steenbeek 6fe19878f6
More ImageId cleanup (#18258)
* Remove more usages of uint32 image indices

* Remove unused gfx_get_sprite_size()

* Remove uint32 images from text drawing

* Remove now-unused ImageId overload

* Default-initialise ttfRunIndex

* Suppress false-alarm GCC error
2022-10-10 19:42:40 +01:00
OpenRCT2 git bot 7ea2c463be Merge Localisation/master into OpenRCT2/develop 2022-10-10 04:31:38 +00:00
Rik Smeets 3fa7d59a1c
Fix #18070: Entrances/exits clip through walls (#18266)
Entrance or exit buildings placed underground could clip through walls.
2022-10-09 17:49:01 +02:00
Silent 9ea6351708
Windows: Use a modern file/folder picker 2022-10-09 17:12:46 +02:00
Michael Steenbeek def6b705cf
Merge pull request #18257 from rik-smeets/improve-crossing-behaviour
Fix guests 'waiting' on extended railway crossings
2022-10-09 17:10:14 +02:00
Rik Smeets 7c2ec714f7 Improve method name for level crossing check 2022-10-09 11:01:10 +02:00
Michael Steenbeek 4878db7c06
Merge pull request #18259 from Gymnasiast/fix/17341
Close #17341: Always allow loading with incorrect checksum
2022-10-09 00:37:07 +02:00
Gymnasiast 079253e168
Remove now-unused SawyerEncoding.{cpp,h} 2022-10-08 23:09:07 +02:00
Gymnasiast c33e377d7c
Close #17341: Always allow loading with incorrect checksum 2022-10-08 22:58:23 +02:00
Rik Smeets bba54d2ecc Fix guests 'waiting' on extended railway crossings
On extended railway crossings, guests would stop to 'wait' for the passing train, which would then phase right through them. This change at least allows guests a chance to get to a safe place.
2022-10-08 21:59:26 +02:00
Michael Steenbeek bfd333bb38
Merge pull request #18217 from CookiePLMonster/fix-18200
Refactor Windows locales and remove the last non-Unicode functions
2022-10-08 21:47:12 +02:00
Michael Steenbeek c31482a3c3
Merge pull request #18255 from Gymnasiast/refactor/load-s6-s4
Remove old S6/S4 loading functions
2022-10-08 21:46:32 +02:00
Rik Smeets 5e080032d7
Merge pull request #18256 from rik-smeets/attack-path-virtual-floor-snakes
Code style: remove snakes from path supports & virtual floor
2022-10-08 21:23:41 +02:00
Rik Smeets 8e33cf580f Code style: Remove snakes from virtual floor 2022-10-08 20:50:59 +02:00
Rik Smeets 4c06c2d5bb Code style: Remove snakes from path supports 2022-10-08 20:50:54 +02:00
Rik Smeets 390a5ed760
Merge pull request #18254 from rik-smeets/attack-metal-supports-snakes
Code style: Remove snakes from metal supports
2022-10-08 20:35:01 +02:00
Gymnasiast 900eea48b2
Consolidate landscape loading functions 2022-10-08 20:12:35 +02:00
Gymnasiast a3800320bc
Replace load_from_sv4() and load_from_sc4() 2022-10-08 20:12:35 +02:00
Gymnasiast 830fedb6b8
Replace load_from_sv6() and load_from_sc6() 2022-10-08 20:12:35 +02:00
Gymnasiast d5f6a5b285
Replace context_load_park_from_file() with object equivalent 2022-10-08 20:12:35 +02:00
Rik Smeets ffab787c73 Consistent naming of ImageId parameter 2022-10-08 19:59:38 +02:00
Rik Smeets 1d557f40ee Code style: Remove snakes from steel supports 2022-10-08 19:59:32 +02:00
Rik Smeets fd84cc111f
Merge pull request #18253 from rik-smeets/attack-wooden-supports-snakes
Code style: Remove snakes from wooden supports
2022-10-08 19:57:43 +02:00
Rik Smeets 0bf64f0228 Remove unused wooden support methods 2022-10-08 19:21:23 +02:00
Rik Smeets 29f61fd403 Code style: Remove snakes from wooden supports 2022-10-08 19:20:59 +02:00
73 39631dae67
Rephrase macOS CMake section a bit 2022-10-08 18:45:50 +02:00
Duncan 5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. (#18222) 2022-10-08 06:56:17 -03:00
Haven Kim 34170d6814
Fix #17853: Invention name tears while being dragged (#18223) 2022-10-08 06:52:32 -03:00
Rik Smeets 00d2dd8ef7
Code Style: Remove snake casing in PaintHelpers (#18247) 2022-10-08 11:24:50 +02:00
ZeeMajora ea04c0b010
Corkscrew rc's large flat to steep pieces available cheatless (#18230)
Makes the corkscrew roller coaster's large flat to steep pieces available without cheats for consistency with the looping & twister roller coasters which are similar coaster types that have this element available without cheats.
2022-10-07 22:27:58 +02:00
Hielke Morsink 2681443b58
Fix changelog order (#18242) 2022-10-07 20:59:48 +02:00
73 9fe568a4b0
Add myself to contributors.md (#18243) 2022-10-07 20:16:29 +02:00
Hielke Morsink d4774293d5
Fix #18064: Unable to dismiss notification messages 2022-10-07 16:44:06 +02:00
Silent 0f978fe907
Remove the last non-Unicode Windows functions 2022-10-07 15:05:43 +02:00
Silent e825ffade7
Platform.Win32: Migrate to modern locale functions and names 2022-10-07 15:05:43 +02:00
OpenRCT2 git bot 57998fc3dc Merge Localisation/master into OpenRCT2/develop 2022-10-07 04:21:43 +00:00
leoleotte 0dee78bfe5
Close #13774: Refactor Footpath window to class 2022-10-06 19:41:31 +00:00
Michał Janiszewski 692935f1e0
Fix old-style casts in tests (#18225) 2022-10-06 12:43:52 -03:00
Michael Steenbeek fa81f119c2
Merge pull request #18208 from Gymnasiast/fix/18204
Fix #18204: Crash opening New Ride window with invalid highlight
2022-10-06 10:54:19 +02:00
OpenRCT2 git bot 8f301d836a Merge Localisation/master into OpenRCT2/develop 2022-10-06 04:15:38 +00:00
Thomas Fai 8e3a0ee814
Part of #16033: VehiclePaint constants 2022-10-05 21:01:06 +00:00
ZeeMajora e6df43b7c9
Extras tab: add Tycoon park, keep competitions apart 2022-10-05 20:51:37 +00:00
Michael Steenbeek 051ede1598
Merge pull request #18213 from duncanspumpkin/codeStyle4
Code style: Remove snakes from Location, LargeScenery and MapAnimation
2022-10-05 22:36:39 +02:00
Michael Steenbeek 99e13e023e
Name unknown_15 window event as ScrollSelect
Co-authored-by: leoleotte <leoleotte@users.noreply.github.com>
2022-10-05 21:59:20 +02:00
Rik Smeets c5904d81d6
Code Style: Remove snakes from paint tile elements (#18212) 2022-10-05 21:27:38 +02:00
duncanspumpkin 16581e9288 Address snakes in mapgen and map animation 2022-10-05 20:22:51 +01:00
duncanspumpkin 2a593b6029 Remove snake cases from Location and LargeScenery 2022-10-05 20:21:56 +01:00
Rik Smeets 8ea34a5360
Fix #18134: Photo section clips through terrain 2022-10-05 18:35:37 +00:00