Changeset - r11497:af5692eaa268
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-03-26 22:13:00
smatz@openttd.org
(svn r15863) -Fix (r15791): company money and game date strings were swapped on the statusbar
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/statusbar_gui.cpp
Show inline comments
 
@@ -94,18 +94,18 @@ struct StatusBarWindow : Window {
 
	virtual void OnPaint()
 
	{
 
		const Company *c = (_local_company == COMPANY_SPECTATOR) ? NULL : GetCompany(_local_company);
 

	
 
		this->DrawWidgets();
 
		SetDParam(0, _date);
 
		DrawString(this->widget[SBW_RIGHT].left + 1, this->widget[SBW_RIGHT].right - 1, 1, (_pause_game || _settings_client.gui.status_long_date) ? STR_00AF : STR_00AE, TC_FROMSTRING, SA_CENTER);
 
		DrawString(this->widget[SBW_LEFT].left + 1, this->widget[SBW_LEFT].right - 1, 1, (_pause_game || _settings_client.gui.status_long_date) ? STR_00AF : STR_00AE, TC_FROMSTRING, SA_CENTER);
 

	
 
		if (c != NULL) {
 
			/* Draw company money */
 
			SetDParam(0, c->money);
 
			DrawString(this->widget[SBW_LEFT].left + 1, this->widget[SBW_LEFT].right - 1, 1, STR_0004, TC_FROMSTRING, SA_CENTER);
 
			DrawString(this->widget[SBW_RIGHT].left + 1, this->widget[SBW_RIGHT].right - 1, 1, STR_0004, TC_FROMSTRING, SA_CENTER);
 
		}
 

	
 
		/* Draw status bar */
 
		if (this->saving) { // true when saving is active
 
			DrawString(this->widget[SBW_MIDDLE].left + 1, this->widget[SBW_MIDDLE].right - 1, 1, STR_SAVING_GAME, TC_FROMSTRING, SA_CENTER);
 
		} else if (_do_autosave) {
0 comments (0 inline, 0 general)