summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-22Officially added the gender in the manaserv protocol.Yohann Ferreira3-4/+14
Reviewed-by: bjorn.
2011-09-30Fixed the negative XP notifications on levelups.Yohann Ferreira1-3/+20
This used to have an associated issue but I just can't find it anymore. Reviewed-by: Thorbjorn.
2011-09-30Remove goto from dye.cppAndrei Karas1-2/+11
2011-09-30Fixed a typo in a default value.Yohann Ferreira1-1/+1
2011-09-29Fixed item popup still visible after closing inventory window.Erik Schilling5-1/+19
Reviewed-by: Bertram.
2011-09-28Small changes requested by o11c - part 2.Yohann Ferreira1-39/+38
Most noticeably I added the shortcut in a popup, even when there are no images to the image buttons in the windowmenu.
2011-09-28Small changes requested by o11c - part 1.Yohann Ferreira2-3/+8
2011-09-28Added true arrows graphics to tab area buttons.Yohann Ferreira5-3/+9
2011-09-28Made the shortcuts link actually use the plural in its caption.Yohann Ferreira1-4/+4
2011-09-28The shortcuts are now refreshed when reassigning keys.Yohann Ferreira5-10/+77
2011-09-28Added icons to the confirm and cancel button of the quit dialog.Yohann Ferreira5-2/+8
This a good example of use for the new graphics and button functionalities.
2011-09-28Fixed back the special window display in a basic but working way.Yohann Ferreira2-1/+4
This to avoid cluttering the gui until Crush has the time to fulfill his issue about those.
2011-09-28Added a naive way to display the window keyboard shortcut.Yohann Ferreira2-10/+31
This is not updated once the keys are reassigned but it will do the trick for now.
2011-09-28Reached the state where the menu bar is now using image buttons.Yohann Ferreira11-7/+15
I had to adapt a bit the images given by Enchilado to do that.
2011-09-28Made the button icon only shown when the icon file is valid.Yohann Ferreira3-9/+9
And falls back to the text based caption otherwise.
2011-09-28Added the setup button icon and optimized the image size.Yohann Ferreira3-1/+1
2011-09-28Changed the Social button to an image one.Yohann Ferreira6-12/+26
I also made the client able to keep the old behaviour, and i changed the button api to not require the icon frames size as it could easily guess them.
2011-09-28Added textpopup on mouse hovering support to buttons.Yohann Ferreira3-2/+74
I added a use of it to the menu buttons.
2011-09-28Got rid of the superfluous definition of the slot number for tA.Yohann Ferreira2-4/+4
2011-09-15Improve handling of packet lengths.Ben Longbons1-42/+46
* Use a symbol, VAR, instead of -1 for variable-length packets. * Also change it's value to 1, so the length can be properly unsigned. Note: A packet can't actually have length 1, since packet ID is 2 bytes. * Use correct type (uint16_t) for packet id and length in more places. * Avoid reading beyond the length of the array. * Immediately parse variable length packets with length 4 (i.e. no body) instead of waiting for another byte to arrive first. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2011-09-15Prevent copying of MutexLockerBen Longbons1-1/+11
There was a bug here, which wouldn't surface if the copy was elided. Fixed by using a move constructor. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2011-09-15Instead of SDL_mutex, use Mutex wrapper and MutexLocker for safetyBen Longbons2-23/+12
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2011-09-13Made the delay between to keyboard move calls functional.Yohann Ferreira8-8/+44
It has been fixed and be made adapted to the being movement speed. Now, for instance, the client sends 3x times less move calls to the tA server, and roughly 20x times for the Manaserv's one. Resolves: Mana-Mantis #346. Reviewed-by: o11c.
2011-09-13Renamed Map::DebugFlags enumeratorsThorbjørn Lindeijer4-34/+34
Their name is a bit more clear with DEBUG prefix rather than MAP prefix. They're already scoped in the Map class anyway. MAP_NORMAL was changed to DEBUG_NONE to represent no debug flags. Acked-by: Bertram
2011-09-13Fix compilation by readding a missing enum value.Yohann Ferreira1-0/+1
Trivial.
2011-09-11Merge branch '0.5'Thorbjørn Lindeijer8-50/+72
Conflicts: CMakeLists.txt src/map.cpp src/winver.h
2011-09-11Fixed OpenGLGraphics::drawRescaledImagePatternv0.5.3Thorbjørn Lindeijer2-32/+46
This fixes overlay effects that are meant to scale with screen resolution. The problem was that the texture coordinates were not calculated correctly. They were adjusted to the scaled size of the image, and when scaling both the vertex and the texture coordinates, the image will simply not appear scaled at all. Now the texture coordinates are calculated based on the visible part of the original texture. There was also a problem with the vertex coordinates, which were not taking into account the visible part of the image. TMW-Mantis-issue: 1047 Reviewed-by: Andrei Karas <akaras@inbox.ru>
2011-09-11Fixed drawing glitch with overwide tilesThorbjørn Lindeijer3-5/+11
The layer rendering code was not prepared to handle tiles that were wider than the tile width of the map. This commit also fixes the initialization of the maximum tile height, which was based on the map height rather than the tile height. This could slightly reduce overdraw for some maps. Reviewed-by: Stefan Beller <stefanbeller@googlemail.com>
2011-09-11Bumped version to 0.5.3 and updated the NEWS fileThorbjørn Lindeijer7-15/+17
2011-09-09Set the current build version to 0.6.0 in prevision of a release.Yohann Ferreira2-4/+4
2011-09-08Additional change to build master without OpenGLBen Longbons1-1/+2
2011-09-08Merge remote-tracking branch 'origin/0.5'Ben Longbons2-1/+2
2011-09-07Changes need to build without OpenGLBen Longbons2-1/+2
2011-09-05The draw order of particles is now Y - 16 pixels.unknown12-16/+54
This means that the order point of the sprites relative to the particles is no longer the lowest point of the image but instead a point which is approximately between the feet of the characters. The intent of the latest commits to treat sprites as perpendicular to the ground instead of perpendicular to the view line is retained by this approach. I tested this with various particle effects and it results in exactly the expected behavior. Note that this does NOT fix the current problems on TMW with the snail slime effect, because the TMW content team accidently placed this one 10px in the air. Sorry, garbage in, garbage out. getDrawPixelY was re-renamed to getPixelY to be consistent with getPixelX, while getPixelY was renamed to getDrawOrder, to make its purpose clear. Further, particles are no longer drawn when behind other objects. This is implemented by adding a drawnWhenBehind member function to Actor, which currently returns true for everything except particles and compound- sprites with more than one sub-sprites (the later case is consistent with the previous behavior of them). An exception are text particles which are excempt from this exception and whose drawing order is also biased by 16 pixels south instead of north to make them more visible. Plus some minor changes from Bertram. Reviewed-by: Bertram. Resolves: Mana-Mantis #362.
2011-08-18Removed unnecessary warning about windows that might be movedThorbjørn Lindeijer1-9/+3
Keeping the windows within the visible area is expected behavior, no matter for how long it has been broken. It makes little sense to warn about expected behavior.
2011-08-10Client logs in with salted password now.Stefan Beller4-3/+33
The password is salted by a random number sent by server. Reviewed by Bertram.
2011-07-01make update-po + gettext special comment added.Yohann Ferreira8-394/+412
I added the //xgettext:no-c-format comment because gettext was wrongly guessing the no-c type of those strings. Nicely suggested by Byakushin a lot of time ago.
2011-06-24Fixed path finding by putting back the diagonal values in place.Yohann Ferreira1-4/+2
2011-06-24Made use of the attack speed sent by the tA server.Yohann Ferreira1-2/+5
Part of issue #343.
2011-06-24Small French translation update by myself.Yohann Ferreira1-397/+380
2011-06-24make update-poYohann Ferreira7-2563/+3147
2011-06-23German translation update by Ablu.Yohann Ferreira1-338/+363
Resolve: Mana-mantis #368.
2011-06-23Fixed type in the guildhandler message as reported by Der Loisl.Yohann Ferreira1-1/+1
Thanks for the report. :) Resolves: Mana-issue: 367.
2011-06-23Made the being death sequence better handled.Yohann Ferreira10-6/+43
Now the death animation is set to the minimum of 1.5 seconds just as in the older versions, but permit longer sequences as well. I didn't put a maximum hard cap on it as it may be a burden for the maintainers whatever the hard cap would be, and as it isn't vital to set one anyway. Resolves: Mana-Mantis #364. Reviewed-by: bjorn, Jaxad0127.
2011-06-22Made possible to separate the dye colors and channelsYohann Ferreira9-20/+53
for particle effects. It is now possible to write, for instance: <particlefx>my-particle-file.xml|#cbcb78,345678</particlefx> and in my-particle-file.xml: ... <property image="my-image.png|W" /> ... This will permit the use (and reuse) of generic particle files.
2011-06-22Merge branch 'master' of gitorious.org:~bertram/mana/mana-any-square-tile-sizeYohann Ferreira21-131/+220
2011-06-22Applied fixes requested by cody.Yohann Ferreira7-19/+17
- Made the map teleport distance fixed for manaserv. - Small cleanups. The branch is considered reviewed by: Cody. Resolves Mana-Mantis: #74.
2011-06-19Making party invite functionalStefan Dombrowski3-35/+57
Reviewed-by: Bjorn
2011-06-19More C++0x Windows compilation fixes.Philipp Sehmisch3-6/+7
Another case of M_PI being no longer defined in cmath.h _MAX_PATH doesn't work anymore, but there is still MAX_PATH putenv doesn't work anymore, so I replaced it with a function from the WINApi Reviewed-by: Thorbjorn
2011-06-18Fixed compilation problems on windows caused by the switch to C++0x.Philipp Sehmisch2-12/+33
The M_PI constant from <cmath> is not standard anymore, so I replaced it with an own PI constant. WIN32 isn't defined anymore which caused the enet UNIX header to be included, so I had to define it in the project compilation settings. Reviewed-by: Thorbjorn