1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

(svn r16677) -Codechange: Dimension width and height are unsigned.

This commit is contained in:
alberth
2009-06-27 20:53:45 +00:00
parent 812ad41f23
commit 9b070b5405
9 changed files with 29 additions and 29 deletions

View File

@@ -555,8 +555,8 @@ int ttd_main(int argc, char *argv[])
/* The width and height must be at least 1 pixel, this
* way all internal drawing routines work correctly. */
if (_cur_resolution.width <= 0) _cur_resolution.width = 1;
if (_cur_resolution.height <= 0) _cur_resolution.height = 1;
if (_cur_resolution.width == 0) _cur_resolution.width = 1;
if (_cur_resolution.height == 0) _cur_resolution.height = 1;
#if defined(ENABLE_NETWORK)
if (dedicated_host) {