engine.c: in qsetmodeany(), call initsmost() after setting xdim and ydim.

This makes sure that the engine arrays have sufficient space allocated for usage
in Mapster32's 2D mode, for example from drawmapview().


git-svn-id: https://svn.eduke32.com/eduke32@4938 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2015-01-19 01:54:53 +00:00
parent 038a9f8eb6
commit 038bc1517b

View file

@ -16539,6 +16539,8 @@ void qsetmodeany(int32_t daxdim, int32_t daydim)
xdim = xres;
ydim = yres;
initsmost();
ydim16 = yres - STATUS2DSIZ2;
halfxdim16 = xres >> 1;
midydim16 = ydim16 >> 1; // scale(200,yres,480);