forked from mirrors/0ad
473b282265
Also fixes some bad code that could lead to hidden bugs. Fixes #3296, thanks elexis for testing ;) This was SVN commit r16764.