tron
347473b0b0
(svn r5226) Reduce the mess that sending chat messages is
...
This also fixes a bug:
-Fix: It was possible to rename a signs or waypoints with the chat box
18 years ago
Darkvater
26db3ac91f
(svn r4623) - Codechange: s/byte/PlayerID/
19 years ago
celestar
99fdc0b6ef
(svn r4591) -Fix (FS#122) Game no longer errors out when "Many random towns" is selected in the scenario editor.
...
-Side effects:
- Removed one global variable from variables.h
- Remove an ugly hack for the "many random towns" function
19 years ago
tron
dd180a1e18
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago
celestar
395b44d15c
(svn r4520) -Fix: Did last commit in the wrong branch. Repair and shame on me.
19 years ago
tron
0099dc31f5
(svn r4314) -Fix: a buffer overflow of the chat box introduced in r1263. Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it
19 years ago
tron
59f0e69521
(svn r4313) The parent window of the chat box is always the main toolbar (?!), therefore don't pass this information as parameter
19 years ago
tron
2e2235e3cf
(svn r4312) Calculate the maximum pixel width of the entered text in the chat box from the "text box"-widget instead of hardcoding an arbitrary - and wrong - number
19 years ago
tron
90927c22a5
(svn r4310) The chat box has no visible window title, therefore remove the string
19 years ago
tron
98b51c36e2
(svn r4309) The initial string of the chat box is always the empty string, so don't jump through hoops to check if nothing was entered and simplify the code
19 years ago
celestar
69e1c716e8
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
19 years ago
belugas
ed86c3d818
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
19 years ago
tron
747fe64b31
(svn r4073) Add functions to make and test for (most) unmovable tiles
19 years ago
Darkvater
5f57b49c7e
(svn r3931) - [ 1451726 ] Use sprite names in main_gui.c instead of numbers (matthewwalton)
19 years ago
tron
367b09a1f9
(svn r3827) Remove the global variable _error_message_2, it's only used as local variable
19 years ago
tron
7d9dfc50be
(svn r3749) -Fix: [FS#61] The tooltips for raising and lowering land buttons in the scenario editor are interchanged (Reported and fixed by lc)
19 years ago
tron
1c3e8630fe
(svn r3511) More whitespace ([FS#46] by Rubidium)
19 years ago
tron
9712d6f639
(svn r3510) Fiddle with whitespace and parentheses
19 years ago
peter1138
35c5be0e45
(svn r3414) - Fix: Disable the Fund New Industry menu item and window when connected to a server as a spectator.
19 years ago
truelight
45a0cc607c
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
...
-Fix: [ FS#30 ] don't reset date in SE when pressing RandomLand (rewrote patch of MeusH, but Peter warned me I should put his name in, so... oh well)
19 years ago
tron
28b8b7e269
(svn r3300) Remove unreachable code - in this case some duplicate breaks
19 years ago
tron
a2533d5ee6
(svn r3298) Remove unused and write-only variables
19 years ago
peter1138
5f3dc36983
(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
19 years ago
bjarni
16e65960b9
(svn r3218) -Feature: Multiheaded train engines will now stay in the same train
...
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead
This fixes the assert when moving multiheaded engines (introduced in r3144)
Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs
-Codechange: train subtype is now a bitmask
This allows fast access to info like if it is a wagon or engine and if it is in front and so on
Note: savegame version bump
19 years ago
tron
45186b1601
(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill
19 years ago
tron
8a3587fa28
(svn r3185) const
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
524fd25cbd
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
19 years ago
tron
53f00c8f9d
(svn r3173) Use the trinary operator and switch to improve readability
...
Also align short cases nicely
19 years ago
tron
81e5b16d71
(svn r3172) static, const
19 years ago
tron
d431d15b34
(svn r3159) Remove the read-only variable _no_button_sound
19 years ago
Darkvater
b76df91152
(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish)
19 years ago
tron
3a925e230f
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
19 years ago
tron
e310aef45f
(svn r3090) Remove long dead pieces of code
19 years ago
bjarni
0f5c8787f8
(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
...
this is a complete rewrite, that makes use of existing commands like build and sell
this means that multiheaded train engines are replaced correctly
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
e3d1e43559
(svn r3049) Replace byte/int/uint by RailType where appropriate
19 years ago
bjarni
3d87a4d7ea
(svn r3027) -Feature: [OSX] command+q now works in main menu (Tobin)
19 years ago
tron
90e33aed22
(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
19 years ago
tron
f0e3072b6c
(svn r2994) Another small hack regarding currencies: add a #define to emulate a variable, that holds the current currency; again this should increase readability
19 years ago
tron
f608232673
(svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1
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
Darkvater
e4ccb2b905
(svn r2958) - Feature: [ 1258971 ] Menu option to toggle console. Mainly for MacOS's or PDA's. (toholio)
19 years ago
Darkvater
78e4cbbfda
(svn r2956) - Fix: [ 1253736 ] creating many town crash to desktop. Now it 'dies' with an ingame error message informing the gamer if it couldn't generate any towns in user-space. Still if it happens during new-game generation it crashes since we don't yet have actions to do in such a circumstance.
19 years ago
Darkvater
80e2126cc6
(svn r2955) Fix: make ottd start with the last resolution you had set (custom) (win32)
19 years ago
tron
2e6db8f0f5
(svn r2887) Fix regression: Two boolean expressions got flipped in r2595, which made it possible to place lighthouses and antennas everywhere BUT clear tiles (found and fixed by _Luca_)
19 years ago
tron
a1a91eb7f7
(svn r2816) Forgot an Id tag and an #include
19 years ago
ludde
9a060a0f24
(svn r2781) Fix some of the issues with variables in .h files.
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