News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[cleanup patch] hoist duplicate code to private method, increase type safety

Started by neroden, July 11, 2010, 05:35:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

I'm trying to get the codebase ready for use of typesafe template-style 'min' and 'max'.  This is too big a project to do all at once.  As I've been doing this, I've encountered some sections of code where the code is made much simpler by doing some other code cleanup at the same time, so I'm submitting those as individual patches in advance of the big change.

This is one of those patches.  Compiles and works by itself.