TheEntireCommunistManifesto / OpenRCT2

An open source re-implementation of RollerCoaster Tycoon 2 🎢
http://openrct2.website
GNU General Public License v3.0
0 stars 0 forks source link

Chainlift crashes if its height is over 85.5m(=57 units) #12

Open Davespx opened 7 years ago

Davespx commented 7 years ago

OS: Windows 10 Version: 0.0.7 Commit/Build: 7005d5d

Chairlift crashes if its height is over 85.5m(=57 units). It is needed to disable support limit.

Reproducible in RCT2 (vanilla)? Multiplayer? Steps to reproduce:

Disable support limit (by cheat) Build chairlift up to 85.5m(=57 unit) It crashes the end of station that is at 85.5m Dump file

Screenshots / Video:

Save game: [chairlift.crash (1).zip] (https://github.com/TheEntireCommunistManifesto/OpenRCT2/files/900876/chairlift.crash.1.zip) See Chairlift 1

https://github.com/OpenRCT2/OpenRCT2/issues/5248

Voytella commented 7 years ago

There are several uint8 values in 'Source/world/map.h'. Two important ones appear to be 'base_height' and 'clearance_height'. I tried changing 'clearance_height' to uint16, but it's size is protected by several 'assert_struct_size' statements. Commenting out these statements with the modified integer size just results in a crash upon boot. The exact size of these data types is very important, it seems.