From 26549965993c637636e525d4f23704b50c10129e Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 27 Jan 2011 22:38:47 +0000 Subject: [PATCH 1/3] Fix disappearing WTRV If water is sparked then quickly heated past 100C, the resulting WTRV will disappear after a few frames. --- src/powder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/powder.c b/src/powder.c index d595a5ab6..385ac5df2 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1565,6 +1565,7 @@ void update_particles_i(pixel *vid, int start, int inc) } else s = 0; if (s) { // particle type change occurred + parts[i].life = 0; if (t==PT_ICEI||t==PT_LAVA) parts[i].ctype = parts[i].type; if (ptypes[t].state==ST_GAS&&ptypes[parts[i].type].state!=ST_GAS) @@ -1672,6 +1673,7 @@ void update_particles_i(pixel *vid, int start, int inc) } else s = 0; if (s) { // particle type change occurred + parts[i].life = 0; part_change_type(i,x,y,t); if (t==PT_FIRE) parts[i].life = rand()%50+120; From bdfbc7c409370d85f83d6cf54cff560c76bd8c09 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Fri, 28 Jan 2011 19:34:16 +0000 Subject: [PATCH 2/3] Change include file for element update functions --- includes/element.h | 7 +++++++ src/elements/acid.c | 2 +- src/elements/amtr.c | 2 +- src/elements/aray.c | 2 +- src/elements/bcln.c | 2 +- src/elements/bcol.c | 2 +- src/elements/bmtl.c | 2 +- src/elements/bomb.c | 2 +- src/elements/boyl.c | 2 +- src/elements/btry.c | 2 +- src/elements/c5.c | 2 +- src/elements/clne.c | 2 +- src/elements/coal.c | 2 +- src/elements/deut.c | 2 +- src/elements/dstw.c | 2 +- src/elements/firw.c | 2 +- src/elements/fog.c | 2 +- src/elements/frzw.c | 2 +- src/elements/frzz.c | 2 +- src/elements/fsep.c | 2 +- src/elements/fuse.c | 2 +- src/elements/fwrk.c | 2 +- src/elements/glas.c | 2 +- src/elements/glow.c | 2 +- src/elements/goo.c | 2 +- src/elements/hswc.c | 2 +- src/elements/ice.c | 2 +- src/elements/iron.c | 2 +- src/elements/isz.c | 2 +- src/elements/lcry.c | 2 +- src/elements/legacy.c | 2 +- src/elements/misc.c | 2 +- src/elements/mort.c | 2 +- src/elements/neut.c | 2 +- src/elements/none.c | 2 +- src/elements/nptct.c | 2 +- src/elements/pcln.c | 2 +- src/elements/phot.c | 2 +- src/elements/pipe.c | 2 +- src/elements/plnt.c | 2 +- src/elements/plut.c | 2 +- src/elements/prti.c | 2 +- src/elements/prto.c | 2 +- src/elements/pump.c | 2 +- src/elements/pyro.c | 2 +- src/elements/qrtz.c | 2 +- src/elements/rime.c | 2 +- src/elements/shld.c | 2 +- src/elements/sing.c | 2 +- src/elements/sltw.c | 2 +- src/elements/spng.c | 2 +- src/elements/sprk.c | 2 +- src/elements/stkm.c | 2 +- src/elements/stkm2.c | 2 +- src/elements/swch.c | 2 +- src/elements/thdr.c | 2 +- src/elements/thrm.c | 2 +- src/elements/uran.c | 2 +- src/elements/vine.c | 2 +- src/elements/warp.c | 2 +- src/elements/watr.c | 2 +- src/elements/wifi.c | 2 +- src/elements/wtrv.c | 2 +- src/elements/yest.c | 2 +- 64 files changed, 70 insertions(+), 63 deletions(-) create mode 100644 includes/element.h diff --git a/includes/element.h b/includes/element.h new file mode 100644 index 000000000..bbd4aebb6 --- /dev/null +++ b/includes/element.h @@ -0,0 +1,7 @@ +#ifndef ELEMENT_H +#define ELEMENT_H +// This header should be included by all files in src/elements/ + +#include "powder.h" + +#endif diff --git a/src/elements/acid.c b/src/elements/acid.c index 18f38910c..3d9f7b065 100644 --- a/src/elements/acid.c +++ b/src/elements/acid.c @@ -1,4 +1,4 @@ -#include +#include int update_ACID(UPDATE_FUNC_ARGS) { int r,rx,ry; diff --git a/src/elements/amtr.c b/src/elements/amtr.c index 748254b65..7c2126c0b 100644 --- a/src/elements/amtr.c +++ b/src/elements/amtr.c @@ -1,4 +1,4 @@ -#include +#include int update_AMTR(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/aray.c b/src/elements/aray.c index 55d6b289a..f32344489 100644 --- a/src/elements/aray.c +++ b/src/elements/aray.c @@ -1,4 +1,4 @@ -#include +#include int update_ARAY(UPDATE_FUNC_ARGS) { int r, nxx, nyy, docontinue, nxi, nyi, rx, ry, nr; diff --git a/src/elements/bcln.c b/src/elements/bcln.c index dfcfcd827..3581fc2d9 100644 --- a/src/elements/bcln.c +++ b/src/elements/bcln.c @@ -1,4 +1,4 @@ -#include +#include int update_BCLN(UPDATE_FUNC_ARGS) { if (!parts[i].life) diff --git a/src/elements/bcol.c b/src/elements/bcol.c index b7947bd85..5be50d965 100644 --- a/src/elements/bcol.c +++ b/src/elements/bcol.c @@ -1,4 +1,4 @@ -#include +#include int update_BCOL(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/bmtl.c b/src/elements/bmtl.c index 5a2703e3d..a29ac7dea 100644 --- a/src/elements/bmtl.c +++ b/src/elements/bmtl.c @@ -1,4 +1,4 @@ -#include +#include int update_BMTL(UPDATE_FUNC_ARGS) { int r, rx, ry, rt; diff --git a/src/elements/bomb.c b/src/elements/bomb.c index 814f120bc..59e05f877 100644 --- a/src/elements/bomb.c +++ b/src/elements/bomb.c @@ -1,4 +1,4 @@ -#include +#include int update_BOMB(UPDATE_FUNC_ARGS) { int r, rx, ry, nb; diff --git a/src/elements/boyl.c b/src/elements/boyl.c index bd54c6f95..68e1bf641 100644 --- a/src/elements/boyl.c +++ b/src/elements/boyl.c @@ -1,4 +1,4 @@ -#include +#include int update_BOYL(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/btry.c b/src/elements/btry.c index a0cb65150..c3a96c7c3 100644 --- a/src/elements/btry.c +++ b/src/elements/btry.c @@ -1,4 +1,4 @@ -#include +#include int update_BTRY(UPDATE_FUNC_ARGS) { int r, rx, ry, rt; diff --git a/src/elements/c5.c b/src/elements/c5.c index ff51be323..000c2be4e 100644 --- a/src/elements/c5.c +++ b/src/elements/c5.c @@ -1,4 +1,4 @@ -#include +#include int update_C5(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/clne.c b/src/elements/clne.c index dcb205bfe..173bd0a5b 100644 --- a/src/elements/clne.c +++ b/src/elements/clne.c @@ -1,4 +1,4 @@ -#include +#include int update_CLNE(UPDATE_FUNC_ARGS) { if (!parts[i].ctype) diff --git a/src/elements/coal.c b/src/elements/coal.c index 8793eb415..3cc68e3dd 100644 --- a/src/elements/coal.c +++ b/src/elements/coal.c @@ -1,4 +1,4 @@ -#include +#include int update_COAL(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/deut.c b/src/elements/deut.c index 640d84a43..2d7a1f245 100644 --- a/src/elements/deut.c +++ b/src/elements/deut.c @@ -1,4 +1,4 @@ -#include +#include int update_DEUT(UPDATE_FUNC_ARGS) { int r, rx, ry, trade, np; diff --git a/src/elements/dstw.c b/src/elements/dstw.c index ae6db18b3..7ce6c090a 100644 --- a/src/elements/dstw.c +++ b/src/elements/dstw.c @@ -1,4 +1,4 @@ -#include +#include int update_DSTW(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/firw.c b/src/elements/firw.c index e8e1c4a13..ae1f56de1 100644 --- a/src/elements/firw.c +++ b/src/elements/firw.c @@ -1,4 +1,4 @@ -#include +#include int update_FIRW(UPDATE_FUNC_ARGS) { int r, rx, ry, rt; diff --git a/src/elements/fog.c b/src/elements/fog.c index 17d4c736c..ff139161c 100644 --- a/src/elements/fog.c +++ b/src/elements/fog.c @@ -1,4 +1,4 @@ -#include +#include int update_FOG(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/frzw.c b/src/elements/frzw.c index ac7170d98..313535783 100644 --- a/src/elements/frzw.c +++ b/src/elements/frzw.c @@ -1,4 +1,4 @@ -#include +#include int update_FRZW(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/frzz.c b/src/elements/frzz.c index 087239766..f995d5f99 100644 --- a/src/elements/frzz.c +++ b/src/elements/frzz.c @@ -1,4 +1,4 @@ -#include +#include int update_FRZZ(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/fsep.c b/src/elements/fsep.c index 0149b155a..6b3b3760d 100644 --- a/src/elements/fsep.c +++ b/src/elements/fsep.c @@ -1,4 +1,4 @@ -#include +#include int update_FSEP(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/fuse.c b/src/elements/fuse.c index 1b6e8bf2c..ad0a4133f 100644 --- a/src/elements/fuse.c +++ b/src/elements/fuse.c @@ -1,4 +1,4 @@ -#include +#include int update_FUSE(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/fwrk.c b/src/elements/fwrk.c index f74990de0..def28e401 100644 --- a/src/elements/fwrk.c +++ b/src/elements/fwrk.c @@ -1,4 +1,4 @@ -#include +#include int update_FWRK(UPDATE_FUNC_ARGS) { int r, rx, ry, np; diff --git a/src/elements/glas.c b/src/elements/glas.c index ed6df85a3..bc2d5cebf 100644 --- a/src/elements/glas.c +++ b/src/elements/glas.c @@ -1,4 +1,4 @@ -#include +#include int update_GLAS(UPDATE_FUNC_ARGS) { parts[i].pavg[0] = parts[i].pavg[1]; diff --git a/src/elements/glow.c b/src/elements/glow.c index aa4d2b0cd..621e5b1c7 100644 --- a/src/elements/glow.c +++ b/src/elements/glow.c @@ -1,4 +1,4 @@ -#include +#include int update_GLOW(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/goo.c b/src/elements/goo.c index 7ae529b3f..0818173db 100644 --- a/src/elements/goo.c +++ b/src/elements/goo.c @@ -1,4 +1,4 @@ -#include +#include int update_GOO(UPDATE_FUNC_ARGS) { if (!parts[i].life) diff --git a/src/elements/hswc.c b/src/elements/hswc.c index bfb723835..5470e2d79 100644 --- a/src/elements/hswc.c +++ b/src/elements/hswc.c @@ -1,4 +1,4 @@ -#include +#include int update_HSWC(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/ice.c b/src/elements/ice.c index e361fa63e..5b792ce96 100644 --- a/src/elements/ice.c +++ b/src/elements/ice.c @@ -1,4 +1,4 @@ -#include +#include int update_ICEI(UPDATE_FUNC_ARGS) { //currently used for snow as well int r, rx, ry; diff --git a/src/elements/iron.c b/src/elements/iron.c index dc3963478..0be1e1f99 100644 --- a/src/elements/iron.c +++ b/src/elements/iron.c @@ -1,4 +1,4 @@ -#include +#include int update_IRON(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/isz.c b/src/elements/isz.c index 5bb465ae2..348b78d0c 100644 --- a/src/elements/isz.c +++ b/src/elements/isz.c @@ -1,4 +1,4 @@ -#include +#include int update_ISZ(UPDATE_FUNC_ARGS) { // for both ISZS and ISOZ float rr, rrr; diff --git a/src/elements/lcry.c b/src/elements/lcry.c index 5f888a936..a6d442f34 100644 --- a/src/elements/lcry.c +++ b/src/elements/lcry.c @@ -1,4 +1,4 @@ -#include +#include int update_LCRY(UPDATE_FUNC_ARGS) { if (parts[i].life==10) diff --git a/src/elements/legacy.c b/src/elements/legacy.c index c8fce736e..1a345ddda 100644 --- a/src/elements/legacy.c +++ b/src/elements/legacy.c @@ -1,4 +1,4 @@ -#include +#include // Interactions which only occur when legacy_enable is on int update_legacy_all(UPDATE_FUNC_ARGS) { diff --git a/src/elements/misc.c b/src/elements/misc.c index 67309c652..a284b3a3a 100644 --- a/src/elements/misc.c +++ b/src/elements/misc.c @@ -1,4 +1,4 @@ -#include +#include int update_MISC(UPDATE_FUNC_ARGS) { int t = parts[i].type; diff --git a/src/elements/mort.c b/src/elements/mort.c index 609eafded..d215abc55 100644 --- a/src/elements/mort.c +++ b/src/elements/mort.c @@ -1,4 +1,4 @@ -#include +#include int update_MORT(UPDATE_FUNC_ARGS) { create_part(-1, x, y-1, PT_SMKE); diff --git a/src/elements/neut.c b/src/elements/neut.c index 42ee9d343..aa3ddf0d5 100644 --- a/src/elements/neut.c +++ b/src/elements/neut.c @@ -1,4 +1,4 @@ -#include +#include int update_NEUT(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/none.c b/src/elements/none.c index 7e38fd07c..7049811ee 100644 --- a/src/elements/none.c +++ b/src/elements/none.c @@ -1,4 +1,4 @@ -#include +#include int update_(UPDATE_FUNC_ARGS) { diff --git a/src/elements/nptct.c b/src/elements/nptct.c index 116294f07..95d4d9ad0 100644 --- a/src/elements/nptct.c +++ b/src/elements/nptct.c @@ -1,4 +1,4 @@ -#include +#include int update_NPTCT(UPDATE_FUNC_ARGS) { if (parts[i].temp>295.0f) diff --git a/src/elements/pcln.c b/src/elements/pcln.c index 45edd1e8c..00e5db047 100644 --- a/src/elements/pcln.c +++ b/src/elements/pcln.c @@ -1,4 +1,4 @@ -#include +#include int update_PCLN(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/phot.c b/src/elements/phot.c index 95f427f7c..7b7afc6d8 100644 --- a/src/elements/phot.c +++ b/src/elements/phot.c @@ -1,4 +1,4 @@ -#include +#include int update_PHOT(UPDATE_FUNC_ARGS) { if (1>rand()%10) update_PYRO(UPDATE_FUNC_SUBCALL_ARGS); diff --git a/src/elements/pipe.c b/src/elements/pipe.c index 4bd1799fe..7d709aa58 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -1,4 +1,4 @@ -#include +#include int update_PIPE(UPDATE_FUNC_ARGS) { int r, rx, ry, np, trade, q, ctype; diff --git a/src/elements/plnt.c b/src/elements/plnt.c index 79c9d8a19..2ca38dde7 100644 --- a/src/elements/plnt.c +++ b/src/elements/plnt.c @@ -1,4 +1,4 @@ -#include +#include int update_PLNT(UPDATE_FUNC_ARGS) { int r, rx, ry, np; diff --git a/src/elements/plut.c b/src/elements/plut.c index 738e29d58..cbc9b7bab 100644 --- a/src/elements/plut.c +++ b/src/elements/plut.c @@ -1,4 +1,4 @@ -#include +#include int update_PLUT(UPDATE_FUNC_ARGS) { if (1>rand()%100 && ((int)(5.0f*pv[y/CELL][x/CELL]))>(rand()%1000)) diff --git a/src/elements/prti.c b/src/elements/prti.c index 4310f86a0..b25f7a3db 100644 --- a/src/elements/prti.c +++ b/src/elements/prti.c @@ -1,4 +1,4 @@ -#include +#include int update_PRTI(UPDATE_FUNC_ARGS) { int r, nnx, rx, ry; diff --git a/src/elements/prto.c b/src/elements/prto.c index 4889e89e2..2da6e0055 100644 --- a/src/elements/prto.c +++ b/src/elements/prto.c @@ -1,4 +1,4 @@ -#include +#include int update_PRTO(UPDATE_FUNC_ARGS) { int r, nnx, rx, ry, np; diff --git a/src/elements/pump.c b/src/elements/pump.c index c1c120163..244ca8f53 100644 --- a/src/elements/pump.c +++ b/src/elements/pump.c @@ -1,4 +1,4 @@ -#include +#include int update_PUMP(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/pyro.c b/src/elements/pyro.c index ba821681f..0fe1def5a 100644 --- a/src/elements/pyro.c +++ b/src/elements/pyro.c @@ -1,4 +1,4 @@ -#include +#include int update_PYRO(UPDATE_FUNC_ARGS) { int r, rx, ry, rt, t = parts[i].type; diff --git a/src/elements/qrtz.c b/src/elements/qrtz.c index 2fb97b071..74d8c995a 100644 --- a/src/elements/qrtz.c +++ b/src/elements/qrtz.c @@ -1,4 +1,4 @@ -#include +#include int update_QRTZ(UPDATE_FUNC_ARGS) { parts[i].pavg[0] = parts[i].pavg[1]; diff --git a/src/elements/rime.c b/src/elements/rime.c index 845d8a293..e0337e5ed 100644 --- a/src/elements/rime.c +++ b/src/elements/rime.c @@ -1,4 +1,4 @@ -#include +#include int update_RIME(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/shld.c b/src/elements/shld.c index 434a9dbfd..81b9f1bd9 100644 --- a/src/elements/shld.c +++ b/src/elements/shld.c @@ -1,4 +1,4 @@ -#include +#include int update_SHLD1(UPDATE_FUNC_ARGS) { int r, nnx, nny, rx, ry; diff --git a/src/elements/sing.c b/src/elements/sing.c index 7127f7764..02f5eaf9e 100644 --- a/src/elements/sing.c +++ b/src/elements/sing.c @@ -1,4 +1,4 @@ -#include +#include int update_SING(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/sltw.c b/src/elements/sltw.c index 7f23f1c19..b6d18bbce 100644 --- a/src/elements/sltw.c +++ b/src/elements/sltw.c @@ -1,4 +1,4 @@ -#include +#include int update_SLTW(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/spng.c b/src/elements/spng.c index d8eb1f1be..5bc7e9578 100644 --- a/src/elements/spng.c +++ b/src/elements/spng.c @@ -1,4 +1,4 @@ -#include +#include int update_SPNG(UPDATE_FUNC_ARGS) { int r, trade, rx, ry, tmp; diff --git a/src/elements/sprk.c b/src/elements/sprk.c index 891be3a68..0f3c6c7c5 100644 --- a/src/elements/sprk.c +++ b/src/elements/sprk.c @@ -1,4 +1,4 @@ -#include +#include int update_SPRK(UPDATE_FUNC_ARGS) { update_PYRO(UPDATE_FUNC_SUBCALL_ARGS); diff --git a/src/elements/stkm.c b/src/elements/stkm.c index 9576ae327..6d6b4ab55 100644 --- a/src/elements/stkm.c +++ b/src/elements/stkm.c @@ -1,4 +1,4 @@ -#include +#include int update_SPAWN(UPDATE_FUNC_ARGS) { ISSPAWN1 = 1; diff --git a/src/elements/stkm2.c b/src/elements/stkm2.c index 805cb736e..319e388b3 100644 --- a/src/elements/stkm2.c +++ b/src/elements/stkm2.c @@ -1,4 +1,4 @@ -#include +#include int update_SPAWN2(UPDATE_FUNC_ARGS) { ISSPAWN2 = 1; diff --git a/src/elements/swch.c b/src/elements/swch.c index 8a8e989b7..043bf2346 100644 --- a/src/elements/swch.c +++ b/src/elements/swch.c @@ -1,4 +1,4 @@ -#include +#include int update_SWCH(UPDATE_FUNC_ARGS) { int r, rt, rx, ry; diff --git a/src/elements/thdr.c b/src/elements/thdr.c index 0f25ccde2..fb90d1db1 100644 --- a/src/elements/thdr.c +++ b/src/elements/thdr.c @@ -1,4 +1,4 @@ -#include +#include int update_THDR(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/thrm.c b/src/elements/thrm.c index 3529c2ef2..838b4666f 100644 --- a/src/elements/thrm.c +++ b/src/elements/thrm.c @@ -1,4 +1,4 @@ -#include +#include int update_THRM(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/uran.c b/src/elements/uran.c index ecf89cc8d..2b6c563c2 100644 --- a/src/elements/uran.c +++ b/src/elements/uran.c @@ -1,4 +1,4 @@ -#include +#include int update_URAN(UPDATE_FUNC_ARGS) { if (!legacy_enable && pv[y/CELL][x/CELL]>0.0f) diff --git a/src/elements/vine.c b/src/elements/vine.c index a5d932aaa..28b97d51d 100644 --- a/src/elements/vine.c +++ b/src/elements/vine.c @@ -1,4 +1,4 @@ -#include +#include int update_VINE(UPDATE_FUNC_ARGS) { int r, np, rx =(rand()%3)-1, ry=(rand()%3)-1; diff --git a/src/elements/warp.c b/src/elements/warp.c index d0fe62cac..755433f36 100644 --- a/src/elements/warp.c +++ b/src/elements/warp.c @@ -1,4 +1,4 @@ -#include +#include int update_WARP(UPDATE_FUNC_ARGS) { int trade, r, rx, ry; diff --git a/src/elements/watr.c b/src/elements/watr.c index 8f1df1869..7c7ef6474 100644 --- a/src/elements/watr.c +++ b/src/elements/watr.c @@ -1,4 +1,4 @@ -#include +#include int update_WATR(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/wifi.c b/src/elements/wifi.c index a6b9ab0cf..fc5ee7f6c 100644 --- a/src/elements/wifi.c +++ b/src/elements/wifi.c @@ -1,4 +1,4 @@ -#include +#include int update_WIFI(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/wtrv.c b/src/elements/wtrv.c index 45ffb304c..7a32c9434 100644 --- a/src/elements/wtrv.c +++ b/src/elements/wtrv.c @@ -1,4 +1,4 @@ -#include +#include int update_WTRV(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/elements/yest.c b/src/elements/yest.c index d3ee0fec4..d3f64cdbb 100644 --- a/src/elements/yest.c +++ b/src/elements/yest.c @@ -1,4 +1,4 @@ -#include +#include int update_YEST(UPDATE_FUNC_ARGS) { int r, rx, ry; From 086e3151ad968b9c81f1b3b4391e5f9c42a1189c Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Fri, 28 Jan 2011 19:41:00 +0000 Subject: [PATCH 3/3] Fix some problems with restrict_flt This change fixes pressure glitches, burning substances cooling by themselves to absolute zero, and SING having temperatures of minus several million Kelvin. --- includes/element.h | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/element.h b/includes/element.h index bbd4aebb6..ec32df266 100644 --- a/includes/element.h +++ b/includes/element.h @@ -3,5 +3,6 @@ // This header should be included by all files in src/elements/ #include "powder.h" +#include "misc.h" #endif