summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-26 20:34:24 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-26 20:34:24 (GMT)
commit5ab1ab8b4654fb1098a79fd0e456a90ddec5dfa5 (patch)
tree7aa1e1898bb1d0405d8d102944187062b6bd00bd /src/powder.c
parente2c9882692fabcd22a7d022ebd21fd3b36ad84b0 (diff)
downloadpowder-5ab1ab8b4654fb1098a79fd0e456a90ddec5dfa5.zip
powder-5ab1ab8b4654fb1098a79fd0e456a90ddec5dfa5.tar.gz
Fix FIGH loading and bad variable names
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/powder.c b/src/powder.c
index 3343825..59a8053 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -1029,9 +1029,9 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
}
if (t==PT_FIGH)
{
- unsigned char cunt = 0;
- while (cunt < 100 && cunt < (fighcount+1) && fighters[cunt].spwn==1) cunt++;
- if (cunt < 100 && fighters[cunt].spwn==0)
+ unsigned char fcount = 0;
+ while (fcount < 100 && fcount < (fighcount+1) && fighters[fcount].spwn==1) fcount++;
+ if (fcount < 100 && fighters[fcount].spwn==0)
{
parts[i].x = (float)x;
parts[i].y = (float)y;
@@ -1040,11 +1040,11 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
parts[i].vy = 0;
parts[i].life = 100;
parts[i].ctype = 0;
- parts[i].tmp = cunt;
+ parts[i].tmp = fcount;
parts[i].temp = ptypes[t].heat;
- STKM_init_legs(&fighters[cunt], i);
- fighters[cunt].spwn = 1;
- fighters[cunt].elem = PT_DUST;
+ STKM_init_legs(&fighters[fcount], i);
+ fighters[fcount].spwn = 1;
+ fighters[fcount].elem = PT_DUST;
fighcount++;
return i;