Martin Černáč
3bdc06dc25
Refactor hard-coded strings to use string_ids.h constants (and couple sprites too) ( #3658 )
2016-05-18 21:51:37 +01:00
Ted John
cbf9a393f1
remove use of get_format_arg
...
Because of strict aliasing, we must use memcpy in some cases.
2016-05-15 22:40:25 +01:00
Ted John
1cc35dfe6e
integrate common format args
2016-05-15 22:03:53 +01:00
Ted John
6f7db1f9b6
rename rct_path_type to rct_footpath_entry
2016-05-15 16:11:34 +01:00
Ted John
d0d2ad7ded
fix #3562 : loaded objects are not unloaded when loading a new game
2016-05-14 12:54:55 +01:00
janisozaur
7537c03d3f
Optimise object_get_length to use entryCache ( #3592 )
2016-05-14 01:15:17 +01:00
Michał Janiszewski
f458dec3e9
Restore checking of last entry's size
2016-05-14 00:23:03 +02:00
Michał Janiszewski
5c2e55723b
Fixup filters, skip double object list enumeration
2016-05-13 23:42:49 +02:00
Michał Janiszewski
6fc8ac721c
Migrate initial object list sorting to qsort()
2016-05-13 23:33:29 +02:00
Michał Janiszewski
5b639e515b
Cache entries for future lookup to speedup launch
...
Before this change, expensive `object_get_next` had to be called
`numObjects^2` times, now it is cached so it can only be called
`numObjects` times.
2016-05-13 23:22:11 +02:00
janisozaur
ca430e1b23
Drop unused variables ( #3586 )
2016-05-13 18:21:58 +01:00
janisozaur
658e877955
Name all the typdef-ed structs ( #3581 )
2016-05-12 22:57:40 +01:00
Ted John
3bb1d47813
use new S6Importer for loading saved games
2016-05-08 22:35:06 +01:00
Ted John
1908743c71
refactor track save, move into own source
2016-05-08 14:03:49 +01:00
Ted John
77e7313540
move track design related functions to new source
2016-05-08 14:03:48 +01:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Gymnasiast
b37d4804ce
Integrate gErrorType and gErrorStringId, fixes
2016-05-03 07:25:19 +02:00
Gymnasiast
5d0b79227f
Clean up some magic values and refactor a bit
2016-05-03 07:25:19 +02:00
Ted John
7401b5cf39
import default objects and themes
2016-04-22 18:25:22 +01:00
Michał Janiszewski
6b514d1e3a
Fix possible issues highlighted at higher warn levels
...
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
Michał Janiszewski
14bff0c66f
Rename rct_ride_type to rct_ride_entry
2016-02-25 13:33:19 +01:00
IntelOrca
13921111f3
remove old RCT2 cursor code and RCT2 error location variable
2016-02-16 20:30:43 +00:00
IntelOrca
62eeaaf405
fix severe regression from #2787 , use object entry array instead of ride entry array
2016-01-23 12:47:04 +00:00
Marijn van der Werf
98b5ad1bf4
Replace known addresses with constants
2016-01-15 21:01:34 +01:00
Marijn van der Werf
17bc24b3a0
Use absolute constants for object entry groups
2016-01-11 13:51:42 +01:00
Marijn van der Werf
6eadf824ea
Replace raw addresses of RIDE_ENTRIES
2016-01-11 13:34:08 +01:00
Marijn van der Werf
e961cc885a
Use RCT2_ADDRESS_COMMON_FORMAT_ARGS instead of raw address
2016-01-11 12:55:33 +01:00
Gymnasiast
24448f2734
Show names of missing expansion packs and use localised names; cleanup
2016-01-09 22:55:10 +01:00
IntelOrca
43a5cc92cc
define STR_NONE as a rct_string_id
2016-01-07 22:14:53 +00:00
IntelOrca
053f4f4f38
fix object list memory error, rct2_malloc being used instead of malloc
2016-01-07 22:10:07 +00:00
IntelOrca
40a4bd1fa8
remove old object_paint calls, replace with new
2016-01-07 19:01:19 +00:00
IntelOrca
ab38828e03
integrate object list variables:
...
- gInstalledObjectsCount
- gInstalledObjects
- gNumInstalledRCT2Objects
- gNumInstalledCustomObjects
- gLastLoadedObjectChunkData
2016-01-06 20:41:21 +00:00
Aaron van Geffen
2c5651614c
Corrected misspellings of "substitute".
2015-12-23 00:40:36 +09:00
Kyle Kirby
caf07c2064
Clean up the comments a litte
...
• Make comment heads be /**
• Make rct2 addresses be double spaced indented
• Make there be a space afte rct2: and the address
• Make single-line rct2 addresses be full block comments
• Move description of method to top of comment
2015-12-11 16:19:46 -06:00
Kyle Kirby
8e5355640f
Convert spaces to tabs
2015-12-11 06:28:35 -06:00
Michał Janiszewski
8e45cccb7a
Minor fixes
...
Includes (mostly) type fixes, dead code removal, signed vs unsigned
comparison fixes, memory leaks removal.
2015-10-21 08:47:09 +02:00
Michał Janiszewski
ca298d5568
Remove leftover porting hack
2015-10-01 17:05:31 +02:00
Michał Janiszewski
4ce0e3a8b2
Linux platform file
...
Add bulk of the platform file for linux, change the compilation target
from shared library to executable for linux, provide necessary changes
to make it compile & load the stub of a process.
Make sure functions are marked as stubs where needed, and implementation
is expected.
2015-09-20 23:19:08 +02:00
IntelOrca
fc65a92275
fix object override strings for scenario editor and plugin.dat
2015-09-08 21:37:24 +01:00
IntelOrca
bea74ee261
make all file IO utf8 compatible, fixes #1847
2015-08-29 13:13:23 +01:00
IntelOrca
50187adc37
enable debug configuration and add optimisations to release configuration
2015-07-24 23:48:23 +01:00
zsilencer
b876591543
use SDL_RWops for save games
2015-07-11 12:27:46 +01:00
Gymnasiast
2ac872dd56
Drop duplicate track names in list; use track categories when in select-by-track-type-mode
2015-06-27 13:08:29 +02:00
Duncan
2c58910f62
Merge pull request #1485 from OpenRCT2/object-selection-columns
...
Object selection columns
2015-06-27 09:16:57 +01:00
Duncan Frost
ab7e1da84e
Implemented object unload.
...
Refactored calls to the function. No need to pass the object type.
2015-06-26 17:45:38 +01:00
IntelOrca
210ba2a04d
object-selection-columns: add ride type with sort
2015-06-25 23:35:18 +01:00
Robert Jordan
760f0853ea
Fixed incorrect filter data
2015-06-25 18:15:25 -04:00
Gymnasiast
770bfa2721
Another typo
2015-06-25 14:45:33 +02:00
Gymnasiast
8ec3f60f2e
Typo
2015-06-25 14:40:46 +02:00
Gymnasiast
ca1b88fc53
Don't modify flags when in select_by_track_type mode; make it switchable in-game again.
2015-06-25 11:46:17 +02:00