95463428c8
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
2005-07-15 21:28:26 +00:00
bc11fe03ee
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
2005-07-15 21:28:26 +00:00
c496d92c3e
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
Darkvater
2005-07-15 21:17:38 +00:00
4ea2214993
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
Darkvater
2005-07-15 21:17:38 +00:00
71f9078bdd
(svn r2583) Move OS specific code out of misc.c Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
ludde
2005-07-15 20:29:06 +00:00
fd0cee7418
(svn r2583) Move OS specific code out of misc.c Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
ludde
2005-07-15 20:29:06 +00:00
c964809d37
(svn r2582) Fix: Prevent generating unrealistically many Oil refineries on large maps. They are always placed next to the borderline, so the perimeter is used instead of area to scale the number of those industries.
ludde
2005-07-15 19:51:54 +00:00
ac4f823b54
(svn r2582) Fix: Prevent generating unrealistically many Oil refineries on large maps. They are always placed next to the borderline, so the perimeter is used instead of area to scale the number of those industries.
ludde
2005-07-15 19:51:54 +00:00
6a3f58e050
(svn r2581) Fix: Behave a bit safer if central server sends bogus information about clients. Change: Made code a little bit more readable by putting _selected_item in a local var with a shorter name.
ludde
2005-07-15 18:43:39 +00:00
bb82f5e5d4
(svn r2581) Fix: Behave a bit safer if central server sends bogus information about clients. Change: Made code a little bit more readable by putting _selected_item in a local var with a shorter name.
ludde
2005-07-15 18:43:39 +00:00
3486e7e9d5
(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
ludde
2005-07-15 18:30:13 +00:00
dc3ca73bd5
(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
ludde
2005-07-15 18:30:13 +00:00
157addf5e9
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
ludde
2005-07-15 17:59:55 +00:00
843670cfdf
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
ludde
2005-07-15 17:59:55 +00:00
ab51051fcf
(svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook
celestar
2005-07-15 16:50:39 +00:00
93bf35708d
(svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook
celestar
2005-07-15 16:50:39 +00:00
20e60e5411
(svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1)
ludde
2005-07-15 16:29:30 +00:00
31fd5b2768
(svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1)
ludde
2005-07-15 16:29:30 +00:00
a069876725
(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
ludde
2005-07-15 15:09:52 +00:00
6246619185
(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
ludde
2005-07-15 15:09:52 +00:00
2fa79c9b4d
(svn r2572) - Codechange: [string] Changed string system so it's not as dependent on decode_parameters - Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals.
ludde
2005-07-15 14:53:44 +00:00
275e2f477a
(svn r2572) - Codechange: [string] Changed string system so it's not as dependent on decode_parameters - Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals.
ludde
2005-07-15 14:53:44 +00:00
8f71864bef
(svn r2571) Add explicit type Pixel for ... Pixels
tron
2005-07-15 14:16:14 +00:00
462b0d6686
(svn r2571) Add explicit type Pixel for ... Pixels
tron
2005-07-15 14:16:14 +00:00
b21ee889fe
(svn r2570) Fix: Removed some code that had no effect.
ludde
2005-07-15 12:16:16 +00:00
ddc939f0ed
(svn r2570) Fix: Removed some code that had no effect.
ludde
2005-07-15 12:16:16 +00:00
a9b4e7963b
(svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines
tron
2005-07-15 09:01:23 +00:00
837c7ac25e
(svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines
tron
2005-07-15 09:01:23 +00:00
a9aa4dc61b
(svn r2568) Small cleanup in strgen: static, bracing, ...
tron
2005-07-15 07:48:17 +00:00
c67ddfd327
(svn r2568) Small cleanup in strgen: static, bracing, ...
tron
2005-07-15 07:48:17 +00:00
b4f549f4ee
(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway
tron
2005-07-14 15:10:20 +00:00
d364efea27
(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway
tron
2005-07-14 15:10:20 +00:00
53851d5e77
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
ludde
2005-07-14 09:53:52 +00:00
20b7c66f7f
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
ludde
2005-07-14 09:53:52 +00:00
3e62457107
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state". Added a way to bind a C-string to an openttd string which doesn't modify the game state.
ludde
2005-07-14 09:43:59 +00:00
8086017097
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state". Added a way to bind a C-string to an openttd string which doesn't modify the game state.
ludde
2005-07-14 09:43:59 +00:00
1a046ff4c6
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
tron
2005-07-14 06:10:23 +00:00
f901882638
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
tron
2005-07-14 06:10:23 +00:00
be98b1bf7e
(svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now.
ludde
2005-07-13 20:41:44 +00:00
404575e4d3
(svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now.
ludde
2005-07-13 20:41:44 +00:00
a1ec4aff77
(svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore.
ludde
2005-07-13 20:35:52 +00:00
569a03dd34
(svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore.
ludde
2005-07-13 20:35:52 +00:00
6013b327f7
(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.
ludde
2005-07-13 19:51:31 +00:00
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.
ludde
2005-07-13 19:51:31 +00:00
4b006aa6cf
(svn r2559) Cleaned up new saveload code for the map
ludde
2005-07-13 18:46:51 +00:00
ca9d0f9841
(svn r2559) Cleaned up new saveload code for the map
ludde
2005-07-13 18:46:51 +00:00
8c1d74162f
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
tron
2005-07-13 18:04:01 +00:00
a4bf608d40
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
tron
2005-07-13 18:04:01 +00:00
1a1dde7c8d
(svn r2557) -Add: Added the AUTOBRIEF option to the Doxyfile
celestar
2005-07-13 09:51:01 +00:00
fd0780eeef
(svn r2557) -Add: Added the AUTOBRIEF option to the Doxyfile
celestar
2005-07-13 09:51:01 +00:00
4c8e6bbbb3
(svn r2556) -Fix: update newline style of new files to native. Don't forget this when you add a new file! 'svn ps svn:eol-style native <file>'
Darkvater
2005-07-12 21:27:56 +00:00
11ee6a8dfc
(svn r2556) -Fix: update newline style of new files to native. Don't forget this when you add a new file! 'svn ps svn:eol-style native <file>'
Darkvater
2005-07-12 21:27:56 +00:00
9c94a0ed6f
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
tron
2005-07-12 21:13:30 +00:00
2dd3247a4a
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
tron
2005-07-12 21:13:30 +00:00
ebe3b89b98
(svn r2554) - Fix: [pathfinding] Change to using some helper functions for checking the railtype.
ludde
2005-07-12 20:41:17 +00:00
c62563bc5c
(svn r2554) - Fix: [pathfinding] Change to using some helper functions for checking the railtype.
ludde
2005-07-12 20:41:17 +00:00
f523be81d4
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder. - Penalties for red signals and for slopes. - Increased the search depth to work better with large train networks.
ludde
2005-07-12 20:28:19 +00:00
7bcce65053
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder. - Penalties for red signals and for slopes. - Increased the search depth to work better with large train networks.
ludde
2005-07-12 20:28:19 +00:00
dc9b51f110
(svn r2552) - Fix: [map] Fix so the code compiles correctly and doesn't crash on MSVC6 in optimization mode.
ludde
2005-07-12 19:57:41 +00:00
f8c6d84f0b
(svn r2552) - Fix: [map] Fix so the code compiles correctly and doesn't crash on MSVC6 in optimization mode.
ludde
2005-07-12 19:57:41 +00:00
9a1b3fc181
(svn r2551) [Translations] Added slovenian language (~20% complete)
miham
2005-07-12 19:51:58 +00:00
70c2bfe223
(svn r2551) [Translations] Added slovenian language (~20% complete)
miham
2005-07-12 19:51:58 +00:00
b5a30ed0fc
(svn r2550) raise 32767 limit of gamma values, and 16MB limit of RIFF chunks in saveload code.
ludde
2005-07-12 19:15:56 +00:00
03bd8afc58
(svn r2550) raise 32767 limit of gamma values, and 16MB limit of RIFF chunks in saveload code.
ludde
2005-07-12 19:15:56 +00:00
b867b113cc
(svn r2548) -Fix: blinking 'lock' gfx in multiplayer games. Some pixels had special values that triggered palette-change
Darkvater
2005-07-12 10:50:56 +00:00
8bd4fc8684
(svn r2548) -Fix: blinking 'lock' gfx in multiplayer games. Some pixels had special values that triggered palette-change
Darkvater
2005-07-12 10:50:56 +00:00
9c3188741f
(svn r2546) Don't calculate a value which never gets used and simplify some calculations
tron
2005-07-11 15:47:20 +00:00
1780afa4c8
(svn r2546) Don't calculate a value which never gets used and simplify some calculations
tron
2005-07-11 15:47:20 +00:00
f479013b14
(svn r2545) -Fix: Modified the Doxyfile so that it works on other computers (than mine) as well :)
celestar
2005-07-11 09:12:41 +00:00
a2c6ccb0d9
(svn r2545) -Fix: Modified the Doxyfile so that it works on other computers (than mine) as well :)
celestar
2005-07-11 09:12:41 +00:00
a63bb6f650
(svn r2544) -Add: Added the Doxyfile to the trunk. run "doxygen" to generate html-based documentation on the source code on the fly (about 9MB in size currently). documentation will be stored in docs/source/html/ (request by blathijs)
celestar
2005-07-11 09:00:49 +00:00
f2e4b6b2f6
(svn r2544) -Add: Added the Doxyfile to the trunk. run "doxygen" to generate html-based documentation on the source code on the fly (about 9MB in size currently). documentation will be stored in docs/source/html/ (request by blathijs)
celestar
2005-07-11 09:00:49 +00:00
3c9456dd45
(svn r2542) -Add: [GPMI] Added GPMI (http://sourceforge.net/projects/libgpmi/) support to OpenTTD in preperation of AIScripts (long term). It is OFF by default. Add GPMI:=1 to Makefile.config to enable.
truelight
2005-07-10 14:57:43 +00:00
48b3b8699d
(svn r2542) -Add: [GPMI] Added GPMI (http://sourceforge.net/projects/libgpmi/) support to OpenTTD in preperation of AIScripts (long term). It is OFF by default. Add GPMI:=1 to Makefile.config to enable.
truelight
2005-07-10 14:57:43 +00:00
b45eee3157
(svn r2541) -Feature: Modified IsCompatibleRail so that an engine can move on more than one railtype (like Diesel engines on electrified rail). -Codechange: Use IsCompatibleRail where it should be used
celestar
2005-07-10 01:25:17 +00:00
84faec4c43
(svn r2541) -Feature: Modified IsCompatibleRail so that an engine can move on more than one railtype (like Diesel engines on electrified rail). -Codechange: Use IsCompatibleRail where it should be used
celestar
2005-07-10 01:25:17 +00:00
ff0383dace
(svn r2539) * Fix: Mixed up use of trackdirs and directions in GetTileRailType() causes NPF to not consider routes under bridges.
matthijs
2005-07-09 13:45:21 +00:00
405ca1ea4d
(svn r2539) * Fix: Mixed up use of trackdirs and directions in GetTileRailType() causes NPF to not consider routes under bridges.
matthijs
2005-07-09 13:45:21 +00:00
418e032fac
(svn r2538) - Fix: Use IsCompatibleRailType() function instead of checking this yourself.
hackykid
2005-07-09 11:39:35 +00:00
3091f97c41
(svn r2538) - Fix: Use IsCompatibleRailType() function instead of checking this yourself.
hackykid
2005-07-09 11:39:35 +00:00
6cef71b1b2
(svn r2537) Small changes, especially use fprintf to stderr for warnings and errors instead of plain printf
tron
2005-07-09 09:24:34 +00:00
d7c0bf20d2
(svn r2537) Small changes, especially use fprintf to stderr for warnings and errors instead of plain printf
tron
2005-07-09 09:24:34 +00:00
6a645a3eb8
(svn r2536) - Fix: [ 1215999 ] Segmentation fault in main menu - corrupted sample.cat. Flush the output buffer to print the error message before the game crashes. (mcmohr)
Darkvater
2005-07-09 00:14:40 +00:00
93a3b7e0a1
(svn r2536) - Fix: [ 1215999 ] Segmentation fault in main menu - corrupted sample.cat. Flush the output buffer to print the error message before the game crashes. (mcmohr)
Darkvater
2005-07-09 00:14:40 +00:00
1b4a0897b6
(svn r2535) Tabs
tron
2005-07-08 22:25:24 +00:00
1307f90b5e
(svn r2535) Tabs
tron
2005-07-08 22:25:24 +00:00