From 510c8595205081a8c19002ce46b1cc0de35e59c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 3 Mar 2015 17:54:54 +0300 Subject: Add ride sprite actions. --- src/resources/spritedef.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/spritedef.cpp') diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index 6ea358448..1f5b02610 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -165,16 +165,22 @@ void SpriteDef::substituteActions() substituteAction(SpriteAction::SPAWN, SpriteAction::STAND); substituteAction(SpriteAction::FLY, SpriteAction::MOVE); substituteAction(SpriteAction::SWIM, SpriteAction::MOVE); + substituteAction(SpriteAction::RIDE, SpriteAction::MOVE); substituteAction(SpriteAction::STANDSKY, SpriteAction::STAND); substituteAction(SpriteAction::STANDWATER, SpriteAction::STAND); + substituteAction(SpriteAction::STANDRIDE, SpriteAction::STAND); substituteAction(SpriteAction::SITSKY, SpriteAction::SIT); substituteAction(SpriteAction::SITWATER, SpriteAction::SIT); + substituteAction(SpriteAction::SITRIDE, SpriteAction::SIT); substituteAction(SpriteAction::ATTACKSKY, SpriteAction::ATTACK); substituteAction(SpriteAction::ATTACKWATER, SpriteAction::ATTACK); + substituteAction(SpriteAction::ATTACKRIDE, SpriteAction::ATTACK); substituteAction(SpriteAction::SPAWNSKY, SpriteAction::SPAWN); substituteAction(SpriteAction::SPAWNWATER, SpriteAction::SPAWN); + substituteAction(SpriteAction::SPAWNRIDE, SpriteAction::SPAWN); substituteAction(SpriteAction::DEADSKY, SpriteAction::DEAD); substituteAction(SpriteAction::DEADWATER, SpriteAction::DEAD); + substituteAction(SpriteAction::DEADRIDE, SpriteAction::DEAD); } void SpriteDef::loadSprite(const XmlNodePtr spriteNode, const int variant, -- cgit v1.2.3-70-g09d2