Fixed vision blocking; MapObject::Occupy() now blueprint implementable
This commit is contained in:
+2
-5
@@ -8,7 +8,7 @@
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
#include "Algo/Reverse.h"
|
||||
#include "Util/IndexPriorityQueue.h"
|
||||
#include <cmath.h>
|
||||
#include <tgmath.h>
|
||||
|
||||
// Sets default values
|
||||
AAdventureMap::AAdventureMap()
|
||||
@@ -106,13 +106,10 @@ FHexVector AAdventureMap::AxialRound(float qf, float rf)
|
||||
return FHexVector(q, r);
|
||||
}
|
||||
|
||||
float AAdventureMap::Lerp(int32 a, int32 b, int32 t)
|
||||
float AAdventureMap::Lerp(int32 a, int32 b, float t)
|
||||
{
|
||||
return float(a + (b - a) * t);
|
||||
}
|
||||
// FHexVector SampleHex = MapRef->AxialRound(Lerpl(a, b, t), Lerp(x, y, z));
|
||||
//
|
||||
|
||||
|
||||
TArray<AHexTile*> AAdventureMap::Neighbors(AHexTile* OfHex, bool bFreeOnly = false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user