Files
@ r2989:c7c58e254010
Branch filter:
Location: cpp/openttd-patchpack/source/media/openttd.16.png
r2989:c7c58e254010
941 B
image/png
(svn r3564) Several smaller changes:
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
![](/cpp/openttd-patchpack/source/raw/c7c58e254010a724fe66286662764c9393606e90/media/openttd.16.png)