mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-30 04:30:42 +02:00
Arseniy Shestakov
635c48f889
CGHeroInstance::setType: fix to give proper subID to random heroes
Hero class id is used to determine hero object appearance, but after than we use subID to store it's unique id. This change should fix issues 2127 and 2277 since random heroes not going to override others in heroesPool.
VCMI Project
VCMI is work-in-progress attempt to recreate engine for Heroes III, giving it new and extended possibilities. To use VCMI you need to own original data files.
Links
- Homepage: http://vcmi.eu/
- Wiki: http://wiki.vcmi.eu/
- Forums: http://forum.vcmi.eu/
- Bugtracker: http://bugs.vcmi.eu/
Installation
For installation of latest release see release announcement on http://vcmi.eu/
For building from source see project wiki at http://wiki.vcmi.eu/
Copyright and license
VCMI Project source code is licensed under GPL version 2 or later. VCMI Project assets are licensed under CC-BY-SA 4.0. Assets sources and information about contributors are available under following link: [https://github.com/vcmi/vcmi-assets]
Copyright (C) 2007-2015 VCMI Team (check AUTHORS file for the contributors list)
Languages
C++
69.9%
JSON-with-Comments
24.7%
Java
1.7%
C
1.6%
CMake
1.5%
Other
0.5%