pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src res_descriptor.cxx,1.4,1.5


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src res_descriptor.cxx,1.4,1.5
Date: 28 Jun 2002 17:05:47 -0000

Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv10956

Modified Files:
        res_descriptor.cxx 
Log Message:
- added caching for modified resources, somehow the loading of pingus seems to 
get a lot slower by this, some debugging and rewriting might be needed

Index: res_descriptor.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/res_descriptor.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- res_descriptor.cxx  26 Jun 2002 09:29:47 -0000      1.4
+++ res_descriptor.cxx  28 Jun 2002 17:05:45 -0000      1.5
@@ -20,6 +20,7 @@
 #include <assert.h>
 #include <iostream>
 #include "res_descriptor.hxx"
+#include "string_converter.hxx"
 #include "pingus_error.hxx"
 
 using namespace Pingus;
@@ -105,7 +106,8 @@
 bool
 ResDescriptor::operator<(const ResDescriptor& res_desc) const
 {
-  return (datafile + res_name) < (res_desc.datafile + res_desc.res_name);
+  return (datafile + res_name + to_string (type) + to_string (modifier)) 
+    < (res_desc.datafile + res_desc.res_name + to_string (res_desc.type) + 
to_string (res_desc.modifier));
 }
 
 std::ostream& operator<<(std::ostream& s, const ResDescriptor& desc)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]