X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fitems.c;h=b0f079a715fef9fcd7bb9f2375bfa63d4cb5ccbe;hb=21e27adcd50196e94141390f96c8d4a089ccde08;hp=8918203274c4155ec9123ccd700ead1c0176ad05;hpb=534310c1f131bb9a53be865c32d90342ed026734;p=flatwaifu.git diff --git a/src/items.c b/src/items.c index 8918203..b0f079a 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) {tsndtm=Z_sound(snd[1],128);return;} if(t==I_MEGA || t==I_INVL || t==I_SUPER) {tsndtm=Z_sound(snd[2],192);return;} - tsndtm=Z_sound(snd[0],256); + tsndtm=Z_sound(snd[0], 255); } -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