1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00
Commit Graph

41 Commits

Author SHA1 Message Date
duncanspumpkin
5bd3b8d6af Implement util_rand due to rand having a poor range on some platforms 2015-11-20 21:40:36 +00:00
Michał Janiszewski
b5b1957f58 Fix some left-shifts
An explicit `1` is considered signed by compiler, if `int` is 32 bit
long, a left shift `1 << 31` is undefined. Since the type of result is
the type of left shift operand, make sure we shift unsigned int so that
the behaviour is defined correctly.

Also one fix in peep code, where it would use too big value for
`item_extra_flags`.
2015-11-12 13:38:10 +01:00
IntelOrca
31ab7c8b98 fix several warnings 2015-11-06 18:50:37 +00:00
IntelOrca
e177be305b allow user data path to be specified by command line, closes #2182
Also changed default path under linux to be ~/.config/OpenRCT2.
2015-11-03 22:20:35 +00:00
Michał Janiszewski
0f9bc229b4 Fixes to safe_strncpy
* don't touch memory at all if size passed is 0
* use original address instead of now-changed `destination`
* fix one of the calls having improper size passed
2015-11-01 23:33:02 +01:00
Michał Janiszewski
9284930d7e Add safe_strncpy function
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
Daniël Heres
17b906b3a0 Use SDL_RWsize to get size info 2015-10-21 10:15:02 +02:00
Ted John
a292a21e32 Merge pull request #2094 from janisozaur/whitespace
Strip all whitespace
2015-10-20 21:29:44 +01:00
duncanspumpkin
610a7d6954 Fix #2095. Bitscanforward needs to return -1 if nothing found. 2015-10-20 20:40:17 +01:00
Michał Janiszewski
7d0ce00bab Strip all whitespace 2015-10-20 20:48:51 +02:00
Daniël Heres
d531243c98 Optimize bitscanforward using intrinsic function 2015-10-20 18:10:05 +02:00
Michał Janiszewski
9572f1b532 type and const fixes for sawyercoding 2015-10-12 23:09:49 +02:00
Michał Janiszewski
4df8761831 remove windows-only code
Step 1 on road towards Linux.

Remove windows-specific code, stub it out where needed and make sure we
can still compile it the way it is.

Take care of Travis' build matrix to include new build configuration.

Install new packages.
2015-09-18 16:01:38 +02:00
Michał Janiszewski
52252f82b3 assorted fixes 2015-09-07 20:51:21 +02:00
IntelOrca
bea74ee261 make all file IO utf8 compatible, fixes #1847 2015-08-29 13:13:23 +01:00
IntelOrca
b5237e24ec improve #1703 2015-08-04 15:21:12 +01:00
zsilencer
b876591543 use SDL_RWops for save games 2015-07-11 12:27:46 +01:00
Robert Jordan
a3a993dabd Title Sequence editor 2015-06-24 12:25:54 -04:00
IntelOrca
78a6e60083 fix path_get_extension, fixes #1368 2015-06-19 11:40:18 +01:00
IntelOrca
fef88695a0 improve version handling 2015-06-15 18:01:13 +01:00
IntelOrca
ce924b4b1b add new custom title sequence to celebrate 0.0.2 release 2015-06-14 21:01:48 +01:00
IntelOrca
beb2b23afb use log functions instead of printf and RCT2_ERROR (now removed) 2015-06-14 12:03:32 +01:00
IntelOrca
909060b964 implement language fallback to English (UK) 2015-06-08 17:16:37 +01:00
LRFLEW
73acb02946 Code Cleanup
thanks trigger-death
2015-06-07 15:20:45 -05:00
LRFLEW
66bf2abd37 A fix for #1231
This has the side-effect of incorrect default names in the scenario
editor, but that can be patched separately.
2015-06-07 15:20:45 -05:00
Duncan Frost
66de066901 Added save_track_file. Fixed bugs.
Encountered bug where incorrect tracks would be displayed if the loading process failed.
Added checksum validation to loading code.
Increased the max rle length to match rct2.
2015-05-13 19:19:36 +01:00
IntelOrca
c9ea1b6979 refactor RCT1 import code 2015-04-01 18:14:30 +01:00
Duncan Frost
f8a334c90f Fix memory corruption when saving. 2015-02-27 23:42:51 +00:00
IntelOrca
ff8bef8fc3 try to fix to scenario complete issues 2015-02-21 02:04:46 +00:00
Duncan Frost
1fc525214d Refactor track_load. Relabeled address' 2015-02-02 18:52:50 +00:00
IntelOrca
fddeda3021 fix loading of RCT1 (no expansion packs) SC4 files in editor, fixes #687 2015-01-20 01:05:06 +00:00
IntelOrca
d00001fed2 remove unnecessary header includes 2014-11-30 20:27:14 +00:00
IntelOrca
cc36cafcaa remove redundant variable from encode_chunk_repeat 2014-11-26 16:30:41 +00:00
IntelOrca
85c41488ce implement RLECOMPRESSED chunk encoding, closes #598 2014-11-26 16:27:21 +00:00
IntelOrca
4b897ae1a3 implement saving of games and scenarios 2014-11-26 00:51:26 +00:00
IntelOrca
d9e0f8ff6a implement save scenario and fix various load / save dialog issues, fixes #433 2014-11-25 02:06:26 +00:00
IntelOrca
cf59455d69 refactor ride update and fix bugs 2014-11-02 03:38:05 +00:00
IntelOrca
c628f6fea0 change track loading to use stdio (FILE) 2014-10-11 01:18:08 +01:00
IntelOrca
1714f94263 implement some of editor_load_landscape for sv4 and sc4 files 2014-10-10 22:50:22 +01:00
IntelOrca
c8df6174b8 organisation: fix includes 2014-10-06 17:36:58 +01:00
IntelOrca
554e1fe70e organisation: move files and update project 2014-10-06 10:21:07 +01:00