summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-29 02:57:20 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-29 02:57:20 (GMT)
commit4b5337c03a0a64a12e1d66829c14af73f1ff0398 (patch)
tree5663f738bdf7b8d0e924db6acb8e010d0174f1c3 /src
parent01304db892324f5d0dafb50e03150707bffef13a (diff)
downloadpowder-4b5337c03a0a64a12e1d66829c14af73f1ff0398.zip
powder-4b5337c03a0a64a12e1d66829c14af73f1ff0398.tar.gz
finally fixed visual studio compiling, yay
Diffstat (limited to 'src')
-rw-r--r--src/elements/elementmisc.c (renamed from src/elements/misc.c)0
-rw-r--r--src/elements/firw.c3
2 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/misc.c b/src/elements/elementmisc.c
index a284b3a..a284b3a 100644
--- a/src/elements/misc.c
+++ b/src/elements/elementmisc.c
diff --git a/src/elements/firw.c b/src/elements/firw.c
index ae1f56d..c41400e 100644
--- a/src/elements/firw.c
+++ b/src/elements/firw.c
@@ -35,12 +35,13 @@ int update_FIRW(UPDATE_FUNC_ARGS) {
}
else if (parts[i].tmp==2) {
int col = rand()%200+4;
+ int tmul;
for (rx=-2; rx<3; rx++)
for (ry=-2; ry<3; ry++)
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
{
r = pmap[y+ry][x+rx];
- int tmul = rand()%7;
+ tmul = rand()%7;
create_part(-1, x+rx, y+ry, PT_FIRW);
r = pmap[y+ry][x+rx];
if ((r>>8)>=NPART || !r)