2022-03-11 19:04:03 +00:00

21 lines
813 B
Plaintext

--- game.cpp.orig Sat Jun 9 22:36:53 2007
+++ game.cpp Thu Jul 5 15:17:08 2007
@@ -29,7 +29,7 @@ extern SDL_Surface *Screen; // global objects
extern ResourceManager *Data;
//-----------------------------------------------------------------------------
Game::Game(int difficulty):
- fontM("data/font-white.bmp", 8, 14), mapM(13, 7, 10, 110)
+ fontM(DATADIR "/data/font-white.bmp", 8, 14), mapM(13, 7, 10, 110)
{
difficultyM = difficulty;
SetupGame();
@@ -176,7 +176,7 @@ void Game::RenderScene(bool flip)
mapM.RenderNextShape(*(queueM.begin()));
SDL_Rect r;
- SDL_Surface *next = Data->getGfx("next", "data/next.png");
+ SDL_Surface *next = Data->getGfx("next", DATADIR "/data/next.png");
NjamSetRect(r, 363, 533);
SDL_BlitSurface(next, 0, Screen, &r);