From: Ingo Ruhnke Date: Sun, 30 May 2004 15:25:01 +0000 (+0000) Subject: replaced std::sort with stable_sort to avoid sorting errors with objects in the same... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=16feed776ccd0680299ab9605f62719d24cdbb16;p=supertux.git replaced std::sort with stable_sort to avoid sorting errors with objects in the same layer SVN-Revision: 1366 --- diff --git a/src/screen/drawing_context.cpp b/src/screen/drawing_context.cpp index efee7a55d..52bb81eeb 100644 --- a/src/screen/drawing_context.cpp +++ b/src/screen/drawing_context.cpp @@ -263,7 +263,7 @@ DrawingContext::draw_filled_rect(DrawingRequest& request) void DrawingContext::do_drawing() { - std::sort(drawingrequests.begin(), drawingrequests.end()); + std::stable_sort(drawingrequests.begin(), drawingrequests.end()); for(DrawingRequests::iterator i = drawingrequests.begin(); i != drawingrequests.end(); ++i) {