Duncan
6eaf015902
Fix incorrect comparison and naming ( #1016 )
...
* Fix incorrect comparison and naming
* Remove function as it is incorrect
* Correct notes
* Add changelog entry
2021-06-25 11:22:02 +01:00
Duncan
9a5e879960
Yank out refactors from cargo load pr ( #1015 )
2021-06-23 22:42:15 +01:00
Duncan
62f4fe2cfb
Create a safe itererable wrapper for loco arrays ( #533 )
...
* Create fixed vector type
* Use fixed vector for Companies
* Use fixed vector for Industries
* Use new type for Towns
* Use FixedVector for Stations
* Move and rename file to LocoFixedVector.hpp
2021-06-22 21:00:13 +01:00
Duncan
3e33a46600
Start implementing the map tooltip window ( #1011 )
...
* Start implementing the map tooltip window
* Finish paint functions
* Fix company draw location
* Light refactor
* Implement review comments
2021-06-22 17:43:11 +01:00
Michał Janiszewski
475e9075b9
Merge pull request #1006 from janisozaur/breakpad
...
Add breakpad to MSVC builds
2021-06-21 22:58:11 +02:00
Michał Janiszewski
31e800c58c
Address review comments
2021-06-21 22:09:39 +02:00
Duncan
bfd99e849d
Fix 32bit overflow warnings ( #1008 )
...
* Fix 32bit overflow warnings
* Fix ui bug
2021-06-21 17:58:46 +01:00
Duncan
dfdc1c5d9f
Fix sizeof widget ( #1009 )
2021-06-21 17:58:29 +01:00
Michał Janiszewski
69318d9a10
Disable breakpad on wine
...
On wine symbols are not handled the expected way and installing our own
crash handler prevents wine's own from kicking in - which actually
provides useful info.
2021-06-20 21:00:10 +02:00
Michał Janiszewski
0dd240a503
Add changelog entry for #1006 : breakpad for MSVC
2021-06-19 23:45:50 +02:00
Michał Janiszewski
155845d299
Obtain version info for dump by querying OpenLoco
2021-06-19 23:45:44 +02:00
Michał Janiszewski
324b97b6fb
Rename dump files to include commits
2021-06-19 23:45:44 +02:00
Michał Janiszewski
228e12a6bd
Add pdb symbols to MSVC build artifacts
2021-06-19 23:45:44 +02:00
Michał Janiszewski
4c06a785f1
Add breakpad to MSVC builds
2021-06-19 23:45:44 +02:00
Duncan
74995014e6
Make widget::colour safe ( #1001 )
...
* Initial start of making widget::colour safe
* Switch all makeWidgets to use enum class
* Modify name to WindowColour
* Use accessors for window colours
* Add assert
2021-06-18 13:15:17 +01:00
Michał Janiszewski
68938e075e
Update dependencies to v1.4.0 ( #1004 )
...
This update adds Google's Test, Benchmark and Breakpad libraries
2021-06-16 23:29:31 +02:00
Aaron van Geffen
e836285789
Clarify availability of release builds and need for compilation ( #996 )
...
* Clarify availability of release builds and need for compilation
* Add instruction for linking/coping openloco.exe
2021-06-16 18:28:41 +02:00
Michał Janiszewski
a15e1421f1
Fix challenge tab being disabled twice in ScenarioOptions ( #1000 )
2021-06-16 10:17:19 +02:00
Duncan
121d0be7b8
Enforce coding style on misc Ui files ( #990 )
...
* Enforce coding style on misc Ui files
* Move widget draw functions private
* Make review changes
2021-06-16 08:13:24 +01:00
Michał Janiszewski
936a379d91
Only write town history when using valid index ( #992 )
...
GCC10-based mingw complained about possibly writing to index -1
2021-06-15 15:16:40 +01:00
Michał Janiszewski
18b24c7716
Exit cleanly in all conditions through common path ( #994 )
...
* Exit cleanly in all conditions through common path
* Free allocated strings upon exit
2021-06-15 14:48:08 +01:00
Michał Janiszewski
4d58d913fd
Retry hook installation ( #993 )
...
* Add more logging in case of errors
* Retry hook installation, as it can fail in some circumstances
This can happen on some versions of wine which would fail on
WriteProcessMemory calls with specific addresses. Skipping to next entry
works just fine.
* Add change log entry for hook reinstallation
2021-06-15 14:47:48 +01:00
Michał Janiszewski
4e03c48680
Fix memcpy size in Rename{Town,Industry} ( #995 )
...
This would cause reading one more byte than present in source buffer
2021-06-15 15:47:22 +02:00
Michał Janiszewski
46aa213cca
Config: reduce packing to vanilla config struct only ( #991 )
2021-06-10 23:17:10 +02:00
Michał Janiszewski
e2be89f114
Add cstdlib include to TrackData.h for size_t ( #989 )
2021-06-10 16:31:46 +01:00
Duncan
92543a09a7
Update changelog for #986 ( #988 )
2021-06-10 11:58:22 +02:00
Duncan
c762c82caa
Enforce coding style on object files ( #987 )
2021-06-10 09:35:58 +01:00
Duncan
31fb6a5f83
Merge pull request #921 from IntelOrca/implement/load
...
Implement/load
2021-06-10 07:55:45 +01:00
duncanspumpkin
4c48a82c4f
Add helper function to object_repository_items
2021-06-10 07:50:50 +01:00
duncanspumpkin
31cbe380c0
fix rebase issues
2021-06-09 16:13:33 +01:00
duncanspumpkin
7bb91b9b0a
Fix rebase mistakes
2021-06-09 16:13:33 +01:00
duncanspumpkin
9c9f2ae579
Tidy up remaining loose ends
...
fix rebase issues
use memcpy
make rotation a static global
Fix ci issues
revert memcpy
2021-06-09 16:13:33 +01:00
duncanspumpkin
29a5d155b5
Implement object unpacking
...
Fix rebase issues
Cleanup of unpack object code
keep ci happy
Fix hook
2021-06-09 16:13:33 +01:00
duncanspumpkin
e0e4e79559
Fix rebase issues and minor corrections
...
Refactor to follow codebase style
2021-06-09 16:13:30 +01:00
Ted John
00cdd64fef
Implement most of loading S5
2021-06-09 16:12:33 +01:00
Duncan
1a3e1902f4
Merge pull request #986 from duncanspumpkin/align
...
Add force align attributes to all hooks
2021-06-09 16:05:36 +01:00
Michał Janiszewski
6dfa662a43
Add GCC to compilers requiring stack alignment
2021-06-09 16:45:42 +02:00
duncanspumpkin
2ff86cbf0f
Add force align attributes to all hooks
2021-06-09 12:38:01 +01:00
Duncan
c1cc552b4b
Fix incorrect rating calc for cargo ( #982 )
...
* Fix incorrect rating calc for cargo
* Update changelog
2021-06-01 14:10:10 +01:00
Aaron van Geffen
f9e8e460a4
Add missing includes for gcc 11.1 compilation ( #980 )
2021-06-01 15:08:05 +02:00
Hielke Morsink
65b03b9588
Add a default installation path to searchPaths ( #978 )
...
This is the default path used by the offline installer from GOG.
2021-06-01 12:55:41 +01:00
TransshipmentEnvoy
c483a03dbd
zh-CN: add Simplified Chinese translation ( #979 )
2021-05-21 23:02:18 +02:00
TELK
1acfbd9a11
ko-KR: Update translation for v21.05 ( #977 )
2021-05-20 20:06:45 +02:00
Pedro Ortiz Bledow
f9358b25bc
Update pt-BR translation ( #976 )
...
- General typo fixes
- Changed some instances of 'Locomotion' to 'OpenLoco'
- Changed instances of 'Empresa' to 'Companhia'
- Added translation for 'Disable vehicle breakdowns'
2021-05-15 15:55:30 +02:00
Duncan
8607b871b8
Further coding style enforcement ( #972 )
...
* Further coding style enforcement
* Reduce the reptitiveness of some names
2021-05-12 13:27:29 +01:00
Aaron van Geffen
cacb426f6f
Update OpenLoco version to v21.05
2021-05-11 22:28:26 +02:00
Aaron van Geffen
8e54f42a41
Temporarily hide multiplayer functionality ( #975 )
...
Occasionally, new players assume OpenLoco has working multiplayer functionality,
while it's been broken since the first release. This change hides the toggle button
from the title menu, while still making it easy to re-enable.
2021-05-11 22:23:38 +02:00
Duncan
7b5bc50fad
Implement helper function for inflation calcs ( #974 )
2021-05-10 21:12:33 +01:00
Duncan
bb5cccd7e8
Implement update quarterly ( #965 )
...
* Implement update quarterly
* Move function locaton
* Fix formatting
* Fix comments
2021-05-09 07:24:57 +01:00
Duncan
b2273923ef
Rename of drawpixelinfo to Context ( #971 )
...
* Start rename of drawpixelinfo to Context
* Rename of variable name
* Further renames
* Fix formatting
* Catch accidentally missed renames
2021-05-07 19:00:15 +01:00