Skip to content

Commit 646fafe

Browse files
committed
Respect DATADIR everywhere
1 parent 1fffb1f commit 646fafe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,9 +1828,9 @@ int main(int argc, char **argv)
18281828

18291829
GLfloat scale;
18301830

1831-
readEnt("ship.txt", gameInfo.shipStaticVerts);
1832-
readEnt("base.txt", gameInfo.baseStaticVerts);
1833-
readEnt("enemy.txt", gameInfo.enemyStaticVerts);
1831+
readEnt(DATADIR "ship.txt", gameInfo.shipStaticVerts);
1832+
readEnt(DATADIR "base.txt", gameInfo.baseStaticVerts);
1833+
readEnt(DATADIR "enemy.txt", gameInfo.enemyStaticVerts);
18341834

18351835
//Enter Main loop
18361836
while(gameState != GameStateQuit)
@@ -1960,7 +1960,7 @@ int main(int argc, char **argv)
19601960
break;
19611961

19621962
case SDLK_d:
1963-
saveMap(polys, ents, "verts.txt");
1963+
saveMap(polys, ents, DATADIR "verts.txt");
19641964
break;
19651965

19661966
case SDLK_s:

0 commit comments

Comments
 (0)