X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fdots.c;h=8b4bb8e2059c559e6b7be6866b0b5cc8454e7068;hb=534310c1f131bb9a53be865c32d90342ed026734;hp=ddb39a28ab069f83ae44af07623cf9e62baea3ce;hpb=a2115940e7643dcb1b87286f3d19fe95f7b79bd3;p=flatwaifu.git diff --git a/src/dots.c b/src/dots.c index ddb39a2..8b4bb8e 100644 --- a/src/dots.c +++ b/src/dots.c @@ -21,17 +21,12 @@ */ #include "glob.h" -//#include #include -#include "files.h" -#include "memory.h" #include "vga.h" -#include "error.h" -#include "keyb.h" -#include "sound.h" #include "view.h" #include "dots.h" #include "misc.h" +#include "my.h" #define MAXINI 50 #define MAXSR 20 @@ -47,36 +42,56 @@ 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