Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: change shared_ptrs from copy to reference #2863

Open
wants to merge 61 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
655ec2d
init
beats-dh Jul 28, 2024
470cc87
up
beats-dh Jul 30, 2024
37aa37c
test
beats-dh Jul 31, 2024
4053cf8
improve
beats-dh Aug 1, 2024
ef024cb
fix crash
beats-dh Aug 2, 2024
5042d46
up
beats-dh Aug 4, 2024
c74a062
?
beats-dh Aug 15, 2024
c1d38ce
fix warnig and ative SIMD
beats-dh Aug 16, 2024
3219358
fix crash
beats-dh Aug 17, 2024
a1eca9c
test
beats-dh Aug 17, 2024
0b985aa
improve
beats-dh Aug 18, 2024
e399679
init
beats-dh Aug 17, 2024
ec43734
test
beats-dh Aug 24, 2024
e108c96
teste
beats-dh Aug 27, 2024
bd821b8
Update events.cpp
beats-dh Aug 29, 2024
c5a2b08
remove opemtelemetry lib metrics off
beats-dh Aug 30, 2024
b735dc1
Code format - (Clang-format)
github-actions[bot] Aug 31, 2024
467210d
Update qodana.yml
beats-dh Aug 31, 2024
87714c7
update
beats-dh Sep 1, 2024
a927fc3
update
beats-dh Sep 1, 2024
555c59a
fix exploit login
beats-dh Sep 1, 2024
727ffd6
update
beats-dh Sep 2, 2024
082eb72
update 07/09/2024
beats-dh Sep 8, 2024
8ff19f3
add atomic-queue connection
beats-dh Sep 11, 2024
bd4ef8b
update avx2 encrypt, decrypt and fix crash convertIP function
beats-dh Sep 11, 2024
486e880
update player online cycle
beats-dh Sep 11, 2024
2e4c0e7
fix crash
beats-dh Sep 11, 2024
429bccf
remove SIMD condition
beats-dh Sep 12, 2024
09ee5aa
new use atomic_queue in getOutputMessage
beats-dh Sep 13, 2024
9211e68
restore changes
beats-dh Sep 14, 2024
304b93d
up
beats-dh Sep 14, 2024
ff9ea35
up
beats-dh Sep 16, 2024
0480fda
up
beats-dh Sep 17, 2024
c876ec8
Code format - (Clang-format)
github-actions[bot] Sep 19, 2024
67575ab
up
beats-dh Sep 25, 2024
03dca05
fix build
beats-dh Sep 28, 2024
7d43c43
Code format - (Clang-format)
github-actions[bot] Sep 28, 2024
d68524c
fix
beats-dh Sep 29, 2024
e05caee
fix build
beats-dh Sep 29, 2024
14433a6
up
beats-dh Oct 1, 2024
dad1025
fix: some reverts and adjustments
dudantas Oct 16, 2024
edbfb8f
Merge branch 'main' into beats-fixs
dudantas Oct 16, 2024
174a763
fix: compilation errors conflicts
dudantas Oct 16, 2024
6e10a67
feat: some adjustments
dudantas Oct 16, 2024
b0d8af6
feat: some reverts
dudantas Oct 16, 2024
81eb200
fix
beats-dh Oct 17, 2024
e1fe506
feat: convert SpawnMonster to shared_ptr
dudantas Oct 17, 2024
f3caa03
fix: client debug
dudantas Oct 17, 2024
35f07c9
improve: some reverts and adjustments
dudantas Oct 17, 2024
9c89b04
improve: some reverts and others shared_ptr to const reference
dudantas Oct 17, 2024
71599eb
improve: change filestream/fileloader to std::ranges::copy
dudantas Oct 17, 2024
77449e0
fix: revert wrong
dudantas Oct 17, 2024
9c67268
Merge branch 'main' into beats-fixs
dudantas Oct 18, 2024
2979ca2
Merge branch 'main' into beats-fixs
dudantas Oct 18, 2024
7e4b62d
fix: sonar check and enum forward declaration
dudantas Oct 18, 2024
4021fdf
improve: fix some sonar check and ubuntu compilation
dudantas Oct 18, 2024
e3a924e
Code format - (Clang-format)
github-actions[bot] Oct 18, 2024
fb8c8a4
fix: some sonar checks
dudantas Oct 18, 2024
a49ce33
fix: sonar
dudantas Oct 18, 2024
652b969
Merge branch 'main' into beats-fixs
beats-dh Oct 31, 2024
668528e
Merge branch 'main' into beats-fixs
dudantas Oct 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update events.cpp
  • Loading branch information
beats-dh committed Sep 28, 2024
commit bd821b8be007da8f710ab4f8615811055c15381a
2 changes: 1 addition & 1 deletion src/lua/creature/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ void Events::eventPlayerOnRequestQuestLine(const std::shared_ptr<Player> &player
scriptInterface.callVoidFunction(2);
}

void Events::eventPlayerOnInventoryUpdate(const const std::shared_ptr<Player> &player, const std::shared_ptr<Item> &item, Slots_t slot, bool equip) {
void Events::eventPlayerOnInventoryUpdate(const std::shared_ptr<Player> &player, const std::shared_ptr<Item> &item, Slots_t slot, bool equip) {
// Player:onInventoryUpdate(item, slot, equip)
if (info.playerOnInventoryUpdate == -1) {
return;
Expand Down