1901 Commits

Author SHA1 Message Date
vfjpl
1d614e294c
Fix std::istream::streampos deprecation warning (#1154) 2021-08-25 19:24:08 +02:00
Marcin Michalski
10100342b9
Fix opening "https://"-prefixed links on Windows (#1160) 2021-08-22 00:51:18 +02:00
Marcin Michalski
302748b2f3
Fix opening URLs on macOS (#1159) 2021-08-22 00:48:34 +02:00
Marcin Michalski
f173b03dbd
Map option to alt and command to meta keys on macOS (#1158) 2021-08-22 00:38:58 +02:00
vfjpl
9ce2cab9ae
Fix uninitialized oldMaxMana variable in Player::setMana (#1152) 2021-06-16 23:25:43 +02:00
TheSumm
1e29b5cb01 Remove unused source file 2021-06-12 19:40:21 +02:00
Ranieri Althoff
5cc9319a94
Optimize XTEA encryption (#1143)
https://dev.to/rsa/making-an-algorithm-15x-faster-without-parallelism-38k5
2021-04-02 21:48:58 +02:00
diath
b37623cd86
Fix the use of deprecated C++ functions (#1138) 2021-04-01 00:38:36 +02:00
vfjpl
67b7dbfcfe
Keep log messages in a deque instead of a list and remove unnecessary copy
Co-authored-by: Kacper Piwiński <kacper.piwinski@arex.pl>
2021-04-01 00:38:02 +02:00
vfjpl
7752add8aa
Use float literals where applicable (#1140)
Use float literals to perform more calculation in float instead of performing implicit conversion to double and back to float.

Co-authored-by: Kacper Piwiński <kacper.piwinski@arex.pl>
2021-04-01 00:06:50 +02:00
diath
7c528be73e
Cleanup CMake project (#1137)
* Updated the minimum required standard from C++11 to C++14 (https://en.wikipedia.org/wiki/C%2B%2B14).
* Fixed -g0 and -Os flags being passed to luafunctions.cpp when building with MSVC.
* Fixed case mismatch in FIND_PACKAGE_HANDLE_STANDARD_ARGS argument in a number of CMake files.
2021-03-31 07:30:09 +02:00
vfjpl
4d055913dc
Clean up BitmapFont code (#1129) 2021-03-30 17:03:02 +02:00
Marcin Michalski
69e44a3722
Fix & enable by default static linking on macOS (#1133) 2021-03-29 17:22:04 +02:00
Marcin Michalski
c4530a6d17
Bump minimum required CMake version to 3.1 (#1131)
* Removed Ubuntu Clang workflow
* Removed FindCXX.cmake (in favor of native feature)
* Added support for building Windows binaries with CMake when using MSVC
* Cleaned up a number of Find*.cmake modules
2021-03-27 01:04:59 +01:00
Marcin Michalski
b6399a8ad9
Update workflow (#1130) 2021-03-26 14:37:02 +01:00
Kamil Chojnowski
9c9b85ac5e Fix UITextEdit::setTextHidden ignoring the hidden param and always setting the member variable to true 2021-03-14 21:12:59 +01:00
Martin Nylind
872abf05f4
Add Missile:setPath to Lua interface (#1125)
Add Missile:setPath(fromPos, toPos) method to Lua interface.
2021-02-10 05:40:39 +01:00
peonso
d07e7fcce7
Correct messageModsMap for version 10.41 (#1119) 2021-01-04 17:33:04 +01:00
vfjpl
f521737b26
Return Tile walking creatures and things by const ref instead of copy (#1117) 2020-11-23 17:26:15 +01:00
reyhammer
18dd9c2d2d
Fix TPoint::distanceFrom() calling TPoint::getLength() instead of TPoint::length() (#1116) 2020-11-23 15:59:50 +01:00
vfjpl
72cc4b2fb0
Fix out-of-bounds access in Platform::getCPUName (#1115) 2020-11-22 22:08:37 +01:00
vfjpl
c6d0fc0f71
Fix laggy diagonal movement (#1108) 2020-10-07 03:14:00 +02:00
vfjpl
b3d947d4c3
Use std::deque for queues (#1112) 2020-10-07 03:12:04 +02:00
bakasuradbl
83959e5e23
Fix window position when entering fullscreen mode on Windows platform (#1099) 2020-10-05 19:59:36 +02:00
Source61
70400bc83e
Add optional format string for stdext::date_time_string() (#1110) 2020-09-15 18:58:47 +02:00
vfjpl
9c1f519f8a
resourcemanager:[bug fix] directoryExists method should resolvePath before checking (#1102) 2020-08-29 17:35:42 +02:00
diath
b3aaa10646
Remove stdext::packed_vector (#1106)
Co-authored-by: Kacper Piwiński <cosiekvfj@o2.pl>
2020-08-26 09:54:05 +02:00
diath
59059321a6
Fix an issue with pathfinding not respecting the PathFindAllowCreatures flag properly (#1090) 2020-06-13 09:00:01 +02:00
slavidodo
d95bde1c77
fixing some unused variables and hiding previous/class members warnings 2020-05-07 19:05:16 +02:00
Konrad Kuśnierz
63f5351016
Merge pull request #1021 from edubart/openssl-gmp
Support for OpenSSL with a fallback to GMP
2020-03-31 17:09:45 +02:00
Konrad Kuśnierz
066df4dd52
Merge pull request #1070 from Ochmar/master
Getting rid of redraw on lying corpse
2020-02-03 10:23:42 +01:00
OchmanM
e1c3fac974
Getting rid of redraw on lying corpse
In https://github.com/edubart/otclient/issues/1040#issuecomment-581173589 we had a discussion if tile:draw() redrawing in case of lying corpse either is needed or not. We came to conclusion that there are way too many downsides of this resolution and therefore we opt against redrawing. Both performance-wise and gameplay-wise it is better without redrawing.
2020-02-03 10:07:19 +01:00
Sposito
fbcf0a3eea Update copyright year for 2020 2019-12-31 10:07:29 +00:00
Konrad Kuśnierz
23bc0ab4b7
Merge pull request #1052 from diath/fix_demangle_name
Fix a possible missing null terminator in the demangle_name output buffer
2019-10-14 08:10:08 +02:00
Konrad Kuśnierz
0b0c8191dd
Merge pull request #1048 from diath/fix_static_linkage
Fix an issue with Connection class linkage
2019-10-14 08:09:54 +02:00
Kamil Chojnowski
7a57acd646 Fix a possible missing null terminator in the demangle_name output buffer 2019-10-14 07:56:06 +02:00
Kamil Chojnowski
80b35b8308 Fix an issue with Connection class linkage 2019-10-14 07:54:39 +02:00
Kamil Chojnowski
ba12f55fe4 Move isDirectory logic from an anonymous namespace to ResourceManager::directoryExists 2019-10-11 03:23:01 +02:00
Konrad Kuśnierz
1ab18788e6
Merge pull request #1039 from slavidodo/master
Correcting text offset
2019-10-10 08:14:47 +02:00
Konrad Kuśnierz
dd0303feee
Merge pull request #1046 from diath/fix_deprecated_physfs_funcs
Fix use of deprecated PhysFS functions
2019-10-10 08:14:08 +02:00
Konrad Kuśnierz
2f76fe1c3c
Merge pull request #1045 from diath/dft_cpy_mov_ctor
Add default copy constructors to Color and Position classes
2019-10-10 08:13:50 +02:00
Kamil Chojnowski
6f13914a92 Fix use of deprecated PhysFS functions 2019-10-10 06:30:31 +02:00
Kamil Chojnowski
6a2d12ce27 Add default copy constructors to Color and Position classes 2019-10-10 01:47:34 +02:00
Kamil Chojnowski
869de6886f Tidy up the source code
* Replaced push_back calls with emplace_back where applicable.
* Replaced size() == 0 and size() != 0 with empty() and !empty().
* Replaced C style loops for range for loops where applicable.
* Fixed mismatching arg names between function declarations and definitions.
* Replaced NULL and 0 (in the context of pointers) with nullptr.
* Remove unnecessary calls to string::c_str() where applicable.
* Replaced deprecated C headers with proper C++ headers.
* Removed unnecessary null pointer checks when deleting pointers
(deleting a null pointer has no effect).
* Fixed a potential memory leak in apngloader.cpp file.
* Replaced unsafe strcpy with strncpy in the demangle_name function.
2019-10-10 00:59:24 +02:00
Nickolas Coppem
17738dfdea
Correcting text offset 2019-07-06 19:41:39 +02:00
Kamil Chojnowski
da564e86cf Improve mouse move event propagation 2019-07-01 17:36:25 +02:00
Kamil Chojnowski
501552dc23 Fix clearing a config key 2019-06-02 20:05:34 +02:00
Maximilian
833f029335
don't call getChildren() thrice 2019-04-27 19:21:38 +02:00
Konrad Kuśnierz
88e271c4ad Minor GMP typos 2019-03-09 23:55:07 +01:00
Konrad Kuśnierz
779eb56068
Fix setBuffer of InputMessage class 2019-03-09 23:35:52 +01:00