Commit Graph
16020 Commits
Author SHA1 Message Date
Duncan 8c5cd61b69 Split free id's into seperate vector (#13924) 2021-01-26 07:42:56 +00:00
Ted John c1a1f8f639 Fix #13953: invalid-read in StaffListWindow::RefreshList 2021-01-26 00:17:34 +00:00
Ted John c9a07eaa84 Refactor staff window to class (#13819) 2021-01-25 21:57:06 +00:00
ζeh Matt 329b228cac Fix #13916: use correct constant for maximum station locations 2021-01-23 23:06:05 +01:00
Duncan eb52391b9a Remove next_in_quadrant (#13754)
* Use std::vector of quadrants

* Prevent ptr invalidation issues

* Remove next_in_quadrant

* Make review changes

* Rebuild next_in_quadrant for S6Export

* Fix formatting

* Constexpr where possible

* Increment network version and update replays
2021-01-23 07:36:46 +00:00
Duncan 3cc283adb2 Name MapFlashingFlags and split up guest/staff loop (#13865)
* Name MapFlashingFlags and split up guest/staff loop

* Use constexpr instead of macros
2021-01-23 06:45:14 +00:00
Duncan fb274f55d5 Fix #13905: Fix walking off end of array when saving (#13913)
Mistake made in refactor
2021-01-22 22:45:00 +00:00
ζeh Matt 73275b311b Fix #13903: ride exits not being recognized (#13906) 2021-01-22 22:08:54 +00:00
ζeh Matt 54578a0870 Merge pull request #13901 from ZehMatt/fix-replaysnapshot
Fix replay snapshots comparing states with different ticks
2021-01-22 20:15:33 +02:00
Duncan 85df2c6854 Refactor guestlist (#13899)
* Refactor GuestList groups to use more standard functions

* Remove index

* Apply review comments
2021-01-22 18:02:22 +00:00
Duncan 1a11456f36 Rework remove floating to use EntityList (#13895) 2021-01-22 14:36:55 +00:00
ζeh Matt bc20efb3df Merge pull request #13822 from ZehMatt/refactor/fixedvector
Avoid some allocations by using a fixed size vector
2021-01-22 16:17:14 +02:00
Matt 6034cef358 Fix replay snapshots comparing states with different ticks 2021-01-22 15:35:16 +02:00
Michael Steenbeek 20f959c833 Use track_type_t in more places 2021-01-22 11:33:55 +01:00
Duncan f80531070b Implement EntityLists (#13853)
* Implement EntityLists

* Remove dead code

* Use alternative name for iterator

* Add comments

* Increment network version

* Update replays

* Remove further dead code

* Update replays again
2021-01-21 18:36:34 +00:00
Duncan 3321720d4a Split up misc list access to be type specific (#13870)
* Split up misc list access to be type specific

Took the opertunity to use a fold expression to simplify the code

* Increment network version
2021-01-21 08:29:02 +00:00
Duncan 8d25e4ccd9 Split closest peep calculation into Staff and Guest (#13880) 2021-01-20 14:21:22 +01:00
Ted John 19f0d8dfe9 Fix #13842: News is imported incorrectly 2021-01-20 12:35:11 +01:00
Michał Janiszewski 9d666700f9 Merge pull request #13873 from janisozaur/memleak
Fix some memleaks
2021-01-20 07:32:32 +01:00
ζeh Matt 40a23db14b Fix #13871: Crash on banner window invalidation 2021-01-19 22:44:22 +01:00
Michał Janiszewski 4a21676d17 Plug memory leak in DataSerialiser 2021-01-19 22:11:08 +01:00
Michał Janiszewski 4bcf68d84a Use simple std::string assignment to plug memory leak 2021-01-19 22:10:15 +01:00
Duncan 354a131892 Use specific type for peep list access (#13831)
* Use specific type for peep list access

* Simplify calculation further
2021-01-19 17:57:22 +00:00
Michael Steenbeek 052306f992 Merge pull request #13854 from Gymnasiast/refactor/remove-regs
Remove remaining register usage
2021-01-18 22:12:03 +01:00
Gymnasiast 87ff851fd1 Rename flagsForSomething to remainingDistanceFlags 2021-01-18 22:11:28 +01:00
Basssiiie 813b111710 Fix #11912: Update active palette on selection 2021-01-18 21:25:57 +01:00
Gymnasiast 9a3d9c512e Move register definition to TestPaint 2021-01-17 22:14:55 +01:00
Gymnasiast a2e84d161d Remove last usage of registers 2021-01-17 20:11:50 +01:00
Gymnasiast cb63b3356a Replace another occurence of regs.ebx 2021-01-17 20:06:35 +01:00
Gymnasiast 98a9827ee8 Remove unused regs.cx 2021-01-17 20:06:35 +01:00
Gymnasiast e4e4ca1122 Replace occurrence of regs.ax 2021-01-17 20:06:35 +01:00
Gymnasiast 2baf0f992f Remove unused regs.dx 2021-01-17 20:06:35 +01:00
Gymnasiast d817d595eb Replace occurrence of regs.ax 2021-01-17 20:06:33 +01:00
Gymnasiast d9fb4616a6 Replace 2 occurences of regs.eax 2021-01-17 20:06:05 +01:00
Gymnasiast b24962546e Replace an occurence of regs.eax 2021-01-17 20:06:05 +01:00
Gymnasiast 7e50d1bbc5 Integrate loc_6DB967 2021-01-17 20:06:05 +01:00
Gymnasiast c200d7ab9c Integrate loc_6DBE7F 2021-01-17 20:06:05 +01:00
Gymnasiast 60b0ba809a Integrate loc_6DBE5E 2021-01-17 20:06:05 +01:00
Gymnasiast 39162b8f8e Remove 2 occurrences of regs.ebx 2021-01-17 20:06:03 +01:00
Gymnasiast 9fb46e7fcc Remove occurrence of regs.ebx 2021-01-17 20:05:31 +01:00
Gymnasiast 6561f1cb49 Remove occurrence of regs.ebx 2021-01-17 20:04:49 +01:00
Duncan 4ff5b9a89f Reset Entity to 0 on removal (#13835)
This is to force any use after remove bugs to the surface
2021-01-16 15:48:39 +00:00
Michael Steenbeek 12edd610e6 Merge pull request #13841 from Gymnasiast/fix/13236
Fix #13236: New ride type appears as new vehicle type in research
2021-01-15 22:38:28 +01:00
Michael Steenbeek 32d8dadc2b Replace some leftover use of uint8_t for ride subtype 2021-01-15 19:35:06 +01:00
Gymnasiast 19d113ae86 Reduce code duplication 2021-01-15 17:34:47 +01:00
Gymnasiast 4fcc86f990 Fix #13236: New ride type appears as new vehicle type in research 2021-01-15 17:21:29 +01:00
Michael Steenbeek 5cd3014334 Import SV6 tile elements by x/y 2021-01-15 16:23:28 +01:00
Michał Janiszewski f1a5e62440 Fix #13816: Compilation failure on Launchpad (#13837) 2021-01-14 23:19:10 +01:00
ζeh Matt 78f6e3e8e3 Fix replays not failing when last tick is the cause (#13834)
* Fix replays never failing

* Change replay dependency meta

* Stop replay when state mismatches
2021-01-14 13:48:12 +00:00
Matt e9cdb559e3 Avoid some allocations by using a fixed size vector 2021-01-14 12:27:54 +02:00