Comments (6)
(by iddqd-mail)
Check, if this was fixed in rev.8959
from stratagus.
(by andre-ng)
I tried out the fix, but unfortunately it seems that it didn't work :( I tried putting archers (range 4) in a garrisonable building of 4x4 tile size, and they could still only attack units to the south of the building that were adjacent to the building (meaning that the range is being counted without taking into account the building's larger tile size).
from stratagus.
(by iddqd-mail)
Another fix in rev.8961, check, if that bug has been fixed.
from stratagus.
(by andre-ng)
cybermind, thanks for your attention in trying to fix this bug. I tested the fix in revision 8961, and unfortunately it did not solve the issue. Everything happens exactly the same as before.
from stratagus.
(by iddqd-mail)
Could you upload a test map or something to show this bug?
from stratagus.
(by andre-ng)
I managed to pinpoint the reason for the bug. It was in the function MapDistanceTo(const CUnit &dst) in unit.h. Here is a fixed version of the function:
int MapDistanceTo(const CUnit &dst) const
{
const CUnitType *distance_unit_type = Container ? Container->Type : Type;
return MapDistanceBetweenTypes(*distance_unit_type, tilePos, *dst.Type, dst.tilePos);
}
I have tested it and can confirm this fix works.
from stratagus.
Related Issues (20)
- Wargus 3.3.2 - Bug Extraction process HOT 5
- Wargus - Network out of sync in Single Player Campaign HOT 12
- building tolua.cpp.o: try to execute -L in sh HOT 1
- try to build with /usr/include/lua.h rather than /usr/include/lua-5.1/lua.h (I think) HOT 2
- Documentation typo/incorrect information? HOT 6
- Unexpected behavior when upgrading units to units with lower maximum health HOT 1
- Stratagus failed to load game data. HOT 1
- build stratagus make fatal error: mdns.h HOT 5
- Broken CI with icon with linuxdeploy HOT 2
- Network Desync. HOT 7
- Red Humans Glitch when loading games, followed by a Crash. (War1gus)
- crash on startup HOT 5
- PLEASE modify the uninstaller
- Warcraft 3 HOT 1
- [macOS] Regression: Black text on main menu in Wargus (Stratagus bug) HOT 5
- Crash to desktop when upgrading/morphing unit that is carrying resources into one that cannot
- [CRASH][wc1] Assertion failed RefsIncrease: !Refs || (Refs && !Destroyed) HOT 1
- Trigger: LoadGame memory issue by adding more triggers
- Pathfinder: Bad handling of failure results HOT 1
- [macOS] Crash when exiting program - Wargus & War1gus HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stratagus.