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

Function SimCmdDoAnimation

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

Source from the content-addressed store, hash-verified

1291
1292
1293int SimCmdDoAnimation(ARGS)
1294{
1295 int val;
1296
1297 if ((argc != 2) && (argc != 3)) {
1298 return (TCL_ERROR);
1299 }
1300
1301 if (argc == 3) {
1302 if ((Tcl_GetInt(interp, argv[2], &val) != TCL_OK)) {
1303 return (TCL_ERROR);
1304 }
1305 DoAnimation = val;
1306 MustUpdateOptions = 1; Kick();
1307 }
1308
1309 sprintf(interp->result, "%d", DoAnimation);
1310 return (TCL_OK);
1311}
1312
1313
1314int SimCmdDoMessages(ARGS)

Callers

nothing calls this directly

Calls 1

Tcl_GetIntFunction · 0.85

Tested by

no test coverage detected