X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fmiscc.c;h=2ece443937950ae40de63f13a88cc8537a3e5248;hp=7c69aeab6ac4e48e168747732a49982b4a17e05b;hb=d070670f189ec66ed2ac6b45834a192c004bc92f;hpb=584adc9c1911a6941ef07443a6fc6ff922d7c8ea diff --git a/src/miscc.c b/src/miscc.c index 7c69aea..2ece443 100644 --- a/src/miscc.c +++ b/src/miscc.c @@ -33,6 +33,7 @@ #include "dots.h" #include "monster.h" #include "misc.h" +#include "render.h" //#define WD 200 //#define HT 98 @@ -389,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)