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

Function Script_Structure_Unknown11B9

src/script/structure.c:464–481  ·  view source on GitHub ↗

* Unknown function 11B9. * * Stack: 1 - Encoded tile. * * @param script The script engine to operate on. * @return unknown. */

Source from the content-addressed store, hash-verified

462 * @return unknown.
463 */
464uint16 Script_Structure_Unknown11B9(ScriptEngine *script)
465{
466 uint16 encoded;
467 Unit *u;
468
469 encoded = STACK_PEEK(1);
470
471 if (!Tools_Index_IsValid(encoded)) return 0;
472 if (Tools_Index_GetType(encoded) != IT_UNIT) return 0;
473
474 u = Tools_Index_GetUnit(encoded);
475 if (u == NULL) return 0;
476
477 Object_Script_Variable4_Clear(&u->o);
478 u->targetMove = 0;
479
480 return 0;
481}
482
483/**
484 * Play a voice on the structure.

Callers

nothing calls this directly

Calls 4

Tools_Index_IsValidFunction · 0.85
Tools_Index_GetTypeFunction · 0.85
Tools_Index_GetUnitFunction · 0.85

Tested by

no test coverage detected