Skip to content

Commit

Permalink
added a "res" folder for objects and skybox
Browse files Browse the repository at this point in the history
  • Loading branch information
idris committed Oct 28, 2009
1 parent ba7a97e commit fce5b58
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions katamari.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ void mySpecialUp(int key, int x, int y) {

void readObjects() {
ifstream inFile;
inFile.open("objects.txt");
inFile.open("res/objects.txt");
if(!inFile) {
cerr << "Unable to open objects.txt" << endl;
cerr << "Unable to open res/objects.txt" << endl;
return;
}

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Sky::Sky() {
}

void Sky::init() {
if (!pixmap.readBMPFile("skybox-clouds.bmp", true, true)) {
if (!pixmap.readBMPFile("res/skybox-clouds.bmp", true, true)) {
cerr << "File skybox-clouds.bmp cannot be read or illegal format" << endl;
}

Expand Down

0 comments on commit fce5b58

Please sign in to comment.