MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / scriptInit

Function scriptInit

src/qtscript.cpp:306–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306bool scriptInit()
307{
308 int i;
309
310 for (i = 0; i < MAX_PLAYERS; i++)
311 {
312 scriptSetStartPos(i, 0, 0);
313 }
314 derricks.clear();
315 derricks.reserve(8 * MAX_PLAYERS);
316 return true;
317}
318
319Vector2i getPlayerStartPosition(int player)
320{

Callers 1

stageOneInitialiseFunction · 0.85

Calls 3

scriptSetStartPosFunction · 0.85
clearMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected