- Fixed GCC 4 warnings in FNodeBuilder::CreateSubsectorsForReal().
- Changed f_finale.cpp/atkstates[] into a static variable, since its anonymous type prevents it from being accessed from other files anyway. - Fixed: The behavior of the eventtail advancement in d_net.cpp/CheckAbort() was compiler-dependant. - Fixed warnings GCC 4 threw up while compiling re2c and lemon. - Removed __cdecl from makewad.c again. This is already defined as a builtin for MinGW, and redefining it produces a warning. (Why is main explicitly declared __cdecl anyway?) - Fixed building ccdv-win32 with GCC 4. GCC 4 creates a memcpy call, which won't work because it doesn't get linked with the standard C library. SVN r135 (trunk)
This commit is contained in:
parent
62b7dd3efc
commit
df799ade24
23 changed files with 2903 additions and 2158 deletions
|
|
@ -336,11 +336,11 @@ private:
|
|||
Span DummySpan[2];
|
||||
int LumpNum;
|
||||
};
|
||||
|
||||
static FAutomapTexture *mapback; // the automap background
|
||||
static fixed_t mapystart=0; // y-value for the start of the map bitmap...used in the parallax stuff.
|
||||
static fixed_t mapxstart=0; //x-value for the bitmap.
|
||||
|
||||
|
||||
static FAutomapTexture *mapback; // the automap background
|
||||
static fixed_t mapystart=0; // y-value for the start of the map bitmap...used in the parallax stuff.
|
||||
static fixed_t mapxstart=0; //x-value for the bitmap.
|
||||
|
||||
static BOOL stopped = true;
|
||||
|
||||
|
||||
|
|
@ -543,22 +543,22 @@ static void AM_ClipRotatedExtents ()
|
|||
|
||||
static void AM_ScrollParchment (fixed_t dmapx, fixed_t dmapy)
|
||||
{
|
||||
mapxstart -= MulScale12 (dmapx, scale_mtof);
|
||||
mapystart -= MulScale12 (dmapy, scale_mtof);
|
||||
|
||||
if (mapback != NULL)
|
||||
{
|
||||
int pwidth = mapback->GetWidth() << MAPBITS;
|
||||
int pheight = mapback->GetHeight() << MAPBITS;
|
||||
|
||||
while(mapxstart > 0)
|
||||
mapxstart -= pwidth;
|
||||
while(mapxstart <= -pwidth)
|
||||
mapxstart += pwidth;
|
||||
while(mapystart > 0)
|
||||
mapystart -= pheight;
|
||||
while(mapystart <= -pheight)
|
||||
mapystart += pheight;
|
||||
mapxstart -= MulScale12 (dmapx, scale_mtof);
|
||||
mapystart -= MulScale12 (dmapy, scale_mtof);
|
||||
|
||||
if (mapback != NULL)
|
||||
{
|
||||
int pwidth = mapback->GetWidth() << MAPBITS;
|
||||
int pheight = mapback->GetHeight() << MAPBITS;
|
||||
|
||||
while(mapxstart > 0)
|
||||
mapxstart -= pwidth;
|
||||
while(mapxstart <= -pwidth)
|
||||
mapxstart += pwidth;
|
||||
while(mapystart > 0)
|
||||
mapystart -= pheight;
|
||||
while(mapystart <= -pheight)
|
||||
mapystart += pheight;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1066,15 +1066,15 @@ void AM_doFollowPlayer ()
|
|||
m_x2 = m_x + m_w;
|
||||
m_y2 = m_y + m_h;
|
||||
|
||||
// do the parallax parchment scrolling.
|
||||
sx = (players[consoleplayer].camera->x - f_oldloc.x) >> FRACTOMAPBITS;
|
||||
sy = (f_oldloc.y - players[consoleplayer].camera->y) >> FRACTOMAPBITS;
|
||||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||
{
|
||||
AM_rotate (&sx, &sy, players[consoleplayer].camera->angle - ANG90);
|
||||
}
|
||||
AM_ScrollParchment (sx, sy);
|
||||
|
||||
// do the parallax parchment scrolling.
|
||||
sx = (players[consoleplayer].camera->x - f_oldloc.x) >> FRACTOMAPBITS;
|
||||
sy = (f_oldloc.y - players[consoleplayer].camera->y) >> FRACTOMAPBITS;
|
||||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||
{
|
||||
AM_rotate (&sx, &sy, players[consoleplayer].camera->angle - ANG90);
|
||||
}
|
||||
AM_ScrollParchment (sx, sy);
|
||||
|
||||
f_oldloc.x = players[consoleplayer].camera->x;
|
||||
f_oldloc.y = players[consoleplayer].camera->y;
|
||||
}
|
||||
|
|
@ -1114,18 +1114,18 @@ void AM_clearFB (int color)
|
|||
}
|
||||
else
|
||||
{
|
||||
int pwidth = mapback->GetWidth();
|
||||
int pheight = mapback->GetHeight();
|
||||
int x, y;
|
||||
|
||||
//blit the automap background to the screen.
|
||||
for (y = mapystart >> MAPBITS; y < f_h; y += pheight)
|
||||
{
|
||||
for (x = mapxstart >> MAPBITS; x < f_w; x += pwidth)
|
||||
{
|
||||
screen->DrawTexture (mapback, x, y, DTA_ClipBottom, f_h, TAG_DONE);
|
||||
}
|
||||
}
|
||||
int pwidth = mapback->GetWidth();
|
||||
int pheight = mapback->GetHeight();
|
||||
int x, y;
|
||||
|
||||
//blit the automap background to the screen.
|
||||
for (y = mapystart >> MAPBITS; y < f_h; y += pheight)
|
||||
{
|
||||
for (x = mapxstart >> MAPBITS; x < f_w; x += pwidth)
|
||||
{
|
||||
screen->DrawTexture (mapback, x, y, DTA_ClipBottom, f_h, TAG_DONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue