mail[Wesnoth-commits] r43959 - /trunk/src/builder.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by AI0867 on July 06, 2010 - 15:40:
Author: ai0867
Date: Tue Jul  6 15:40:30 2010
New Revision: 43959

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43959&view=rev
Log:
Fix a deprecation warning and add a note about its future removal

Modified:
    trunk/src/builder.cpp

Modified: trunk/src/builder.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/builder.cpp?rev=43959&r1=43958&r2=43959&view=diff
==============================================================================
--- trunk/src/builder.cpp (original)
+++ trunk/src/builder.cpp Tue Jul  6 15:40:30 2010
@@ -333,7 +333,8 @@
                                } else if (image::exists(s)){
                                        continue;
                                }
-                               if(s.find(".png") == std::string::npos){
+                               // This warning can be removed after 1.9.2
+                               if(s.find(".png") == std::string::npos && 
image::precached_file_exists(s + ".png")){
                                        lg::wml_error << "Terrain image '" << 
s << "' misses the '.png' extension\n";
                                }
                                return false;




Related Messages


Powered by MHonArc, Updated Tue Jul 06 17:20:08 2010