short CrimeMaxX, CrimeMaxY;
QUAD DonDither = 0;
+void DistIntMarket(void);
+void SmoothPSMap(void);
+void SmoothFSMap(void);
+void ClrTemArray(void);
+void DoSmooth (void);
+void DoSmooth2 (void);
+void SmoothTerrain(void);
+int GetPValue(int loc);
+int GetDisCC(int x, int y);
+int GetPDen(int Ch9);
+
/* comefrom: Simulate SpecialInit */
+void
FireAnalysis(void) /* Make firerate map from firestation map */
{
- register x,y;
+ register int x,y;
SmoothFSMap();
SmoothFSMap();
/* comefrom: Simulate SpecialInit */
+void
PopDenScan(void) /* sets: PopDensity, , , ComRate */
{
QUAD Xtot, Ytot, Ztot;
/* comefrom: PopDenScan */
+int
GetPDen(int Ch9)
{
register int pop;
if (Ch9 == FREEZ) {
- pop = DoFreePop(Ch9);
+ pop = DoFreePop(/*Ch9*/);
return (pop);
}
if (Ch9 < COMBASE) {
/* comefrom: Simulate SpecialInit */
+void
PTLScan(void) /* Does pollution, terrain, land value */
{
QUAD ptot, LVtot;
zy = y <<1;
for (Mx = zx; Mx <= zx + 1; Mx++)
for (My = zy; My <= zy + 1; My++) {
- if (loc = (Map[Mx][My] & LOMASK)) {
+ if ((loc = (Map[Mx][My] & LOMASK))) {
if (loc < RUBBLE) {
Qtem[x >>1][y >>1] += 15; /* inc terrainMem */
continue;
/* comefrom: PTLScan */
+int
GetPValue(int loc)
{
if (loc < POWERBASE) {
/* comefrom: PTLScan DistIntMarket */
+int
GetDisCC(int x, int y)
{
short xdis, ydis, z;
/* comefrom: Simulate SpecialInit */
+void
CrimeScan(void)
{
short numz;
cmax = 0;
for (x = 0; x < HWLDX; x++)
for (y = 0; y < HWLDY; y++) {
- if (z = LandValueMem[x][y]) {
+ if ((z = LandValueMem[x][y])) {
++numz;
z = 128 - z;
z += PopDensity[x][y];
/* comefrom: PTLScan */
+void
SmoothTerrain(void)
{
if (DonDither & 1) {
}
/* comefrom: PopDenScan */
+void
DoSmooth (void) /* smooths data in tem[x][y] into tem2[x][y] */
{
if (DonDither & 2) {
/* comefrom: PopDenScan */
+void
DoSmooth2 (void) /* smooths data in tem2[x][y] into tem[x][y] */
{
if (DonDither & 4) {
/* comefrom: PopDenScan */
+void
ClrTemArray(void)
{
register short x, y, z;
/* comefrom: FireAnalysis */
+void
SmoothFSMap(void)
{
register short x, y, edge;
/* comefrom: CrimeScan */
+void
SmoothPSMap(void)
{
- register x, y, edge;
+ register int x, y, edge;
for (x = 0; x < SmX; x++)
for (y = 0; y < SmY; y++) {
/* comefrom: PopDenScan */
+void
DistIntMarket(void)
{
register short x, y, z;