diff --git a/include/core.h b/include/core.h index 9020a61..7f2f961 100644 --- a/include/core.h +++ b/include/core.h @@ -1051,8 +1051,8 @@ private: bool OutOfBombTimer (void); void SelectLeaderEachTeam (int team); - const Vector &CheckThrow (const Vector &start, const Vector &stop); - const Vector &CheckToss (const Vector &start, const Vector &stop); + Vector CheckThrow (const Vector &start, const Vector &stop); + Vector CheckToss (const Vector &start, const Vector &stop); Vector CheckBombAudible (void); const Vector &GetAimPosition (void); diff --git a/source/basecode.cpp b/source/basecode.cpp index 34fcf6d..ba67330 100644 --- a/source/basecode.cpp +++ b/source/basecode.cpp @@ -5644,7 +5644,7 @@ void Bot::DebugMsg (const char *format, ...) AddLogEntry (false, LL_DEFAULT, "%s: %s", STRING (pev->netname), buffer); } -const Vector &Bot::CheckToss (const Vector &start, const Vector &stop) +Vector Bot::CheckToss(const Vector &start, const Vector &stop) { // this function returns the velocity at which an object should looped from start to land near end. // returns null vector if toss is not feasible. @@ -5699,7 +5699,7 @@ const Vector &Bot::CheckToss (const Vector &start, const Vector &stop) return nadeVelocity * 0.777; } -const Vector &Bot::CheckThrow (const Vector &start, const Vector &stop) +Vector Bot::CheckThrow(const Vector &start, const Vector &stop) { // this function returns the velocity vector at which an object should be thrown from start to hit end. // returns null vector if throw is not feasible.