diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-24 19:36:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 19:36:26 +0200 |
commit | 53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5 (patch) | |
tree | ee2e85916ffadc40bc0564348ac5041196cbf28a /src/peds/PedAttractor.h | |
parent | update librw (diff) | |
parent | 64-bit on Windows (diff) | |
download | re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.gz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.bz2 re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.lz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.xz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.zst re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.zip |
Diffstat (limited to 'src/peds/PedAttractor.h')
-rw-r--r-- | src/peds/PedAttractor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedAttractor.h b/src/peds/PedAttractor.h index 563efd3a..85b4327b 100644 --- a/src/peds/PedAttractor.h +++ b/src/peds/PedAttractor.h @@ -108,8 +108,8 @@ public: float ComputeDeltaHeading() const; float ComputeDeltaPos() const; void ComputeAttractTime(int32 id, bool, float& time) const; - int32 GetNoOfRegisteredPeds() const { return vWaitingQueue.size() + vApproachingQueue.size(); } - int32 ComputeFreeSlot() const { return vWaitingQueue.size(); } + int32 GetNoOfRegisteredPeds() const { return (int32)(vWaitingQueue.size() + vApproachingQueue.size()); } + int32 ComputeFreeSlot() const { return (int32)vWaitingQueue.size(); } bool IsInQueue(CPed*) const; bool RegisterPed(CPed*); bool BroadcastArrival(CPed*); |