1
0
Fork 0

Codechange: Apply coding style (#8640)

* Fix: Missing or needed spaces

* Codechange: Remove space

* Codechange: Remove space

* Codechange: More missing spaces

* Codechange: Missing spaces

* Codechange: Remove space

* Codechange: Remove space
pull/8644/head
SamuXarick 2021-02-05 10:00:36 +00:00 committed by GitHub
parent 5b3fe4ae27
commit a4035af337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 25 additions and 26 deletions

View File

@ -741,8 +741,8 @@ public:
assert(vehgroup.NumVehicles() > 0); assert(vehgroup.NumVehicles() > 0);
v = vehgroup.vehicles_begin[0]; v = vehgroup.vehicles_begin[0];
/* /*
No VehicleClicked(v) support for now, because don't want * No VehicleClicked(v) support for now, because don't want
to enable any contextual actions except perhaps clicking/ctrl-clicking to clone orders. * to enable any contextual actions except perhaps clicking/ctrl-clicking to clone orders.
*/ */
break; break;
} }

View File

@ -1575,7 +1575,6 @@ void BaseVehicleListWindow::DrawVehicleListItems(VehicleID selected_vehicle, int
} }
case GB_SHARED_ORDERS: case GB_SHARED_ORDERS:
assert(vehgroup.NumVehicles() > 0); assert(vehgroup.NumVehicles() > 0);
for (int i = 0; i < static_cast<int>(vehgroup.NumVehicles()); ++i) { for (int i = 0; i < static_cast<int>(vehgroup.NumVehicles()); ++i) {

View File

@ -524,7 +524,7 @@ static uint ConvertSdlKeycodeIntoMy(SDL_Keycode kc)
} }
/* check scancode for BACKQUOTE key, because we want the key left /* check scancode for BACKQUOTE key, because we want the key left
of "1", not anything else (on non-US keyboards) */ * of "1", not anything else (on non-US keyboards) */
SDL_Scancode sc = SDL_GetScancodeFromKey(kc); SDL_Scancode sc = SDL_GetScancodeFromKey(kc);
if (sc == SDL_SCANCODE_GRAVE) key = WKC_BACKQUOTE; if (sc == SDL_SCANCODE_GRAVE) key = WKC_BACKQUOTE;