summaryrefslogtreecommitdiff
path: root/src/net
AgeCommit message (Collapse)AuthorFilesLines
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer117-468/+351
2010-02-19Fixed a crash when trying to switch serversThorbjørn Lindeijer16-325/+364
Ownership of the charInfo global variable wasn't well defined. It was being locked, unlocked and generally modified from a lot of places, and somewhere in this mess it ended up crashing when switching servers. Now the CharHandler instances, for eAthena and manaserv respectively, own this list of characters. A new class, Net::Character wraps up the slot index in combination with the player dummy. The list is passed on to the CharSelectDialog each time it changes. Both related and unrelated cleanups were made as well. Reviewed-by: Jared Adams
2010-02-14Initialize dialog variable to avoid compiler warningThorbjørn Lindeijer1-4/+2
Compiler warning seems unjustified, but the code could make this more clear.
2010-02-14Force client to exit on detecting a zero length packet. The currentTametomo1-0/+3
networking code will get stuck in an infinite loop currently if it tries to handle these, and the packet id isn't helpful in identifying what packet it is. Since this specific case creates a rabbit, and will flood logger with unhandled messages until the hard drive is completely filled, it's a lot more friendly to force a client exit on detection than to continue. Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-13Make NPC dialogs instance instead of globalJared Adams9-144/+151
This change allows players to talk to multiple NPCs at a time (if the server agrees). Manaserv's netcode allows multiple commerce instances too. eAthena's is limited to one commerce instance, due to protocol limitations.
2010-02-13Allow player to talk after deathAndrei Karas2-2/+3
Mantis-issue: 938 (TMW Mantis)
2010-02-11Allow redirects when downloading updatesBen Longbons1-0/+1
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-02-09Got successfully rid of tile width/height fallback values as asked by Jaxad.Bertram2-11/+8
But I added some logs when speed and other actions where refused due to game/map uninitialized. This could help.
2010-02-09Pushed away some 32 hardcoded values.Bertram2-5/+28
2010-02-09Separated fallback defaults for tile width and height.Bertram2-9/+12
2010-02-09Made the Beings' logic be able to handle any tile height/width.Bertram8-13/+44
This is the First step to get rid of most hardcoded 32 values.
2010-02-08Move party creation command from eA's PartyTab to CommandHandlerJared Adams2-10/+12
Also fix party invite by name when you aren't in a party.
2010-02-08Fix some bugs in party handling and add HP to AvatarListBoxJared Adams1-1/+6
2010-02-08Merge PartyWindow and GuildWindow into SocialWindowJared Adams9-86/+107
2010-02-07Cleanup some memory issuesJared Adams1-2/+4
2010-02-07Updated Copyright year to 2010!Bertram114-114/+114
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-02-06Merged the Engine class into the Game classThorbjørn Lindeijer4-29/+26
There was little point in keeping the Engine class separate. It wasn't an engine at all, but only kept track of the currently active map, a job more suitable for the Game class anyway.
2010-02-05Fixed the low framerate problem by not waiting for network eventsThorbjørn Lindeijer1-6/+2
The enet service loop was waiting up to 10ms for a new network packet to come in. There is no need for this, so just remove it. Raised the framerate from about 60 to over 200 fps for me.
2010-02-03Factorized speed translation from tile per seconds to pixels per ticks.Bertram3-8/+24
2010-02-01Reduced CPU consumption by setting speed per ticks value only once.Bertram2-5/+17
2010-01-31Unify eAthena and manaserv support in to one build.Daniel Bradshaw9-34/+34
Finish support for server types in the server dialog. Using the new server type function, strip out ifdefs, replacing them with if blocks for later merging in smaller atomic commits. Remove any remaining references to the support defs, including in build system.
2010-01-29Block guild creation under eAthena for nowJared Adams1-0/+8
2010-01-28Added virtual destructors, some implicit casts, and a couple of type changes.Daniel Bradshaw18-4/+37
Many warnings removed. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-01-27Merge branch 'master' of gitorious.org:mana/manaBertram1-6/+11
2010-01-27Added mutators/accessors to being.h and smal cleanups.Bertram3-18/+18
2010-01-26Fix trade spam in eA.Andrei Karas1-6/+11
2010-01-26Fix a few more _SUPPORT ifdefs and namespace PartyTabJared Adams3-1/+10
2010-01-25Fix a bug when converting strings to server typesJared Adams1-2/+2
2010-01-24Remove some more _SUPPORT ifdefsJared Adams12-49/+135
2010-01-24Better handle server typesJared Adams1-9/+0
Now they are stored in the config file instead of defaulting to current build type.
2010-01-19Fix problems when dying with an NPC dialog openJared Adams1-0/+3
2010-01-13Supress level up notifications when startingJared Adams2-4/+4
2010-01-13Fix the previous commit (about following)BlueSansDouze1-1/+1
2010-01-13Adds a follow manager for usersBlueSansDouze1-2/+23
Right click contextual menu on player "follow" entry Cancel the following by moving with mouse or keys Adds a special behavior for map changes
2010-01-12Standardize header orderJared Adams46-184/+190
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2010-01-10Remove some support ifdefsJared Adams2-2/+5
2010-01-10Change code styleAndrei Karas19-82/+113
2010-01-08Fix a segfault when exiting before netcode is loadedJared Adams2-3/+14
2010-01-07Chat auto completingAndrei Karas2-0/+7
2010-01-06Prevented a segfault when the client receives a chat message before the GUI ↵Philipp Sehmisch1-1/+3
is initialized.
2009-12-27Item was not shown as equipedStefan Dombrowski1-3/+3
If the first item in the inventory was equiped, then that item was not showen in the equipment window.
2009-12-27Fix double servers list in ServerDialogAndrei Karas1-0/+11
2009-12-22Rename tmw-skills.xml to mana-skills.xmlThorbjørn Lindeijer1-1/+1
Should eventually just be skills.xml, but we can't do that at the moment due to sharing the client data repository between different server types.
2009-12-19Added support for resources.xml from update server... Also added option to ↵Chuck Miller1-1/+1
download music optionally I had to edit the XML wrapper a bit, basicilly its constructor can now take a optional thrid arguement which will tell it to use a resman or open the file directly Also I added fallback support for the old resouce2.txt so servers don't have to upgrade if they do not want to
2009-12-19Fix a race conditionFreeyorp1-2/+6
If the server tells the client to update the mp bar when handling an matk change message before the status window has initialised, a segfault occurs
2009-12-16Stored the cached config value which says if non-crucial particle effects ↵Philipp Sehmisch2-0/+19
are enabled or not in a static member of class Particle instead of an instanced member of Being.
2009-12-08Fix handling of an enum switchJared Adams2-4/+2
Removes warnings on older compilers.
2009-12-07Fix bugs in eAthena's equipment handlingJared Adams2-8/+23
Do a bit of cleanup too.
2009-12-07Simplify Equipment handlingJared Adams8-291/+206
Also merge eAthena's EquipmentHandler and InventoryHander. Fixes http://mantis.themanaworld.org/view.php?id=888 .
2009-12-05Syncronize registration info with ManaServJared Adams2-5/+3