diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-18 15:37:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-18 15:37:01 +0300 |
commit | ae7d05fce2107e762e84a287f33f2dbad60abd7d (patch) | |
tree | a9d8ce99e98eda697c2b4e8e19d8473b8fedc14a /src/resources/horseinfo.h | |
parent | 3e1eec6460461242ff6548f8c542e0c020d18c4a (diff) | |
download | manaplus-ae7d05fce2107e762e84a287f33f2dbad60abd7d.tar.gz manaplus-ae7d05fce2107e762e84a287f33f2dbad60abd7d.tar.bz2 manaplus-ae7d05fce2107e762e84a287f33f2dbad60abd7d.tar.xz manaplus-ae7d05fce2107e762e84a287f33f2dbad60abd7d.zip |
Split horse into two sprites before player and after player.
Diffstat (limited to 'src/resources/horseinfo.h')
-rw-r--r-- | src/resources/horseinfo.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/resources/horseinfo.h b/src/resources/horseinfo.h index 262ecb7e7..860700124 100644 --- a/src/resources/horseinfo.h +++ b/src/resources/horseinfo.h @@ -29,16 +29,22 @@ class AnimatedSprite; struct HorseInfo final { HorseInfo() : - sprite(nullptr), - offsetX(0), - offsetY(0) + downSprite(nullptr), + upSprite(nullptr), + downOffsetX(0), + downOffsetY(0), + upOffsetX(0), + upOffsetY(0) { } A_DELETE_COPY(HorseInfo) - AnimatedSprite *sprite; - int offsetX; - int offsetY; + AnimatedSprite *downSprite; + AnimatedSprite *upSprite; + int downOffsetX; + int downOffsetY; + int upOffsetX; + int upOffsetY; }; #endif // RESOURCES_HORSEINFO_H |