[Orxonox-commit 2334] r7049 - code/branches/presentation3/src/orxonox

smerkli at orxonox.net smerkli at orxonox.net
Mon May 31 15:08:51 CEST 2010


Author: smerkli
Date: 2010-05-31 15:08:51 +0200 (Mon, 31 May 2010)
New Revision: 7049

Modified:
   code/branches/presentation3/src/orxonox/ChatInputHandler.cc
Log:
some comments made, no code changes.

Modified: code/branches/presentation3/src/orxonox/ChatInputHandler.cc
===================================================================
--- code/branches/presentation3/src/orxonox/ChatInputHandler.cc	2010-05-31 13:01:59 UTC (rev 7048)
+++ code/branches/presentation3/src/orxonox/ChatInputHandler.cc	2010-05-31 13:08:51 UTC (rev 7049)
@@ -119,9 +119,11 @@
   /* setup the colors, sub for the constructor */
   void ChatInputHandler::setupColors()
   {
+    /* auto variables */
     float red = 1.0, green = 0.5, blue = 0.5;
     int i = 0;
 
+    // three loops: red tones, blue tones and green tones
     // reds
     for( i = 0; i < NumberOfColors/3; ++i )
     { this->text_colors[ i ] = new CEGUI::colour( red, green, blue );
@@ -183,6 +185,7 @@
   void ChatInputHandler::sub_setcolor( CEGUI::ListboxTextItem *tocolor,
     std::string name )
   {
+    /* sanity checks */
     if( !tocolor )
       COUT(2) << "Empty ListBoxTextItem given to "
         "ChatInputhandler::sub_setcolor().\n";




More information about the Orxonox-commit mailing list