truelight
1f81d83f9c
(svn r6117) -Fix r6097: on mingw it is normal that both / as \ are accepted as input
...
-Fix r6096: detect for PATHSEP on WIN32 or WIN64, not UNIX
(Windows compilers define either one, while other compilers don't define a thing)
18 years ago
truelight
b854750c04
(svn r5969) -Fix r5968: windows doesn't know strncasecmp, but called it strnicmp (michi_cc)
18 years ago
Darkvater
bd458586a0
(svn r5765) - Codechange: Fully unify the OS-specific FiosGet...List functions into fios.c, as well as FiosGetSavegameList and FiosGetScenarioList functions with the help of some callbacks.
18 years ago
Darkvater
2693673bf3
(svn r5760) - Codechange: Use a define for case-string comparison in OS/2 instead of function.
18 years ago
tron
a2362674e3
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
18 years ago
KUDr
308f27a3de
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
19 years ago
truelight
919e0b80a7
(svn r4522) -Fix: include stdio before stddef; some targets don't like the other way around.
19 years ago
KUDr
52b6524e05
(svn r4470) -Fix: FS#97 — Possible bug in Win64 versions (by michi_cc)
...
Doesn't fix any known bug, but the code is now bit cleaner. The proper result of subtraction of two pointers is ptrdiff_t.
19 years ago
celestar
9dbe6fdda6
(svn r4468) -Fix: (FS#45) correct declaration of NORETURN for gcc (egladil)
19 years ago
Darkvater
91b66421f3
(svn r4003) - Minor codebeautifier@work
19 years ago
bjarni
8744075a6c
(svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
...
This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion
while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result
Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
19 years ago
Darkvater
d9d4a4c4bd
(svn r3559) - CodeChange: simplify MKCOLOR(x) macro for smallmap_gui.c by adding a TO_LE32X() macro next to TO_BE32X(). The 'X' signifies them as macros and not-inline functions so they can be used in variable declarations.
19 years ago
bjarni
96e7349020
(svn r3555) -Codechange: [Big Endian] removed defining OTTD_ALIGNMENT by default on Big Endian CPUs
...
this increased speed when reading unaligned data (like strings)
test showed this to increase speed by 5,6% when drawing the mini map on PPC OSX
the tradeoff is that now it will crash if a Big Endian computer don't support unaligned reading
but it should easily fixable in stdafx.h if it turns out to be a problem
19 years ago
Darkvater
c04b619aff
(svn r3553) - Revert r3549 "Change the behaviour of OTTD_ALIGNMENT". Some tests showed that forcing aligned reads slowed down the code (drawing smallmap) by 14%. Change back to the old behaviour.
19 years ago
peter1138
f00f4f5b47
(svn r3551) Add directives to allow Visual Studio 2005 compilation.
19 years ago
Darkvater
655e5b7ee2
(svn r3549) - Change the behaviour of OTTD_ALIGNMENT. Force aligned reading as default, undefine it if unwanted/unneeded for some reason. I undeffed windows and watcom for now as they were like this.
19 years ago
Darkvater
e57ea5e57d
(svn r3529) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; alignment issues (thanks Tron for the help)
19 years ago
Darkvater
41f885600f
(svn r3450) - Revert r3448 partly as some mingw's do have uint defined, others don't, so this needs more research
19 years ago
Darkvater
c9d8fb8f07
(svn r3448) - Fix: wrap up some MinGW warnings
19 years ago
Darkvater
0855449106
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
19 years ago
bjarni
3923eab424
(svn r3276) reverted the last two commits. OSX 10.2 kept finding new stuff to prevent it from running OpenTTD, so now it's not supported anymore
19 years ago
bjarni
073aae307e
(svn r3275) -Fix: [OSX] removed libpng support and error dialogs from jaguar crosscompiles to fix crash
19 years ago
Darkvater
68c95f164e
(svn r3237) - CodeChange: remove silencing of some warnings. MSVC6 once again has some issues with enums, and other things as usual, so silence those still.
19 years ago
Darkvater
43b09db5ed
(svn r3236) - Fix: warnings about 'CDECL must be used with ...' on VS6
19 years ago
tron
9d0e7b6458
(svn r3181) -Bracing
...
-Indentation
-Whitespace
-DeMorgan's Law
-Test with NULL or 0 for non-booleans
-'\0' instead of 0 for chars
-Remove redundantly redundant comments (like DoFoo(); // Do foo)
-Join multiple short lines with a single statement
-Split single lines with multiple statements
-Avoid assignments in if
19 years ago
Darkvater
d12f309b62
(svn r3011) Refix last revision's fix of VS6 which broke compilation on MinGW. Also beautify stdafx.h with nice indentation and comments after big #ifdef blocks. Hope it didn't break compilation on any OS's.
19 years ago
Darkvater
a4287a47b3
(svn r3009) DIEEEEEEEEEEE VS6 (you good-for-nothing compiler)
19 years ago
Darkvater
e1acd38bc5
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
...
Fix warning in graph_gui.c with const problem
19 years ago
Darkvater
4a58250cb9
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
...
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
19 years ago
bjarni
6488c2cba0
(svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
...
- it appeared to cause problems and strgen don't need a GUI
- renamed ottd to openttd in the app menu (Tobin)
19 years ago
bjarni
7e25cd6240
(svn r2741) -Feature: [OSX] added a window to display asserts on OSX (Tobin)
19 years ago
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
19 years ago
ludde
08725cd6df
(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra.
...
- Benchmark shows that NTP is now around 10x faster than NPF.
- Made IsTunnelTile macro to determine if a tile is a tunnel.
- Added some useful debugging functions for making tiles red / getting accurate timestamps.
- Remove old depot finding algorithm.
- Disable warning for signed/unsigned comparisons.
19 years ago
Darkvater
5261529887
(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings
19 years ago
ludde
2123deff13
(svn r2560) Fix: various minor code changes.
...
Added RandomTile/RandomTileSeed functions to generate a random tile.
Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though)
Changed some frequently used map macros to not compute the values each time.
Silence some warnings on MSVC.
19 years ago
Darkvater
f4f5cb93f8
(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
...
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
20 years ago
Darkvater
d1b068355c
(svn r2316) - Fix: [ 1154454 ] Fix BeOS build on Trunk (myob)
20 years ago
truelight
27f80e09e3
(svn r2225) -Fix: split the endian-detection to target/host. Now cross-compiling
...
on i386-linux for MacOSX should also work for the language-files (strgen issues)
20 years ago
tron
59fa465dce
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
20 years ago
darkvater
1d127765c3
(svn r1523) -Fix: somehow mousewheel was disabled on windows using SDL; reenabled again
...
-Fix: added missing CDECL to ellipsis functions and changed VS6 project file to use _cdecl calling conventions (thx tamlin)
20 years ago
tron
2eb7aedf69
(svn r1402) Trim trailing whitespace
20 years ago
darkvater
dcc1376533
(svn r1339) -Fix: compilation with networking works on MinGW32 again (thx orudge).
20 years ago
darkvater
2a0f68a6c5
(svn r1266) -Fix: fix some cygwin/mingw warnings
...
-Note: when compiling with MinGW (-mno-cygwin) __MINGW32__ is defined; when compiling without it __CYGWIN32__ is defined. You need to set either -mno-cygwin (MinGW) or -mwin32 (Cygwin) to have WIN32 defined
20 years ago
truelight
dfc5fdbb92
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
...
Works fine, beside some minor stuff:
- Network is not working yet
- Keyboard is not working
- No MIDI support
- 'A few file selector bugs involving drives'
20 years ago
bjarni
a92dc63ec9
(svn r1236) MorphOS: added make release like in OSX (tokai)
...
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
20 years ago
bjarni
b043d3e567
(svn r980) Fixed issues where MorphOS would get problems if AmigaOS would get a port, since MorphOS also have the flag __AMIGA__ defined (Tokai)
20 years ago
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
20 years ago
tron
ecf1c35849
(svn r907) Sprinkle holy ANSI water:
...
- "inline" must before the return type (and after "static")
- Initialise all struct members, not just some of them
- Remove (one) spurious semicolon
20 years ago
tron
fca55e3741
(svn r793) Merge INLINE -> inline replacement (revision 376)
20 years ago
tron
87adce3ca0
(svn r655) Add the necessary bits to make building on SunOS/Solaris work
20 years ago