X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Frender.c;h=b0f2485ac1a3d4b07c15b309d8109e64164b2ebd;hp=254b87eb6b8e4f907778af90bcd372781adfc4bb;hb=2bb81ea2565c3627c954b5c37326db89b0048472;hpb=3d2215798aaab87db7ae5265d21e359864e1f1c2 diff --git a/src/render.c b/src/render.c index 254b87e..b0f2485 100644 --- a/src/render.c +++ b/src/render.c @@ -19,6 +19,9 @@ #include "memory.h" #include "files.h" #include "error.h" +#include "game.h" +#include "sound.h" +#include "music.h" // game static vgaimg *scrnh[3]; // TITLEPIC INTERPIC ENDPIC @@ -61,6 +64,8 @@ static byte gamcor[5][64]={ }; // walls #define ANIT 5 +static int WD, HT; +static int w_o, w_x, w_y; static vgaimg *walp[256]; static int walh[256]; static byte walani[256]; @@ -69,20 +74,6 @@ static byte anic[ANIT]; static int max_textures; static vgaimg *horiz; -extern byte bright[256]; // vga.c -extern byte mixmap[256][256]; // vga.c -extern byte clrmap[256*12]; // vga.c - -extern int g_trans; // game.c -extern byte transdraw; // game.c -extern int sky_type; // view.c -extern int lt_time, lt_type, lt_side, lt_ypos, lt_force; // game.c - -extern byte savname[7][24]; // files.c -extern char g_music[8]; // game.c -extern short snd_vol; // sound.c -extern short mus_vol; // music.c - /* --- misc --- */ static void *Z_getspr (char n[4], int s, int d, char *dir) { @@ -1376,7 +1367,7 @@ void R_init () { } R_setgamma(gammaa); V_setrect(0, SCRW, 0, SCRH); - V_setscr(scrbuf); +// V_setscr(scrbuf); V_clr(0, SCRW, 0, SCRH, 0); R_alloc(); }