X-Git-Url: http://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fgame.c;h=8027592605e60c8454e48d4dc2afe1373ac100a6;hp=a8edfc2a6dc3bd2422c1f61be37b8a81cc0d45ea;hb=584adc9c1911a6941ef07443a6fc6ff922d7c8ea;hpb=534310c1f131bb9a53be865c32d90342ed026734 diff --git a/src/game.c b/src/game.c index a8edfc2..8027592 100644 --- a/src/game.c +++ b/src/game.c @@ -26,7 +26,6 @@ #include #include "files.h" #include "memory.h" -#include "vga.h" #include "keyb.h" #include "sound.h" #include "view.h" @@ -68,15 +67,12 @@ extern short lastkey; extern int hit_xv,hit_yv; -extern vgapal std_pal; -void setgamma(int); +//void setgamma(int); extern int PL_JUMP; extern map_block_t blk; -extern byte clrmap[256*12]; - extern byte cheat; byte _2pl=0,g_dm=0,g_st=GS_TITLE,g_exit=0,g_map=1,_warp=0; @@ -171,11 +167,6 @@ void load_game(int n) { W_init(); F_loadgame(n); set_trans(GS_GAME); - V_setscr((g_trans)?fx_scr2:scrbuf);V_setrect(0,SCRW,0,SCRH);//V_setrect(0,320,0,200); - V_clr(0,SCRW,0,SCRH,0);//V_clr(0,320,0,200,0); -// if(_2pl) {w_o=0;Z_clrst();w_o=SCRH/2;Z_clrst();}//if(_2pl) {w_o=0;Z_clrst();w_o=100;Z_clrst();} -// else {w_o=0;Z_clrst();}//else {w_o=50;Z_clrst();} - V_setscr(scrbuf); pl1.drawst=0xFF; if(_2pl) pl2.drawst=0xFF; BM_remapfld(); @@ -193,11 +184,6 @@ void G_start(void) { sprintf(s,"MAP%02u",(word)g_map); F_loadmap(s); set_trans(GS_GAME); - V_setscr((g_trans)?fx_scr2:scrbuf);V_setrect(0,SCRW,0,SCRH);//V_setrect(0,320,0,200); - V_clr(0,SCRW,0,SCRH,0);//V_clr(0,320,0,200,0); -// if(_2pl) {w_o=0;Z_clrst();w_o=SCRH/2;Z_clrst();}//if(_2pl) {w_o=0;Z_clrst();w_o=100;Z_clrst();} -// else {w_o=0;Z_clrst();}//else {w_o=50;Z_clrst();} - V_setscr(scrbuf); pl1.drawst=0xFF; if(_2pl) pl2.drawst=0xFF; g_exit=0;