* Unknown function 11B9. * * Stack: 1 - Encoded tile. * * @param script The script engine to operate on. * @return unknown. */
| 462 | * @return unknown. |
| 463 | */ |
| 464 | uint16 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. |
nothing calls this directly
no test coverage detected