Broxzier
6c29bdbf21
CppCheck fixes
2016-12-24 13:10:03 +01:00
Ted John
785a6ac850
Fix loading of RCT1 parks from command line
2016-12-20 17:36:00 +00:00
Michał Janiszewski
50d26d87eb
Initialise fields to safe values
2016-12-19 23:59:03 +01:00
Ted John
c5899139d7
Move scenario sources to sub directory
2016-12-16 01:25:05 +00:00
Ted John
3e21e56b9e
Use correct directory base
2016-12-14 00:32:06 +00:00
Ted John
cc227b7761
Create repositories in OpenRCT2.c
2016-12-14 00:32:06 +00:00
Ted John
c3285ef8f5
Use enum class instead of enum
2016-12-14 00:32:06 +00:00
Ted John
e9c778e886
Use IPlatformEnvironment for ObjectRepository
2016-12-14 00:32:06 +00:00
Michał Janiszewski
54e622659d
Extract common parts from rct2.h to common.h
2016-12-01 16:03:16 +01:00
duncanspumpkin
90dbcdb3c1
Fix #4820 . Fix banner signs build cost.
...
Issue was caused by an incorrect read (only 1 byte instead of 2) of the legacy banner data during object loading. Note this would have caused the scenery_tab_id and string table to possibly have corrupted data.
2016-11-22 19:36:24 +00:00
Michael Steenbeek
736437aa6e
Allow 3 cars per train on the Rocket cars
2016-11-16 13:25:37 +00:00
Michał Janiszewski
3f7fd56328
Remove trailing whitespace in sources
2016-11-13 20:32:55 +01:00
Michał Janiszewski
9fed68bf6f
Merge OBJ_STRING_ID enums into one
2016-11-13 20:31:19 +01:00
Michał Janiszewski
233ef1f735
Merge RCT2_LANGUAGE_* definitions into one
2016-11-13 19:36:03 +01:00
Marijn van der Werf
022b481d66
Use constant for black strings
2016-11-13 17:20:30 +00:00
Michał Janiszewski
3653baf720
Remove needless const for returned values
2016-11-04 09:44:13 +01:00
Ted John
315c0e91ad
Fix #4574 : Changing the game language makes the scenery window wonky
2016-10-23 17:49:21 +01:00
Ted John
712e062bcc
Only load tracks if cache is invalid
2016-10-23 01:12:17 +01:00
Ted John
7834afb34a
Re-write FileScanner for easier cross platform and multiple patterns
2016-10-22 22:36:45 +01:00
Ted John
9118f24778
Rename FileEnumerator to FileScanner
2016-10-22 22:36:45 +01:00
Ted John
16626eabb8
Convert FileEnumerator to IFileScanner
2016-10-22 22:36:45 +01:00
Ted John
babf261542
Refactor scenario list to C++
2016-10-15 21:50:52 +01:00
LRFLEW
e5ff7412e4
Refactor/Improve String and Path Handling
2016-10-09 15:29:58 -05:00
Michał Janiszewski
3c4a683701
Fix #4558 : Crash on loading invalid scenario
2016-10-08 21:23:03 +01:00
Michał Janiszewski
71d0861be1
Mark classes as final
...
This may hint compiler to de-virtualise some calls.
2016-10-04 18:14:29 +01:00
Ted John
ff34967e9b
Ensure all images are freed, fix leak
2016-10-02 00:44:07 +01:00
Ted John
b3b2f1d1a7
Fix #3934 : Crash upon loading scenario
2016-09-29 17:53:14 +01:00
Michał Janiszewski
7b637a8f95
Fix #4477 : Pack ObjectRepositoryHeader to ensure cache is valid in all builds
2016-09-24 15:56:25 +01:00
Ted John
f31bf03ee9
Refactor LanguagePack to interface / implementation
...
This reduces the required amount of includes and definitions necessary in LanguagePack.h and having to declare private signatures twice.
2016-09-20 12:29:38 +01:00
Michał Janiszewski
b90f27a971
Plug memory leak in ObjectRepository
2016-09-19 18:34:08 +01:00
Duncan
b4ca0c3508
Fix #4415 : Rides that change colours each train were incorrectly loaded causing all same colour
...
Mistake caused by new object loader not reproducing legacy technique used to indicate that a ride is a change colour each train type.
2016-09-12 20:11:43 +01:00
Ted John
7edcd11aa7
Integrate entertainer costumes
2016-09-11 00:40:51 +01:00
Michał Janiszewski
163e314379
Remove unused or set-but-not-read variables
2016-09-07 13:39:29 +01:00
Michał Janiszewski
f8145b6edc
Refactor inclusion of addresses.h
...
addresses.h is now only included when necessary, limiting scope as much
as possible.
2016-09-03 21:25:19 +01:00
Ted John
8cf7e87b5c
Fix many warnings for x64
2016-08-27 23:32:15 +01:00
Ted John
8b79ededd9
Fix #4164 : Keep on crashing on OpenRCT2 0.0.5
...
Caused by hrow; instead of hrow Exception() when the image table is too large.
2016-07-24 11:37:42 +01:00
Ted John
5f41e3a0eb
add function and line info to guards
2016-07-16 14:17:36 +01:00
Michał Janiszewski
a6d0e6916e
Fix function definitions to match their declarations
...
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Marijn van der Werf
5204fb0ce9
Clean up string and sprite ID's ( #3977 )
2016-07-14 14:07:49 +02:00
Ted John
b6b8ce18f0
Fix #4062 : Crash when unable to allocate image table
...
Check if realloc succeeded.
2016-07-13 19:57:14 +01:00
Ted John
edb4a4a822
fix get capacity string for vehicles
2016-07-11 22:50:55 +01:00
Ted John
4bf9748143
fix drawing of object preview
...
We can't use dpi->width and dpi->height as they only define the clip region, not the viewport
2016-07-11 22:09:15 +01:00
Ted John
81a597ab0d
append salt bytes inside encoded data chunk
2016-07-11 19:09:16 +01:00
Ted John
cf59929eaa
add extra salt bytes to exported objects if checksum is wrong
2016-07-11 18:42:43 +01:00
Ted John
0a5ce82632
log warnings and information as verbose
2016-07-10 16:34:54 +01:00
Ted John
853e002b4f
disable checksum validation
2016-07-10 00:29:32 +01:00
Ted John
66eee6d89d
fix reading of large scenery objects
2016-07-10 00:15:27 +01:00
Ted John
324d690eaf
fix unloading of null objects
2016-07-10 00:00:23 +01:00
Ted John
f7757c7991
fix wall price check
2016-07-09 23:03:30 +01:00
Ted John
8fd81c3b75
initialise legacy object list on startup
2016-07-09 22:37:22 +01:00