Darkvater
cad526ef36
(svn r6754) -Codechange: Remove some #idef ENABLE_NETWORK specific defines. With networking
...
disabled hardcode _networking/_network_available to zero and let the compiler
handle all optimizations.
18 years ago
Darkvater
d983d93732
(svn r6750) -Codechange: Juggle around some header includes as they're only used when
...
networking is enabled.
18 years ago
Darkvater
68d703bb5d
(svn r6688) -Fix (r6297): Wrong caption for server password query window (eg put 'break' after switch statements)
18 years ago
belugas
17eb65050b
(svn r6631) -Codechange: Use accessors for click_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
18 years ago
belugas
753b572400
(svn r6619) -Codechange: Use accessors for disabled_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
18 years ago
belugas
1c56a5ae0f
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
18 years ago
Darkvater
794cc6d55e
(svn r6372) -Codechange: static, unneeded decleration in headers, superfluous header includes
...
-Codechange: Unify the Sorting struct both for vehicle-lists and network-lists.
18 years ago
tron
8ef52bc43c
(svn r6297) -Codechange: Disentangle the query window mess a bit: Move the network game password handling somewhere were it belongs to
18 years ago
tron
d8436d15ae
(svn r6276) Remove a redundant assignment
18 years ago
Darkvater
2f6a4bc1a9
(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() which should be
...
integral to strings.c
18 years ago
truelight
5fd9aeb12b
(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that).
...
It isn't the best name, but we couldn't find any better.
This unifies the pool-system even more.
18 years ago
truelight
0461d89612
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
...
-Codechange: use IsValidXXX where ever possible
Note: both changes to prepare for new pool system, which needs those changes.
For every pool there are 2 ugly lines, which will be removed when done
implementing new pool system.
Based on FS#13 by blathijs, partly implemented.
18 years ago
rubidium
480af9c917
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
18 years ago
rubidium
893d4ba9d4
(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.
18 years ago
truelight
c07a8613a2
(svn r5972) -Fix: usr strrchr instead of your own function (tnx Darkvater)
...
-Codechange: added some comments and const correctness (Darkvater)
18 years ago
truelight
cc7680e0f1
(svn r5968) -Feature: add auto-completion in chat-window. It completes Player-Names and
...
Town-Names (that order) using <tab>. Based on FS#28 by egladil.
18 years ago
truelight
10b842bddc
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
...
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings
18 years ago
truelight
83d56d6d79
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
...
allow certain patterns (like numbers only)
18 years ago
rubidium
0d3ccad29f
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
...
-Cleanup: replace some magic '1920' values with BASE_YEAR.
18 years ago
rubidium
243872b4fd
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
Darkvater
a9251d2d02
(svn r5767) - Cleanup: Improve upon the header file mess regarding fios. Move all relevant types from hal.h into fios.h, eliminate the unneccessary passing of a global variable, and extern variables in header files (declare in fios.c and misc_gui.c
18 years ago
Darkvater
7c87c2e752
(svn r5655) -Fix [SF 1424115]: Reversed arrow-sign in the multiplayer list column headers on sort by name
18 years ago
belugas
6082507fea
(svn r5609) CodeChange : Apply coding style
18 years ago
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
19 years ago
tron
260012382d
(svn r5226) Reduce the mess that sending chat messages is
...
This also fixes a bug:
-Fix: It was possible to rename a signs or waypoints with the chat box
19 years ago
Darkvater
d02f2ec1e6
(svn r4892) - Fix [FS#162]: SEGV when sorting an empty server list. (glx)
19 years ago
Darkvater
8faf1838e6
(svn r4623) - Codechange: s/byte/PlayerID/
19 years ago
tron
1440451a6b
(svn r4315) Remove MAX_QUERYSTR_LEN, rather use lengthof() the real thing
19 years ago
tron
10454a6dd1
(svn r4314) -Fix: a buffer overflow of the chat box introduced in r1263. Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it
19 years ago
tron
3ef6afdb4d
(svn r4313) The parent window of the chat box is always the main toolbar (?!), therefore don't pass this information as parameter
19 years ago
tron
7a7e7c82cf
(svn r4312) Calculate the maximum pixel width of the entered text in the chat box from the "text box"-widget instead of hardcoding an arbitrary - and wrong - number
19 years ago
tron
dec2db09ee
(svn r4310) The chat box has no visible window title, therefore remove the string
19 years ago
tron
fc8d7f18a0
(svn r4309) The initial string of the chat box is always the empty string, so don't jump through hoops to check if nothing was entered and simplify the code
19 years ago
tron
04d6788bfd
(svn r4304) The chat box' parent window (the main toolbar, wtf?) doesn't care for the WE_ON_EDIT_TEXT_CANCEL event, so don't send one. This code looks like it was mindlessly copy&pasted from the query box
19 years ago
Darkvater
b68b9b149a
(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing)
19 years ago
Darkvater
2bbcd41247
(svn r3933) - [ 1439907 ] Increase client list window width so at least most languages fit (wikipedian).
19 years ago
tron
84fb96fe85
(svn r3511) More whitespace ([FS#46] by Rubidium)
19 years ago
Darkvater
896551850a
(svn r3501) - Load the lobby-window with up-to-date data upon opening
19 years ago
Darkvater
9d07426a29
(svn r3499) - Fix: a few gui glitches in the network window:
...
1. disable widgets also when the active companies/spectators is bigger than the max.
This can happen if the server has changed the settings.
2. updated scroll-count in the lobby as the window is higher.
19 years ago
Darkvater
58f5dbd365
(svn r3494) - Update several languages. Thanks all translators online atm (Bjarni, glx, MeusH, Tron, me, my sister)
...
- Remove the most blatant of untranslated or wrongly-outdated strings.
19 years ago
Darkvater
ddfe8f608f
(svn r3478) - Fix: In the network game list do the default sorting on connectivity (so servers which you can join are on top) and sort on names as a second criteria on clients and connectivity.
19 years ago
Darkvater
20538e9b40
(svn r3469) - Fix: plug a possible memleak with subsequential strdup's without freeing the previous value and make it possible to ban offline clients
19 years ago
Darkvater
c8a2c7ae94
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
19 years ago
Darkvater
070edf2f73
(svn r3441) - Feature: Allow the network game list to be sorted (by name/clients/compatibility ascending/descending)
19 years ago
Darkvater
2612d48550
(svn r3439) - CodeChange: Remove a whole bunch of global variables and put them into the WP() macro. Also combine more than one WP-custom element. For this the maximum size of w->custom (WP) has been increased, and multiple types put inside one with possibly moved to the corresponding gui file if it is only used there.
19 years ago
Darkvater
bc450bbc9a
(svn r3438) - Fix: first request company data, then general. Yes, it should be the other way around, but with the current network code this doesn't work. So workaround (have some nice promise from TrueLight for fixing ;))
19 years ago
Darkvater
fa735869e1
(svn r3435) - Fix a warning, removed unused extern and some comments in network_gamelist.c
19 years ago
Darkvater
8721b05453
(svn r3434) - Correctly update all network information when pressing refresh in the lobby. Also always allow the join button to a server unless all clients are used up (otherwise you can always join an existing company
19 years ago
Darkvater
2b287a9e72
(svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information.
19 years ago
Darkvater
78fa9c7393
(svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
19 years ago