tron
77d79ed22d
(svn r2060) Clean up some string construction and remove now unused macro
20 years ago
tron
4d55d8a4bd
(svn r2057) Add InlineString() to make _userstring construction a bit cleaner.
20 years ago
Darkvater
ef1325cd36
(svn r2004) - Fix: [ 1149487 ] Autosave ignoring settings
...
- Fix: [ 1153926 ] All my settings in vain... IGNORED!
- Change: I hope I got it all right. Pressing 'New Game' (either choosing random or a preset scenario) and 'Create Scenario' will start a new game with the settings and difficulty in the intro menu. Using 'Load Game' and 'Play Scenario' will take the values from the savegame/scenario itself.
20 years ago
Darkvater
4713b11ffe
(svn r1923) - Fix: [ 1155696 ] Crash with german umlauts in station names. The width was not calculated using unsigned values, so all characters above 128 were "negative"
...
- Codechange: a more proper check for a null pointer in tunnelbridge_cmd.c should have gone in with the previous commit
20 years ago
Darkvater
7656c683cf
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
20 years ago
Darkvater
1f683aa13d
(svn r1896) - Fix: remove Translated by hack since it's not used
20 years ago
Darkvater
fb78ca8a62
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
...
- Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret
- Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions
- Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes
- Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos.
- Fix: OTTD crash when opening 'add server' editbox
- CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
20 years ago
tron
05490e0556
(svn r1890) Begin to clean up the edit box: Remove one global variable and split the combined edit/original buffer into two
20 years ago
tron
830565514c
(svn r1867) Include tables/sprites.h only in files which need it
20 years ago
tron
7cd19fe07a
(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
20 years ago
tron
a17d6e3922
(svn r1849) Use the cheat entry enum for CheatEntry.type and remove unused enum values
20 years ago
tron
76325c2bb2
(svn r1848) Remove the obscure feature of initialising the edit box with the contents of str_buffr - it was unused anyway.
...
Remove it from the chat box too, which inherited it via copy&paste.
20 years ago
darkvater
dda3e0fb4a
(svn r1845) - Revert r1835 since it totally screws network compiling
...
- Fix: fix some VS.NET warnings
- Add missing file to VS.NET project file
20 years ago
tron
701a32d048
(svn r1840) Repel str_buffr and use local buffers where possible
20 years ago
tron
257e97c09a
(svn r1833) byte -> char transition: the rest
20 years ago
tron
c644e6b742
(svn r1827) Next iteration of the byte -> char transition: some string drawing functions and buffers
20 years ago
tron
d3f84347ac
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
20 years ago
tron
12183084b7
(svn r1808) Use strcmp() instead of home brewed function str_eq()
20 years ago
tron
36c9758c94
(svn r1803) Move debugging stuff into files of it's own
20 years ago
matthijs
4c2c2c53fe
(svn r1778) - Fix: [ 1115200 ] In the main menu, when starting a new game while the load game dialog is open, openttd asserts.
20 years ago
miham
08727614fc
(svn r1678) Added cheat option for setting production of raw-material product industries in game
20 years ago
darkvater
aa5f513d4c
(svn r1632) -Fix: [1108008] Scenario creation bug; engines are of correct year when scenario is saved
20 years ago
darkvater
9ae639279d
(svn r1627) -Fix: The tabulizer in action ^_^
20 years ago
darkvater
e19caaf413
(svn r1626) -Updated readme and credits list.
20 years ago
darkvater
96335b8d6a
(svn r1625) -Alphabetized credits list
20 years ago
tron
61a3ac68e2
(svn r1606) Fix some bogus casts
20 years ago
tron
97f893ae2f
(svn r1596) Add some more statics
20 years ago
tron
94d5aeabb2
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
tron
589215c822
(svn r1508) Remove duplicate declarations and include proper headers where necessary
20 years ago
darkvater
84adfdf8c8
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game
...
-Fix: fixed some compiler warnings
-Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
20 years ago
darkvater
4b6b5856fc
(svn r1476) -Fix: [1099209] Catchment area with drag&drop stations (Celestar)
20 years ago
tron
4450ff105c
(svn r1451) Fix some of the signed/unsigned comparison warnings
20 years ago
tron
414ac3286b
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
20 years ago
darkvater
5feea8f02c
(svn r1398) -Feature: CTRL+V (Paste) now works on all editboxes. This includes 'Add Server', chat, etc. Feature is Windows only.
20 years ago
tron
b23ecdb54e
(svn r1397) Add missing RESIZE_NONE
20 years ago
darkvater
d63144e8c0
(svn r1379) -Fix: various GUI glitches. Added default sizes to various widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
20 years ago
darkvater
9d38a7afca
(svn r1374) -Feature: Add sticky item to finances window; sticky remains when requesting big/small window
...
-Moved resize icon in save dialog to bottom-right
20 years ago
truelight
3b7d2a8b67
(svn r1348) -Feature: resizable windows. Read the comment in window.h to find out
...
how the system works. All useful windows are already made resizable. Enjoy :)
-Fix: fixed some GUI-glitches and flaws along the way
20 years ago
darkvater
83342a0bcb
(svn r1341) -Fix: fix WWT_FRAME drawing when there is no text there (STR_NULL)
...
-Copyright notice is now 2002-2005 for all languages
20 years ago
darkvater
d02bdb0768
(svn r1340) -Feature: scrolling credits list...finally! Hope nobody gets offended if I forgot them.
20 years ago
bjarni
5da75918c0
(svn r1323) Adding autoreplace feature
...
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once
ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the
vehicle overview windows
Note: autorenew is now autoreplace, but to the same engine type
Nice new features, that was added to make this possible
- windows can now have two independant vertical scrollbars
- CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with
estimated costs even if shift is pressed
- fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
20 years ago
darkvater
452db59121
(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized
20 years ago
dominik
5611e85dac
(svn r1179) Fix: Tooltips for vehicle list sorting
...
This has gotta be the greatest kick for Moriarty!
20 years ago
tron
a148ff4e0d
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
20 years ago
truelight
da1de0ab48
(svn r1112) -Fix: _decode_parameters was increased to [20], but not all temp-dparams were
20 years ago
truelight
27fe361ddf
(svn r1066) -Fix: Crash when saving game as spectator (tnx to GeniusDex for reporting)
20 years ago
dominik
bbd3ec33d0
(svn r1030) Some toolbar icons are arranged differently:
...
- Landscaping buttons have to be accessed from the landscaping toolbar
- Landscaping toolbar can be opened from all other toolbars
- The order of buttons in the docks toolbar now matches the other toolbars
- Landscaping toolbar has new keyboard shortcuts
20 years ago
truelight
a501e89624
(svn r1022) -Fix: [Network] [ 1083690 ] The password dialog made the network
...
disconnect without cleaning up.
20 years ago
truelight
892638e905
(svn r1018) -Fix: Buffer overflow in edit box, because we misuse maxlen for a flag..
...
someone should rewrite the editbox!
20 years ago
Celestar
945ceb06fc
(svn r979) Allow more realistically sized catchment areas
20 years ago
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
20 years ago
tron
291d25a88b
(svn r925) Use sound enums
...
Also play the correct sound when a toyland road vehicle breaks down
20 years ago
tron
265ac67183
(svn r901) Small step in the process to clean up the DPARAM mess:
...
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest)
- use inline functions instead of macros
- add assert()s to check for buffer overruns
20 years ago
tron
acbd1801c7
(svn r815) Include strings.h only in the files which need it.
...
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
20 years ago
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).
20 years ago
tron
57adc97733
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
...
This especially enables houses to accept passengers, mail, goods AND food.
Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them.
Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided.
This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon.
20 years ago
tron
249a170ace
(svn r607) -Patch: [ 985102 ] static cleanup
...
Thanks to lvoge
20 years ago
tron
2b5b1f4e06
(svn r594) -Fix/Feature: [ 1066121 ] Resetting file name after deleting a file
...
Thanks to dannys9 for the patch
20 years ago
tron
2f56162f35
(svn r582) -Fix: [ 1034318 ] place sign and blue message box
...
A name change wasn't possible while an always-on-top window (like news) has been visible
20 years ago
tron
d641175e3c
(svn r513) Merge revisions 402, 416, 417, 478, 479, 511, 512 from map to trunk
...
This includes 2 fixes
-Fix: [1048596] Monorail and Maglev sounds are swapped (r511)
-Add special case to load the jackhammer sound (r478)
The rest are cleanups und enumeration to make merging possible/easier
20 years ago
dominik
9d1bf52ce3
(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
20 years ago
signde
f15c85d508
(svn r263) -Fix: on_server.scr contained an unneeded ";"
...
-Fix: saving or loading a map doesnt pauses the game anymore
20 years ago
truelight
add49120dd
(svn r236) -Fix: random crash when player-face was displayed in error-dialog
20 years ago
darkvater
e295e46e3e
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
...
-CodeLayout: Remove trailing spaces and Windows linebreaks
20 years ago
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
20 years ago
darkvater
debb158c95
(svn r180) -Fix: some more warning fixes for C99 (Tron)
20 years ago
darkvater
56435c8775
(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron)
...
-Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
20 years ago
darkvater
9a6870fcfd
(svn r173) -Network: [1023231] Debug Code + ErrorBoxes + Load Game/Scenario. Added some more desync debug code and replaced some of the error() calls with some better error boxes. Hopefully find desyncs easier (sign_de)
...
-GUI: Change some network GUI stuff (Darkvater)
20 years ago
darkvater
b4cf633f66
(svn r156) -Codechange: remove obsolete callback arrays
20 years ago
darkvater
3b96ad994c
(svn r148) -Feature: Company HQ can now be moved somewhere else (cost 1% of company value). Water floods HQ.
...
-Some layout fixes for command.c
-Tileinfo debug window in console now shows Tile in decimal numbers
20 years ago
dominik
ea2d013ff0
(svn r139) Added MarkWholeScreenDirty() on switch player screen
...
Changed "Max income" string and "station spread patch" string
20 years ago
dominik
f4c026d8d1
(svn r109) added/heavily modified patch by truesatan: cheat change date
20 years ago
dominik
b2340212c3
(svn r105) Switch climate cheat gui enhancement
20 years ago
dominik
85012a519c
(svn r101) New cheat: switch climate
20 years ago
darkvater
0361d3d12f
(svn r75) -Add proper crediting to graphics artists to about box.
...
-Change DEBUG lvl for GRF warnings/errors to 2, lvl 1 is used for copyright notices
-Fix show currect filename when debugging grf files
20 years ago
truelight
a21fa40127
(svn r72) -Add: build_date of station (viewable with Query tool)
20 years ago
darkvater
b4e9a3d1d4
(svn r71) -Cheat: [976127] no extra frequent jet crash on small airports (truesatan)
...
-Changed some debug messages in aircraft code to DEBUG(misc, 1)
20 years ago
darkvater
255a1ad941
(svn r68) -Fix: [1009621] build in pause is now a cheat instead of a patch (truesatan)
...
-Fix: Placing/editing signs signs is possible in paused mode
20 years ago
darkvater
4587ede35d
(svn r67) -Forget to change debug message for grfspecial.c
...
-Added compile flag NO_DEBUG_MESSAGES which will strip executeable of all DEBUG(..,..)'s
20 years ago
darkvater
68c9b7c3ad
(svn r66) -Fix Station list updated on station deletion/station rename
...
-Changed debug messages to comply with DEBUG(name, level) heuristics
20 years ago
darkvater
cc8080f2dc
(svn r4) -Fix [996025] _local_player fixes. Fixes wrong memory access (TrueLight)
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago