X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fweapons.c;h=b3b757dc11724122aefce6874e89f6074a199b8f;hp=34b5ed4a1a7f25f49bc3e8467c0a62b8d03c2fcd;hb=2bb81ea2565c3627c954b5c37326db89b0048472;hpb=3d2215798aaab87db7ae5265d21e359864e1f1c2 diff --git a/src/weapons.c b/src/weapons.c index 34b5ed4..b3b757d 100644 --- a/src/weapons.c +++ b/src/weapons.c @@ -28,19 +28,19 @@ #include "smoke.h" #include "weapons.h" #include "misc.h" +#include "files.h" +#include "game.h" +#include "player.h" +#include "monster.h" +#include "switch.h" #include "my.h" -extern int hit_xv,hit_yv; - -void bfg_fly(int x,int y,int own); - enum{NONE=0,ROCKET,PLASMA,APLASMA,BALL1,BALL2,BALL7,BFGBALL,BFGHIT, MANF,REVF,FIRE}; weapon_t wp[MAXWPN]; static void *snd[14]; - static void throw(int,int,int,int,int,int,int,int); void WP_savegame (FILE *h) { @@ -85,7 +85,7 @@ void WP_loadgame (FILE *h) { } } -void WP_alloc(void) { +void WP_alloc (void) { int i; static char nm[14][6]={ "PISTOL", @@ -106,13 +106,13 @@ void WP_alloc(void) { for(i=0;i<14;++i) snd[i]=Z_getsnd(nm[i]); } -void WP_init(void) { +void WP_init (void) { int i; for(i=0;i