tron
59fa465dce
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06 13:41:02 +00:00
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)
2005-02-06 08:18:00 +00:00
tron
12183084b7
(svn r1808) Use strcmp() instead of home brewed function str_eq()
2005-02-05 22:50:33 +00:00
truelight
5e8a669cba
(svn r1643) -Fix: [ 1108547 ] You can now change the server-password via the GUI again
2005-01-24 20:25:52 +00:00
dominik
c857bfa12a
(svn r1611) Display server port in the multiplayer game info window
...
I had to make the multiplayer window 10 pixels wider for this
2005-01-23 13:19:15 +00:00
tron
94d5aeabb2
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
2005-01-22 20:23:18 +00:00
darkvater
561ceeba0c
(svn r1526) -Fix: [1103027] Minor changes for the lobby GUI (widen window) (bociusz)
2005-01-15 19:17:45 +00:00
tron
dd6db73069
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
2005-01-15 08:58:31 +00:00
truelight
b33df5936f
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
...
- Added green dot if company income is positive (else red dot)
- Added lock icon if company is password protected
2005-01-14 21:47:35 +00:00
tron
589215c822
(svn r1508) Remove duplicate declarations and include proper headers where necessary
2005-01-14 19:41:24 +00:00
darkvater
2257e03c33
(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in player_gui.c ^ should've been &
...
-Fix: in multiplayer clientlist can only be opened once
2005-01-13 20:46:39 +00:00
darkvater
2d023f9c0b
(svn r1478) -Fix: [1099195] mouse-wheel in train replace window. Scrollbar1 and Scrollbar2 now work independently. You can only scroll on list and scrollbar itself; scrollbar must be next widget of the list.
...
-Fix: updated the few gui's that didn't have the scrollbar right after the listbox.
2005-01-11 00:24:27 +00:00
darkvater
781648ada3
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
2005-01-10 14:43:00 +00:00
dominik
aa24b010e9
(svn r1383) Fix: You can now also delete automatically found servers by pressing "del"
...
Fix: The scrollbar is correctly updated when deleting servers
2005-01-05 10:47:59 +00:00
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!
2005-01-04 21:28:09 +00:00
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
2005-01-03 19:45:18 +00:00
dominik
9380b58111
(svn r1334) Fix: [ 1093466 ] no more glitches with many maps in the scenario list when creating server
2005-01-03 11:58:53 +00:00
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()
2005-01-02 17:23:04 +00:00
truelight
5eeab7fcfe
(svn r1322) -Add: banning system (mostly tnx to guru3)
...
A server can ban people via ClientList
Both server and dedicated can do it via console:
'ban', 'unban', 'banlist'.
2005-01-02 12:03:43 +00:00
truelight
e4f558de8c
(svn r1298) -Fix: [ 1092661 ] On create, the scrollbar of the server-list was not updated
2004-12-29 15:32:10 +00:00
truelight
80fde98098
(svn r1280) -Codechange: made the last patch a bit more... readable (in other words:
...
use that spacebar!!)
2004-12-27 10:24:38 +00:00
bjarni
d1b6768398
(svn r1279) Fixed the scrollbar in the network gui(server list). It now updates when scrolling (HackyKid)
2004-12-26 22:09:34 +00:00
truelight
4a5e11cea9
(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars
...
-Fix: You can enter some more chars in the chatbox
2004-12-23 20:33:57 +00:00
darkvater
5eeb971de0
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
...
-Fix: removed some warnings
-Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
2004-12-23 00:24:44 +00:00
truelight
457720ff95
(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
...
-Fix: UDPListener was launched wrongly
-Fix: Not all sockets have broadcast enabled anymore
-Fix: Server-advertise retries 3 times before giving up
2004-12-22 18:42:56 +00:00
dominik
8f3270e57c
(svn r1205) Fix: Made the network window a bit wider, so that other languages don't have overlapping strings
2004-12-21 17:41:12 +00:00
truelight
7d505bd9fa
(svn r1197) -Fix: [GUI] in r1194 someone deleted too much code from WE_KEYPRESS. Now
...
you can change your player-name in the GUI again :)
2004-12-21 14:54:27 +00:00
dominik
f5ccb662f8
(svn r1194) Feature: You can now add and remove servers from the server list. Those will be remembered until you delete them by pressing the Delete key.
2004-12-20 22:14:39 +00:00
truelight
c1ab4b58e3
(svn r1187) -Fix: [Network] You can no longer join as spectator a game with no
...
companies (a lot of code can simply not handle it)
2004-12-20 16:15:19 +00:00
truelight
9938d19d76
(svn r1186) -Fix: [Network] You can now join a company on a server where a company
...
went bankrupt, without joining the wrong company (or even failing to do so)
2004-12-20 16:02:01 +00:00
truelight
182eb874e8
(svn r1174) -Fix: [Network] All strings can now be translated (no more hardcoded strings)
2004-12-19 15:14:55 +00:00
truelight
df995a32ed
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
...
and 'void' where needed, prefixed all functions, typedefs and global
vars with 'Network' and organized all externals nicely.
2004-12-19 10:17:26 +00:00
dominik
88a8fa0104
(svn r1162) The server list can now be automatically filled from the config file. Add a section [servers] with the addresses each in a new line. Those will be checked upon OpenTTD startup.
2004-12-18 18:58:03 +00:00
truelight
3c45c05eb2
(svn r1126) -Fix: [Network] Pressing Disconnect on the GUI puts you back to the
...
main-menu (so you no longer stay ingame (if you were))
2004-12-16 11:12:59 +00:00
truelight
9954819ff2
(svn r1113) -Add: [Network] Added the GUI part for server advertising. When you go
...
to Start Server, you can select by connection: 'Internet (advertise)'.
When selected, the server will announce itself to the server-list at
http://servers.openttd.org (when finished)
2004-12-15 21:54:07 +00:00
truelight
2f6a26ab2d
(svn r1108) -Fix: [Network] Fixed problem around slow clients:
...
They joined, they got the map, but it took some time before the new
player was created. In this time a player could do stuff, causing a
player-id-mismatch, and the player was kicked out. Now a player get's a
nice GUI which says: registering.. When that is gone, the player is
joined and can play safely. Tnx to Moriarty for bugging me with this bug ;)
2004-12-15 21:13:52 +00:00
darkvater
c21659ae7e
(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-15 00:31:08 +00:00
truelight
b0fa342aaa
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
...
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
2004-12-14 20:27:00 +00:00
dominik
967425b368
(svn r1082) Feature: Chat toolbar
...
- to chat with all players press Return (or Shift-T) and type in the message
- Press Return again to send the message
2004-12-14 16:53:38 +00:00
truelight
a477d3655c
(svn r1054) -Fix: [Network] Redid revision 1024, only a bit more nice this time
...
(revision length is back to 10, and checking is now done correctly)
2004-12-13 16:15:21 +00:00
truelight
0f83be4d5b
(svn r1052) -Fix: [Network] You can't join a server when revision mismatches.
2004-12-13 14:57:58 +00:00
truelight
0283793655
(svn r1051) -Fix: [Network] New Company button is disabled when there is no more
...
space for a new company
2004-12-13 14:49:31 +00:00
truelight
05c585d593
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow
...
windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-13 09:01:24 +00:00
truelight
99e78ee6e5
(svn r1012) -Fix: [Network] Endless loop if a server was offline (WizKid)
2004-12-10 22:01:17 +00:00
dominik
b747cd2fcd
(svn r999) New icons for the network interface, newgrf gui and the tiny euro
2004-12-09 23:16:52 +00:00
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00
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
2004-12-02 22:53:07 +00:00
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.
2004-11-25 10:47:30 +00:00
darkvater
01dd0219d3
(svn r229) -Fix: Some more const stuff fixed .(Tron)
...
-Fix: ParseConnectionString() function to parse network connection string: <IP>[:<PORT>][#<PLAY_AS] .
2004-09-12 23:35:01 +00:00
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
2004-09-12 21:49:38 +00:00
darkvater
1f1f578abb
(svn r217) -Fix: remove warning and simplify loop network_gui.c (Tron)
2004-09-12 17:37:37 +00:00
signde
9be6a4cea4
(svn r215) -Feature: direct connect now allows selecting a port and a playername [ip/host]:[port]#[player]
2004-09-12 16:03:40 +00:00
darkvater
99687cf513
(svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over network] (sign_de)
...
-Fix: Only server can pause in network, action disabled for clients
-Fix: Direct Connect editbox can handle up to max ~35 characters
2004-09-12 15:29:37 +00:00
darkvater
24512d3da5
(svn r212) -Fix: Network-gui fixes (sign_de)
...
-Fix: any disabled button in a window doesn't receive WE_CLICK events
-Added network.h
2004-09-12 14:12:33 +00:00
signde
1fb915df69
(svn r207) -Codechange: randomizer handling
...
-Fix: desync problem fixes
-Fix: server doesnt hang anymore when a client timed out
-Feature: low latency connection enhancements [*net_sync_freq, *net_ready_ahead]
2004-09-11 19:34:11 +00:00
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
2004-09-10 19:02:27 +00:00
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
2004-09-07 21:48:09 +00:00
darkvater
3a241b5cce
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
2004-09-07 19:34:55 +00:00
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)
2004-09-06 22:46:02 +00:00
dominik
0bd907e88d
(svn r106) New network core (by sign_de)
...
Features:
* network core is dynamicly loaded when needed (-n isn't needed anymore)
for easy switching between single and multiplayer. But commandline
shortcuts are still enabled:
-n = autodetect network server
-n [ip] = connect to the server
* udp now uses 2 different ports
- you can run 1 server and serveral clients on one pc
- the clients udp-socket gets unloaded when the
network game starts
- the servers udp-sockets remains online to allow the
network gui to detect itself
* new gameinfo structure
this struct is available for every online/lan game
* dynamic NetworkGameList
2004-08-22 10:23:37 +00:00
darkvater
804f038594
(svn r2) -Fix [993829] UDP Fixes (lucaspiller)
...
-Fix change 255/0xFF to OWNER_SPECTATOR for
spectator stuff (TrueLight)
2004-08-10 14:14:00 +00:00
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
2004-08-09 17:04:08 +00:00