Skip to content

Commit

Permalink
Fixed|libheretic: Compiler warnings/errors (dup time symbol, missing …
Browse files Browse the repository at this point in the history
…initializers)
  • Loading branch information
danij-deng committed Feb 25, 2014
1 parent 45c0721 commit 2f77b7d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/p_xgline.cpp
Expand Up @@ -1943,7 +1943,7 @@ int XLTrav_LineTeleport(Line *newLine, dd_bool /*ceiling*/, void *context,
side = 1;

// Make sure we are on correct side of exit line.
while(Line_PointOnSide(newLine, newPos) < 0 != side && --fudge >= 0)
while((Line_PointOnSide(newLine, newPos) < 0) != side && --fudge >= 0)
{
if(fabs(newLineDelta[0]) > fabs(newLineDelta[1]))
newPos[VY] -= FIX2FLT(((newLineDelta[0] < 0) != side)? -1 : 1);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/doom/src/m_cheat.cpp
Expand Up @@ -381,7 +381,7 @@ D_CMD(CheatSuicide)

D_CMD(CheatReveal)
{
DENG2_UNUSED(argc);
DENG2_UNUSED2(src, argc);

int option, i;

Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/heretic/src/h_refresh.cpp
Expand Up @@ -171,7 +171,7 @@ void G_RendPlayerView(int player)
R_RenderPlayerView(player);
}

void H_DrawWindow(Size2Raw const *windowSize)
void H_DrawWindow(Size2Raw const * /*windowSize*/)
{
if(G_GameState() == GS_INTERMISSION)
{
Expand Down
21 changes: 7 additions & 14 deletions doomsday/plugins/heretic/src/in_lude.cpp
Expand Up @@ -69,7 +69,6 @@ static gametype_t gameType;

static int cnt;

static int time;
static int hours;
static int minutes;
static int seconds;
Expand All @@ -92,7 +91,7 @@ static patchid_t dpFaceDead[NUMTEAMS];
static fixed_t dSlideX[NUMTEAMS];
static fixed_t dSlideY[NUMTEAMS];

static char* killersText[] = { "K", "I", "L", "L", "E", "R", "S" };
static char const *killersText = "KILLERS";

static Point2Raw YAHspot[3][9] = {
{
Expand Down Expand Up @@ -132,12 +131,8 @@ static Point2Raw YAHspot[3][9] = {

void WI_Register(void)
{
cvartemplate_t cvars[] = {
{ "inlude-stretch", 0, CVT_BYTE, &cfg.inludeScaleMode, SCALEMODE_FIRST, SCALEMODE_LAST },
{ "inlude-patch-replacement", 0, CVT_INT, &cfg.inludePatchReplaceMode, PRM_FIRST, PRM_LAST },
{ NULL }
};
Con_AddVariableList(cvars);
C_VAR_BYTE("inlude-stretch", &cfg.inludeScaleMode, 0, SCALEMODE_FIRST, SCALEMODE_LAST);
C_VAR_INT ("inlude-patch-replacement", &cfg.inludePatchReplaceMode, 0, PRM_FIRST, PRM_LAST);
}

void IN_DrawTime(int x, int y, int h, int m, int s, float r, float g, float b, float a)
Expand Down Expand Up @@ -264,11 +259,9 @@ void IN_InitStats(void)
}
}

time = mapTime / 35;
hours = time / 3600;
time -= hours * 3600;
minutes = time / 60;
time -= minutes * 60;
int time = mapTime / 35;
hours = time / 3600; time -= hours * 3600;
minutes = time / 60; time -= minutes * 60;
seconds = time;

if(!IS_NETGAME)
Expand Down Expand Up @@ -979,7 +972,7 @@ void IN_DrawDMStats(void)

for(i = 0; i < 7; ++i)
{
FR_DrawTextXY3(killersText[i], 10, 80 + 9 * i, ALIGN_TOPLEFT, DTF_ONLY_SHADOW);
FR_DrawCharXY3(killersText[i], 10, 80 + 9 * i, ALIGN_TOPLEFT, DTF_ONLY_SHADOW);
}

DGL_Disable(DGL_TEXTURE_2D);
Expand Down

0 comments on commit 2f77b7d

Please sign in to comment.