summaryrefslogtreecommitdiff
path: root/src/net/ea
AgeCommit message (Collapse)AuthorFilesLines
2025-06-25Split #include "utils/performance.h" out of localconsts.hFedja Beader7-0/+7
only about 160 out of 1500 files that include localconsts.h need to include performance.h Saves 12% from compile times (with profiler ON) and 0.1% with profiler OFF. **** mana/plus!189
2025-05-24Switch source code headers to ManaVerse & update copyrights to 2025Fedja Beader62-186/+186
.. instead of manaplus's header. & update copyrights to 2025. Open problem: should it be "The ManaVerse Client", "the ManaVerse client" or something in between in "This file is part of ..." line? All caps is current situation. Squashed with: * update copyright dates for 2025 * Revert "Switch to branch of mplint that checks for manaverse copyright headers" * Change back to uppercase The Why? This line was changed 3 times in history and all had an uppercase The. PS: ManaVerse has no endorsment from the parent project, ManaPlus. * Change to "This file is part of the ManaVerse Client" poppet says 'the' instead of 'The' find . \( -name "*.h" -o -name "*.cpp" -o -name "*.cc" -o -name "*.inc" \) -execdir sed -i -e 's/This file is part of The ManaPlus Client/This file is part of the ManaVerse Client/' {} \+ * Change 'The ManaPlus Client' to 'The ManaVerse Client' in headers find . \( -name "*.h" -o -name "*.cpp" -o -name "*.cc" -o -name "*.inc" \) -execdir sed -i -e '2s/ManaPlus/ManaVerse/' {} \+ * Switch to branch of mplint that checks for manaverse copyright headers .. instead of manaplus's **** mana/plus!179
2025-05-21Fix copy-paste failure of profiler block namesFedja Beader1-2/+2
introduced in 8ad99cc3 / "Add profiler lines into some functions." **** mana/plus!181
2025-04-26Use stdint.h instead of ifdefing tr1/cstdint, cstdint and stdint.hFedja Beader2-20/+3
Rationale: By the standard, cstdint guarantees these basic types in std::, but *may* put them into the global namespace. By including stdint.h directly, we guarantee that these types are in the global namespace. stdint.h is also a C++ standard header guaranteed as part of the C compatibility support, thus toolchains should support this. The proper(tm) way of going about this would mean either prefixing [u]int[0-9]*_t with std:: everywhere where they are used (a chore) or having a proxy header that includes cstdint and around 50 using statements. The latter sounds to me like a good approach for toolchains that do not provide stdint.h and do not pollute global namespace. If such a toolchain exists in the wild. See discussion at https://stackoverflow.com/questions/13642827/cstdint-vs-stdint-h In practice, my toolchain's (gcc 14 on GNU) cstdint includes stdint.h then drags those types into std:: as well. **** mana/plus!170
2025-04-03Fix wrong read of clif_GM_kickack packetFedja Beader2-87/+0
2024-08/01/#Debug.log:[14:25:43] Wrong actual or planned inbound packet size!. Packet id: 205(0xcd), Planned size: 3, Actual size: 6 2 bytes packet id + 1 byte flag = 3 2 bytes packet id + 4 byte flag (wrong) = 6 Squashed with: * Separate processKickAck handler for eathena * Move ea's adminrecv and its sole handler processKickAck into TMWA namespace * Revert "Fix wrong read of clif_GM_kickack packet" This would break TMWA packet processing, as @thorbjorn pointed out. This reverts commit efe43bac4de90b3e427d985b77cb3dd3206bcf9d. **** mana/plus!148
2024-10-11Fix switchmap during switch character crash (@toevent)Fedja Beader1-1/+6
use @toevent, then switch character (and stay on character screen). Thread 1 "manaplus" received signal SIGSEGV, Segmentation fault. 0x.. in Game::getCurrentMap (this=<optimized out>) at ./game.h:108 108 { return mCurrentMap; } (gdb) bt 0x.. in Game::getCurrentMap (this=<optimized out>) at ./game.h:108 Ea::PlayerRecv::processMapMask (msg=...) at net/ea/playerrecv.cpp:242 **** mana/plus!108
2024-08-28Remove silly msg.read* duplicationFedja Beader1-2/+3
& shaves ~5KB from debug binary. previd=""; while read -r line; do if [[ $line =~ .*"msg.read"[^\"]*"\""([^\"]*).* ]]; then id="${BASH_REMATCH[1]}"; if [[ "$id" == "$previd" ]]; then printf "%s\n" "$line"; fi; previd="$id"; fi; done < <(grep -r 'msg.read.*' src/net/) **** mana/plus!91
2024-05-16Refactor loadFromLogFile calls into ChatTab contructorFedja Beader1-2/+0
This has the side effect that now #Debug history is also loaded. **** mana/plus!84
2024-02-16Client rebranding: Partly import changes from !28Jesusalva Jesusalva1-2/+3
Co-Authored-By: jak1 <jak1@themanaworld.org> Co-Authored-By: jesusalva <jesusalva@themanaworld.org> Co-Authored-By: Fedja Beader <fedja@protonmail.ch>
2024-02-09Update copyright headers up to 2023Jesusalva Jesusalva63-63/+126
2023-04-07added missing cstdint includejak12-0/+4
2022-12-27increase trade window items to 20ccc1-1/+1
2020-05-07Fix code style after merged switch port codeAndrei Karas1-2/+4
2020-04-25add "SAVE_PASSWORD" define optioncpasjuste1-5/+13
2020-03-13Fix alternate ip address for char and map servers [ci skip]Andrei Karas1-0/+1
2020-02-23Fix some code style issuesAndrei Karas1-1/+1
2019-03-21Remove useless explicit keyword from BeingHandler constructors.Andrei Karas1-1/+1
2019-03-21Possible fix for desync in movingAndrei Karas3-5/+3
Handle player stop packet always. Check desync always if tile changed client side. Check desync always if server move response packet received. Removed unused configuration option.
2019-03-16Sort fields in class InventoryItemAndrei Karas1-15/+15
2019-03-02Impliment packet SMSG_PLAYER_COMBINED_EQUIPMENT 0x0b0aAndrei Karas1-3/+7
2019-03-02Impliment packet SMSG_INVENTORY_START 0x0b08Andrei Karas4-6/+6
2019-01-01Update copyright year.Andrei Karas64-64/+64
2018-11-27Remove extra ; from different code.Andrei Karas4-7/+7
2018-10-29Fix code style.s20181102Andrei Karas4-6/+6
2018-08-06Move InventoryRecv::processPlayerInventoryUse from ea namespace into tmwa ↵Andrei Karas2-26/+0
and eathena.
2018-07-26Add support for changed item id size in packets.Andrei Karas1-1/+1
From some packet version hercules support item id fields as int32.
2018-06-30Rename "other" gender into "hidden" gender.Andrei Karas1-1/+1
2018-05-23Fix crash with wrong moving path.Andrei Karas1-0/+5
2018-02-15Remove unused channel parameter from talk methods.s20180215Andrei Karas2-5/+3
2018-02-12Fix code style. Add missing actorManager null checks.Andrei Karas1-0/+2
2018-01-09Remove useless A_CONST attributes.Andrei Karas7-12/+12
2018-01-04Update copyrights year.Andrei Karas64-64/+64
2017-12-28Remove extra includes.Andrei Karas1-0/+2
2017-12-28Add missing override and final to destructors.Andrei Karas6-6/+6
Also remove some empty destructors.
2017-12-23Remove default parameters from npcdialog.Andrei Karas1-3/+3
2017-12-23Remove default parameters in inventorywindow.Andrei Karas1-1/+1
2017-12-22Remove default parameters from chatwindow.hAndrei Karas1-2/+2
2017-12-22Remove default parameters from confirmdialog.hAndrei Karas1-1/+3
2017-12-17Remove default parameters from viewport.hAndrei Karas1-1/+1
2017-12-17Remove default parameters from localplayer.Andrei Karas1-1/+1
2017-12-17Remove default parameter from PlayerInfo::setStatMod.Andrei Karas1-1/+3
2017-12-17Remove default parameter from PlayerInfo::setStatBase.Andrei Karas1-1/+3
2017-12-17Remove default parameter from PlayerInfo::setAttribute.Andrei Karas1-1/+3
2017-12-16Remove default parameters from Being::takeDamage.Andrei Karas1-1/+1
2017-09-07Fix possible thread structure memory leak on SDL2 if thread terminated ↵Andrei Karas1-5/+2
before cleanup.
2017-08-30Move some variables to better scope.Andrei Karas1-1/+3
2017-08-26Add inventory type for mail view window. Not allow drag from/to this inventory.Andrei Karas1-0/+1
2017-08-26Rename InventoryType::Mail into InventoryType::MailEdit.Andrei Karas1-1/+1
2017-08-23Add partial adding items into new mail message.Andrei Karas1-1/+1
2017-08-21Remove useless variables.Andrei Karas1-2/+1