vcmi/vcmi — pull request #46 by linuxrocks123 (2014-10-26 01:22:45+00:00)
Title: Linuxrocks123 Stable Changes: Pull Request #1

This adds multiplayer load support and also fixes two bugs:
- Legion artifacts off-by-one (i.e. legs of legion affected 3rd level creatures instead of second level)
- Pathfinding skill bonus not applied (Mantis Bug #1920).

Multiplayer load support was implemented through command-line options since I don't like coding GUIs. vcmiclient --help will list the new options. Examples for usage follow:

vcmiclient --loadserver --loadnumplayers 2 --loadhumanplayerindices 0 --loadhumanplayerindices 1 --loadplayer 0 #start multiplayer server, indicated players 0 and 1 (red and blue) are human players, control all AI players and player 0 (Red) from this client

vcmiclient --loadplayer 1 --loadserverip 127.0.0.1 --loadserverport 3030 #connect to server at 127.0.0.1 port #3030, but do not start a server there, and control player 1 (Blue) from this client. Do not control AI players from this client.

This pull request does not include my changes to the AI, which are fairly stable but some people reported bugs on the forum, so I'll look into those first. Please message me with any questions. I've tested this code on Linux/x86-64 using SDL 1.2.15.