diff --git a/src/smoke.c b/src/smoke.c
index 6ccb15a11511c6ad9297cd09d67cdd821ce3e927..19bf714fb4f5393a7bdd4c5081dc026d6fcdcfc5 100644 (file)
--- a/src/smoke.c
+++ b/src/smoke.c
#include <stdlib.h>
#include "view.h"
#include "smoke.h"
#include <stdlib.h>
#include "view.h"
#include "smoke.h"
+#include "game.h"
#include "fx.h"
#include "misc.h"
#include "my.h"
#include "fx.h"
#include "misc.h"
#include "my.h"
+#include "monster.h"
#define MAXSR 20
#define MAXSR 20
}
}
}
}
-void SMK_init(void) {
+void SMK_init (void) {
int i;
for(i=0;i<MAXSMOK;++i) {sm[i].t=0;}
int i;
for(i=0;i<MAXSMOK;++i) {sm[i].t=0;}
burntm=0;
}
burntm=0;
}
-void SMK_alloc(void) {
+void SMK_alloc (void) {
int i;
burnsnd=Z_getsnd("BURN");
for(i=0;i<MAXSR;++i) {
int i;
burnsnd=Z_getsnd("BURN");
for(i=0;i<MAXSR;++i) {
if(++lsm>=MAXSMOK) lsm=0;
}
if(++lsm>=MAXSMOK) lsm=0;
}
-void SMK_act(void) {
+void SMK_act (void) {
int i,ox,oy;
static obj_t o;
int i,ox,oy;
static obj_t o;
}
}
}
}
-void SMK_add(int x,int y,int xv,int yv,byte t,byte s,short o) {
+static void SMK_add (int x, int y, int xv, int yv, byte t, byte s, short o) {
int i;
if(!Z_canfit(x>>8,(y>>8)+3,3,7)) return;
int i;
if(!Z_canfit(x>>8,(y>>8)+3,3,7)) return;
inclast();
}
inclast();
}
-void SMK_gas(int x0,int y0,int xr,int yr,int xv,int yv,int k) {
+void SMK_gas (int x0, int y0, int xr, int yr, int xv, int yv, int k) {
int i,x,y;
static int sxv,syv;
int i,x,y;
static int sxv,syv;
}
}
}
}
-void SMK_flame(int x0,int y0,int ox,int oy,int xr,int yr,int xv,int yv,int k,int o) {
+void SMK_flame (int x0, int y0, int ox, int oy, int xr, int yr, int xv, int yv, int k, int o) {
int i,x,y;
static int sxv,syv;
int i,x,y;
static int sxv,syv;