truelight
898bb915ac
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
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
tron
181d586a7c
(svn r3078) Some more stuff, which piled up:
...
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants
19 years ago
tron
0b936c3222
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
19 years ago
tron
a3703eafb5
(svn r2996) 0xFFFF -> INVALID_STRING_ID
19 years ago
tron
bdbceba0cb
(svn r2984) Use adequate types, this should aid portability a bit
19 years ago
tron
73d3667dc3
(svn r2981) Remove a no-op
19 years ago
Darkvater
7cb1b719cf
(svn r2950) -Fix: [ 1259327 ] Server crash with "say" -command
19 years ago
tron
f02b1f2967
(svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code
19 years ago
tron
486cffd2ad
(svn r2819) Make variables, which are exclusive for internal use of the save/load code, static in saveload.c
19 years ago
celestar
fcd012e7ec
(svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf.
19 years ago
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
19 years ago
tron
54cbd01825
(svn r2673) Include functions.h directly, not globally via openttd.h
19 years ago
tron
b0779b4b65
(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h
19 years ago
tron
462b0d6686
(svn r2571) Add explicit type Pixel for ... Pixels
19 years ago
tron
a733fede9b
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
19 years ago
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
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
truelight
555a78aaac
(svn r2099) -Fix: no longer chat-messages hang when the game wraps around 2090
...
-Codechange: while trying to find this bug, made texteff.c a bit more readable :)
20 years ago
pasky
18fc684977
(svn r2073) - Fix: Fixed an apparent oversight in AddTextMessage() which is likely to have caused some messages not expiring from the chatterbox after the given time, as reported by dp-.
20 years ago
tron
d3f84347ac
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
20 years ago
tron
07cb3068ae
(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
...
WARNING: If i made any mistake here it WILL lead to corrupted savegames!
20 years ago
tron
94d5aeabb2
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
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
7a51cb2aef
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
20 years ago
truelight
c748f6db57
(svn r1312) -Add: Patch which is on by default: population in label of the town
...
-Fix: Expand town is a bit more agressive
-Fix: Fixed a bug in growing algorithm
20 years ago
dominik
967425b368
(svn r1082) Feature: Chat toolbar
...
- to chat with all players press Return (or Shift-T) and type in the message
- Press Return again to send the message
20 years ago
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
20 years ago
tron
265ac67183
(svn r901) Small step in the process to clean up the DPARAM mess:
...
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest)
- use inline functions instead of macros
- add assert()s to check for buffer overruns
20 years ago
tron
57c472e093
(svn r624) Merge r377 to trunk:
...
Remove the memmove special case for MSVC
According to the MSDN it was just plain wrong and memmove was directly used in some places anyway
20 years ago
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago