Simplify building stage handling in PrepareLayout
commite3a4107e389e1d37ce776f8b92b644b92d5eaa53
authorcirdan <cirdansw@gmail.com>
Sat, 1 Jul 2017 13:20:27 +0000 (1 15:20 +0200)
committercirdan <cirdansw@gmail.com>
Sat, 1 Jul 2017 13:20:27 +0000 (1 15:20 +0200)
treea599eb2f4c3abc5ab7dadbd66b3a1897c4bea585
parentf0c24b12daff5a16b9686b79e30173805f21abd7
Simplify building stage handling in PrepareLayout

Reset the building stage to 0 if there are no registers in
NewGRFSpriteLayout::PrepareLayout, as this has the same effect
and simplifies the checks in the loop.
src/newgrf_commons.cpp