tron
27888c0694
(svn r3769) Add a cast to make KUDr's C++ compiler happy
2006-03-05 12:54:22 +00:00
tron
f6176a89f9
(svn r3767) Move all direction related enums and functions to a separate header
2006-03-05 12:34:55 +00:00
tron
586388c9f1
(svn r3767) Move all direction related enums and functions to a separate header
2006-03-05 12:34:55 +00:00
tron
4da99989b9
(svn r3766) Add a function to get the RoadBits from an arbitrary tile
2006-03-05 12:22:20 +00:00
tron
f007ad282c
(svn r3766) Add a function to get the RoadBits from an arbitrary tile
2006-03-05 12:22:20 +00:00
tron
62abd9c1e2
(svn r3765) Fix some naming glitches in r3763 and add missing svn properties
2006-03-05 11:18:34 +00:00
tron
ebec656110
(svn r3765) Fix some naming glitches in r3763 and add missing svn properties
2006-03-05 11:18:34 +00:00
tron
4efa560ffc
(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
2006-03-05 10:19:33 +00:00
tron
cc4f5b4e6f
(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
2006-03-05 10:19:33 +00:00
tron
6394725ae8
(svn r3761) Fix two bugs in r3757
2006-03-04 17:18:13 +00:00
tron
5913c3931b
(svn r3761) Fix two bugs in r3757
2006-03-04 17:18:13 +00:00
tron
8d3e42fe3c
(svn r3760) Replace some magic numbers for checking for a suitable slope for a level crossing by some less magic numbers. Quite similar to r3699, though this time for placing the rails
2006-03-04 13:52:52 +00:00
tron
d49ad36ed8
(svn r3760) Replace some magic numbers for checking for a suitable slope for a level crossing by some less magic numbers. Quite similar to r3699, though this time for placing the rails
2006-03-04 13:52:52 +00:00
bjarni
1ebf2fd175
(svn r3759) -Fix: [OSX] don't set CC_HOST to i686 gcc when compiling universal binaries on PPC without any Makefile.config. Introduced in 3674 (before that i686 used PPC as CC_HOST, but nobody noticed that)
2006-03-04 12:09:10 +00:00
bjarni
f4cf9b0a91
(svn r3759) -Fix: [OSX] don't set CC_HOST to i686 gcc when compiling universal binaries on PPC without any Makefile.config. Introduced in 3674 (before that i686 used PPC as CC_HOST, but nobody noticed that)
2006-03-04 12:09:10 +00:00
tron
ca0862c3f4
(svn r3758) Remove the news validation callback. It is superseded by r3757.
2006-03-04 11:15:44 +00:00
tron
87fdb129d2
(svn r3758) Remove the news validation callback. It is superseded by r3757.
2006-03-04 11:15:44 +00:00
tron
332b54d5a6
(svn r3757) -Feature: Delete news items about vehicles, when they get stale
...
This is used to delete
- all news about a vehicle, when it gets deleted
- "vehicle has stopped in depot" news, when it gets started
- "vehicle has invalid orders" news, when the orders get changed
2006-03-04 11:01:35 +00:00
tron
4270026b42
(svn r3757) -Feature: Delete news items about vehicles, when they get stale
...
This is used to delete
- all news about a vehicle, when it gets deleted
- "vehicle has stopped in depot" news, when it gets started
- "vehicle has invalid orders" news, when the orders get changed
2006-03-04 11:01:35 +00:00
tron
f383a038f0
(svn r3754) Miscellaneous changes: indentation, reduce variable scope, constness, avoid some more function pointer casts
2006-03-03 22:21:29 +00:00
tron
006444a0dc
(svn r3754) Miscellaneous changes: indentation, reduce variable scope, constness, avoid some more function pointer casts
2006-03-03 22:21:29 +00:00
tron
622b4d4036
(svn r3752) FYOS avoid to cast function pointers
2006-03-03 21:29:13 +00:00
tron
62f5386d91
(svn r3752) FYOS avoid to cast function pointers
2006-03-03 21:29:13 +00:00
tron
36467a4bcf
(svn r3751) -Fix: Correctly implement minimum search, so road vehicles head twoards the closest station, not the last one in the list
2006-03-03 21:18:19 +00:00
tron
c91a2e0f26
(svn r3751) -Fix: Correctly implement minimum search, so road vehicles head twoards the closest station, not the last one in the list
2006-03-03 21:18:19 +00:00
tron
2942939ad1
(svn r3750) Use INVALID_STATION instead of -1 in NPF
2006-03-03 20:54:54 +00:00
tron
08720b6fd7
(svn r3750) Use INVALID_STATION instead of -1 in NPF
2006-03-03 20:54:54 +00:00
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)
2006-03-03 20:48:03 +00:00
tron
4ebaa55fe1
(svn r3749) -Fix: [FS#61] The tooltips for raising and lowering land buttons in the scenario editor are interchanged (Reported and fixed by lc)
2006-03-03 20:48:03 +00:00
tron
9261a179c9
(svn r3748) Remove bubblesort(), it's unused
2006-03-03 20:43:54 +00:00
tron
7579d1faa9
(svn r3748) Remove bubblesort(), it's unused
2006-03-03 20:43:54 +00:00
tron
d851781663
(svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)
2006-03-03 19:42:09 +00:00
tron
40fd4377b0
(svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)
2006-03-03 19:42:09 +00:00
Darkvater
eeb2b7cd11
(svn r3746) - [7/7] Moving the callback functions for the setting-changes from settings_gui.c to settings.c. Also enable the callback functionality through the console.
...
- Fix a nasty bug with improper counter addition. (*i)++ and NOT *i++ when setting a patch value through the console.
2006-03-03 11:27:18 +00:00
Darkvater
5b0e6f90a9
(svn r3746) - [7/7] Moving the callback functions for the setting-changes from settings_gui.c to settings.c. Also enable the callback functionality through the console.
...
- Fix a nasty bug with improper counter addition. (*i)++ and NOT *i++ when setting a patch value through the console.
2006-03-03 11:27:18 +00:00
tron
6305db895e
(svn r3745) Fix two buffer overflows, one case of undefined behavior (the destination buffer of sprintf() may not alias with one of its arguments) and some other minor stuff introduced in r3740
2006-03-03 07:51:41 +00:00
tron
72e28805b8
(svn r3745) Fix two buffer overflows, one case of undefined behavior (the destination buffer of sprintf() may not alias with one of its arguments) and some other minor stuff introduced in r3740
2006-03-03 07:51:41 +00:00
bjarni
4db34f71c3
(svn r3742) -codechange: [OSX] changed an assert to use the new error window and added another two to show if the screen buffer fails for some reason in cocoa driver (instead of just crashing)
2006-03-02 22:21:27 +00:00
bjarni
dcdfa496d5
(svn r3742) -codechange: [OSX] changed an assert to use the new error window and added another two to show if the screen buffer fails for some reason in cocoa driver (instead of just crashing)
2006-03-02 22:21:27 +00:00
bjarni
e8f85b50f0
(svn r3741) -Fix: [i686 OSX] reverted the change in rev 3670 for non PowerPC (done with #ifdef) since it appeared to crash intel based macs
...
This fix is not a good solution and might not work, but if it works, it's better than nothing until we get the real solution
2006-03-02 22:00:57 +00:00
bjarni
e29a435226
(svn r3741) -Fix: [i686 OSX] reverted the change in rev 3670 for non PowerPC (done with #ifdef) since it appeared to crash intel based macs
...
This fix is not a good solution and might not work, but if it works, it's better than nothing until we get the real solution
2006-03-02 22:00:57 +00:00
bjarni
a8a8cf7b56
(svn r3740) -Feature: [OSX] added OS version, CPU type and newGRF settings to assert window and a message to tell people to add that to a bug report
...
It also adds a new error window, which can be used just like assert, but it is also active when asserts are turned off
This is useful for places where it's really important to check even if assert is turned off. It's not used in the code yet
2006-03-02 21:43:09 +00:00
bjarni
1931b8ea96
(svn r3740) -Feature: [OSX] added OS version, CPU type and newGRF settings to assert window and a message to tell people to add that to a bug report
...
It also adds a new error window, which can be used just like assert, but it is also active when asserts are turned off
This is useful for places where it's really important to check even if assert is turned off. It's not used in the code yet
2006-03-02 21:43:09 +00:00
bjarni
ed1a2c9541
(svn r3739) -Fix: [Big endian CPUs] fixed bug introduced in rev 3720 where BE computers would read insane map sizes and crash as a result
2006-03-02 21:27:20 +00:00
bjarni
8878ab2e9a
(svn r3739) -Fix: [Big endian CPUs] fixed bug introduced in rev 3720 where BE computers would read insane map sizes and crash as a result
2006-03-02 21:27:20 +00:00
tron
8cf4fe9cdf
(svn r3733) Fix a bug in r3719, which caused a crash when the default value for a SLE_VAR_CHAR setting was used
2006-03-02 14:45:35 +00:00
tron
57aa648a0e
(svn r3733) Fix a bug in r3719, which caused a crash when the default value for a SLE_VAR_CHAR setting was used
2006-03-02 14:45:35 +00:00
Darkvater
d1a6223365
(svn r3732) - Fix two warnings. Stupid MSVC didn't even complain :s (Thank Tron and peter1138)
...
- NOTE! There are a few warnings left in settings_gui because tha callback functions are disabled. I still need a good place for them.
2006-03-02 09:57:28 +00:00
Darkvater
9bbe6876ba
(svn r3732) - Fix two warnings. Stupid MSVC didn't even complain :s (Thank Tron and peter1138)
...
- NOTE! There are a few warnings left in settings_gui because tha callback functions are disabled. I still need a good place for them.
2006-03-02 09:57:28 +00:00
celestar
db4777c818
(svn r3730) Multistop modifications:
...
-Codechange: Completely rewritten the slot assignment system. It now consumes less CPU cycles and memory
-Codechange: Increased maximum number of roadstops to 16.
-Fix: Several conditions where a slot becomes unliked from a vehicle
-Codechange: ClearSlot now only takes one parameter, the vehicle
-Feature: Console command 'clearslots' to clear ALL currently assinged slots. debug usage only
-Feature: vehicles that cannot get a slot now wait on the road instead of planlessly blocking stops or circling around
-Codechange: Adjusted debug levels
TODO: Make the slot finder compatible with (a) pathfinder(s).
2006-03-02 08:55:12 +00:00