Duncan
bd6936c9f6
Config coding style ( #970 )
...
* Enforce coding style on config
* Further work
* Enforce coding style
2021-05-07 09:33:14 +01:00
guKing
3ff62d5d46
Update pt-BR.yml ( #966 )
...
Added strings 2131 to 2208 (cheats, debugging, some options and controls in the menus)
Localized: Company names; Station names;
Refined: Lines 145, 374, 473,
Corrected: Lines 131
2021-05-07 10:32:40 +02:00
Duncan
a7d62ed539
Enforce coding style on gfx ( #968 )
2021-05-06 12:50:12 +01:00
Duncan
33b087fc3d
Enforce coding style on language ( #967 )
2021-05-06 12:50:01 +01:00
Aaron van Geffen
4914cbd2e3
Fix dropdown assertions ( #964 )
2021-05-05 16:34:32 +02:00
Aaron van Geffen
1726df1351
CMake: Remove reference to non-existing lib directory ( #962 )
...
* Remove reference to non-existing lib directory
* Fix clang-specific headers check
2021-05-05 14:32:47 +02:00
Duncan
b3bdd47c04
UI Coding Style ( #963 )
...
* Enforce coding style and minor Pos2 refactor
* Further cleanup
2021-05-05 13:11:57 +01:00
Duncan
30ff8376f2
Tile Coding Style Enforcement ( #961 )
...
* Enforce coding style on tile.h
* Minor refactor and coding style enforce
2021-05-05 10:20:40 +01:00
Aaron van Geffen
0dc126f9d6
Merge pull request #958 from AaronVanGeffen/refactor/game
...
Move common functions from LoadSaveQuit to new Game file.
Implement Game::{load,save}{Landscape,Scenario,SaveGame}Open functions.
2021-05-03 14:41:28 +02:00
Michał Janiszewski
df7f69c25e
Fix interop compilation flags ( #960 )
2021-05-02 23:18:32 +02:00
Aaron van Geffen
fe4fd1be42
Implement Game::{load,save}{Landscape,Scenario,SaveGame}Open functions.
...
Refactor out common code into openBrowsePrompt function
2021-05-01 19:55:03 +02:00
Aaron van Geffen
36589cef44
Move common functions from LoadSaveQuit to new Game file
2021-05-01 18:25:17 +02:00
Aaron van Geffen
b0b6ac8325
Fix element name not showing when inspecting track elements ( #957 )
...
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2021-05-01 14:01:34 +02:00
Aaron van Geffen
8d7f1fce54
Name several constants in the construction window ( #951 )
...
* Name known RoadStation::ImageIds and TrainStation::ImageIds
* Use PaletteIndex constants
* Reduce whitespace
2021-04-30 09:50:33 +02:00
Aaron van Geffen
86268bd3d2
Implement updateSnowLine ( #954 )
...
* Implement initialiseSnowLine and updateSnowLine
* Name ClimateObject variables
* Refactor out common code
2021-04-30 09:15:45 +02:00
Aaron van Geffen
a026d75b13
Fix #955 : Last landscape path is used as last save game path ( #956 )
2021-04-30 09:13:26 +02:00
ζeh Matt
8ebeea350b
Use formatter at more places ( #952 )
...
* Remove static keyword, this may lock
* Use universal references and cleanup
* Use the argument formatter in GameCommands.cpp
* Use the argument formatter in KeyboardShortcuts.cpp
2021-04-26 20:20:58 +01:00
ζeh Matt
2bfbb3208c
Entity Tweening ( #923 )
...
* Add entity tweening
* Add hook to remove entities from tweening
* Rebase
* Decouple window rendering from updating
* Tween only bodies and bogies in the vehicle list
* Adhere code style
* Update CHANGELOG.md
* Move tick interrupt into a function
* Get around null dereference warning
2021-04-26 12:52:32 +01:00
Aaron van Geffen
2613e9b15a
Move all windows into Ui::Windows namespace ( #950 )
...
* Move all windows into Ui::Windows namespace
* Remove resolving into Windows:: when not ambiguous
* Resolve Map <> MapWindow ambiguity
2021-04-24 21:29:38 +02:00
Aaron van Geffen
96c87a57b4
Fix #945 : Station construction preview image is using wrong colours ( #946 )
2021-04-24 14:09:40 +02:00
Aaron van Geffen
99dcaa9900
Move economy-related files into Economy folder ( #948 )
2021-04-24 10:09:14 +02:00
Aaron van Geffen
30c29061a7
Fix panel heights in several windows ( #947 )
...
* Fix map window panel height off by two pixels
* Fix tile inspector window panel widget heights being off
* Fix construction window panel widget heights being off
This affected the station, signal, and overhead tabs. The main track/road construction tab was unaffected.
2021-04-24 09:56:23 +02:00
Aaron van Geffen
74b0669d2e
Add polyfill for std::variant and std::visit ( #944 )
2021-04-23 16:45:09 +02:00
Duncan
61b14fc78a
Replace EntityBase::x,y,z with Map::Pos3 ( #876 )
...
* Change entity base to x,y,z
* Simplification
* Fix rebase issues
* Further simplification
* Fix mistake in midpoint calc
* Use less ugly syntax that allows narrowing conversions
* use parameters correctly
* Use correct manhattan calc
2021-04-23 13:03:04 +01:00
Duncan
a432bfcc1a
Fix #942 : Incorrect upper bound ( #943 )
2021-04-23 10:21:02 +01:00
Duncan
6b83fa40d9
Implement updateCargoSprite for vehicleBodies ( #941 )
2021-04-22 15:09:07 +01:00
Duncan
0425ebf524
Vehicle cargo2: sub_4BA7C7 ( #918 )
...
* Implement sub4BA7C7
* Refactor adding names
* Further refactor splitting up function
* Adjust name of variable
2021-04-22 13:04:12 +01:00
Duncan
49610c3121
Enforce coding style on gamecommand header ( #940 )
2021-04-22 09:54:23 +01:00
Peter Gaal
392a81551e
Feature #857 : Remember last save directory in configuration variable ( #907 )
2021-04-22 10:10:04 +02:00
Duncan
c8b3232eb4
Enforce coding style on audio headers ( #939 )
2021-04-21 22:34:41 +01:00
Duncan
b85cf7c254
Vehicle Update: Cargo Unload ( #846 )
...
* Implement vehicle unload
* Use bounds
* Remove unneeded comments
* Move cargo into seperate struct
This will mean the template function can be removed
* Remove template
* Add station finding helper function
* Fix roadEnd flag mistake
* Use helper function
* Fix clamp
* Copy unused data to hopefully prevent desyncs
* Pass the age variable correctly
2021-04-21 13:17:22 +01:00
Duncan
893f552956
Fix #914 . Actually fix correctly this time. ( #925 )
...
* Fix #914 . Actually fix correctly this time.
Wrong size of height variable caused truncation at high water levels
which caused docks to not be marked as occupied. Which caused a crash
when trying to unoccupy the dock when removing a boat.
* Update changelog
2021-04-20 18:42:13 +01:00
Duncan
061c60d6c7
Fix #931 . Odd pathing at certain speeds due to variable overflow ( #935 )
...
This was also causing some ship pathing issues
2021-04-19 16:11:37 +01:00
Aaron van Geffen
115a785c55
Vehicle pickup game command ( #926 )
...
* Relocate canBeModified and liftUpVehicle to VehicleHead
* Implement vehicle pickup game command
* Use prng for pickup sound frequency to prevent chorus effect
2021-04-19 09:52:01 +02:00
Duncan
8702c86e3e
Fix #932 : Incorrect size of array caused overwriting of other memory ( #934 )
2021-04-19 09:48:40 +02:00
Duncan
9b3b434e31
Fix openloco.vcxproj file ( #933 )
2021-04-19 09:31:39 +02:00
ζeh Matt
7c0ff0116b
Rename coords types ( #929 )
...
* Rename map_pos to Pos2 map_pos3 to Pos3
* Rename TilePos to TilePos2
* Pass Pos3 as const ref in Audio
* Pass Pos3 as const ref in Entity
2021-04-18 20:20:57 +02:00
Aaron van Geffen
a1ac80f8d8
Implement cheats window ( #910 )
...
* Add skeleton for cheats window
* Implement clearLoan, switchCompany cheats
* Implement tab switching
* Improve company cheats tab layout
* Implement toggle bankruptcy and toggle jail cheats
* Implement acquire company assets cheat
* Implement addCash cheat
* Implement vehicleReliability cheat
* Implement companyRatings cheat
* Move cheats and tile inspector to top of cheats menu
* Amend changelog
2021-04-18 20:12:46 +02:00
Aaron van Geffen
55aff692a2
Cleanup game command expenditure type access ( #930 )
...
* Fix typo: getPostion -> getPosition
* Refactor game command expenditure types
2021-04-18 19:07:26 +02:00
Duncan
4b2757bd3b
Implement refresh displayed order labels ( #793 )
...
* Implement refresh displayed order labels
* Add casts for null value
* Apply review comments
* Fix address
* Fix rebase issues
* Fix label position
2021-04-18 17:49:16 +01:00
Aaron van Geffen
c774323ce3
Fix not all industries showing up in fund industries tab ( #927 )
2021-04-17 15:35:52 +02:00
Aaron van Geffen
75d95b7917
Merge pull request #908 from duncanspumpkin/strings
...
Implement a couple string manager functions
2021-04-15 22:45:18 +02:00
duncanspumpkin
a92668a329
Add accessors to gamecommand error set
2021-04-15 08:02:31 +01:00
duncanspumpkin
aed6fff2a4
Implement a couple string manager functions
2021-04-15 07:40:16 +01:00
Duncan
596f38b7ff
Add base of trig class ( #879 )
...
* Add base of trig class
* Use new trig functions
* Actually make compile
* Add notes
* Fis spelling
* Apply review suggestions
* Add further clarification
2021-04-14 21:59:44 +01:00
Duncan
f5924dc177
Entity2: Entity manager functions ( #920 )
...
* Implement misc entity create
* Implement remaining entity create functions
* Implement zeroUnused
* Fix rebase issues
* Extract common logic into function
* Implement EntityManager::reset
* Implement free entity
* Implement update misc
* Fix ci error
* Add comments and constants
* Nullptr check
2021-04-14 21:47:36 +01:00
Duncan
292e2bf4fc
Move owner and name into entity base to reflect use ( #919 )
2021-04-14 20:54:53 +01:00
Duncan
b20bdd2fef
Implement entity move to list ( #906 )
...
* Implement entity move to list
* Add nullptr checks and output warnings
* Add notes and change enum
2021-04-14 20:49:29 +01:00
duncanspumpkin
7e9528eb6c
Start v21.04.1+
2021-04-14 20:27:53 +01:00
duncanspumpkin
753b60ea0f
Update OpenLoco version to v21.04.1
2021-04-14 20:07:37 +01:00