diff options
Diffstat (limited to 'src/fpsgame')
| -rw-r--r-- | src/fpsgame/waypoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fpsgame/waypoint.cpp b/src/fpsgame/waypoint.cpp index 22e48d0..30a1403 100644 --- a/src/fpsgame/waypoint.cpp +++ b/src/fpsgame/waypoint.cpp @@ -19,7 +19,7 @@ namespace ai vec pos = o; pos.z += ai::JUMPMIN; if(!insideworld(vec(pos.x, pos.y, min(pos.z, getworldsize() - 1e-3f)))) return -2; float dist = raycube(pos, vec(0, 0, -1), 0, RAY_CLIPMAT); - int posmat = lookupmaterial(pos), weight = 1; + int weight = 1; if(dist >= 0) { weight = int(dist/ai::JUMPMIN); |
