View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0002002 | OpenClonk | Engine - C4Script | public | 2018-02-17 17:54 | 2018-03-01 22:28 | ||||||||
Reporter | Marky | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | git master | Fixed in Version | |||||||||||
Summary | 0002002: Loc_Sky() finds locations in liquids == GBackSky() returns 'true' in liquids | ||||||||||||
Description | I'd expect that Loc_Sky() finds locations that are sky material only (Loc_Material("Sky") works good, though). Essentially, when I tested my map locally, GBackSky() returns true even if the coordinate has water on it. These water material was drawn by an old landscape.txt, so I suspect that the foreground material is water, but the background material is sky. Still, this is annoying, because it was not what I expected. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files |
|
![]() |
|
Luchs (administrator) 2018-03-01 22:28 |
>GBackSky() returns 'true' in liquids GBackSky checks whether the background material is Sky. It has always been this way, I just checked CR. Not sure about the intention behind FindLocation and Loc_Sky(), but these functions seem to mirror the GBack* functions. We should probably add a set of material functions to replace all those confusingly-named GBack* functions. I wouldn't change (or remove) them though to avoid breaking compatibility. |