The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: gerw on August 27, 2009, 06:52:04 pm

Title: [patch] Transparent station coverage with slope (underground)
Post by: gerw on August 27, 2009, 06:52:04 pm
If you view the (transparent) station coverage and switch to underground, you will loose the slopes (only flat transparent overlays are shown).

Code: [Select]
Index: simplan.cc
===================================================================
--- simplan.cc (revision 2615)
+++ simplan.cc (working copy)
@@ -8,9 +8,9 @@
 #include "simdebug.h"
 #include "simdings.h"
 #include "simgraph.h"
+#include "simhalt.h"
 #include "simplan.h"
 #include "simworld.h"
-#include "simhalt.h"
 #include "player/simplay.h"
 #include "simdebug.h"
 #include "simconst.h"
@@ -405,7 +405,7 @@
  image_id img = gr->get_bild();
  if(img==IMG_LEER) {
  // default image (since i.e. foundations do not have an image)
- img = grund_besch_t::ausserhalb->get_bild(hang_t::flach);
+ img = grund_besch_t::get_ground_tile( gr->get_grund_hang(), gr->get_disp_height() );
  }
 
  for(int halt_count = 0; halt_count < halt_list_count; halt_count++) {
Title: Re: [patch] Transparent station coverage with slope (underground)
Post by: Dwachs on August 27, 2009, 07:21:52 pm
in rev 2619 :D thank you!