1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
Open-source engine for Heroes of Might and Magic III
Go to file
K 3a27725fcb Optimize CMap::isInTheMap
replace x >= 0 && x < size by (unsigned)x < size

By converting signed coordinate to unsigned number, negative values became
very large positive ones, larger than every positive signed number and
therefore also bigger than the map size. As a result check against size
also implicitly checks if coordinate is negative.

Compiler cannot do this transformation automatically because it doesn't
know that map dimensions are always positive.

The change shrinks isInTheMap from 19 instructions to 11 on x86.
2024-08-22 11:39:24 +02:00
.github CI: Use URL relative to repo's owner for test data 2024-07-23 01:43:26 +02:00
AI TBB is now a dependency of lib. Implemented multithreaded xBRZ scale 2024-08-17 15:25:26 +00:00
android Version bump to 1.5.6 2024-08-02 15:00:16 +00:00
CI Use .txz archive for dependencies 2024-08-20 20:42:11 +00:00
client Merge pull request #4480 from IvanSavenko/update_prebuilts 2024-08-21 15:57:50 +03:00
cmake_modules Version bump to 1.5.6 2024-08-02 15:00:16 +00:00
config Merge branch 'develop' into extended_statistic 2024-08-20 20:25:16 +02:00
debian Merge branch 'vcmi/master' into 'vcmi/develop' 2024-08-05 10:36:10 +00:00
docs Merge pull request #4480 from IvanSavenko/update_prebuilts 2024-08-21 15:57:50 +03:00
include introduce getModScope method toEntity class and subclasses 2024-08-10 16:08:04 +02:00
ios [launcher] show button to copy existing data on iOS >= 13 2024-06-09 18:20:39 +03:00
launcher Fix typo 2024-08-17 19:46:32 +00:00
lib Optimize CMap::isInTheMap 2024-08-22 11:39:24 +02:00
lobby Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
mapeditor Players affected by event is now stored as std::set instead of bitmask 2024-08-14 14:13:49 +00:00
Mods/vcmi Merge branch 'develop' into extended_statistic 2024-08-20 20:25:16 +02:00
osx [launcher] build for Android 2024-06-08 00:09:04 +03:00
rpm
scripting Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
scripts/lib Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
server Merge branch 'develop' into extended_statistic 2024-08-20 20:25:16 +02:00
serverapp Bind server to a randomly assigned port 2024-07-12 01:06:36 +03:00
test Remove unused code, reduce includes 2024-08-19 11:47:13 +00:00
win
xcode
.gitattributes
.gitignore Add .directory files to .gitignore 2024-07-15 20:32:16 +02:00
.gitmodules Update googletest submodule 2024-08-02 15:09:48 +00:00
.travis.yml remove slack 2024-07-10 12:49:53 +02:00
AUTHORS.h AUTHORS.h: Global variables should be const. 2023-10-27 14:29:34 +00:00
CCallback.cpp basic support for bank 2024-08-04 15:44:57 +02:00
CCallback.h basic support for bank 2024-08-04 15:44:57 +02:00
ChangeLog.md Updated changelog with new changes 2024-08-15 19:45:44 +00:00
CMakeLists.txt TBB is now a dependency of lib. Implemented multithreaded xBRZ scale 2024-08-17 15:25:26 +00:00
CMakePresets.json Try to generate aab instead of apk 2024-06-21 14:58:33 +00:00
conanfile.py Changed options of ffmpeg in conan: 2024-08-20 19:23:50 +00:00
fuzzylite.pc.in
Global.h Merge pull request #4358 from IvanSavenko/integer_divide 2024-08-06 18:10:03 +03:00
license.txt convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
vcmibuilder
Version.cpp.in
Version.h

VCMI Github Downloads Github Downloads Github Downloads Github Downloads

VCMI Project

VCMI is an open-source recreation of Heroes of Might & Magic III engine, giving it new and extended possibilities.

Vanilla town siege in extended window Vanilla town view with radial menu for touchscreen devices Large Spellbook with German translation New widget for Hero selection, featuring Pavillon Town

Latest release

Latest release can be found in Github Releases page. As of right now we plan to have major releases around 3 times per year. Daily builds are still available at builds.vcmi.download but they are not guaranteed to be stable. So we encourage everybody to use them and report found bugs so that we can fix them. Loading saves made with different major version of VCMI is usually not supported, so you may want to finish your ongoing games before updating. Please see corresponding installation guide articles for details for your platform.

Installation guides

Forge Town in battle Asylum town with new creature dialog Ruins town siege Map editor

Documentation and guidelines for players

Documentation and guidelines for game modders

Documentation and guidelines for developers

Development environment setup instructions:

Engine documentation: (NOTE: may be outdated)

Documentation and guidelines for maintainers

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-2024 VCMI Team (check AUTHORS file for the contributors list)