Commit graph

33 commits

Author SHA1 Message Date
Marcin Jałocha
eabd8c0509
Fix compiler warnings (#4805) 2024-11-01 13:09:10 -03:00
Ramon Bernardo
cbd51af49f
Fix code format (#4816) 2024-10-30 17:29:47 -03:00
unclecellphone
fbe7125055
Fix issues with house invites string cases (#4753) 2024-10-29 23:36:24 -03:00
Ramon Bernardo
187a517a77
Use Guild shared_ptr instead of raw pointers (#4682)
* Use Guild shared_ptr

* Member rank level default to constexpr

* Use const when possible

* @ramon-bernardo
Use const when possible

* Use shared_ptr alias

* Fix

* Fix

* Fix

* Fix

* Fix delete

* Fix

* No need to reuse the variable

* Use const shared ptr

* Use const& ptr

* Inline rank check
2024-05-26 11:11:31 +02:00
Ranieri Althoff
a295ea7b88
Use string views to avoid copying strings (#4079) 2023-03-08 21:49:18 -03:00
Marco Oliveira
545516299b
Update copyright year (#4331) 2023-02-18 20:10:02 -03:00
Ranieri Althoff
412950218c
Add code formatting with clang-format (#4029)
- Use base Google style
- Drop column limit override
- Format all files
- Use tabs for indentation
- Move system headers after project headers
- Avoid breaking string literals
- Reflow usage text
- Match breaks before braces and colons to previous style
- Reduce spaces before trailing comments
- Reflow comments and fix macro usage in luascript.cpp
- Fix invalid code
- Don't align newline escapes
- Reflow comment to make more sense
2022-04-13 14:06:08 +00:00
Evil Puncker
2f8a2afb3b
Add AUTHORS file and remade source header (#3969) 2022-02-22 19:41:21 +01:00
Ranieri Althoff
7e35e179e8
Merge ioguild into guild (#3949) 2022-02-17 00:40:43 -03:00
Evil Puncker
77b4a270c9 Removed unused functions
- sendCreatureType
- sendCreatureHelpers
- buildInventoryList

Co-Authored-By: Zbizu <Zbizu@users.noreply.github.com>
2021-11-27 23:19:02 -05:00
ninjalulz
7639b6a72f
Use shared_ptr for GuildRank (#3062)
Fixes #2561
2020-06-08 20:58:19 -04:00
Lucas CP
b7ef46dfc7 Update copyright for 2019 (#2590) 2019-05-13 14:22:45 +02:00
vankk
020ed5fd36 Update copyright for 2018 (#2452) 2018-03-05 00:39:47 +01:00
Ranieri Althoff
06bf9c9ec1 Support adding guild ranks to access lists (#2309)
* Add helper functions to fetch guild ranks
* Add helper function to load guild by id
* Support adding single guild ranks to access lists
Fixes #2240
2017-12-18 03:18:31 +01:00
Bruno Minervino
cc8e15e916 Update copyright year for 2017 (#2034) 2017-01-01 15:39:31 +01:00
Ranieri Althoff
dd521db174 Use changes proposed by clang-tidy (#1879)
- Modernize constructors with pass-by-value + move
- Modernize loops to use new range-based loops
- Use auto where it improves code readability and maintainability
2016-10-02 23:52:01 +02:00
Mark Samman
23e9f46829 Update copyright year
Happy new year!
2016-01-01 02:07:18 +01:00
Mark Samman
2f996f813e Rewrite setGuild
This fixes some of the mess with guild management.
Guild.addMember/Guild.removeMember should never have been exposed to the
Lua API as they can easily cause dangling pointers. They have been moved
to compat.lua with a safer implementation.
2015-07-12 22:54:17 +02:00
Mark Samman
1462f17e2c Avoid variable shadowing 2015-05-15 15:12:01 +02:00
Mark Samman
3349be4745 Update copyright year 2015-01-02 21:32:52 +01:00
Mark Samman
10c75135ab Fix overflow from getItemIdByName & code cleanup 2014-04-08 11:50:45 -04:00
Mark Samman
9924457986 Update copyright year 2014-02-17 11:30:36 -05:00
Mark Samman
1901a35d6a Set client version to 10.34 2014-02-17 11:26:01 -05:00
Mark Samman
0dbf4c773d Code cleanup 2014-01-20 05:21:00 +01:00
Mark Samman
66f6576923 Don't use reserved names for macros
This commit closes issue #247
2013-11-24 20:35:35 +01:00
Mark Samman
ebc42c29f1 Major code cleanup
Removed unused functions
Mark functions that don't change data members as const
Use static functions instead of singleton for classes without data
members
2013-11-03 03:47:47 +01:00
Mark Samman
ae99ebe01c Code cleanup 2013-09-24 04:21:32 +02:00
Mark Samman
70d48dfabd Use nullptr instead of NULL 2013-09-22 02:02:19 +02:00
Mark Samman
eea2fb1b8b Code cleanup & optimizations 2013-09-20 03:28:46 +02:00
Mark Samman
f65733cc63 Code cleanup
* Use C++11 range-based for loops
* Remove unused function
2013-09-13 05:05:22 +02:00
Mark Samman
67a3666712 Remove unnecessary isRemoved() calls
Creatures are removed from the lists in Game class when they are set as
removed
2013-09-12 14:17:41 +02:00
Mark Samman
ab6f73213e Update license notice in source code
The street address to FSF in the old notice was outdated, and the old
notice was lacking the copyright line.
2013-08-01 21:38:36 +02:00
Mark Samman
deff1b8b22 Add data and source code files 2013-07-07 02:30:08 +02:00