Skip to main content
Topic: [bug r2622] Can't build extend station building in sliced view mode (Read 2140 times) previous topic - next topic

[bug r2622] Can't build extend station building in sliced view mode

We can't build extend station building in sliced view mode.
This is necessary to build it under elevated double track without rotate map.

Re: [bug r2622] Can't build extend station building in sliced view mode

Reply #1
Fix:

Code: [Select]
Index: simwerkz.cc
===================================================================
--- simwerkz.cc (revision 2622)
+++ simwerkz.cc (working copy)
@@ -2766,7 +2773,7 @@
 
        sint8 rotation;
        const haus_besch_t *besch=get_besch(rotation);
-       if(  grund_t::underground_mode==grund_t::ugm_all || (grund_t::underground_mode==grund_t::ugm_level && pos.z>=grund_t::underground_level) ) {
+       if(  grund_t::underground_mode==grund_t::ugm_all || (grund_t::underground_mode==grund_t::ugm_level && pos.z > grund_t::underground_level) ) {
                // in underground mode, buildings will be done invisible above ground => disallow such confusion
                if(  besch->get_utyp()!=haus_besch_t::generic_stop  ||  besch->get_extra()==air_wt) {
                        return "Cannot built this station/building\nin underground mode here.";

Thank you for reporting!

Re: [bug r2622] Can't build extend station building in sliced view mode

Reply #2
should be fixed in revision 2623  :)
Parsley, sage, rosemary, and maggikraut.