Skip to content

Commit

Permalink
Move clock to not overlap objectives (fixes #127)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Jul 20, 2013
1 parent 278ac78 commit d422f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/cdogs/hud.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void FPSCounterDraw(FPSCounter *counter)
char s[50];
counter->framesDrawn++;
sprintf(s, "FPS: %d", counter->fps);
CDogsTextStringSpecial(s, TEXT_RIGHT | TEXT_BOTTOM, 10, 10);
CDogsTextStringSpecial(s, TEXT_RIGHT | TEXT_BOTTOM, 10, 5 + CDogsTextHeight());
}

void WallClockSetTime(WallClock *wc)
Expand Down Expand Up @@ -104,7 +104,7 @@ void WallClockDraw(WallClock *wc)
{
char s[50];
sprintf(s, "%02d:%02d", wc->hours, wc->minutes);
CDogsTextStringSpecial(s, TEXT_LEFT | TEXT_BOTTOM, 10, 10);
CDogsTextStringSpecial(s, TEXT_LEFT | TEXT_BOTTOM, 10, 5 + CDogsTextHeight());
}

void HUDInit(
Expand Down
8 changes: 0 additions & 8 deletions src/cdogs/vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ void CalcChebyshevDistanceAndBearing(
}
}

static Vector2i Minus(Vector2i a, Vector2i b)
{
Vector2i x;
x.x = a.x - b.x;
x.y = a.y - b.y;
return x;
}

static int DistanceSquared(Vector2i a, Vector2i b)
{
int dx = a.x - b.x;
Expand Down

0 comments on commit d422f33

Please sign in to comment.