* Unknown function 0288. * * Stack: 1 - An encoded index. * * @param script The script engine to operate on. * @return unknown. */
| 179 | * @return unknown. |
| 180 | */ |
| 181 | uint16 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. |
nothing calls this directly
no test coverage detected