From 74931290449a9ad9318086331f5d1840330e2287 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 8 Apr 2020 23:51:00 -0700 Subject: [PATCH] Remove unused function entityclass::confirmflags() Same as before, flags can never be the number 2, and never could be even before I changed all flags to be bools. Also this function is unused. --- desktop_version/src/Entity.cpp | 8 -------- desktop_version/src/Entity.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index b29571da..e24e147f 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -78,14 +78,6 @@ void entityclass::resetallflags() } } -void entityclass::confirmflags() -{ - for (int i = 0; i < 100; i++) - { - if (flags[i] == 2) flags[i] = 1; - } -} - int entityclass::swncolour( int t ) { //given colour t, return colour in setcol diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index 9092e694..5e6ac2d1 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -28,8 +28,6 @@ public: void resetallflags(); - void confirmflags(); - void fatal_top() { createblock(DAMAGE, -8, -8, 384, 16);