Commit Graph

2744 Commits

Author SHA1 Message Date
diath
6cd5eb3e22 Add clickable NPC keywords (#1148) 2021-04-29 18:06:48 +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
vfjpl
3600a9b40b Fix Lua errors when the client is built without the sound framework (#1142) 2021-04-02 21:35:34 +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
4edb1eb3ad Fix adding executable icon on windows with non-msvc compiler (#1136) 2021-03-30 08:58:32 +02:00
Marcin Michalski
69e44a3722 Fix & enable by default static linking on macOS (#1133) 2021-03-29 17:22:04 +02:00
Marcin Michalski
ba706fc5c3 Remove travis (#1135)
Replaced by GitHub workflows.
2021-03-29 16:58:38 +02:00
Marcin Michalski
975d138a57 Run windows workflow with luajit only (#1134) 2021-03-29 16:54:02 +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
88d0ea34bf Fix UITabBar and UIMoveableTabBar bricking when removing first tabs in (#1101) collapsed view
Co-authored-by: Xagul <eixim@hotmail.com>
2020-08-26 09:54:56 +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
4drik
b0a73e5525 Fix an issue with the VIP list data not being stored properly (#1083)
The VIP IDs aren't guaranteed to be stable.
2020-05-27 21:41:25 +02:00
Oscar
307a618591 Spanish language revised (#1088)
* Spanish language revised
2020-05-22 02:11:37 +02:00
Oscar
28c2f46f13 Fix comma_value result treated as an int (#1087) 2020-05-09 16:32:19 +02:00
slavidodo
190131a1b8 Update project version to celebrate github workflows 2020-05-09 09:06:53 +02:00
slavi
de97869384 Adding build with vcpkg github workflow
- updated gitignore
- build-vcpkg
2020-05-09 08:55:33 +02:00
slavidodo
eb031e8584 removing datapack preparing 2020-05-09 08:54:02 +02:00
slavidodo
0f78727db5 remove mysql removal step 2020-05-09 08:52:27 +02:00
slavidodo
dcd3573e16 Building with vcpkg 2020-05-09 08:46:31 +02:00
slavidodo
48c3a8992f Update gitignore 2020-05-09 08:45:00 +02:00
slavidodo
d95bde1c77 fixing some unused variables and hiding previous/class members warnings 2020-05-07 19:05:16 +02:00
slavidodo
e3caaacc55 Use vcpkg & drop OTClient SDK for windows
additionaly, the project has been updated to Visual Studio 2019!
2020-05-07 19:02:20 +02:00
Ascuas Funkeln
714c6b8fc0 Add comma_value function for pretty formatting big numbers (#1085)
This also applies the function to a number of labels in the skills window.
2020-05-05 18:39:11 +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
Konrad Kuśnierz
a0abcbb54e Merge pull request #1065 from Sposito/update-copyright-year-2020
Update Copyright year for 2020
2019-12-31 11:44:26 +01:00
Sposito
fbcf0a3eea Update copyright year for 2020 2019-12-31 10:07:29 +00:00
Zbizu
fe6bbd6c21 fix initial language selection
fix language selection bug

steps to reproduce:
- go to c:/users/username/otclient and remove settings file
- launch otclient
- select english
- restart otclient

expected behaviour: no more startup prompts for language selection when selecting default language
observed behaviour: everytime client gets restarted and you click the default language, it doesn't get saved if it didn't exist in config file previously
2019-12-19 19:20:12 +01:00
Zbizu
be7a7d365f fixing typo in PL translation
punkt -> plural: punkty
2019-12-15 17:53:01 +01:00
Zbizu
45b14060f6 allow using up/down arrows in modalWindow
QoL change, that's how it works in the official client
2019-12-14 04:27:52 +01:00
Zbizu
a7785a3029 removing duplicate 2019-12-13 04:14:47 +01:00
Zbizu
451075516d focus first choice in modalWindow by default (QoL)
selecting first modalwindow choice by default like in cip client
2019-12-13 04:14:47 +01:00