X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fdots.c;h=b9ca8ec7104913b821402546238821ead00226a9;hb=2bb81ea2565c3627c954b5c37326db89b0048472;hp=d89b9d6122fd359742141cf17d219cbeaa99e2df;hpb=82abbc606cc5e3d9c26e2ab6d36e093ed86ae1bf;p=flatwaifu.git diff --git a/src/dots.c b/src/dots.c index d89b9d6..b9ca8ec 100644 --- a/src/dots.c +++ b/src/dots.c @@ -21,11 +21,12 @@ */ #include "glob.h" +#include #include -#include "vga.h" #include "view.h" #include "dots.h" #include "misc.h" +#include "my.h" #define MAXINI 50 #define MAXSR 20 @@ -39,38 +40,56 @@ #define SP_MINT 5 #define SP_MAXT 7 -extern byte z_dot; - -#pragma pack(1) -typedef struct{ - obj_t o; - byte c,t; -}dot_t; -#pragma pack() - typedef struct{ int xv,yv; byte c,t; }init_t; -static dot_t dot[MAXDOT]; +dot_t dot[MAXDOT]; + static init_t bl_ini[MAXINI],sp_ini[MAXINI]; static int bl_r,sp_r,sr_r,sxr[MAXSR],syr[MAXSR]; static int ldot; -void DOT_savegame(FILE* h) { - int i,n; - - for(i=n=0;i