1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00
Commit Graph

3600 Commits

Author SHA1 Message Date
duncanspumpkin
930bdc1669 Make suggested changes. Invis huts now correctly remove fence 2015-10-28 19:57:02 +00:00
duncanspumpkin
d9b7c1fafd Implement remaining rotations 2015-10-28 19:02:32 +00:00
duncanspumpkin
e7c653abf2 Refactor attached ps setup code 2015-10-28 18:44:44 +00:00
duncanspumpkin
c62e61bd36 Started implementing rotation 0 2015-10-28 18:44:44 +00:00
duncanspumpkin
330b6b5524 Implemented tables for top spin paint setup 2015-10-28 18:44:43 +00:00
Ted John
f233f5c498 Merge pull request #2146 from janisozaur/develop
Cleanups
2015-10-28 08:14:03 +00:00
Michał Janiszewski
2f457aeffc Cleanups
* Remove unused function in config.c
* Check handle *before* it is used
* Provide explicit parentheses around unclear if statements
2015-10-28 08:06:45 +01:00
Linus Unnebäck
29243780c8 add limits.h include for CHAR_BIT 2015-10-28 07:33:56 +01:00
Ted John
df5538e930 Merge pull request #2143 from janisozaur/develop
Guard against possible NULL dereference
2015-10-27 17:45:16 +00:00
Michał Janiszewski
0cdaa0b57e Guard against possible NULL dereference 2015-10-27 18:32:39 +01:00
zsilencer
00e2ca43a1 ipv6 support, non-blocking address resolve and connect 2015-10-26 22:35:34 -06:00
Gymnasiast
9504f3f10d Replace missed occurrence of magic numbers with defines 2015-10-26 13:53:26 +01:00
Gymnasiast
61444c8518 Display the visible/practical map size instead of the technical size, fixes #2133 2015-10-26 10:21:04 +01:00
IntelOrca
8d84b540ad add vehicle struct and enum labels from vehicle-update branch. 2015-10-25 21:26:03 +00:00
Gymnasiast
98fd1bf95d Reinstate RCT2_ADDRESS_VEHICLE_SOUND_LIST 2015-10-25 21:42:09 +01:00
Gymnasiast
2b0d5b2470 Remove obsolete sound and config code 2015-10-25 20:54:19 +01:00
Ted John
865c1a68a7 Merge pull request #2130 from Dandandan/readability
Replace constants in world/sprite.c
2015-10-25 16:43:59 +00:00
IntelOrca
4ac42ff1b2 add vehicle struct, enum labels and helper functions from implement-ride-create-vehicles branch. 2015-10-25 16:00:21 +00:00
Daniël Heres
358647d07c Replace constants in world/sprite.c 2015-10-25 16:34:01 +01:00
Michał Janiszewski
fcd22dd8ca Memory handling fixes 2015-10-25 01:15:52 +02:00
Ted John
3be4dc748a Merge pull request #2115 from Dandandan/optimize
Fix assignment
2015-10-24 20:16:34 +01:00
Daniël Heres
9752d197e6 Fix assignment 2015-10-24 21:02:08 +02:00
Ted John
cfa847ee71 Merge pull request #2113 from Broxzier/develop
Added 10-minute inspections cheat.
2015-10-24 19:13:30 +01:00
Duncan
d7a1747407 Merge pull request #2114 from Dandandan/optimize
Cache width of line in gfx_bmp_sprite_to_buffer
2015-10-24 18:16:28 +01:00
Daniël Heres
3ebd576d78 Cache width of line 2015-10-24 18:25:11 +02:00
Hielke Morsink
e5ce186534 Wrapped new widget with () 2015-10-24 17:23:34 +02:00
Hielke Morsink
dc8e197799 Added 10-minute inspections cheat. 2015-10-24 17:10:33 +02:00
Ted John
5e9912e880 Merge pull request #2038 from HaasJona/restart_required
Require a restart after changing hardware rendering
2015-10-24 14:44:01 +01:00
Jonathan Haas
475466dcd9 Require a restart after changing hardware rendering setting, decouple setting from active status 2015-10-24 12:50:28 +02:00
Ted John
abdcd50c8e Merge pull request #2112 from Dandandan/optimize
Low level optimizations
2015-10-24 11:49:32 +01:00
Daniël Heres
29976790cb Low level optimizations
* Just memcpy if we don't have to use a pallete and zoom_amount == 1
* Replace some divide operations by right-shifts
* Optimize / simplify sub_68B3FB
2015-10-24 12:32:56 +02:00
Ted John
1cd1344711 Merge pull request #2109 from Overv/develop
Disable drawing if the window is minimized or otherwise hidden
2015-10-23 18:22:31 +01:00
Alexander Overvoorde
8a23aa1bec Change openrct2_loop to not draw if window is minimized or otherwise hidden (fixes #2096) 2015-10-23 17:33:25 +02:00
Michał Janiszewski
79552feb54 Only copy strings when they're different
When called from window_loadsave_scrollmousedown,
window_loadsave_populate_list will try to strncpy a string over itself.
This commit prevents that.
2015-10-23 17:22:31 +02:00
Ted John
a24b3e114c Merge pull request #2107 from Dandandan/optimizemixer
Optimize Mixer::EffectPanS16
2015-10-23 13:28:40 +01:00
Daniël Heres
fdbd08e306 Calculate correct d_left / d_right 2015-10-23 14:06:38 +02:00
Daniël Heres
831dc631c8 Optimize Mixer::EffectPanS16 2015-10-23 12:40:35 +02:00
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