(svn r3607) - Fix indenting of PerformanceRatingDetailWndProc()
This commit is contained in:
		
							
								
								
									
										16
									
								
								graph_gui.c
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								graph_gui.c
									
									
									
									
									
								
							@@ -938,8 +938,9 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
 | 
				
			|||||||
				if (i == SCORE_TOTAL) {
 | 
									if (i == SCORE_TOTAL) {
 | 
				
			||||||
					needed = total_score;
 | 
										needed = total_score;
 | 
				
			||||||
					score = SCORE_MAX;
 | 
										score = SCORE_MAX;
 | 
				
			||||||
    		} else
 | 
									} else {
 | 
				
			||||||
					total_score += score;
 | 
										total_score += score;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				DrawString(7, y, STR_PERFORMANCE_DETAIL_VEHICLES + i, 0);
 | 
									DrawString(7, y, STR_PERFORMANCE_DETAIL_VEHICLES + i, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1009,8 +1010,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case WE_CREATE:
 | 
							case WE_CREATE: {
 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			int i;
 | 
								int i;
 | 
				
			||||||
			Player *p2;
 | 
								Player *p2;
 | 
				
			||||||
			w->hidden_state = 0;
 | 
								w->hidden_state = 0;
 | 
				
			||||||
@@ -1034,10 +1034,11 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
 | 
				
			|||||||
			w->click_state = 1 << 13;
 | 
								w->click_state = 1 << 13;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			SetWindowDirty(w);
 | 
								SetWindowDirty(w);
 | 
				
			||||||
        }
 | 
					
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
    case WE_TICK:
 | 
							}
 | 
				
			||||||
        {
 | 
					
 | 
				
			||||||
 | 
							case WE_TICK: {
 | 
				
			||||||
			// Update the player score every 5 days
 | 
								// Update the player score every 5 days
 | 
				
			||||||
			if (--w->custom[0] == 0) {
 | 
								if (--w->custom[0] == 0) {
 | 
				
			||||||
				w->custom[0] = DAY_TICKS;
 | 
									w->custom[0] = DAY_TICKS;
 | 
				
			||||||
@@ -1051,9 +1052,10 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
 | 
				
			|||||||
					SetWindowDirty(w);
 | 
										SetWindowDirty(w);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
        }
 | 
					
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const Widget _performance_rating_detail_widgets[] = {
 | 
					static const Widget _performance_rating_detail_widgets[] = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user