News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

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

Started by z9999, September 02, 2009, 10:52:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

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

gerw

Fix:

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!

Dwachs