forked from mirror/OpenTTD
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
This commit is contained in:
@@ -55,7 +55,7 @@ void ViewportSortParentSpritesSSE41(ParentSpriteToSortVector *psdv)
|
||||
|
||||
sprite_list.sort();
|
||||
|
||||
std::vector<ParentSpriteToDraw*> preceding; // Temporarily stores sprites that precede current and their position in the list
|
||||
std::vector<ParentSpriteToDraw *> preceding; // Temporarily stores sprites that precede current and their position in the list
|
||||
auto preceding_prev = sprite_list.begin(); // Store iterator in case we need to delete a single preciding sprite
|
||||
auto out = psdv->begin(); // Iterator to output sorted sprites
|
||||
|
||||
@@ -151,7 +151,7 @@ void ViewportSortParentSpritesSSE41(ParentSpriteToSortVector *psdv)
|
||||
|
||||
/* Sort all preceding sprites by order and assign new orders in reverse (as original sorter did). */
|
||||
std::sort(preceding.begin(), preceding.end(), [](const ParentSpriteToDraw *a, const ParentSpriteToDraw *b) {
|
||||
return a->order > b->order;
|
||||
return a->order > b->order;
|
||||
});
|
||||
|
||||
s->order = ORDER_COMPARED;
|
||||
|
Reference in New Issue
Block a user