int
 DrawSeekGraph()
 {
-    if(!seekGraphUp) return FALSE;
     int i;
+    if(!seekGraphUp) return FALSE;
     h = BOARD_HEIGHT * (squareSize + lineGap) + lineGap;
     w = BOARD_WIDTH  * (squareSize + lineGap) + lineGap;
 
 
 \r
 void OutputChatMessage(int partner, char *text)\r
 {\r
-       int j;\r
-       if(!chatHandle[partner]) return;\r
+       int j, n = strlen(text);\r
 \r
-       int n = strlen(text);\r
+       if(!chatHandle[partner]) return;\r
        text[n+1] = 0; text[n] = '\n'; text[n-1] = '\r'; // Needs CR to not lose line breaks on copy-paste\r
        InsertIntoMemo(chatHandle[partner], text);\r
        if(partner != onTop) for(j=0; j<MAX_CHAT; j++) if(j != partner && chatHandle[j])\r
 
 void DrawSeekDot(int x, int y, int color)\r
 {\r
        int square = color & 0x80;\r
-       color &= 0x7F;\r
-           HBRUSH oldBrush = SelectObject(hdcSeek, \r
+       HBRUSH oldBrush = SelectObject(hdcSeek, \r
                        color == 0 ? markerBrush : color == 1 ? darkSquareBrush : explodeBrush);\r
+       color &= 0x7F;\r
        if(square)\r
            Rectangle(hdcSeek, boardRect.left+x - squareSize/9, boardRect.top+y - squareSize/9,\r
                               boardRect.left+x + squareSize/9, boardRect.top+y + squareSize/9);\r