1250 break; |
1250 break; |
1251 |
1251 |
1252 case PCW_WIDGET_PRESIDENT_NAME: |
1252 case PCW_WIDGET_PRESIDENT_NAME: |
1253 this->query_widget = PCW_WIDGET_PRESIDENT_NAME; |
1253 this->query_widget = PCW_WIDGET_PRESIDENT_NAME; |
1254 SetDParam(0, this->window_number); |
1254 SetDParam(0, this->window_number); |
1255 ShowQueryString(STR_PLAYER_NAME, STR_700B_PRESIDENT_S_NAME, 31, 94, this, CS_ALPHANUMERAL); |
1255 ShowQueryString(STR_PLAYER_NAME, STR_700B_PRESIDENT_S_NAME, MAX_LENGTH_PRESIDENT_NAME, 94, this, CS_ALPHANUMERAL); |
1256 break; |
1256 break; |
1257 |
1257 |
1258 case PCW_WIDGET_COMPANY_NAME: |
1258 case PCW_WIDGET_COMPANY_NAME: |
1259 this->query_widget = PCW_WIDGET_COMPANY_NAME; |
1259 this->query_widget = PCW_WIDGET_COMPANY_NAME; |
1260 SetDParam(0, this->window_number); |
1260 SetDParam(0, this->window_number); |
1261 ShowQueryString(STR_COMPANY_NAME, STR_700A_COMPANY_NAME, 31, 150, this, CS_ALPHANUMERAL); |
1261 ShowQueryString(STR_COMPANY_NAME, STR_700A_COMPANY_NAME, MAX_LENGTH_COMPANY_NAME, 150, this, CS_ALPHANUMERAL); |
1262 break; |
1262 break; |
1263 |
1263 |
1264 case PCW_WIDGET_BUILD_VIEW_HQ: { |
1264 case PCW_WIDGET_BUILD_VIEW_HQ: { |
1265 TileIndex tile = GetPlayer((PlayerID)this->window_number)->location_of_house; |
1265 TileIndex tile = GetPlayer((PlayerID)this->window_number)->location_of_house; |
1266 if (tile == 0) { |
1266 if (tile == 0) { |