MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Script_General_Unknown0288

Function Script_General_Unknown0288

src/script/general.c:181–192  ·  view source on GitHub ↗

* Unknown function 0288. * * Stack: 1 - An encoded index. * * @param script The script engine to operate on. * @return unknown. */

Source from the content-addressed store, hash-verified

179 * @return unknown.
180 */
181uint16 Script_General_Unknown0288(ScriptEngine *script)
182{
183 uint16 index;
184 Structure *s;
185
186 index = STACK_PEEK(1);
187 s = Tools_Index_GetStructure(index);
188
189 if (s != NULL && Tools_Index_Encode(s->o.index, IT_STRUCTURE) != index) return 1;
190
191 return (Tools_Index_GetObject(index) == NULL) ? 1 : 0;
192}
193
194/**
195 * Get orientation of a unit.

Callers

nothing calls this directly

Calls 3

Tools_Index_GetStructureFunction · 0.85
Tools_Index_EncodeFunction · 0.85
Tools_Index_GetObjectFunction · 0.85

Tested by

no test coverage detected