MCPcopy Create free account
hub / github.com/SimHacker/micropolis / SimCmdGameLevel

Function SimCmdGameLevel

micropolis-activity/src/sim/w_sim.c:219–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219int SimCmdGameLevel(ARGS)
220{
221 int level;
222
223 if ((argc != 2) && (argc != 3)) {
224 return (TCL_ERROR);
225 }
226
227 if (argc == 3) {
228 if ((Tcl_GetInt(interp, argv[2], &level) != TCL_OK) ||
229 (level < 0) || (level > 2)) {
230 return (TCL_ERROR);
231 }
232 SetGameLevelFunds(level);
233 }
234
235 sprintf(interp->result, "%d", GameLevel);
236 return (TCL_OK);
237}
238
239
240int SimCmdSpeed(ARGS)

Callers

nothing calls this directly

Calls 1

Tcl_GetIntFunction · 0.85

Tested by

no test coverage detected