diff options
| author | xolatile | 2025-08-05 17:04:48 +0200 |
|---|---|---|
| committer | xolatile | 2025-08-05 17:04:48 +0200 |
| commit | affde05dc07a94643f1fd2751b2b441f57f73d7d (patch) | |
| tree | 4027d8e3f91490e9cfe6cdb2709343549f047253 /src/fpsgame/waypoint.cpp | |
| parent | 9234eeb1d2954a3dae6c84ffa8ed8643953272c5 (diff) | |
| download | xolatile-badassbug-affde05dc07a94643f1fd2751b2b441f57f73d7d.tar.xz xolatile-badassbug-affde05dc07a94643f1fd2751b2b441f57f73d7d.tar.zst | |
Minor cleanups, just compiles...
Diffstat (limited to 'src/fpsgame/waypoint.cpp')
| -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); |
