Plug a socket leak on Haiku.

Haiku uses close() for sockets.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5386 8aca7d54-2c30-db11-9de9-000461428c89
(Timothy) better instructions upon errors

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5387 8aca7d54-2c30-db11-9de9-000461428c89
(Timothy) FIX getnameinfo usage for IPv6

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5388 8aca7d54-2c30-db11-9de9-000461428c89
add copy-assignment and -constructor for nwc_tool_t::tool_node_t; should fix memory corruption errors in network games

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5389 8aca7d54-2c30-db11-9de9-000461428c89
Remove redundant #undef {max,mix}.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5391 8aca7d54-2c30-db11-9de9-000461428c89
Factorise and simplify common code.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5392 8aca7d54-2c30-db11-9de9-000461428c89
Add vector_tpl::pop_back().

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5393 8aca7d54-2c30-db11-9de9-000461428c89
Use x.pop_back() instead of x.remove_at(x.get_count() - 1).

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5394 8aca7d54-2c30-db11-9de9-000461428c89
Use clear() instead of removing elements one by one.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5395 8aca7d54-2c30-db11-9de9-000461428c89
Use assignment + pop_back() instead of remove_at() where order does not matter.

This copies O(1) elements instead of O(n).

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5396 8aca7d54-2c30-db11-9de9-000461428c89
Reduce code duplication.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5397 8aca7d54-2c30-db11-9de9-000461428c89
Replace breaking out of three loops using a boolean flag by a simple goto.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5398 8aca7d54-2c30-db11-9de9-000461428c89
CODE: only store pointer to tool_node_t
make copy assignment and constructor private
as we cannot make copies of *wkz


git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5400 8aca7d54-2c30-db11-9de9-000461428c89
CODE: separate file descriptors for gzip to compile with zlib 1.2.6, 
put them in a container class, 
with the additional benefit that bzlib.h is not included by half of the code


git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5401 8aca7d54-2c30-db11-9de9-000461428c89
Even stdio.h can include max/min macros from windows.h ... 

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5402 8aca7d54-2c30-db11-9de9-000461428c89
New player color dialoge (after Hajo)

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5403 8aca7d54-2c30-db11-9de9-000461428c89
More configurable dialoge offsets

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5404 8aca7d54-2c30-db11-9de9-000461428c89
Remove offset of one LINESPACE from gut_textarea_t and made more dialogs conform to whatever offsets are set in list_buttons.h

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5405 8aca7d54-2c30-db11-9de9-000461428c89
Ok, forgot to remove one LINESPACE at gui_textarea_t

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5407 8aca7d54-2c30-db11-9de9-000461428c89
FIX offset errors of gui_textarea_t

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5408 8aca7d54-2c30-db11-9de9-000461428c89