mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Interface edits, additions, and fixes:
* Added a new module for exiting the client (client_exit). * Added tab spacing to the UITabBar class. * Added tab popup menus for things like channel tabs. * Impelemented channel tab popup menus (still need to be finished). * Fixed UITabBar tab draging (will now change after dragged half way over the next tab, not 2 pixels). * Fixes to the client_options module. * Edited some UI settings. * Changed game_cooldown and game_spelllist menu button icons. * Fixed some typos.
This commit is contained in:
@@ -348,7 +348,7 @@ namespace Otc
|
||||
};
|
||||
|
||||
enum PathFindResult {
|
||||
PathFineResultOk = 0,
|
||||
PathFindResultOk = 0,
|
||||
PathFindResultSamePosition,
|
||||
PathFindResultImpossible,
|
||||
PathFindResultTooFar,
|
||||
|
@@ -507,6 +507,12 @@ std::tuple<std::vector<Otc::Direction>, Otc::PathFindResult> Map::findPath(const
|
||||
const TilePtr& tile = getTile(neighborPos);
|
||||
|
||||
if(neighborPos != goalPos) {
|
||||
/*
|
||||
Known Issue with Otc::PathFindAllowNullTiles flag:
|
||||
If you are above ground floor this will attempt to path over null
|
||||
tiles, need to rework this for "fly servers" and blank map click,
|
||||
but it is breaking normal path finding.
|
||||
*/
|
||||
if(!(flags & Otc::PathFindAllowNullTiles) && !tile)
|
||||
continue;
|
||||
if(tile) {
|
||||
@@ -568,7 +574,7 @@ std::tuple<std::vector<Otc::Direction>, Otc::PathFindResult> Map::findPath(const
|
||||
}
|
||||
dirs.pop_back();
|
||||
std::reverse(dirs.begin(), dirs.end());
|
||||
result = Otc::PathFineResultOk;
|
||||
result = Otc::PathFindResultOk;
|
||||
}
|
||||
|
||||
for(auto it : nodes)
|
||||
|
Reference in New Issue
Block a user