Yexo and Yexo
1507902d00
Codechange: remove has_newindustries global
2020-06-01 22:46:06 +02:00
Yexo and Yexo
ce618bf7e9
Codechange: replace custom timer and OnGameTick() with OnHundrethTick()
2020-06-01 22:46:06 +02:00
Yexo and Yexo
a82572d0f5
Codechange: remove has_newhouses global
2020-06-01 22:46:06 +02:00
Yexo and Yexo
f827bc8c1a
Fix #8166 : don't crash on loading an invalid roadtype newgrf
...
Initialization code for GRFFile::roadtype_map was copied from
railtype_map. But while RailType is a byte-sized enum and could thus
be initialized via memset, RoadType doesn't have a defined size.
2020-06-01 12:44:02 +02:00
Yexo and Yexo
a9b3312d1a
Fix #8024 : make online content gui more responsive while loading
...
Previously the internal content list was invalidated and sorted for
every new item added. Now the sorting is delayed until the GUI is
drawn, which means we only sort once per GUI tick.
Since the amount of incoming items per GUI tick is not controlled by
the GUI but rather by network speed, we were previously doing a lot
of duplicate work per tick, causing the mouse cursor to lag while
the list was initialized.
2020-06-01 10:59:11 +02:00
Yexo and Yexo
64278fd598
Fix: reset roadtype/streetcartype info for non-road bridges
2020-05-06 22:10:08 +02:00
Yexo and Yexo
19dc31e0b3
Fix #8108 : always update tile_hash after updating v->tile
2020-05-04 23:26:50 +02:00
yexo
3439769fef
(svn r24660) -Feature: do not display the preview window for disabled vehicle types (Eagle_rainbow)
2012-11-01 22:42:29 +00:00
yexo
73858a75b3
(svn r24650) -Fix (r24647, r24648): fixing logic errors is hard
2012-10-29 20:23:17 +00:00
yexo
c094371963
(svn r24649) -Fix (r24647): wrong version of strings got committed
2012-10-29 20:22:48 +00:00
yexo
c4fa82adba
(svn r24648) -Fix (r24647): svn diff != ||
2012-10-29 20:08:30 +00:00
yexo
23054a3ab5
(svn r24647) -Feature: add new filter option to the advanced settings window to show only changed settings (Eagle_rainbow)
2012-10-29 19:53:13 +00:00
yexo
2f042ea198
(svn r24593) -Fix [FS#5333]: crash when a gamescript provided too many parameters to a GSText object
2012-10-14 15:18:09 +00:00
yexo
b490d5ceab
(svn r24541) -Cleanup [FS#5260]: remove unused function GetGroupArraySize (juanjo)
2012-09-21 20:31:42 +00:00
yexo
6853df46c7
(svn r24539) -Codechange [FS#5260]: make code simpler by using IsValidTile instead of manually checking the bounds (juanjo)
2012-09-21 20:28:23 +00:00
yexo
d70ecf609c
(svn r24538) -Fix-ish: remove compiler warning about initialization order
2012-09-21 20:27:09 +00:00
yexo
1f75f81a41
(svn r24524) -Fix [FS#5296]: fix some compile problems in mac-only code (__ln__)
2012-09-13 18:42:33 +00:00
yexo
7284d716bc
(svn r24490) -Fix (r24487): forgot to run script/api/squirrel_export.sh
2012-08-21 19:03:11 +00:00
yexo
053770d4a6
(svn r24488) -Feature [FS#5236]: add buttons to view textfiles from the online content window (LordAro)
2012-08-20 21:03:50 +00:00
yexo
fe31aa28c4
(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the path instead of a boolean (LordAro)
2012-08-20 21:01:40 +00:00
yexo
245baf820e
(svn r24469) -Fix (r24468): forgot to svn add the new files
2012-08-13 19:33:17 +00:00
yexo
54aa43c81b
(svn r24468) -Add [FS#5219]: API compatibility scripts for Goal Scripts (Hirundo)
2012-08-13 19:22:26 +00:00
yexo
5192155253
(svn r24467) -Codechange [FS#5236]: make textfile window class slightly more general (LordAro)
2012-08-13 18:52:47 +00:00
yexo
483d878d5f
(svn r24466) -Codechange [FS#5236]: add general function for ContentType -> Subdirectory conversion (LordAro)
2012-08-13 18:49:38 +00:00
yexo
620a96f77f
(svn r24031) -Feature: increase the station class limit from 32 to 256
2012-03-15 22:42:28 +00:00
yexo
1f0593e7ca
(svn r24029) -Change: [NoAI] make AIEngine::IsArticulated return true if the articulated callback flag is set, don't try to run the callback.
2012-03-14 20:49:54 +00:00
yexo
f917ac0a0f
(svn r23830) -Revert (r23804) [FS#4986]: while the idea was good, it causes too much trouble
2012-01-21 13:57:24 +00:00
yexo
2c99805117
(svn r23816) -Fix (r23635, r23805): make SCC_ENCODED the first entry in the StringControlCode enum since it's value is not allowed to change
2012-01-16 22:29:25 +00:00
yexo
44ddde6fa1
(svn r23813) -Codechange: fix other language files
2012-01-15 19:30:27 +00:00
yexo
fab78a7bf2
(svn r23812) -Fix [FS#4977] (r23804): custom ActionB messages were broken
2012-01-15 19:29:49 +00:00
yexo
15292fa080
(svn r23804) -Fix: [NewGRF] Make string code 80 more secure by not crashing when it's used in strings where it's not supposed to be used
2012-01-15 13:17:02 +00:00
yexo
8e68a442b9
(svn r23803) -Fix [FS#4969]: newgrf textstack was not properly used when storing parameters for the error message window
2012-01-15 13:06:11 +00:00
yexo
5535261e13
(svn r23802) -Fix [FS#4968] (r23601): game lobby gui not updated when new company information becomes available
2012-01-15 12:56:13 +00:00
yexo
f5b6a9db5c
(svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed
2012-01-15 11:31:34 +00:00
yexo
710d44dec3
(svn r23793) -Fix (r23791): height computation was missing a few pixels so the last line was still missing
2012-01-12 20:03:35 +00:00
yexo
21c2f9377d
(svn r23792) -Feature [FS#4958]: move 'refitable to' text above custom newgrf text in build vehicle gui
2012-01-12 19:23:00 +00:00
yexo
b1a830491a
(svn r23791) -Fix [FS#4960]: resize text panel for parameter description if it doesn't fit in 4 lines.
...
If you resize the window so it's smaller than default the text might still not fit
2012-01-12 19:11:51 +00:00
yexo
ec54f39db5
(svn r23788) -Fix: failure to load newgrf files that use action 0 general prop 15 with a missing language file
2012-01-12 17:44:20 +00:00
yexo
f5caf142c0
(svn r23725) -Fix (r23723): compile before commit
2012-01-03 00:47:56 +00:00
yexo
5f79b4c5d1
(svn r23724) -Codechange: split of the check to see if ambient sounds are enabled to a header file allowing compilers to inline that check
2012-01-03 00:45:22 +00:00
yexo
b9e19cc6c1
(svn r23723) -Codechange: speedup flood checks a bit
2012-01-03 00:44:23 +00:00
yexo
c4e2dfdd89
(svn r23721) -Fix (r23070): reading memory of a temporary (already deconstructed) object is invalid
2012-01-02 22:58:15 +00:00
yexo
ecc9997277
(svn r23657) -Fix (r22958): loading of very old savegames with custom town names failed
2011-12-22 17:07:54 +00:00
yexo
dd502e1448
(svn r23656) -Fix: make all vcs ignore docs/gamedocs/ just like docs/aidocs/
2011-12-22 16:32:13 +00:00
yexo
5988659eea
(svn r23651) -Feature: [NoGo] GSText now accepts string arguments as parameters to the constructor
2011-12-21 14:55:28 +00:00
yexo
a55478aaa6
(svn r23650) -Fix: wrong functions were filtered for AI/GameScript doxygen documentation
2011-12-21 14:30:08 +00:00
yexo
89854e0ab1
(svn r23501) -Fix: loading scenarios downloaded from the online content didn't work anymore
2011-12-12 18:55:04 +00:00
yexo
8f36e70e35
(svn r23496) -Fix: [Squirrel] Provide a proper error message when the _cmp meta-function doesn't return an integer
2011-12-11 15:52:18 +00:00
yexo
686297c2c6
(svn r23495) -Feature: button in NewGRF window to open URL from action14
2011-12-11 12:55:28 +00:00
yexo
7a7d9a7b6b
(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an url
2011-12-11 12:55:04 +00:00
yexo
e0e5e51e2a
(svn r23492) -Feature: add 'view website' button to the online content window
2011-12-11 11:57:52 +00:00
yexo
b4fdba2fb3
(svn r23490) -Add [FS#2750]: OpenBrowser function to open a browser on major OSes
2011-12-11 11:47:08 +00:00
yexo
0143f00d6f
(svn r23489) -Change: don't wrap around the console history and give an empty line if you click the down-key enough
2011-12-11 11:37:03 +00:00
yexo
1db365d0e2
(svn r23469) -Fix (r23468): gcc warning about initialization order
2011-12-10 01:49:50 +00:00
yexo
e2a9dd1b0a
(svn r23468) -Feature [FS#4827]: when looking for missing content, automatically select it so you can easily start the download
2011-12-10 00:01:28 +00:00
yexo
e31ed7db25
(svn r23467) -Feature [FS#4827]: automatically close the online content window after confirming the download with 'ok'
2011-12-09 22:44:06 +00:00
yexo
dcba6c25ea
(svn r23465) -Feature [FS#4827]: add 'find missing content online' button to 'load savegame' and 'find network game' windows
2011-12-09 21:49:52 +00:00
yexo
7af041d12d
(svn r23463) -Fix (r23461): unused variable
2011-12-09 20:27:59 +00:00
yexo
16eb11e988
(svn r23462) -Codechange: use AirportTileTableIterator in a few more places to make the code easier to read
2011-12-09 19:53:42 +00:00
yexo
c9be5d50da
(svn r23461) -Fix: handle a missing airport newgrf as graceful as possible by not crashing when loading such savegame or when an airport is removed
2011-12-09 19:30:30 +00:00
yexo
b8ee5c018d
(svn r23459) -Fix: don't crash trying to draw airport tiles when the airport grf is missing
2011-12-09 17:14:03 +00:00
yexo
2b1a380902
(svn r23458) -Fix: don't assume all industries that cut trees have tile 0,0
...
-Fix: wait until all tiles of an industry are completed before starting to cut trees
2011-12-09 16:12:38 +00:00
yexo
6aae285b72
(svn r23457) -Codechange: introduce Industry::TileBelongsToIndustry() to simplify code checking for that
2011-12-09 16:11:42 +00:00
yexo
e7777f44b9
(svn r23456) -Fix (r23441): oilrigs don't have any layouts nor do they provide airport noise
2011-12-09 15:16:21 +00:00
yexo
b5d707b7a0
(svn r23453) -Add: [NoAI] AIStation.GetStationCoverageRadius(StationID)
2011-12-08 23:28:43 +00:00
yexo
ca57514b9f
(svn r23452) -Codechange: document instead of writing to stderr that ScriptStation::GetCoverageRadius doesn't work for STATION_AIRPORT
2011-12-08 23:28:02 +00:00
yexo
52c3e45cf1
(svn r23439) -Fix: Use the DEBUG macro to output the reason for a compile failure in info.nut instead of printing it directly to stderr
2011-12-06 15:09:02 +00:00
yexo
fa930b15c7
(svn r23393) -Fix (r23382): AI / NewGRF sub-windows were now hidden under their parent windows
2011-12-02 11:48:54 +00:00
yexo
1bc1a41937
(svn r23392) -Fix: [NoAI] assigning 'null' to an AIList element to remove it didn't work
2011-12-01 22:23:13 +00:00
yexo
71c1ef5d26
(svn r23382) -Fix [FS#4845] (r23336): NewGRF window and content download window were always hidden under the saveload window
2011-12-01 11:57:25 +00:00
yexo
924a5e06b3
(svn r23201) -Doc: [NoAI] Hide all contents of AIObject from the API documentation as AIs were never able to use it anyway
2011-11-12 18:48:21 +00:00
yexo
bdc4734f65
(svn r23188) -Fix (r23168): fences on steep slopes were broken
2011-11-11 18:01:41 +00:00
yexo
72b1fffe82
(svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory
2011-11-10 20:07:14 +00:00
yexo
37797164ca
(svn r23186) -Fix [FS#4830]: [Squirrel] replace custom qsort by std::sort to fix stack overflow
2011-11-10 19:40:49 +00:00
yexo
d6bf0d10d0
(svn r23182) -Feature: allow translatable readme files
2011-11-10 18:07:56 +00:00
yexo
e4011426f2
(svn r23172) -Fix (r23088) [FS#4831]: crash when looking at orders from a vehicle that's not in your company
2011-11-09 11:44:12 +00:00
yexo
cb876cd6a0
(svn r23170) -Doc (r23169): add he new value to the AI changelog
2011-11-08 21:51:53 +00:00
yexo
a256bd71e4
(svn r23169) -Feature: [NoAI] AICONFIG_AI_DEVELOPER flags to hide AI settings unless gui.ai_developer_tools is enabled (Zuu)
2011-11-08 21:48:00 +00:00
yexo
5c838ff1c3
(svn r23168) -Feature [FS#1824]: always draw fences around field tiles
2011-11-08 19:48:47 +00:00
yexo
ed04410f89
(svn r23163) -Fix [FS#4627]: don't display railway fences between track and waypoints (Krille)
2011-11-08 17:51:29 +00:00
yexo
4d2ca18ee1
(svn r23161) -Fix (r23154): don't convert pointer to bool but actually check the grf_version variable
2011-11-08 17:40:48 +00:00
yexo
6a272233b3
(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions
2011-11-08 17:37:32 +00:00
yexo
7a3e362763
(svn r23135) -Fix (r23133): always compile before commit
2011-11-08 15:53:32 +00:00
yexo
baf11cf401
(svn r23134) -Add [FS#3799]: [NoAI] AICargoList_StationAccepting
2011-11-08 15:44:53 +00:00
yexo
b1d49f72dc
(svn r23133) -Fix [FS#4823]: AIOrder didn't handle implicit orders correctly in all cases
2011-11-08 15:43:34 +00:00
yexo
80e5d13f25
(svn r23132) -Fix: when any keys on te on-screen keyboard were pressed the text cursor disappeared
2011-11-08 15:10:39 +00:00
yexo
dc1fd2dbe6
(svn r23131) -Fix (r16165): AIOrder::IsCurrentOrderPartOfOrderList return false for valid vehicles and crashed for invalid ones
2011-11-08 15:00:55 +00:00
yexo
d5539f76d3
(svn r23130) -Change [FS#4825]: open the query string window centered as it (almost) always requires your attention
2011-11-08 12:16:17 +00:00
yexo
02913f40b0
(svn r23117) -Fix: [NoAI] calling require() to include a file gave you 100.000 opcodes for free
2011-11-04 23:14:23 +00:00
yexo
e98be8ed24
(svn r23083) -Fix: run StartupEngines() if NewGRFs changed during loading a savegame, just like it's running when NewGRFs are changed during a game
2011-11-03 12:54:02 +00:00
yexo
a95e7982f0
(svn r23078) -Fix (r23077): default ships carrying passengers and oil were suddenly only able to carry coal
2011-11-01 12:15:33 +00:00
yexo
433f74edd9
(svn r23065) -Add: -q option to read a savegame, write some general info and exit
2011-10-30 13:47:45 +00:00
yexo
bd6d490987
(svn r23064) -Fix (r23062): incrementing hexadecimal numbers is hard...
2011-10-29 21:00:11 +00:00
yexo
307ca24427
(svn r23063) -Add: [NewGRF] stringscodes 9A 19 and 9A 20 to print 'short volume' and 'short weight' respectively
2011-10-29 20:56:58 +00:00
yexo
481b1191ef
(svn r23059) -Fix [FS#4794]: if a newgrf overrides a default house the minimum start year for that house was set to 1930
2011-10-27 20:28:18 +00:00
yexo
46321ac310
(svn r23045) -Change: copy 6 registers to newgrf textstack after cb23 instead of 4
2011-10-20 19:02:13 +00:00
yexo
cbbea5f521
(svn r23044) -Codechange: reorder parameter order so we can make use of the default=0 more often
2011-10-20 16:53:34 +00:00
yexo
ffa47a563b
(svn r23043) -Fix: allow the use of cases only for those cases where strgen allows them and reset the case_index properly after {DATE} and {DATE_LONG} codes
2011-10-20 16:52:57 +00:00
yexo
42e40a2ab0
(svn r23042) -Codechange: make case_index an explicit parameter of GetStringWithArgs instead of hiding it in the stringid parameter
2011-10-20 16:51:54 +00:00
yexo
ac58a850fd
(svn r23041) -Codechange: rename slightly unclear parameter name
2011-10-20 16:50:57 +00:00