Skip to content

Commit

Permalink
Merge pull request #3 from tolbon/patch-3
Browse files Browse the repository at this point in the history
I think is more correct but not tested
  • Loading branch information
smealum committed Apr 1, 2014
2 parents 0295a23 + f565eb5 commit a55f6bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arm9/source/game/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static inline void render1(void)
glPopMatrix(1);

//HUD TEST
if(levelInfoCounter>0 && (levelTitle || levelAuthor))
if(levelInfoCounter>0 && (levelTitle[0] || levelAuthor[0]))
{
levelInfoCounter--;
glMatrixMode(GL_PROJECTION);
Expand All @@ -287,8 +287,8 @@ static inline void render1(void)
glPushMatrix();
glLoadIdentity();

if(levelTitle)drawCenteredString(levelTitle, inttof32(17)/10, (82));
if(levelAuthor)drawCenteredString(levelAuthor, inttof32(1), (100));
if(levelTitle[0])drawCenteredString(levelTitle, inttof32(17)/10, (82));
if(levelAuthor[0])drawCenteredString(levelAuthor, inttof32(1), (100));

glPopMatrix(1);
glMatrixMode(GL_PROJECTION);
Expand Down

0 comments on commit a55f6bf

Please sign in to comment.