[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-CVS] netpanzer/src/Lib/2D PackedSurface.cpp
From: |
Matthias Braun |
Subject: |
[netPanzer-CVS] netpanzer/src/Lib/2D PackedSurface.cpp |
Date: |
Fri, 19 Sep 2003 11:03:14 -0400 |
CVSROOT: /cvsroot/netpanzer
Module name: netpanzer
Branch:
Changes by: Matthias Braun <address@hidden> 03/09/19 11:03:14
Modified files:
src/Lib/2D : PackedSurface.cpp
Log message:
fix for my last commit
Patches:
Index: netpanzer/src/Lib/2D/PackedSurface.cpp
diff -u netpanzer/src/Lib/2D/PackedSurface.cpp:1.12
netpanzer/src/Lib/2D/PackedSurface.cpp:1.13
--- netpanzer/src/Lib/2D/PackedSurface.cpp:1.12 Fri Sep 19 10:43:06 2003
+++ netpanzer/src/Lib/2D/PackedSurface.cpp Fri Sep 19 11:03:14 2003
@@ -202,7 +202,9 @@
}
if (version > CURRENT_PAK_VERSION) {
delete file;
- throw Exception("PAK file version %d is newer than the .exe (%d) you
are using, which only supports up to version", version, CURRENT_PAK_VERSION);
+ throw Exception("PAK file version of '%s' is newer(%d) than the .exe
+ (%d) you are using, which only supports up to version",
+ filename, version, CURRENT_PAK_VERSION);
}
file->read(&pix, sizeof(pix), 1);
@@ -598,7 +600,7 @@
for(char** file = list; *file != 0; file++) {
std::string name = path;
name += *file;
- if(name.find(".pak") > 0)
+ if(name.find(".pak") != std::string::npos)
filenames.push_back(name);
}