X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.c;h=796fb9fbb58338610d347dfecc776c00d865fd54;hb=1e422c29292f0583391b0ce9e9c872b38f035ac0;hp=d5dbe91c9d35f12f3f20d6b745c11bf60785d86c;hpb=359536f46007d1b9148bed9c529056faa91b8aab;p=rocksndiamonds.git diff --git a/src/main.c b/src/main.c index d5dbe91c..796fb9fb 100644 --- a/src/main.c +++ b/src/main.c @@ -41,7 +41,11 @@ SDL_Thread *server_thread; int key_joystick_mapping = 0; #if 1 +#if NEW_SCROLL +boolean redraw[2 + MAX_LEV_FIELDX + 2][2 + MAX_LEV_FIELDY + 2]; +#else boolean redraw[MAX_LEV_FIELDX + 2][MAX_LEV_FIELDY + 2]; +#endif #else boolean redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE]; #endif @@ -97,6 +101,11 @@ int DX = 566, DY = 60; int VX = 566, VY = 400; int EX = 566, EY = 356; int dDX, dDY; +int SXSIZE = 17 * TILEX; /* SCR_FIELDX * TILEX */ +int SYSIZE = 17 * TILEY; /* SCR_FIELDY * TILEY */ +int FULL_SXSIZE = 2 + 17 * TILEX + 2; /* 2 + SXSIZE + 2 */ +int FULL_SYSIZE = 2 + 17 * TILEY + 2; /* 2 + SYSIZE + 2 */ +int TILESIZE_VAR = TILESIZE / 2; #if 1 int FX, FY;