News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

[SOLVED BUG] No ground under fields

Started by Fabio, August 25, 2009, 09:38:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fabio

Last night i was testing a new factory for pak128 (a forest using trees as fields)
it's fields have no ground underneath, to match with the climate.
When i placed manually the factory, under the fields there was no ground (only that "transparency").
When i rotated once or more the map, the problem disappeared and the ground was correctly rendered.

The Hood

I have reported this before - and would love it to be fixed.  Apparently it's not a bug though, fields don't currently support needs_ground properly...

Fabio

but after rotating it works properly. i think it's more the need for a refresh

Dwachs

Quote from: fabio on August 25, 2009, 09:38:28 AM
When i placed manually the factory, under the fields there was no ground (only that "transparency").
This should be fixed in revision 2516.

Actuallly, fields are treated internally as if the parameter "needs_ground =1" was set, i.e. the ground under fields is always drawn (if no bugs are present).
Parsley, sage, rosemary, and maggikraut.

Fabio

whops! i realised just now i was using an OLD version (March, i think) to test the factory. I'll try a newer one. so far, the bug should be closed. thanks.

The Hood

I've still experienced the same behaviour in r2569 though...

gerw

Dwachs mean, that it's fixed in 2615 :)

A little bit offtopic:
Where is gr->calc_bild() called, when the map is rotated? I searched it, but didn't find...

The Hood


Dwachs

Quote from: gerw on August 25, 2009, 12:58:41 PM
Where is gr->calc_bild() called, when the map is rotated? I searched it, but didn't find...

simwerkz.h, line 578, calls welt->update_map(), which does the job.

Quote from: fabio on August 25, 2009, 12:02:05 PM
whops! i realised just now i was using an OLD version (March, i think) to test the factory. I'll try a newer one. so far, the bug should be closed. thanks.
After placing the factories and fields with map editor, the bug appears as you had described. The bug was also present in recent version, but is now fixed.
Parsley, sage, rosemary, and maggikraut.