Michał Janiszewski
c0e2a5c7be
Add get_current_rotation function and DEBUG_LEVEL macros
2015-11-02 22:58:15 +01:00
IntelOrca
a0909a242d
fix several safe_strncpy calls
2015-11-02 21:23:01 +00:00
IntelOrca
45bfdad4e3
fix #1144
2015-11-02 20:43:55 +00:00
duncanspumpkin
d21e5a3b8c
Fix #2136 . Issue caused by missing branch.
2015-11-01 21:03:50 +00:00
Michał Janiszewski
9a981ef68f
Fix variable not being shifted
...
When decompiled, at 0x6AA8ED, there's `shr edi,0x4`, which is not
reflected in sources.
The `type` without that shift could easily become a value large enough
to point to memory beyond object entries and modify those values. In my
case, it was modifying `RCT2_ADDRESS_OBJECT_LIST_NO_ITEMS` from 2122 to
2123 (by setting lowest bit), which luckily, is used later in
`setup_in_use_selection_flags`. For this reason, I believe it could be a
major source of other problems, possibly also recent `MAP_ANIMATION`
ones, although I haven't checked.
I also put an assert in place to validate type against max available
count.
2015-11-01 18:53:47 +01:00
Ted John
caa5f870c5
Merge pull request #2175 from zsilencer/network
...
Network
2015-11-01 11:24:04 +00:00
Jonathan Haas
d2ec665ae4
Fix Bug #2138
2015-11-01 09:59:13 +01:00
zsilencer
d18adc80de
fix small error
2015-10-31 17:43:36 -06:00
zsilencer
a95357a32d
signs and banners editable in multiplayer
2015-10-31 11:07:36 -06: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
Alexander Overvoorde
01793e11b7
Replace RCT2_GLOBAL magic numbers with address identifiers and string ids
2015-10-29 09:44:46 +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
IntelOrca
4ac42ff1b2
add vehicle struct, enum labels and helper functions from implement-ride-create-vehicles branch.
2015-10-25 16:00:21 +00:00
Michał Janiszewski
fcd22dd8ca
Memory handling fixes
2015-10-25 01:15:52 +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
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
Michał Janiszewski
11fb15bba7
Add casts for types
2015-10-22 23:51:05 +02:00
IntelOrca
00ff795d04
hide multiplayer button if network is disabled
2015-10-21 21:06:15 +01: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
Michał Janiszewski
7d0ce00bab
Strip all whitespace
2015-10-20 20:48:51 +02: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
Sam Horn
34e1e773a7
Fixes #2080
2015-10-18 22:40:07 +10: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
Sam Horn
05f6ea96a0
Fixed inconsistent use of peep->rides_been_on
2015-10-18 02:32:26 +10: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
duncanspumpkin
ee1e71f287
Fix loadlandscape breaking enabled tabs
...
Issue was caused by not calling sub_6DFED0 when loading the landscape. I assume in vanilla this would happen as part of the loading but due to the way loadsave now works it doesn't happen. In the process I also labelled the offset for editor step.
2015-10-15 22:16:27 +01:00
Ted John
fdfe52fc19
Merge pull request #2057 from Gymnasiast/show-vehicles-from-other-track-types
...
Show vehicles from other track types
2015-10-15 12:57:57 +01:00
IntelOrca
0442f08aae
remove redundant dropdown assignment
2015-10-14 21:16:10 +01:00
IntelOrca
3855d70d1a
fix dropdown 64 item support and remove old RCT2 addresses
2015-10-14 21:01:04 +01:00
Gymnasiast
d71ca1f376
Extend dropdowns to hold up to 64 items (with bugs)
2015-10-14 16:19:50 +02:00
Duncan
d2398b65bb
Merge pull request #2048 from clamburger/update_sub_6960AB
...
Clean up sub_6960AB function (peep_should_go_on_ride)
2015-10-12 21:49:46 +01:00
Gymnasiast
a1cc3e4759
Fix vehicle dropdown when 'Select-by-track-type' off and 'Show vehicles from other track types' on
2015-10-12 16:01:58 +02:00
Gymnasiast
105280a082
Introduce cheat option to show vehicles from other track types
2015-10-12 15:58:15 +02:00
IntelOrca
d5ae4a55ff
allow 1 to 64 mountain tool size
2015-10-11 12:26:33 +01:00
Sam Horn
58b7df8fd7
Renamed ride->first_peep_in_queue to last_peep_in_queue
2015-10-11 03:03:59 +10:00
Ted John
5405cf7efd
Merge pull request #2012 from Overv/develop
...
Add Steam overlay detection that pauses the game (#1903 )
2015-10-05 00:07:10 +01:00
duncanspumpkin
36917bd75a
Fix #1661 . Track direction now remembered when deleteing last section
2015-10-04 20:52:27 +01:00
duncanspumpkin
9017e5ff86
Fix #1899 . Prevent mountain tool from being possible for land ownership tool.
2015-10-04 20:44:17 +01:00
Alexander Overvoorde
51377fc960
Add setting for Steam overlay pausing and add extra check
2015-10-03 23:10:56 +02:00
Jonathan Haas
ae82ffcd96
Rename window flags
2015-10-03 17:20:53 +02:00
Alexander Overvoorde
377650d9f5
Change autosave system to use wall-clock time based frequencies
...
The autosave system will now use frequencies based on wall-clock
time rather than in-game time, for example every 15 minutes. This
frequency is not affected by pausing the game or changing the game
speed. The default frequency is every 5 minutes.
2015-10-03 14:25:59 +02:00
Rune Laenen
7ac930c318
errorfix guest_list
2015-10-02 13:49:13 +02:00