Michał Janiszewski
11fb15bba7
Add casts for types
2015-10-22 23:51:05 +02:00
Michał Janiszewski
10587cb5ab
Port non-VS inline asm to AT&T syntax
...
This is much more liked by other compilers
2015-10-22 23:32:27 +02:00
Michał Janiszewski
18c867a6fe
Modify inline assembly to properly returns results
...
Both RCT2_CALLFUNC_X and RCT2_CALLPROC_X did not really return any
value, even though declared to return an int. The inlines are now
modified to properly return flags (`lahf`), with other contents zeroed
out.
2015-10-22 20:23:26 +02:00
Ted John
6a33b92725
Merge pull request #2101 from nightroan/develop
...
Opening or testing a ride will only that ride's close construction window
2015-10-22 09:48:10 +01:00
nightroan
2e52fac0ca
Testing or opening a ride only closes the construction window for that ride.
2015-10-22 01:27:39 -07:00
Michał Janiszewski
06b13794ea
Use const for parameters
...
In profiling, gfx_rle_sprite_to_buffer turns out to be a hot spot. Use
const pointers, so compiler can make more assumptions regarding them and
perhaps optimize more heavily.
2015-10-22 10:15:45 +02:00
IntelOrca
00ff795d04
hide multiplayer button if network is disabled
2015-10-21 21:06:15 +01:00
Ted John
3585a1f99a
Merge pull request #2090 from janisozaur/types
...
Minor fixes
2015-10-21 12:55:13 +01:00
Daniël Heres
17b906b3a0
Use SDL_RWsize to get size info
2015-10-21 10:15:02 +02: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
IntelOrca
be7d3d5b54
do not do any sound / music operations when in headless mode
2015-10-20 22:15:48 +01:00
IntelOrca
c097ce5b13
fix #2064
2015-10-20 21:36:09 +01: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
Ted John
6fb6bb2556
Merge pull request #2093 from Dandandan/optimizebitscan
...
Optimize bitscanforward using intrinsic function
2015-10-20 17:32:39 +01:00
Ted John
4f7476f8c2
Merge pull request #2092 from Dandandan/optimize
...
Optimize peep functions
2015-10-20 17:24:00 +01:00
Daniël Heres
d531243c98
Optimize bitscanforward using intrinsic function
2015-10-20 18:10:05 +02:00
Daniël Heres
5c611dc600
Optimize peep functions
2015-10-20 17:35:31 +02:00
Ted John
acca9c869b
Merge pull request #2089 from Dandandan/optimize
...
Cache expression in gfx_rle_sprite_to_buffer
2015-10-19 22:10:14 +01:00
Daniël Heres
4f4f434c5a
Bit shifting
2015-10-19 22:55:16 +02:00
Daniël Heres
328c42d5d5
Use same naming convention
2015-10-19 20:50:52 +02:00
Daniël Heres
7730665023
Cache expression in gfx_rle_sprite_to_buffer
2015-10-19 20:45:04 +02:00
Michał Janiszewski
d570163958
Fix types
...
Bunch of type fixes
2015-10-19 20:30:46 +02:00
Ted John
3f99209219
Refactor calculate_park_rating logic
...
...to avoid changing a local variable's meaning.
2015-10-19 12:20:21 +01:00
Sam Horn
7250adaf71
Identify peep->var_C6
2015-10-19 18:36:45 +10:00
IntelOrca
8c276acde7
fix #2085
2015-10-18 21:16:00 +01:00
Ted John
3fe48a262d
Merge pull request #2084 from duncanspumpkin/misc
...
Misc
2015-10-18 14:30:11 +01:00
duncanspumpkin
3ee518bf87
Define CableLiftVehicle structure
2015-10-18 14:01:16 +01:00
Sam Horn
34e1e773a7
Fixes #2080
2015-10-18 22:40:07 +10:00
duncanspumpkin
f512c5fad0
Use correct function call for crashed vehicles
2015-10-18 13:18:10 +01:00
duncanspumpkin
7d378a3620
Fix unused variable warnings
2015-10-18 12:46:38 +01:00
duncanspumpkin
0551fb7170
Fix #1914 . Removed y variable as it is not part of function call
2015-10-18 12:07:45 +01:00
duncanspumpkin
fedd83987e
Fix Disable Network build
2015-10-18 12:02:31 +01:00
Duncan
45d3fbf10d
Merge pull request #2061 from clamburger/update_peep_on_enter_ride
...
Cleaned up peep_on_enter_ride
2015-10-18 10:21:04 +01:00
zsilencer
cf78d76bdf
make disable volume on focus lost not reset title music
2015-10-17 11:48:39 -06:00
zsilencer
6449dfd6ea
fix #2076
2015-10-17 11:47:04 -06:00
Sam Horn
05f6ea96a0
Fixed inconsistent use of peep->rides_been_on
2015-10-18 02:32:26 +10:00
Sam Horn
8850d1153f
Split off independent logic into their own functions
2015-10-18 02:31:17 +10:00
Ted John
7e753afe52
Merge pull request #2074 from duncanspumpkin/fix_2049
...
Possible fix to #2049 .
2015-10-17 13:38:56 +01:00
IntelOrca
93e7e219cc
fix peep inverted logic from 76252a32d9
2015-10-17 13:35:09 +01:00
duncanspumpkin
4ddca816e0
Possible fix to #2049 .
...
I need this confirmed as I can't reproduce the issue even when I change the peep logic to always being sick.
2015-10-16 23:26:55 +01:00
IntelOrca
341b658ed0
add gui option for stay_connected
2015-10-16 22:45:17 +01:00
IntelOrca
6c6fa1d444
add ability for server to kick player, closes #2071
2015-10-16 22:20:16 +01:00
IntelOrca
76252a32d9
fix peep.c warnings
2015-10-16 18:51:25 +01:00
Ted John
5d6fe6f7f0
Merge pull request #2067 from duncanspumpkin/fix_load_landscape
...
Fix loadlandscape breaking enabled tabs
2015-10-16 13:36:12 +01:00
zsilencer
ae6c88d1ce
remove unused/redundant RCT2_GLOBALS fix #2065 and cleanup
2015-10-16 02:31:31 -06:00
zsilencer
109ebe4f56
fix compiler warning
2015-10-16 01:06:46 -06:00
Duncan
700cb3976d
Merge pull request #2055 from ccfreak2k/develop
...
Implement sub_69AF1E
2015-10-16 06:47:09 +01:00
Andrew Waters
b959d13c65
Add implementation of sub_69AF1E()
2015-10-15 18:22:51 -07:00