Author: shadowmaster
Date: Tue Mar 24 13:21:03 2009
New Revision: 34085

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34085&view=rev
Log:
Be pedantic about image function usage and complain when we find an
unknown one in a path.

We are considering Mordante's ~RIGHT() as a special no-op function for
now. Meh...

Modified:
    trunk/src/image.cpp

Modified: trunk/src/image.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/image.cpp?rev=34085&r1=34084&r2=34085&view=diff
==============================================================================
--- trunk/src/image.cpp (original)
+++ trunk/src/image.cpp Tue Mar 24 13:21:03 2009
@@ -617,6 +617,14 @@
                                else if("B" == function) {
                                        const int b = 
lexical_cast_default<int>(field);
                                        functor_queue.push_back(new 
cs_function(0,0,b));
+                               }
+                               // Fake image function used by GUI2 portraits 
until
+                               // Mordante gets rid of it. *tsk* *tsk*
+                               else if("RIGHT" == function) {
+                                       ;
+                               }
+                               else {
+                                       ERR_DP << "unknown image function in 
path: " << function << '\n';
                                }
                        }
                }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to