From ed5cd03a069f7ddddf2ee77304c0f6e070a4f447 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Thu, 14 Sep 2023 00:02:13 +0200 Subject: [PATCH] tiny cleanup --- Aquaria/Entity.cpp | 1 - Aquaria/Entity.h | 4 ---- 2 files changed, 5 deletions(-) diff --git a/Aquaria/Entity.cpp b/Aquaria/Entity.cpp index ea941ad..fdcdf20 100644 --- a/Aquaria/Entity.cpp +++ b/Aquaria/Entity.cpp @@ -1566,7 +1566,6 @@ void Entity::onUpdate(float dt) Quad::onUpdate(dt); Vector v = position - lastPos; - lastMove = v; if (position.isFollowingPath() && swimPath) { movementDetails(v); diff --git a/Aquaria/Entity.h b/Aquaria/Entity.h index 915726f..4915403 100644 --- a/Aquaria/Entity.h +++ b/Aquaria/Entity.h @@ -134,7 +134,6 @@ public: Entity *ridingOnEntity; Vector startPos; void rotateToVec(Vector addVec, float time, float offsetAngle=0); - virtual void applyVariation(int variation){} void popBubble(); void sound(const std::string &sound, float freq=1, float fadeOut=0); @@ -167,7 +166,6 @@ public: STATE_FOLLOW =23, STATE_TITLE =24 }; - virtual void onNotify(Entity *notify){} float followPath(Path *p, float speed, int dir, bool deleteOnEnd = false); bool touchAvatarDamage(int radius, float dmg, const Vector &override=Vector(-1,-1,-1), float speed=0, float pushTime = 0, Vector collidePos = Vector(0,0,0)); @@ -205,7 +203,6 @@ public: bool isFollowingPath(); void stopFollowingPath(); void overideMaxSpeed(int ms, float time); - void disableOverideMaxSpeed(); int currentEntityTarget; float moveToPos(Vector pos, float speed, int dieOnPathEnd=0, bool swim = false); bool isHit(); @@ -220,7 +217,6 @@ public: void idle(); void slowToStopPath(float t); bool isSlowingToStopPath(); - Vector lastMove; float damageTime; void setEntityProperty(EntityProperty ep, bool value=true);