summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-10-07 20:57:41 +0000
committersmatz <smatz@openttd.org>2008-10-07 20:57:41 +0000
commit1906aa2bbb1882c66a289a8b19cd7e6cdabe6326 (patch)
tree56d59158c9a257d7f0b20e91a9e8c87762578a05 /src/company_cmd.cpp
parentb3726f4c7c0c8b825b5b63434a18d977b5fc0b88 (diff)
downloadopenttd-1906aa2bbb1882c66a289a8b19cd7e6cdabe6326.tar.xz
(svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch by planetmaker)
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 53c2fb9dc..fba53f5d7 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -84,10 +84,10 @@ void SetLocalCompany(CompanyID new_company)
/* Do not update the patches if we are in the intro GUI */
if (IsValidCompanyID(new_company) && _game_mode != GM_MENU) {
- const Company *p = GetCompany(new_company);
- _settings_client.gui.autorenew = p->engine_renew;
- _settings_client.gui.autorenew_months = p->engine_renew_months;
- _settings_client.gui.autorenew_money = p->engine_renew_money;
+ const Company *c = GetCompany(new_company);
+ _settings_client.gui.autorenew = c->engine_renew;
+ _settings_client.gui.autorenew_months = c->engine_renew_months;
+ _settings_client.gui.autorenew_money = c->engine_renew_money;
InvalidateWindow(WC_GAME_OPTIONS, 0);
}
}
@@ -106,9 +106,9 @@ uint16 GetDrawStringCompanyColor(CompanyID company)
return (_colour_gradient[_company_colours[company]][4]) | IS_PALETTE_COLOR;
}
-void DrawCompanyIcon(CompanyID p, int x, int y)
+void DrawCompanyIcon(CompanyID c, int x, int y)
{
- DrawSprite(SPR_PLAYER_ICON, COMPANY_SPRITE_COLOR(p), x, y);
+ DrawSprite(SPR_PLAYER_ICON, COMPANY_SPRITE_COLOR(c), x, y);
}
/**