swe-teamteam / 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

Graphic glitch on railroads built in the opposite direction #3

Open crorabaugh2015 opened 7 years ago

crorabaugh2015 commented 7 years ago

OS: Ubuntu Version: Commit/Build:

When you place a diagonal piece backwards for mini railroad (raised above ground) graphic is missing for wooden support Bug #5281 upstream

Steps to reproduce:

  1. Build mini railroad above ground
  2. Build track backwards
  3. Build diagonal track pointed at you (backwards)
  4. Graphic for wooden support should be missing

Dump file

Screenshots / Video:

Save game:

crorabaugh2015 commented 7 years ago

Seems to be in the file src/openrct2/ride/transport/miniature_railroad.c most likely: line 1505 in function static void miniature_railway_track_diag_flat

crorabaugh2015 commented 7 years ago

Problem on ln 1482 of src/openrct2/ride/transport/miniature_railroad.c Change the -1 in all four arrays to the enum SUPPORT_PLAIN