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

Function Script_Team_Load2

src/script/team.c:322–340  ·  view source on GitHub ↗

* Loads a new script for the current team. * * Stack: *none*. * * @param script The script engine to operate on. * @return The value 0. Always. */

Source from the content-addressed store, hash-verified

320 * @return The value 0. Always.
321 */
322uint16 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.

Callers

nothing calls this directly

Calls 2

Script_ResetFunction · 0.85
Script_LoadFunction · 0.85

Tested by

no test coverage detected