refactor: deglob std::weak_ptr
This commit is contained in:
1 parent
6e56e07c6b
commit
a744f8f471
70 files changed
+125
-125
No files matched your search
@@ -29,7 +29,7 @@ bool Sensing::canSee(std::shared_ptr<Entity> target)
|
||||
//util.Timer.push("canSee");
|
||||
bool canSee = mob->canSee(target);
|
||||
//util.Timer.pop();
|
||||
if (canSee) seen.push_back(weak_ptr<Entity>(target));
|
||||
else unseen.push_back(weak_ptr<Entity>(target));
|
||||
if (canSee) seen.push_back(std::<Entity>(target));
|
||||
else unseen.push_back(std::<Entity>(target));
|
||||
return canSee;
|
||||
}
|
||||
Reference in new issue
Block a user