aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-04-28 11:49:19 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-04-28 11:49:19 -0400
commit992969772def3578acbd1cef0155333636f75862 (patch)
tree2794c7591bb463d5fe28a669eb97d211d72f4501 /src/entities.cpp
parent4f0dff18e4680d9bb4e7efc9cffdb0b63937533c (diff)
parent62df9319f06bb52da8878522117ebe85fc5226b5 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
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);