diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-26 14:20:50 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-26 14:20:50 +0000 |
commit | 7f819e46b584145e2cf2ea742ced9fab0ffc233e (patch) | |
tree | 9aa8ee99a4b4dd653917155282e82e6b9a64f718 /src/npc.cpp | |
parent | cc86266f4b59420a155df8c1aa01b9ce20b6585d (diff) | |
download | mana-7f819e46b584145e2cf2ea742ced9fab0ffc233e.tar.gz mana-7f819e46b584145e2cf2ea742ced9fab0ffc233e.tar.bz2 mana-7f819e46b584145e2cf2ea742ced9fab0ffc233e.tar.xz mana-7f819e46b584145e2cf2ea742ced9fab0ffc233e.zip |
Made Being::mDirection protected, forcing the use of setDirection. Defaulted
variant argument to 0 since this is the most common situation. Some SpriteDef
refactoring, splitting up the loading into several methods, in preparation of
adding support for including other sprites.
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index 6fa5ac37..d2e3f93f 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -36,7 +36,8 @@ NPC *current_npc = 0; NPC::NPC(Uint32 id, Uint16 job, Map *map, Network *network): Being(id, job, map), mNetwork(network) { - mSprites[BASE_SPRITE] = new AnimatedSprite("graphics/sprites/npc.xml", job-100); + mSprites[BASE_SPRITE] = new AnimatedSprite("graphics/sprites/npc.xml", + job - 100); } Being::Type |