Commit 8759fb71 authored by reassembler's avatar reassembler
Browse files

Optimization and Bug Fix to Sprite Rendering

parent fbc17e89
......@@ -726,7 +726,7 @@ void OSprites::do_sprite(oentry* input)
{
road_y_index -= 2;
}
while (--height_entry < 0);
while (--height_entry > 0 && input->road_priority > oroad.road_y[road_y_index + 0]);
// Sprite has higher priority, draw sprite
if (input->road_priority > oroad.road_y[road_y_index])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment