mail[Wesnoth-commits] r13067 - /trunk/src/multiplayer_wait.cpp


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

Header


Content

Posted by grzywacz on August 10, 2006 - 14:12:
Author: grzywacz
Date: Thu Aug 10 14:11:45 2006
New Revision: 13067

URL: http://svn.gna.org/viewcvs/wesnoth?rev=13067&view=rev
Log:
Add a missing file from r13066 commit.

Modified:
    trunk/src/multiplayer_wait.cpp

Modified: trunk/src/multiplayer_wait.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_wait.cpp?rev=13067&r1=13066&r2=13067&view=diff
==============================================================================
--- trunk/src/multiplayer_wait.cpp (original)
+++ trunk/src/multiplayer_wait.cpp Thu Aug 10 14:11:45 2006
@@ -89,7 +89,13 @@
 
                if (utypes.find(leader) != utypes.end()) {
                        leader_name = 
utypes.find(leader)->second.language_name();
+
+#ifdef LOW_MEM
+                       image = utypes.find(leader)->second.image();
+#else
                        image = utypes.find(leader)->second.image() + 
"~TC(1," + utypes.find(leader)->second.flag_rgb() + ")";
+#endif
+
                }
                for(std::vector<std::string>::const_iterator itor = 
recruit_list.begin();
                                itor != recruit_list.end(); ++itor) {
@@ -383,8 +389,15 @@
                const game_data::unit_type_map&; utypes = 
game_data_.unit_types;
                if (utypes.find(leader_type) != utypes.end()) {
                        leader_name = 
utypes.find(leader_type)->second.language_name();
+
+#ifdef LOW_MEM
+                       leader_image = 
utypes.find(leader_type)->second.image();
+#else  
                        leader_image = 
utypes.find(leader_type)->second.image() + std::string("~TC(" + sd["side"] + 
",") + std::string(utypes.find(leader_type)->second.flag_rgb() + ")");
+#endif
+
                } else {
+
                        leader_image = 
leader_list_manager::random_enemy_picture;
                }
                if (!leader_image.empty()) {




Related Messages


Powered by MHonArc, Updated Thu Aug 10 14:20:23 2006