summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-06-25Split #include "utils/performance.h" out of localconsts.hFedja Beader1-0/+1
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-06-24Fix: Move to target in attack rangeasuratva1-0/+1
The "move to target in attack range" option in the Quick Settings is not handled correctly. In its current state that option ends up becoming equivalent to "move to target in distance 10". This is a fix for that. **** mana/plus!195
2025-05-24Switch source code headers to ManaVerse & update copyrights to 2025Fedja Beader1-3/+3
.. 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-112025 Q1 miscallaneous reformattingFedja Beader1-9/+10
**** mana/plus!176
2025-04-14Limit nearby pickups to actual nearby area (3x3)Fedja Beader1-4/+2
Why 6? 2*2 + 1*1 is still < 6, so this allowed you to pickup items 2 tiles away. A bug. Test in ML: can pickup in 5x5 area with Quick option selector set to 3x3. Test in TMW: can only pickup in 3x3 area regardless of this setting. **** mana/plus!167
2025-04-14ML: turn to face target when attacking and server-side attack is off.Fedja Beader1-3/+2
Git blame for this says that Hercules does this on its own, but this is only true if server side attack is enabled. Using that setting results in archers being warped into targets, so its use is discouraged. End of unit_attack_timer_sub in Hercules:src/map/unit.c has unit direction updates gated on ud->state.attack_continue. **** mana/plus!160
2025-02-20Convert navigateTo to take a Position instead of two integers.Fedja Beader1-30/+30
Tile coordinates dance in pairs, so let's pair them up. also grows exe size by about 3K, hope this will go away when the rest is converted to Position as well. Note: on my local debug build only. Not on gcc10 CI. Squashed with: * Should it be mNavigateDest or mNavigateTo? Hmm, the jury is still out there ... **** mana/plus!116
2025-02-03Typofix: mShowNavigePath -> mShowNavigatePathFedja Beader1-4/+4
**** mana/plus!119
2025-01-28Fix typo chec -> checkFedja Beader1-2/+2
**** mana/plus!113
2024-08-28Fix off-by-one causing archer attack mode to approach to within attack range - 1Fedja Beader1-2/+3
**** mana/plus!96
2024-08-27Redundant. I don't think the time savings due to not calculating distance, ↵Fedja Beader1-24/+3
if any, are worth it. In fact, this might even save some time. Calculating distance may be faster than iterating through memory twice. **** mana/plus!95
2024-03-11Put variable declarations into scope where they are used.Fedja Beader1-3/+3
**** Approved-by: Jesusalva Jesusalva <jesusalva@themanaworld.org>
2024-03-11Make pickup code go to nearby tile, not on top of item.Fedja Beader1-4/+18
Fixes most cases of walking through doors/warps on pickup. ****
2024-02-09Update copyright headers up to 2023Jesusalva Jesusalva1-1/+2
2023-08-16Fix unable to pickup non-ignored items while standing on an ignoredFedja Beader1-3/+2
item. What happened: 1) The pickup code first tries to pickup first item under you without checking if it is ignored. 2) ::pickUp queries ratelimiter, which clears to send. 3) ::pickUp checks if item is ignored and bails out 4) The pickup code did not bail early, despite "success" of (1) and selects a non-ignored item to pick-up. 5) ::pickUp queries ratelimiter, which thinks that a packet has been sent in (2) and aborts.
2020-02-23Fix some code style issuesAndrei Karas1-1/+3
2019-04-09Fix code styleAndrei Karas1-8/+16
2019-04-08Add separate auto move sync distance for legacy serversAndrei Karas1-2/+37
2019-03-21Possible fix for desync in movingAndrei Karas1-2/+35
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-01-01Update copyright year.Andrei Karas1-1/+1
2018-11-27Remove extra ; from different code.Andrei Karas1-9/+9
2018-11-05Fix code style.Andrei Karas1-3/+8
2018-10-29Fix code style.s20181102Andrei Karas1-8/+8
2018-03-04Add support for hightlight attribute in groups.xmlAndrei Karas1-6/+1
This attribute allow to highlight gm groups based on groups.xml
2018-01-04Update copyrights year.Andrei Karas1-1/+1
2017-12-22Remove default parameters from userpalette.Andrei Karas1-2/+2
2017-12-22Remove default parameters from properties.hAndrei Karas1-4/+4
2017-12-22Remove default parameters from map.Andrei Karas1-5/+15
2017-12-17Remove default parameters from actormanager.cppAndrei Karas1-5/+5
2017-12-17Remove default parameters from localplayer.Andrei Karas1-17/+27
2017-12-17Remove default parameter from PlayerInfo::setStatMod.Andrei Karas1-1/+3
2017-12-17Remove default parameter from PlayerInfo::setStatBase.Andrei Karas1-1/+2
2017-12-16Remove extra nextTile function from localplayer.Andrei Karas1-1/+1
2017-12-14Remove default parameters from soundmanager.Andrei Karas1-2/+2
2017-12-11Remove default parameters from ChatTab::chatLog.Andrei Karas1-4/+13
2017-10-18Add packet SMSG_PLAYER_GET_EXP2 0x0acc.Andrei Karas1-10/+19
2017-09-27Fix some issues with int64 to int32 implicit conversions.Andrei Karas1-2/+2
2017-09-27Change player job level, exp from stat object to attribute.Andrei Karas1-20/+17
2017-09-27Rename Attributes::PLAYER_LEVEL to Attributes::PLAYER_BASE_LEVEL.Andrei Karas1-2/+2
2017-09-27Change attributes value type to int64.Andrei Karas1-3/+3
2017-08-22Remove default patameter from LocalPlayer::setAction.Andrei Karas1-7/+8
2017-08-21Remove useless else.Andrei Karas1-38/+28
2017-08-14Replace static members usage from pointers to direct classes.Andrei Karas1-6/+5
clang-tidy warning: readability-static-accessed-through-instance
2017-07-12Move group id from localplayer to being.Andrei Karas1-2/+1
2017-07-12Rename gm level into group id in localplayer.cppAndrei Karas1-4/+4
2017-07-12Add packet SMSG_PLAYER_ATTRS 0x0b25.Andrei Karas1-2/+6
It allow set local player attributes from server. For now it send real group id.
2017-06-29Move foreach macroses into separate file.Andrei Karas1-0/+1
2017-06-13Move virtual methods from Being constructor to postInit.Andrei Karas1-2/+3
2017-06-11Rename player_relations into playerRelations.Andrei Karas1-2/+2
2017-06-09Fix code style.Andrei Karas1-3/+0