* Loads a new script for the current team. * * Stack: *none*. * * @param script The script engine to operate on. * @return The value 0. Always. */
| 320 | * @return The value 0. Always. |
| 321 | */ |
| 322 | uint16 Script_Team_Load2(ScriptEngine *script) |
| 323 | { |
| 324 | Team *t; |
| 325 | uint16 type; |
| 326 | |
| 327 | VARIABLE_NOT_USED(script); |
| 328 | |
| 329 | t = g_scriptCurrentTeam; |
| 330 | type = t->actionStart; |
| 331 | |
| 332 | if (t->action == type) return 0; |
| 333 | |
| 334 | t->action = type; |
| 335 | |
| 336 | Script_Reset(&t->script, g_scriptTeam); |
| 337 | Script_Load(&t->script, type & 0xFF); |
| 338 | |
| 339 | return 0; |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Unknown function 0788. |
nothing calls this directly
no test coverage detected