1866 Commits

Author SHA1 Message Date
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
779eb56068
Fix setBuffer of InputMessage class 2019-03-09 23:35:52 +01:00
Konrad Kuśnierz
1c8cea513c
Fix setBuffer of the OutputMessage class 2019-03-06 14:48:46 +01:00
Konrad Kuśnierz
92532a958e
Merge pull request #967 from EgzoT/EgzoT-OutputMessage_setBuffer_2
Add setBuffer() method to OutputMessage class
2019-03-06 14:46:24 +01:00
Konrad Kuśnierz
ef8fa2472c
Merge pull request #1001 from divinity76/patch-2
OpenSSL >= 1.1.0 compatibility
2019-03-06 14:30:20 +01:00
Konrad Kuśnierz
8b8e7312ea
Fix code style 2019-03-06 09:41:37 +01:00
Konrad Kuśnierz
fd3db800fe
Fix default init of BIGNUM to nullptr 2019-03-05 09:29:13 +01:00
Konrad Kuśnierz
9186ac5321
Follow OTClient code style 2019-03-05 00:44:18 +01:00
Konrad Kuśnierz
33b60e842f
Merge pull request #966 from diath/msvc_fixes
Silence Windows SDK warnings when building with MSVC
2019-01-16 13:57:30 +01:00
Konrad Kuśnierz
e3b02a7c5d
Merge pull request #986 from okk3/patch-1
Function updateJump() fix
2019-01-16 13:53:14 +01:00
Konrad Kuśnierz
74d328206b
Merge pull request #1002 from diath/fix_magic_effects
Fix magic effect animations in newer client versions
2019-01-16 13:50:51 +01:00
Konrad Kuśnierz
f7ceb788e8
Merge pull request #1004 from diath/add_channel_events
Add support for channel events
2019-01-16 13:30:09 +01:00
Kamil Chojnowski
a40130d79b Fix magic effect animations in newer client versions 2019-01-06 06:17:25 +01:00
Kamil Chojnowski
8301bc74f3 Add support for channel events 2019-01-05 22:22:01 +01:00
divinity76
79e31cb041
OpenSSL >= 1.1.0 compatibility
OpenSSL did some otclient-breaking changes around 1.1.0, 
this patch should work on both < and >= 1.1.0
2018-12-06 00:51:16 +01:00
Okke
a93333ddbf
Function updateJump() fix
nextT should cast double as it's a second degree equation and results in a double type. -> Bhaskara.
2018-08-06 00:08:37 +02:00
Daniel Speichert
dc729d9846
Fix formatting 2018-07-16 08:47:31 -04:00
Daniel Speichert
271790d22e Upgrade vcxproj + fix path to OpenAL from vcpkg 2018-07-15 17:37:36 -04:00
Daniel Speichert
ad769d6614 Fix compilation errors (READ_TIMEOUT, READ_TIMEOUT) 2018-07-15 17:03:21 -04:00
Malizia R
b813508eb7
Fixing a typo 2018-05-09 06:56:14 -03:00
EgzoT
9e9d88f184 Add setBuffer() method to OutputMessage class 2018-04-24 23:21:58 +02:00
Kamil Chojnowski
1bd392aba9 Silence Windows SDK warnings when building with MSVC 2018-04-23 14:33:08 +02:00
EgzoT
4007980c0c Change outdated compiler name for VS (#920)
Change "msvc12" compiler name to "Visual Studio [13-17]" for Visual Studio compiler. 
Name based on "_MSC_VER" parameter.
2018-02-28 21:48:27 +01:00
Kamil Chojnowski
3b23b787f3 Add creature type icons for summons 2017-11-19 20:02:34 +01:00
Anderson Chaves Faria
2e3bf66502 Fix wrong parameter name in source
This will fix missing t in outfit parameter
2017-11-17 14:26:23 -02:00
Eduardo Bart
0a6e7dd74e
Merge pull request #898 from EgzoT/EgzoT-setPathable
Add setPathable() function
2017-11-16 23:51:15 -02:00
EgzoT
c1a5a661e7
Fixed indentation and changed function location 2017-11-17 02:32:31 +01:00
Eduardo Bart
a9c59526e0
Merge pull request #904 from ninjalulz/FixModalWindowId
Fix data type for Modal Dialog ID
2017-11-16 22:56:28 -02:00
Kamil Chojnowski
93f51fe127 Add player mana bar 2017-11-16 19:06:40 +01:00
Daniel Björkholm
408e9b4239 Fix data type for Modal Dialog ID 2017-11-16 14:50:12 +01:00
EgzoT
5650db7ba2
Move definition to thingtype.cpp file
Move definition from thingtype.h to thingtype.cpp file
2017-11-15 02:20:33 +01:00
EgzoT
c51df93e3e
Add setPathable() function
Adding function who changing item attribute (ThingAttrNotPathable).
Allows to walk on not pathable items (ThingAttrNotPathable -> true) like parcels, fire fields etc. and vice versa.
Modifying item attribute without editing items sources files. Temporary action for the duration of the client session.

Usage:
print(g_things.getThingType(3504):isNotPathable()) -> true

g_things.getThingType(3504):setPathable(true)

print(g_things.getThingType(3504):isNotPathable()) -> false

Helpful for highter levels players to ignoring "avoiding" fire/energy/poison fields etc. when using map click.
2017-11-15 01:02:06 +01:00
Eduardo Bart
2095951e07 Add missing include 2017-11-14 13:59:19 -02:00
Marcin Michalski
13789c5612 Properly check tile elevation in older protocols 2017-11-04 11:24:12 -02:00
Eduardo Bart
7046fa1cdb
Merge pull request #874 from EgzoT/EgzoT-useWith_fix
Fixed problem with function "useWith" on creatures
2017-11-04 11:13:11 -02:00
Eduardo Bart
aeb98810ed
Merge pull request #878 from EgzoT/EgzoT-map_missile_bug
[Probable bug] Double use function onAppear
2017-11-04 11:08:37 -02:00