summaryrefslogtreecommitdiff
path: root/powder.c
diff options
context:
space:
mode:
authorPhil <cracker642@gmail.com>2010-09-07 04:00:26 (GMT)
committer Phil <cracker642@gmail.com>2010-09-07 04:00:26 (GMT)
commita54f5cb7a7f1d977e9675a42529b7e85c6295969 (patch)
treea6e00c8b7d45708d143a277a67fed39f75e962aa /powder.c
parent2c4b08696d23ddedab4edf1ac24dce1d4413e39d (diff)
downloadpowder-a54f5cb7a7f1d977e9675a42529b7e85c6295969.zip
powder-a54f5cb7a7f1d977e9675a42529b7e85c6295969.tar.gz
Fixed some temperature errors in the table, fixed some relative weights, and fixed the names on the sides. Renamed PT_PLEX to PT_C4 to make more sense, fixed ice/snow melting problem. made temp sign say N/A instead of 0 when there is nothing.
Diffstat (limited to 'powder.c')
-rw-r--r--powder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/powder.c b/powder.c
index bfe4329..15848e8 100644
--- a/powder.c
+++ b/powder.c
@@ -456,7 +456,7 @@ void update_particles_i(pixel *vid, int start, int inc)
{
int i, j, x, y, t, nx, ny, r, a, s, rt, fe, nt, lpv, nearp, pavg;
float mv, dx, dy, ix, iy, lx, ly, d, pp;
- float pt = R_TEMP;
+ float pt = R_TEMP + 273.15f;
float c_heat = 0.0f;
int h_count = 0;
int starti = (start*-1);
@@ -766,7 +766,7 @@ void update_particles_i(pixel *vid, int start, int inc)
t = parts[i].type = pstates[t].solid;
}
}
- else if((pt>=pstates[t].ltemp&&(pt<=pstates[t].gtemp||!pstates[t].gas)&&pstates[t].state==ST_SOLID&&pstates[t].liquid)||(t==PT_ICEI&&pt>pstates[parts[i].ctype].stemp))
+ else if((pt>=pstates[t].ltemp&&(pt<=pstates[t].gtemp||!pstates[t].gas)&&pstates[t].state==ST_SOLID&&pstates[t].liquid)||(t==PT_ICEI&&pt<pstates[parts[i].ctype].ltemp))
{
if(pstates[t].liquid==PT_LAVA)
{
@@ -1115,7 +1115,7 @@ void update_particles_i(pixel *vid, int start, int inc)
continue;
if((r&0xFF)!=PT_ACID)
{
- if ((r&0xFF)==PT_PLEX || (r&0xFF)==PT_NITR || (r&0xFF)==PT_GUNP || (r&0xFF)==PT_RBDM || (r&0xFF)==PT_LRBD)
+ if ((r&0xFF)==PT_C4 || (r&0xFF)==PT_NITR || (r&0xFF)==PT_GUNP || (r&0xFF)==PT_RBDM || (r&0xFF)==PT_LRBD)
{
t = parts[i].type = PT_FIRE;
parts[i].life = 4;
@@ -1179,7 +1179,7 @@ void update_particles_i(pixel *vid, int start, int inc)
if((r&0xFF)==PT_WATR && 15>(rand()%100))
parts[r>>8].type = PT_DSTW;
- if((r&0xFF)==PT_PLEX && 15>(rand()%1000))
+ if((r&0xFF)==PT_C4&& 15>(rand()%1000))
parts[r>>8].type = PT_GOO;
if((r&0xFF)==PT_NITR && 15>(rand()%1000))
parts[r>>8].type = PT_DESL;