From 733d0dad8094e572f3b4fe774fdb161e4a32d509 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 19 Oct 2020 23:10:18 -0700 Subject: [PATCH] Add entclass::ishumanoid() "Humanoid" is just a word for "crewmate or player" but without having to say "crewmate or player". This is just to make it so humanoids get drawn after all other entities get drawn, meaning humanoids will be drawn on top. --- desktop_version/src/Ent.cpp | 8 ++++++++ desktop_version/src/Ent.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/desktop_version/src/Ent.cpp b/desktop_version/src/Ent.cpp index 91277c75..876f1ba2 100644 --- a/desktop_version/src/Ent.cpp +++ b/desktop_version/src/Ent.cpp @@ -644,3 +644,11 @@ void entclass::updatecolour() break; } } + +bool entclass::ishumanoid() +{ + return type == 0 + || type == 12 + || type == 14 + || type == 55; +} diff --git a/desktop_version/src/Ent.h b/desktop_version/src/Ent.h index 6b66c5f4..e4d6bdc3 100644 --- a/desktop_version/src/Ent.h +++ b/desktop_version/src/Ent.h @@ -20,6 +20,8 @@ public: void updatecolour(); + bool ishumanoid(); + public: //Fundamentals bool invis;