Changeset - r21874:8f8d62638daa
[Not reviewed]
master
0 2 0
rubidium - 10 years ago 2014-10-21 16:58:15
rubidium@openttd.org
(svn r27026) -Fix: some (older-ish) GCC compiler warnings
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_company.cpp
Show inline comments
 
@@ -227,14 +227,14 @@
 
}
 

	
 
/* static */ bool ScriptCompany::ChangeBankBalance(CompanyID company, Money delta, ExpensesType expenses_type)
 
{
 
	EnforcePrecondition(false, ScriptObject::GetCompany() == OWNER_DEITY);
 
	EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END);
 
	EnforcePrecondition(false, delta >= INT32_MIN);
 
	EnforcePrecondition(false, delta <= INT32_MAX);
 
	EnforcePrecondition(false, (int64)delta >= INT32_MIN);
 
	EnforcePrecondition(false, (int64)delta <= INT32_MAX);
 

	
 
	company = ResolveCompanyID(company);
 
	EnforcePrecondition(false, company != COMPANY_INVALID);
 

	
 
	return ScriptObject::DoCommand(0, (uint32)(delta), company | expenses_type << 8 , CMD_CHANGE_BANK_BALANCE);
 
}
src/settings_gui.cpp
Show inline comments
 
@@ -287,13 +287,13 @@ struct GameOptionsWindow : Window {
 
				break;
 

	
 
			case WID_GO_GUI_ZOOM_DROPDOWN: {
 
				list = new DropDownList();
 
				*selected_index = ZOOM_LVL_OUT_4X - _gui_zoom;
 
				const StringID *items = _gui_zoom_dropdown;
 
				for (uint i = 0; *items != INVALID_STRING_ID; items++, i++) {
 
				for (int i = 0; *items != INVALID_STRING_ID; items++, i++) {
 
					*list->Append() = new DropDownListStringItem(*items, i, _settings_client.gui.zoom_min > ZOOM_LVL_OUT_4X - i);
 
				}
 
				break;
 
			}
 

	
 
			case WID_GO_BASE_GRF_DROPDOWN:
0 comments (0 inline, 0 general)