Added a timer to the raycasts so it's not screwing over performance too hard

This commit is contained in:
Alex Noir
2017-12-17 21:35:19 +03:00
parent 714b52dce8
commit 041d1112b8
3 changed files with 31 additions and 7 deletions
@@ -297,7 +297,7 @@ namespace Barotrauma
else
{
string description = Items[i].Description;
if (Items[i].Prefab.Name == "ID Card")
if (Items[i].Prefab.NameMatches("ID Card"))
{
string[] readTags = Items[i].Tags.Split(',');
string idName = null;