Anonymous Login
2018-12-16 04:09 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002002OpenClonkEngine - C4Scriptpublic2018-03-01 22:28
ReporterMarky 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target Versiongit masterFixed in Version 
Summary0002002: Loc_Sky() finds locations in liquids == GBackSky() returns 'true' in liquids
DescriptionI'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.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0006149

Luchs (administrator)

>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.
+Notes

-Issue History
Date Modified Username Field Change
2018-02-17 17:54 Marky New Issue
2018-03-01 22:28 Luchs Note Added: 0006149
+Issue History