Author: esr
Date: Tue Jul  3 00:26:30 2007
New Revision: 18629

URL: http://svn.gna.org/viewcvs/wesnoth?rev=18629&view=rev
Log:
I removed this because (a) it was creating an an adhesion with the
team class, (b) it's not actually used anywhere, and (c) it was a
design botch to begin with.  Using the *side index* as a color highlight?
Gaahh...

Modified:
    trunk/src/marked-up_text.cpp

Modified: trunk/src/marked-up_text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/marked-up_text.cpp?rev=18629&r1=18628&r2=18629&view=diff
==============================================================================
--- trunk/src/marked-up_text.cpp (original)
+++ trunk/src/marked-up_text.cpp Tue Jul  3 00:26:30 2007
@@ -14,7 +14,6 @@
 
 #include "font.hpp"
 #include "marked-up_text.hpp"
-#include "team.hpp"
 #include "video.hpp"
 #include "wassert.hpp"
 
@@ -65,27 +64,6 @@
                        break;
                case NULL_MARKUP:
                        return i1+1;
-               // semi ANSI colour escape sequences at the start of the line 
for now only
-               case '\033':
-                       if(i2 - i1 >= 4) {
-                               ++i1;
-                               if(*i1 == '[') {
-                                       ++i1;
-                                       if(*i1 == '3') {
-                                               ++i1;
-                                               if(*i1 >= '0' && *i1 <= '9' && 
*(i1 + 1) == 'm')
-                                               {
-                                                       if(*i1 != '0')
-                                                       {
-                                                               Uint32 rgb = 
team::get_side_rgb(lexical_cast<int, char>(*i1));
-                                                               *colour = 
int_to_color(rgb);
-                                                       }
-                                                       ++i1;
-                                               }
-                                       }
-                               }
-                       }
-                       break;
                case COLOR_TEXT:
                  {
                    //very primitive parsing for rgb value


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

Reply via email to