Commit bb77f79c authored by benjamin moehring's avatar benjamin moehring

Ask if agent is in jam before deleting

This is an attempt to solve #273
parent f5663c3c
Pipeline #9395 failed with stages
in 16 seconds
......@@ -247,7 +247,7 @@ void VelocityModel::ComputeNextTimeStep(double current, double deltaT, Building*
spacings.clear(); //clear for ped p
// stuck peds get removed. Warning is thrown. low speed due to jam is omitted.
if(ped->GetGlobalTime() > 30 + ped->GetPremovementTime() &&
if(ped->GetTimeInJam() > ped->GetPatienceTime() && ped->GetGlobalTime() > 30 + ped->GetPremovementTime() &&
std::max(ped->GetMeanVelOverRecTime(), ped->GetV().Norm()) < 0.01 &&
size == 0 ) // size length of peds neighbour vector
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment