X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Fpath_waypoint.qc;h=f86c270b04b3e32ad6ff14294190983f7e7ca699;hb=d2bda4ac404ae8e0e58bb5371d9d1f62196e8d1e;hp=4c3a7a1aadb70153b8918a330851467e74d19b1c;hpb=c89dfaa4d0342b98c320621557973a65114fbdf4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/path_waypoint.qc b/qcsrc/server/pathlib/path_waypoint.qc index 4c3a7a1aa..f86c270b0 100644 --- a/qcsrc/server/pathlib/path_waypoint.qc +++ b/qcsrc/server/pathlib/path_waypoint.qc @@ -1,3 +1,4 @@ +#include "path_waypoint.qh" #include "../bot/waypoints.qh" #include "pathlib.qh" @@ -233,18 +234,18 @@ entity pathlib_waypointpath_step() return world; } -void plas_think() -{SELFPARAM(); +void plas_think(entity this) +{ pathlib_waypointpath_step(); if(pathlib_foundgoal) return; - self.nextthink = time + 0.1; + this.nextthink = time + 0.1; } void pathlib_waypointpath_autostep() { entity n; n = spawn(); - n.think = plas_think; + setthink(n, plas_think); n.nextthink = time + 0.1; }