# Draw all sprites by all contexts
private fun draw
do
# Remap sprites that may need to change context
for sprite in sprites_to_remap do
# Skip if it was removed from this set after being modified
if sprite.sprite_set != self then continue
unmap_sprite sprite
map_sprite sprite
end
sprites_to_remap.clear
# Sort by draw order
for context in contexts_items do context.draw
end
lib/gamnit/flat/flat_core.nit:973,2--989,4