1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00
Commit Graph

10559 Commits

Author SHA1 Message Date
Broxzier
d857ebb2ad Move type definitions before the first include
This way the last remaining uses of int could be replaced with sint32 as
well. Before this change there was a circular dependancy which made the
types unknown in diagnostic.h.
2017-01-14 12:37:32 +01:00
Broxzier
60603ae10a Use types from common.h 2017-01-14 12:37:31 +01:00
Aaron van Geffen
3d7cfa2772 Minor: Homebrew package update for SpeexDSP
[ci skip]
2017-01-14 07:25:37 +01:00
Michał Janiszewski
d88635307f Merge pull request #5062 from janisozaur/cmake-warnings
More warnings for CMake
2017-01-13 19:46:30 +01:00
Ted John
baed215984 Add helper: ride_has_ratings
#5066
2017-01-13 18:14:38 +00:00
Ted John
f10bd42dcd Merge pull request #5067 from IntelOrca/refactor/flag-naming
Name ride type flags
2017-01-13 17:16:52 +00:00
Ted John
aed5c0aa60 Name flag: RIDE_TYPE_FLAG_26 2017-01-13 13:20:16 +00:00
Ted John
ae7048b2a7 Name flag: RIDE_TYPE_FLAG_30 2017-01-13 13:16:51 +00:00
Ted John
053f8a70bf Name flag: RIDE_TYPE_FLAG_18 2017-01-13 13:13:24 +00:00
Ted John
cf0c489d40 Name flag: RIDE_TYPE_FLAG_13 2017-01-13 13:08:56 +00:00
Ted John
bdc5078003 Name flag: RIDE_TYPE_FLAG_6 2017-01-13 13:04:11 +00:00
Ted John
ef2ddbf462 Name flag: RIDE_TYPE_FLAG_20 2017-01-13 12:55:47 +00:00
Michał Janiszewski
f4eb156c7a Only enable some of compiler warnings when they are supported
ICC does not support all of the new flags
2017-01-13 12:56:33 +01:00
Michał Janiszewski
09ecf0b73c Fix possible null dereferences 2017-01-13 12:35:26 +01:00
Michał Janiszewski
90f7a3cf4f Have at least one Travis job in release configuration 2017-01-13 12:19:35 +01:00
Michał Janiszewski
0a36af19e4 Mark classes as final to help devirtualisation 2017-01-13 12:12:50 +01:00
Michał Janiszewski
85c6ed778b Add overrides in TestTrack.cpp 2017-01-13 11:44:14 +01:00
Michał Janiszewski
68b484464a Make GCC warn about duplicated condition 2017-01-13 11:44:14 +01:00
Michał Janiszewski
411d1fff18 Make GCC suggest final, override keywords 2017-01-13 11:44:14 +01:00
Michał Janiszewski
7d7285cdaa Add more Warnings to CMakeLists 2017-01-13 11:44:14 +01:00
Michał Janiszewski
33dcb1a506 Rename types to avoid shadowing 2017-01-13 10:57:00 +01:00
Michał Janiszewski
d45337464f Include libzip as system library to fix issues in MinGW build 2017-01-13 10:02:18 +01:00
Michał Janiszewski
dc8aff6274 Extend warning list for CMake 2017-01-13 10:02:17 +01:00
Michał Janiszewski
ecf77e3609 Remove redundant declarations 2017-01-13 10:02:17 +01:00
Michał Janiszewski
cf670deb10 Add -Wshadow to CMakeLists and fix offenders 2017-01-13 10:02:17 +01:00
Michael Steenbeek
2a435bfdae Use constants for block brakes and some other elements 2017-01-13 09:49:29 +01:00
Ted John
7875fd1f3a Ensure object list pointer is updated after realloc
Also update changelog for fix to #4944.
2017-01-12 22:20:27 +00:00
Ted John
4090522901 Fix #4944: Game crashes upon selecting objects in scenario editor
When the filter caused no results to be shown in the list, it would try to realloc for 0 bytes which returns NULL. The error shown in the console was a minor bug, the more serious issue was the the original memory was freed but the list pointer not updated. Instead just check for 0 items, dispose the list and return.
2017-01-12 22:12:21 +00:00
Ted John
ae615e5d57 Merge pull request #5045 from IntelOrca/refactor/vs-increase-warning-level
Visual Studio: Increase warning level to 4
2017-01-12 21:52:37 +00:00
Ted John
d70cd3775e Fix silent warnings 2017-01-12 18:40:49 +00:00
Ted John
ab4bb3101c Use static inline 2017-01-12 18:29:29 +00:00
Ted John
1bf7a0ffdb Fix Win32 warnings 2017-01-12 18:28:51 +00:00
Ted John
868bb54383 Fix remaining warnings 2017-01-12 18:20:22 +00:00
Ted John
b79af110c7 Fix more warnings 2017-01-12 18:02:28 +00:00
Ted John
50d0d69815 Fix name warnings for NetworkPacket 2017-01-12 17:45:48 +00:00
Ted John
18597bacb1 Fix more warnings 2017-01-12 17:36:05 +00:00
Ted John
ec07d61d7b Fix name warnings for Network 2017-01-12 13:26:12 +00:00
Ted John
d2cf97d0a1 Fix name warnings for NetworkPlayer 2017-01-12 13:23:16 +00:00
Ted John
3a9b6f4bb0 Fix more warnings 2017-01-12 13:16:00 +00:00
Ted John
13a8eee1b4 More warning fixes, more warnings disabled 2017-01-12 13:12:53 +00:00
Ted John
ca9c3cc5ee Fix more warnings, disable others 2017-01-12 13:00:12 +00:00
Ted John
bd732b99c7 Fix cast warnings 2017-01-12 12:41:47 +00:00
Ted John
498c60ebb6 Remove C4310 and document other warnings 2017-01-12 12:28:19 +00:00
Ted John
e67d8b4122 Use inline instead of static for header C functions 2017-01-12 12:28:19 +00:00
Ted John
6126a60ac9 Increase warning level
Disables various warnings of which there are too many to solve right now.
2017-01-12 12:28:19 +00:00
Michał Janiszewski
171d973e55 Initialise fields of MemoryStream in header
This makes all the constructors use these defaulted values
2017-01-12 09:58:57 +01:00
Ferdinand Thiessen
afbe1dda0f Fix 'No real prototype' warnings 2017-01-12 09:52:44 +01:00
OpenRCT2 git bot
ebf479d5bf Merge Localisation/master into OpenRCT2/develop. 2017-01-12 04:00:17 +00:00
LRFLEW
47c532d020 Don't zoom to cursor for keyboard or toolbar inputs (#5028) 2017-01-11 17:43:11 -06:00
Michael Steenbeek
e3cf32342b Use constant for random colour 2017-01-11 23:00:28 +01:00