X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fmiscc.c;h=2ece443937950ae40de63f13a88cc8537a3e5248;hb=d070670f189ec66ed2ac6b45834a192c004bc92f;hp=a174237c69947cfc2cb22e2ec2ce45349399c7e7;hpb=534310c1f131bb9a53be865c32d90342ed026734;p=flatwaifu.git diff --git a/src/miscc.c b/src/miscc.c index a174237..2ece443 100644 --- a/src/miscc.c +++ b/src/miscc.c @@ -27,13 +27,13 @@ #include #include "files.h" #include "memory.h" -#include "vga.h" #include "sound.h" #include "view.h" #include "bmap.h" #include "dots.h" #include "monster.h" #include "misc.h" +#include "render.h" //#define WD 200 //#define HT 98 @@ -390,10 +390,9 @@ int Z_moveobj(obj_t *p) { return st; } -void Z_splash(obj_t *p,int n) { - Z_sound(bulsnd[0],128); - DOT_water(p->x,p->y-p->h/2,p->xv+p->vx,p->yv+p->vy,n, - (intptr_t)walp[wfront]-1); +void Z_splash (obj_t *p, int n) { + Z_sound(bulsnd[0], 128); + DOT_water(p->x, p->y-p->h / 2, p->xv + p->vx, p->yv + p->vy, n, R_get_special_id(wfront)); } void Z_calc_time(dword t,word *h,word *m,word *s)