comefrom: doSimInit */
| 387 | |
| 388 | /* comefrom: doSimInit */ |
| 389 | void Micropolis::initSimMemory() |
| 390 | { |
| 391 | setCommonInits(); |
| 392 | |
| 393 | for (short x = 0; x < 240; x++) { |
| 394 | resHist[x] = 0; |
| 395 | comHist[x] = 0; |
| 396 | indHist[x] = 0; |
| 397 | moneyHist[x] = 128; |
| 398 | crimeHist[x] = 0; |
| 399 | pollutionHist[x] = 0; |
| 400 | } |
| 401 | |
| 402 | crimeRamp = 0; |
| 403 | pollutionRamp = 0; |
| 404 | totalPop = 0; |
| 405 | resValve = 0; |
| 406 | comValve = 0; |
| 407 | indValve = 0; |
| 408 | resCap = false; // Do not block residential growth |
| 409 | comCap = false; // Do not block commercial growth |
| 410 | indCap = false; // Do not block industrial growth |
| 411 | |
| 412 | externalMarket = 6.0; |
| 413 | disasterEvent = SC_NONE; |
| 414 | scoreType = SC_NONE; |
| 415 | |
| 416 | /* This clears powermem */ |
| 417 | powerStackPointer = 0; |
| 418 | doPowerScan(); |
| 419 | newPower = true; /* post rel */ |
| 420 | |
| 421 | initSimLoad = 0; |
| 422 | } |
| 423 | |
| 424 | |
| 425 | /* comefrom: doSimInit */ |
nothing calls this directly
no outgoing calls
no test coverage detected