Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 131264
Collapse All | Expand All

(-)src/trooper.cpp (-2 / +2 lines)
Lines 25-34 Link Here
25
// creates a new paratrooper that starts at x,y
25
// creates a new paratrooper that starts at x,y
26
trooper::trooper(int x, int y) : sprite(DATADIR, "/parachute.bmp")
26
trooper::trooper(int x, int y) : sprite(DATADIR, "/parachute.bmp")
27
 {
27
 {
28
   image2 = SDL_LoadBMP("data/paratrooper.bmp");
28
   image2 = SDL_LoadBMP("/usr/share/games/paratim/paratrooper.bmp");
29
   if (image2 == NULL)
29
   if (image2 == NULL)
30
   {
30
   {
31
     std::cout << "Couldn't load data/paratrooper.bmp\n";
31
     std::cout << "Couldn't load paratrooper.bmp\n";
32
     exit(1);
32
     exit(1);
33
   }
33
   }
34
   SDL_SetColorKey(image2, SDL_SRCCOLORKEY, SDL_MapRGB(image2->format, 255, 255, 0));
34
   SDL_SetColorKey(image2, SDL_SRCCOLORKEY, SDL_MapRGB(image2->format, 255, 255, 0));

Return to bug 131264