1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
--- lincity-1.09.orig/engine.cxx Mon Apr 14 10:18:07 1997
+++ lincity-1.09/engine.cxx Fri Nov 7 13:17:54 1997
@@ -370,9 +370,9 @@
; // do nothing
else
{
- mappoint[x][y].int_1+=(POWERS_SOLAR_OUTPUT
- +((POWERS_SOLAR_OUTPUT*2)*mappoint[x][y].int_2)
- /MAX_TECH_LEVEL/2);
+ mappoint[x][y].int_1+=(int)(POWERS_SOLAR_OUTPUT
+ +((double)POWERS_SOLAR_OUTPUT*mappoint[x][y].int_2)
+ /MAX_TECH_LEVEL);
return;
}
// Now try and give it away. Only two places it can go; up or left
@@ -454,8 +454,8 @@
mappoint[x][y].int_3-=JOBS_COALPS_GENERATE;
mappoint[x][y].int_2-=POWERS_COAL_OUPUT/600;
coal_used+=POWERS_COAL_OUPUT/600;
- mappoint[x][y].int_1+=(POWERS_COAL_OUPUT
- +(POWERS_COAL_OUPUT*mappoint[x][y].int_4)
+ mappoint[x][y].int_1+=(int)(POWERS_COAL_OUPUT
+ +((double)POWERS_COAL_OUPUT*mappoint[x][y].int_4)
/MAX_TECH_LEVEL);
mappointpol[x][y]+=POWERS_COAL_POLLUTION;
}
|