Commit 4110d6a0 authored by Mitchell Richters's avatar Mitchell Richters Committed by NY00123
Browse files

SW: Make all the changes compile with GCC.

parent b48ea760
......@@ -667,7 +667,7 @@ ViewSectorInScene(short cursectnum, short level)
}
void
DrawOverlapRoom(int tx, int ty, int tz, short tang, int thoriz, short tsectnum)
DrawOverlapRoom(int tx, int ty, int tz, fix16_t tq16ang, fix16_t tq16horiz, short tsectnum)
{
short i;
short match;
......@@ -686,7 +686,7 @@ DrawOverlapRoom(int tx, int ty, int tz, short tang, int thoriz, short tsectnum)
return;
}
drawrooms(tx, ty, tz, tang, thoriz, tsectnum);
renderDrawRoomsQ16(tx, ty, tz, tq16ang, tq16horiz, tsectnum);
renderDrawMasks();
// reset Z's
......@@ -711,7 +711,7 @@ DrawOverlapRoom(int tx, int ty, int tz, short tang, int thoriz, short tsectnum)
return;
}
drawrooms(tx, ty, tz, tang, thoriz, tsectnum);
renderDrawRoomsQ16(tx, ty, tz, tq16ang, tq16horiz, tsectnum);
renderDrawMasks();
// reset Z's
......
......@@ -245,7 +245,7 @@ void EveryCheatToggle(PLAYERp pp, char *cheat_string)
void SaveCheat(PLAYERp pp, char *UNUSED(cheat_string))
{
saveboard("swsave.map", (vec3_t *)pp,
pp->pang, pp->cursectnum);
fix16_to_int(pp->q16ang), pp->cursectnum);
}
void GeorgeFunc(PLAYERp pp, char *UNUSED(cheat_string))
......
......@@ -1828,7 +1828,7 @@ void DrawCrosshair(PLAYERp pp)
vec2_t dxy = { hp->x - pp->posx, hp->y - pp->posy };
int dz = ((hp->z - (SPRITE_SIZE_Z(hit_sprite)/2)) - pp->posz) >> 4;
rotatepoint(zero, dxy, (-pp->pang)&2047, &dxy);
rotatepoint(zero, dxy, (-fix16_to_int(pp->q16ang))&2047, &dxy);
if (dxy.x == 0) return;
......
......@@ -861,7 +861,7 @@ JS_DrawMirrors(PLAYERp pp, int tx, int ty, int tz, fix16_t tpq16ang, fix16_t tpq
if (TEST_BOOL11(sp) && numplayers > 1)
{
drawroomstotile(cp->posx, cp->posy, cp->posz, cp->pang, cp->horiz, cp->cursectnum, mirror[cnt].campic);
drawroomstotile(cp->posx, cp->posy, cp->posz, fix16_to_int(cp->q16ang), fix16_to_int(cp->q16horiz), cp->cursectnum, mirror[cnt].campic);
}
else
{
......
......@@ -694,7 +694,7 @@ SoundAngle(int x, int y)
angle = getangle(x - Player[screenpeek].posx, y - Player[screenpeek].posy);
delta_angle = GetDeltaAngle(angle, fix16_to_int(Player[screenpeek].pang));
delta_angle = GetDeltaAngle(angle, fix16_to_int(Player[screenpeek].q16ang));
// convert a delta_angle to a real angle if negative
if (delta_angle < 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment