pasky
2d0698633d
(svn r2130) Various spelling fixes in messages.
2005-04-02 16:46:23 +00:00
pasky
8d09a1ae87
(svn r2129) Reverted r2125 and depending revisions (map size selector in the intro window). Will be done in a separate dialog. This also fixes showing of various rail/road-related strings.
2005-04-02 16:40:21 +00:00
pasky
bfe31c32c0
(svn r2128) Kill forgotten CmdSetNewMapSize() stub whose existence was kindly pointed out by TrueLight.
2005-04-02 16:16:00 +00:00
pasky
71b0622cec
(svn r2127) Get rid again of the CmdSetNewMapSize(), which was agreed to be just useless clutter. (Perhaps we should get rid of CmdSetNewLandscapeType() too, but I won't take responsibility for that. ;-)
2005-04-02 15:59:07 +00:00
pasky
f053bbb4f4
(svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector.
2005-04-02 15:03:48 +00:00
pasky
65ed56e970
(svn r2124) Final _select_game_widgets[] reordering, even landscape panels in place now.
2005-04-02 12:45:12 +00:00
pasky
018f6f6f85
(svn r2123) Reordered _select_game_widets[] to follow a sensible order.
2005-04-02 12:19:01 +00:00
pasky
1379dc298e
(svn r2122) Reformatted the widget tables so that they don't look so ugly anymore, especially with different tab widths than 2.
2005-04-02 12:01:25 +00:00
pasky
2857b71214
(svn r2119) - Fix: [ 1172878 ] Trains "Go to depot" button: click twice skip to next order (patch by Loic GUILLOUX). I also added short explanation of OF_/OFB_ difference to order.h.
2005-04-02 01:08:01 +00:00
pasky
16a64d7000
(svn r2111) So, result is bool therefore no need for this horrible == 0 thing.
2005-03-30 12:30:24 +00:00
pasky
7ff930af04
(svn r2110) - Fix: Fixed test for various flags (e.g. newtrains in usset). result is bool so !! any non-zero values before assigning them to it - they apparently didn't fit. ;-)
2005-03-30 12:27:50 +00:00
pasky
e7937998d6
(svn r2107) - Codechange: Cleanup (well, mostly tidyup) ExtChangeIndustryProduction(). These randoms are strange.
2005-03-29 21:42:51 +00:00
pasky
31c36d3dd4
(svn r2090) CheckNewIndustry_Oilwell() -> CheckNewIndustry_Oil() since it was concerning oil rigs and oil rafineries, but specifically NOT oil wells. ;-) Documented that.
2005-03-27 16:19:07 +00:00
pasky
aafb136cd0
(svn r2089) - Codechange: Simplify slopes check in CmdBuildBridge(). Inspired by st3wis' patch 1144746.
2005-03-27 15:56:54 +00:00
pasky
04dc6441aa
(svn r2088) - Fix: [ 1155158 ] Make extmidi command a config option in addition to the compile-time MIDI switch. Patch by macbaine.
2005-03-27 15:42:25 +00:00
pasky
60bb2374d6
(svn r2087) Show also the modified filenames along each change in svn log. Prevents enraging Darkvater, and we show the commit messages along changed files everywhere else too (on IRC and in mail).
2005-03-27 15:13:51 +00:00
pasky
8acc24f000
(svn r2086) - Codechange: Two indentation fixes coming from Loic Guilloux' patch 1171208.
2005-03-27 15:12:26 +00:00
pasky
bf1fd0379c
(svn r2081) I have a real name, too.
2005-03-27 00:42:57 +00:00
pasky
0c5d61bd56
(svn r2080) - Fix: [OldAI] p->ai.state_counter was uint16 but could hold a tile index, therefore overflowing - changed that to uint32 and bumped the savegame revision to 32. It *MIGHT* close bug 1151374 - it certainly caused AI to stop building anything sometimes.
...
- While at it, use TileIndex as the tile index type in AiRemovePlayerRailOrRoad() and AiStateRemoveTrack().
- Make the number of tiles scanned 4*MapSizeX() instead of 1000. It *MIGHT* close bug 1116614.
2005-03-27 00:28:14 +00:00
pasky
8efcba81d7
(svn r2077) - Fix: [ 1170978 ] OS/2 project update: add waypoint.c. (-- Owen Rudge)
2005-03-26 18:12:58 +00:00
pasky
f89984642e
(svn r2074) MouseLoop -> InputLoop(), factor out a real mouse-specific MouseLoop from the new InitLoop() (more in the spirit of HandleKeypress()).
2005-03-26 04:16:39 +00:00
pasky
d4b3469e2f
(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-.
2005-03-26 04:02:50 +00:00
pasky
339785dad7
(svn r2064) - Codechange: GetVehicleSpriteGroup() cleanup - drop overriding_engine, which was around probably only for historical reasons. (Paralellily developed by HackyKid.)
2005-03-25 16:07:35 +00:00
pasky
7fceb7ea86
(svn r2063) Fix: the 0x40 deterministic spritegroup for vehicles was wrong, modified to match the wiki again. (The wiki was partially wrong, too! ;) (Patch by HackyKid.)
2005-03-25 15:31:01 +00:00
pasky
087d78d465
(svn r2033) - Fix: Fix some more desync by saving the town growth frequency iterator _cur_town_iter. Needed to bump a svg revision for that thanks to the braindead SlGlob thing, or at least I don't know how to do it without bumping it.
2005-03-20 00:32:26 +00:00
pasky
ad579912f4
(svn r2021) Fix: Enlarge _cur_town_ctr from byte to uint32 so that all the towns are considered when growing them even for big maps, where much more than 256 towns are around; reported by Tomasz Dubiński <uboottd@hydra.polsl.gliwice.pl>. The savegame still saves just the lowest 8 bits but that doesn't hurt so much.
2005-03-17 23:12:23 +00:00
pasky
e76912303c
(svn r1998) Give penalty 100 to the AI for using foundations (buildonslopes). This prevents it from building long road lines on foundations unless really necessary.
2005-03-12 08:52:40 +00:00
pasky
2d9611f948
(svn r1997) Fixed errorneous tab expansion on the indentation side which happenned in r1993. Pointed out by Tron.
2005-03-12 01:02:17 +00:00
pasky
bf8965a615
(svn r1996) makefile.config -> Makefile.config, that's its name.
2005-03-11 22:48:37 +00:00
pasky
e003532701
(svn r1995) Makefile: Use the install tool instead of mkdir+cp for installing the system-wide stuff, more secure. Based on Peter Brett's patch 1152428.
2005-03-11 22:47:33 +00:00
pasky
89d1c60c3f
(svn r1994) Fix: 1159456 - hopefully prevent the new AI to get stuck in an infinite loop forlorny trying to build its haven. Unintentionally bundled with trivial tidyup.
2005-03-11 22:27:49 +00:00
pasky
f820aa3f60
(svn r1993) Fixed some devious [lack of] tabs usage.
2005-03-11 22:07:20 +00:00
pasky
83df863b6c
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
2005-03-11 19:35:50 +00:00
pasky
e6feb22411
(svn r1980) Check $DESTDIR if $DEST_DIR was not set.
2005-03-09 23:59:18 +00:00
pasky
750a265531
(svn r1975) Minor tweaking of the Czech name generator tables.
2005-03-09 18:19:13 +00:00
pasky
0e367ba541
(svn r1967) Codechange: A mix of mostly indentation-related tidyups.
2005-03-08 22:21:20 +00:00
pasky
bcc9dcd210
(svn r1958) GenerateStationName() tidyup.
2005-03-08 00:26:30 +00:00
pasky
f2e45daf54
(svn r1957) Compilation fix.
2005-03-08 00:18:31 +00:00
pasky
0e4828e732
(svn r1955) Fix: Make the town growth frequency scale properly both up and down. The scaling is now also based on the number of towns instead of the map size. (In cooperation with HackyKid.)
2005-03-07 13:20:22 +00:00
pasky
771bd349cb
(svn r1954) Fix: The new AI now does not think it can connect to the road by building its piece of road above the end of a tunnel anymore.
2005-03-07 11:36:05 +00:00
pasky
6c60ff92ff
(svn r1953) Codechange: Tidyup, reduced ridiculous indentation levels, some sprintf()s replced by snprintf()s.
2005-03-07 00:39:41 +00:00
pasky
f1f1783aa8
(svn r1952) Fix: Hopefully fixed the enormous towns growth slowdown in large maps. (Inspired by toholio.)
2005-03-06 23:46:52 +00:00
pasky
028ef2b5b5
(svn r1951) Introduced SeedModChance() (which is like SeedChance() but uses simple modulo instead of bitshifting and multiplication), explained why does it work better, used it in MakeCzechTownName() and added a TODO note about possibly using it in the other town name generators too.
2005-03-06 23:21:57 +00:00
pasky
6902a8b294
(svn r1950) Fix: A slight adjustment in the DoRandom() function which however causes dramatic improvement in the distribution of random numbers.
...
With the original generator, e.g. Random()%44 on 100 attempts regularily
generated only 22 different values! With this adjustment, the distribution is
much more uniform, almost approaching the glibc's random() call.
This means the random numbers are actually usable i.e. for the town names
generators which almost never tried a large part of the names while others were
very frequent.
Note that we attempted to test whether the randomness did not degrade in some
other way, and it came clean from the tests we performed. If you spot anything
fishy, try without this patch, though.
2005-03-06 22:28:35 +00:00
pasky
feb907d225
(svn r1949) Fixed the CzechChoose usage in the Czech word tables. Now selecting colours actually works.
2005-03-06 21:20:34 +00:00
pasky
bb5b89eb26
(svn r1948) Add an explicit copyright notice regarding the Czech town names generator and an offer to help. :-)
2005-03-06 17:09:08 +00:00
pasky
a0c157eea8
(svn r1947) As in r1946, permit DC_QUERY_COST even on non-depot tiles - so that it works for the ai_new. It is de iure not a bug yet but let's be safe against future annoying headaches. Signed-Off-By: TrueLight
2005-03-06 16:58:42 +00:00
pasky
4a6a7028a9
(svn r1946) Fix: [AInew] Allow DC_QUERY_COST even on tiles with no depot built. This is used by the ai_new for deciding if it can afford the vehicles before actually building the depot. Was broken in r1728. Signed-Off-By: TrueLight ;-)
2005-03-06 16:53:00 +00:00
pasky
97b2635e7d
(svn r1944) Make --help output for -d at least somewhat useful.
2005-03-06 16:08:19 +00:00
pasky
39743082b4
(svn r1943) Show the sprite ID in the check_length() error message. Also show the correct sprite ID in the spriteskip notice.
2005-03-06 15:22:28 +00:00
pasky
7ee6d0fa62
(svn r1941) Report missing NewGRF file as a fatal error.
2005-03-06 13:57:19 +00:00
pasky
0ae7df4a95
(svn r1940) TODO about usrerror().
2005-03-06 13:55:40 +00:00
pasky
71906d09b7
(svn r1932) Fix: [SDL] On Linux console, the backquote scancode is 41. Let's hope nothing conflicts with it in X.
2005-03-06 00:39:38 +00:00
pasky
fb98c932b2
(svn r1931) Added Krystofova, Udoli and Hut. Zdar is s. masc., not s. neut.
2005-03-05 22:21:43 +00:00
pasky
2a78d3efa9
(svn r1930) Cleaned up the postfix-ending connecting code and introduced some simple postfix-last-letter transformations when the ending first letter is 'i'.
2005-03-05 22:21:02 +00:00
pasky
d0f9cc27a3
(svn r1929) Feature: [namegen] Support for dynamic generation of the Czech town names.
...
The static names are still used in 1/4 of cases. I think the tables for
dynamic generation must look pretty spectacular. :-) New stems are still
needed and there can be occasional glitches, please let me know.
I guess that this method of dynamic generation could be used for at least
Slovak town names, too. And possibly other Slavic languages?
2005-03-05 21:00:13 +00:00
pasky
01fd7eb861
(svn r1926) Codechange: Renamed some of the predefined town names arrays for consistent naming.
...
- name_spanish_1, name_french_1, name_czech_1, name_romanian_1, name_finnish_1
and name_german_hardcoded were renamed to *_real.
- name_slovakish_1 was renamed to name_slovak_real.
- name_finnish_2[ab] was renamed to name_finnish[12].
- Added comment near the town_names setting definition about the "Slovakish"
pigginess.
2005-03-05 14:54:11 +00:00
pasky
b5a96ff9c1
(svn r1925) Fixed an infinite loop if the town generator runs out of town names. The number of generated towns is then limited by the number of available names.
2005-03-05 13:49:43 +00:00
pasky
ccbb6263ea
(svn r1917) - Makefile: Revamped VERBOSE support, build mechanics changed.
...
- VERBOSE has now greater effect, many previously hidden commands
are now shown on the terminal as they are executed. (Use $(Q)
instead of @ where the command should be shown if VERBOSE.)
- Compilation commands redundancy was eliminated.
- Compilation commands calling generalized so that the VERBOSE
support does not further entangle the code. The commands are now
all at a single place, before the targets in a "Build commands"
section.
Note that this changeset has a character of proposal. If you do not
like the direction it takes at all, feel free to revert it (probably
together with the previous VERBOSE patch). However, I believe it
improves the code by bringing the compilation commands to a single
place and it greatly improves the VERBOSE support, too (and makes it
much less intrusive).
2005-03-01 01:14:27 +00:00
pasky
053d1bade3
(svn r1916) Fix compilation on the glibc-2.2 systems. Part of the inspiration comes from patch 1149710 by Mr. Nobody. Also fixes the comment describing what to do if one's system doesn't have ifaddrs.h.
2005-02-28 22:33:31 +00:00
pasky
694741f441
(svn r1915) Support for a VERBOSE flag which will make the full compiler invocations to be shown instead of ===> Brief summaries.
2005-02-28 21:54:04 +00:00
pasky
97c533eb9c
(svn r831) Remove station-specific roadbits magic. Tron already fixed road stations so that they don't give out roadbits in r780.
2004-11-26 22:29:02 +00:00
pasky
0554031514
(svn r830) Move the MP_STATION roadbits guard to GetTownRoadBitsByTile() wrapper of GetRoadBitsByTile(). This should really and for once fix the road-behind-road-station bug.
2004-11-26 22:21:12 +00:00
pasky
08e16d966a
(svn r828) Everyone welcome table/sprites.h in trunk - so far not in use besides enum AnimCursors migrated from viewport.h and tiny fragment of enum Sprites migrated from ttd.h (we should slowly convert trunk to use the symbolic names instead of sprite numbers too to reduce the delta to map). Ported from the map branch, where the work was done by Darkvater, Celestar and Tron.
2004-11-26 21:14:42 +00:00
pasky
2214a9df5c
(svn r773) When refitting a train engine, refit also all the attached wagons which can be refitted (applicable to DBSetXL, as shown in http://pasky.or.cz/~pasky/dev/openttd/screenshots/wagrefit.png ). This is how TTDPatch does it, pointed out by Bjarni.
2004-11-22 23:05:34 +00:00
pasky
34c89d6896
(svn r772) Whoops, I know. Do not consider pointer to be a boolean value. Sorry 'bout that, sirs.
2004-11-22 22:52:01 +00:00
pasky
f012e15c95
(svn r771) Do not give a file new {struct GRFFile} if it was already loaded once. Eliminates those double entries in the newgrf manager and also some possible memory leaks.
2004-11-22 22:51:19 +00:00
pasky
4beb4ae2bc
(svn r769) Fixed a tiny mistake in the _userstring boundary check. Let's hope I got it right this time.
2004-11-22 21:53:19 +00:00
pasky
bf587e9aac
(svn r768) In the NewGRF manager, show GRF ids as 8-digit hex numbers (that's how they are supposed to look).
2004-11-22 21:48:40 +00:00
pasky
3ee0dee12a
(svn r767) Introduce USERSTRING_LEN (128) and try to make sure we don't overflow it anywhere (as long as we keep USERSTRING_LEN above 7 or so).
2004-11-22 21:41:25 +00:00
pasky
bf6dace925
(svn r703) Attempt to improve the town growth algorithm - now it scales over 76 houses, is slightly exponential and travels further for larger towns.
2004-11-20 11:57:45 +00:00
pasky
578bde9aae
(svn r698) Merge a town growth fix from TTDPatch - in arctic and desert climate, require food (and possibly water) only if the population is more than 90, so that the town gets chance to actually accept it. (By Marcin?)
2004-11-20 02:36:10 +00:00
pasky
e1c1036648
(svn r697) Fix the town road removal crash _still_ present there.
2004-11-20 02:25:31 +00:00
pasky
5650257c0c
(svn r696) Do not consider a road station as street when growing the town.
2004-11-20 01:49:42 +00:00
pasky
7a8fb5d2fd
(svn r694) Make the town sometimes build streets on slopes.
2004-11-20 01:08:41 +00:00
pasky
d9096f9ea4
(svn r688) Fix eol-style (hopefully).
2004-11-19 22:59:31 +00:00
pasky
989fd10d06
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
2004-11-19 22:53:18 +00:00
pasky
ad068622fb
(svn r681) Support for VERBOSE configuration variable which shows the commands actually used for compilation.
2004-11-19 22:29:30 +00:00
pasky
0f7e48ead2
(svn r679) Clarify bp.sprite assignment in GfxMainBlitter(). Pointed out by Oskar.
2004-11-19 21:57:02 +00:00