Skip to main content
Topic: [patch] Transparent station coverage with slope (underground) (Read 2080 times) previous topic - next topic

[patch] Transparent station coverage with slope (underground)

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++) {

 

Re: [patch] Transparent station coverage with slope (underground)

Reply #1
in rev 2619 :D thank you!
Parsley, sage, rosemary, and maggikraut.