aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 869f0d4..b9c1d0d 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -332,6 +332,12 @@ void Entity::draw(void)
glColor3ub(255, 255, 255);
else if (gender == FEMALE)
glColor3ub(255, 105, 180);
+ } else if (type == MOBT) {
+ if (Mobp(this)->rider != nullptr) {
+ Mobp(this)->rider->loc.x = loc.x + width / 2;
+ Mobp(this)->rider->loc.y = loc.y + height - game::HLINE;
+ Mobp(this)->rider->vel.y = .12;
+ }
}
if (left) {
glScalef(-1.0f,1.0f,1.0f);