1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 02:05:13 +01:00
Commit Graph

31 Commits

Author SHA1 Message Date
LRFLEW
e6f771ec90 Added newlines at end of files 2015-12-20 22:03:37 -06:00
Jonathan Haas
bf536ce7b7 Add one decimal place to SI velocities 2015-12-20 11:27:03 +01:00
IntelOrca
22b4df1a99 implement SI units for distance / speed measurement, closes #2496 2015-12-18 21:12:30 +00:00
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
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
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
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
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
IntelOrca
c9ea1b6979 refactor RCT1 import code 2015-04-01 18:14:30 +01: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
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
554e1fe70e organisation: move files and update project 2014-10-06 10:21:07 +01:00