The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on September 02, 2009, 10:52:42 am

Title: [bug r2622] Can't build extend station building in sliced view mode
Post by: z9999 on September 02, 2009, 10:52:42 am
We can't build extend station building in sliced view mode.
This is necessary to build it under elevated double track without rotate map.
Title: Re: [bug r2622] Can't build extend station building in sliced view mode
Post by: gerw on September 02, 2009, 11:33:08 am
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!
Title: Re: [bug r2622] Can't build extend station building in sliced view mode
Post by: Dwachs on September 02, 2009, 11:42:28 am
should be fixed in revision 2623  :)