(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.

This commit is contained in:
rubidium
2008-09-30 20:39:50 +00:00
parent dba193d4a5
commit f56e630e5c
158 changed files with 4661 additions and 4675 deletions

View File

@@ -421,7 +421,7 @@ struct BuildRoadToolbarWindow : Window {
/**
* Update the remove button lowered state of the road toolbar
*
* @param clicked_widget The widget which the player clicked just now
* @param clicked_widget The widget which the client clicked just now
*/
void UpdateOptionWidgetStatus(RoadToolbarWidgets clicked_widget)
{
@@ -676,7 +676,7 @@ static const WindowDesc _build_tramway_desc = {
void ShowBuildRoadToolbar(RoadType roadtype)
{
if (!IsValidPlayerID(_current_player)) return;
if (!IsValidCompanyID(_current_company)) return;
_cur_roadtype = roadtype;
DeleteWindowByClass(WC_BUILD_TOOLBAR);