X-Git-Url: http://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fitems.c;h=49f954bea2177a0deb4a9df38a7eb5e101eed5e9;hp=8918203274c4155ec9123ccd700ead1c0176ad05;hb=2bb81ea2565c3627c954b5c37326db89b0048472;hpb=3d2215798aaab87db7ae5265d21e359864e1f1c2 diff --git a/src/items.c b/src/items.c index 8918203..49f954b 100644 --- a/src/items.c +++ b/src/items.c @@ -32,15 +32,14 @@ #include "misc.h" #include "map.h" #include "my.h" - -extern map_block_t blk; - +#include "files.h" +#include "game.h" item_t it[MAXITEM]; static void *snd[4]; -static int tsndtm,rsndtm; +static int tsndtm, rsndtm; -int itm_rtime=1092; +int itm_rtime = 1092; void IT_savegame (FILE *h) { int i, n; @@ -96,14 +95,17 @@ void IT_alloc (void) { } } -void IT_init(void) { +void IT_init (void) { int i; - - for(i=0;i=I_BPACK && t<=I_BFG) || t==I_GUN2) @@ -209,7 +211,7 @@ static void takesnd(int t) { tsndtm=Z_sound(snd[0],256); } -void IT_act(void) { +void IT_act (void) { int i,j; if(tsndtm) --tsndtm; @@ -251,7 +253,7 @@ void IT_act(void) { } } -void IT_spawn(int x,int y,int t) { +void IT_spawn (int x,int y,int t) { int i; for(i=0;i