News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

r6538 elevated ways over water disappeared

Started by HDomos, June 11, 2013, 01:57:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HDomos

When i first loaded the game yesterday it worked just fine, but today when i loaded it, all the elevated ways placed on water just disappeared. See images attached.


greenling

Hello HDomos
can you try to post this bug in the german forum too?
The chiefprogrammer there lighter to reach.
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

kierongreen


Dwachs

Parsley, sage, rosemary, and maggikraut.

kierongreen

Very simple fix!


Index: boden/grund.cc
===================================================================
--- boden/grund.cc    (revision 6543)
+++ boden/grund.cc    (working copy)
@@ -185,7 +185,7 @@
     // water saves its correct height => no need to save grid heights anymore
     sint8 z = welt->lookup_hgt( pos.get_2d() ); // save grid height for water tiles - including partial water tiles
     sint8 z_w = welt->get_water_hgt( pos.get_2d() );
-    if(  (!ist_wasser()  &&  z > z_w)  ||  ist_bruecke()  ||  ist_tunnel()  ) {
+    if(  (!ist_wasser()  &&  z > z_w)  ||  ist_bruecke()  ||  ist_tunnel()  ||  get_typ() == grund_t::monorailboden  ) {
         z = pos.z; // all other tiles save ground height
     }



Ters

Looks like there should be an ist_monorail(), perhaps with a more generic name than monorail, possibly also in English. If there already is, use that.

kierongreen


HDomos

Thanks :)

Quote from: kierongreen on June 13, 2013, 07:15:47 AM
Very simple fix!


Index: boden/grund.cc
===================================================================
--- boden/grund.cc    (revision 6543)
+++ boden/grund.cc    (working copy)
@@ -185,7 +185,7 @@
     // water saves its correct height => no need to save grid heights anymore
     sint8 z = welt->lookup_hgt( pos.get_2d() ); // save grid height for water tiles - including partial water tiles
     sint8 z_w = welt->get_water_hgt( pos.get_2d() );
-    if(  (!ist_wasser()  &&  z > z_w)  ||  ist_bruecke()  ||  ist_tunnel()  ) {
+    if(  (!ist_wasser()  &&  z > z_w)  ||  ist_bruecke()  ||  ist_tunnel()  ||  get_typ() == grund_t::monorailboden  ) {
         z = pos.z; // all other tiles save ground height
     }




kierongreen