summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-06-12Add error.xml to client repository and move error.pngJared Adams1-0/+2
There is no reason why error.xml shouldn't be in this repository, as it is used when no sprite data is present and is a very small file anyways. Servers can still replace these if they want to. error.png is only used in sprites, so should be in the new sprites folder too. Reviewed-by: 4144
2010-06-12Fix memory leak in socialwindow.cpp.Andrei Karas1-1/+17
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-06-12Prevent removing dead players by timer.Andrei Karas1-1/+4
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-06-12Fix crash after die.Andrei Karas1-0/+3
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-06-10Fix a bug with empty update hostsJared Adams1-0/+4
2010-06-10Merge BeingManager and FloorItemManager as ActorSpriteManagerJared Adams34-595/+510
No need for two different classes to manage ActorSprites. Reviewed-by: Chuck Miller
2010-06-09Fix dead Beings not being removed using tmwAthenaJared Adams7-45/+55
Rename mWalkTime to mActionTime in Being and have Being manage death. Reviewed-by: 4144
2010-06-09Remove hard-coded frame counts from Being classJared Adams10-99/+174
Also removes the Monster/Player difference in tmwAthena's Being::logic and moves the particle code from Being::setAttack to Being::Logic for tmwAthena. Reviewed-by: Chuck Miller
2010-06-08Handle not loading target files more gracyfullyChuck Miller1-2/+10
It no longer crashes, but will write to the log file instead Also added checks so it does not crash elsewhere when the target cursors are unloaded The game is still playable without the target cursor because the display name of a being changes when it gets targetted... so no need to be a fatel error. Reviewed-by: Thorbjørn Lindeijer
2010-06-06Softcode the stat for character creation for manaservJared Adams4-18/+27
Reviewed-by: Thorbjørn Lindeijer
2010-06-06Fix memory leak in setup_playersAndrei Karas1-9/+7
Reviewed-by: Thorbjørn Lindeijer
2010-06-06Fix memory leak in statuswindowAndrei Karas1-0/+7
Reviewed-by: Thorbjørn Lindeijer
2010-06-06Fix memory leak in playerrelationsAndrei Karas1-1/+10
Reviewed-by: Thorbjørn Lindeijer
2010-06-05Fix memory leak in minimapAndrei Karas3-9/+4
Reviewed-by: Thorbjørn Lindeijer
2010-06-03Cleanup some logging statementsJared Adams2-9/+3
Reviewed-by: Thorbjørn Lindeijer
2010-06-03Ignore unknown server types in the server listJared Adams1-0/+9
Problem reported by Sokon. Reviewed-by: Ignoring server entry with unknown type:
2010-06-03Unload loaded DBs before loading them againJared Adams8-13/+24
This greatly simplifies handling DBs when changing states. No more need to manage unloading in Client (except when exiting). Reviewed-by: Thorbjørn Lindeijer
2010-06-03Fix an unitialized variable problem in ThemeJared Adams1-0/+1
Reviewed-by: Thorbjørn Lindeijer
2010-06-01Made the MP bar be shown only if the protocol is using it.Yohann Ferreira5-15/+55
Reviewed-by: Jaxad0127.
2010-05-29Precised the use of the [mana-file] in --help.Yohann Ferreira1-0/+4
Reviewed-by: Thorbjorn. Resolves: Manasource Mantis #136.
2010-05-28Fix memory leak in last patch.Andrei Karas1-0/+1
Reviewed-by: Bertram
2010-05-27Fix drawing incorrect utf8 strings issue.Andrei Karas3-3/+21
Reviewed-by: Bertram Resolve: Manasource Mantis #143
2010-05-24Show selected target with bold font.Andrei Karas5-9/+38
Also fix possible memory corruption. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-23Fix attack display for beings without an attack definedJared Adams2-8/+3
Reviewed-by: 4144
2010-05-22Fix handling of tmwAthena registration disabled bitJared Adams3-8/+9
2010-05-21Remove some unneeded printfsJared Adams3-7/+0
2010-05-21Fix transparent overlays under OpenGLJared Adams1-0/+4
This was accidentally broken in the SDL buffer commit. Reviewed-by: Thorbjørn Lindeijer
2010-05-21Fix compilationJared Adams1-1/+2
2010-05-21Merge branch '1.0'Thorbjørn Lindeijer43-149/+605
Conflicts: src/beingmanager.cpp src/beingmanager.h src/client.cpp src/localplayer.cpp
2010-05-21Fix a crash dealing with rescaled overlays under SDLJared Adams1-0/+1
Reviewed-by: Philipp Sehmisch
2010-05-21Fix some issues found by CppcheckJared Adams5-14/+22
2010-05-21Merge protocol from manaserv about thing types.Yohann Ferreira2-8/+15
Reviewed-by: Jaxad0127 (A few days ago...)
2010-05-21Fix handling sprite alphaJared Adams1-2/+1
This way, it's only set to the overlay alpha while drawing the overlay. Fixes PlayerBox rendering.
2010-05-21Avoid a crash when the updateHost is set to nothing in the config file.Yohann Ferreira1-2/+2
Reviewed-by: Jaxad0127
2010-05-21Fix some memory leaks in SDL layerd sprite bufferingJared Adams1-0/+9
2010-05-20Buffer layered sprites under SDLJared Adams10-69/+320
This improves framerate and allows transparent overlay for complex sprites. Two copies of the buffer are kept, one at full opacity, one with variable opactiy, to reduce calls to setAlpha. Reviewed-by: Bertram
2010-05-17Add support for different target cursor sizes for NPCsJared Adams4-24/+28
Moves the parsing logic for the size strings into BeingInfo to share the code. Reviewed-by: Freeyorp
2010-05-17Remove Monster, Player, and NPC classesJared Adams74-1625/+1131
Instead of having these three subclasses with minor differences, this commit merges them back into Being. In the future, we can make Beings that are talkable to some, attackable by others, etc. This also puts back support for monster equipment. Also changes remaining references to Being::Type and the constants to refer to ActorSprite::Type. Reviewed-by: Freeyorp
2010-05-13Draw item image in item popups.Andrei Karas4-11/+55
Now draw image only in chat item popup. Reviewed-by: Bertram
2010-05-09Move target cursor management into ActorSpriteJared Adams6-84/+170
This simplifies handling of target cursors, centralizing their logic into a single class, instead of two. Also make them more flexible and move the image files outside of the theme so servers can can control them and give them better names. Reviewed-by: Thorbjørn Lindeijer
2010-05-06Add support for floor item spritesJared Adams44-720/+1144
This commit adds a sprite hierarchy (Sprite->ImageSprite,AnimatedSprite,CompundSprite; CompoundSprite,Actor->ActorSprite;ActorSprite->Being,FloorItem) to collect common functionailty into new base classes which will make other Mantis tickets easier to do. Also allows monsters to use particle effects. Reviewed-by: Bertram
2010-05-06Fix reading arrays at index -1.Andrei Karas2-3/+12
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-06Remove hardcoded standard server urlsseeseekey1-5/+3
Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-05-06Make the logic for collision tiles more strictThorbjørn Lindeijer1-1/+1
Only recognize the collision tile as colliding, since having everything except the empty non-collision tile collide is confusing. Should also be changed on the server and in the tmwAthena exporter of Tiled. Reviewed-by: Dennis Friis
2010-05-06Fixed some copy/pasted documentationThorbjørn Lindeijer1-3/+3
2010-05-05Fix showing the type of the default serverJared Adams2-1/+3
Reviewed-by: Thorbjørn Lindeijer
2010-05-05Allow start game if update server is down.Andrei Karas1-9/+23
Small code style changes. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-04Clear NPC dialogs when the player diesJared Adams6-0/+24
Reviewed-by: Freeyorp
2010-05-04Fix mouse attack (tmwa)Andrei Karas1-4/+2
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-05-03synchronised protocol.h between manaserv, mana and manamobileMaximilian Philipps3-29/+79