Gleb Mazovetskiy
e350d9be06
Remove SNetGet/SetLastError
...
The only named code that was ever set is `STORM_ERROR_NO_MESSAGES_WAITING`.
There was also a call in `menu.cpp` which as far as I can tell is not
needed (if it is, it should be replaced by something else).
2 years ago
obligaron
b810c808f5
Msg: Change OnXYZ to get a Player reference instead of a player index
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
qndel
de721e4ccc
[skip ci] fix typos
2 years ago
Gleb Mazovetskiy
5355146d51
Use structured bindings
3 years ago
ephphatha
e6890cc5cc
Move MaxCharacterLevel to playerdat and add helpers for the various uses
3 years ago
ephphatha
14639cd096
Replace _pNextExper with getter method
...
No real need to persist this value
3 years ago
ephphatha
da76e131e4
Add getter/setter for character levels to ensure _pNextExper stays synced
3 years ago
ephphatha
d92d152576
Use unsigned type for character levels
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
3 years ago
Gleb Mazovetskiy
62d067b653
Remove utils/stdcompat/abs.hpp
3 years ago
Gleb Mazovetskiy
74755c8be7
Remove utils/stdcompat/cstddef.hpp
3 years ago
qndel
4884da895c
rename AddWarpMissile -> AddPortalMissile
3 years ago
qndel
398d09477a
rename AddInTownPortal -> AddPortalInTown
3 years ago
staphen
cc5261fa15
Support for ears in PlayerNetPack
3 years ago
Anders Jenbo
efa51993e3
Split network player sync and hero save file
3 years ago
staphen
9381251b9d
Fix net validation of durability for items without durability
3 years ago
Anders Jenbo
89a677d0cb
Validate item modifier ranges
3 years ago
Anders Jenbo
23e479e9aa
Remove unused item properties from network
3 years ago
Anders Jenbo
f1c447c7f2
Do not allow bosted item stats in base game
3 years ago
Anders Jenbo
67ea5bcbe6
Sync monster light when position is gotten from the network
3 years ago
qndel
ddd0f1b051
dont always force staff recharge to change spell
3 years ago
ephphatha
9987bb6be2
Avoid unnecessary item initialisation and copy
3 years ago
ephphatha
6b21728440
Inline single use function InvPutItem
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
ephphatha
03e35988f1
Dedupe OnRespawnItem/OnSpawnItem
...
Both methods were exactly the same apart from the use of temporaries for swapped message params.
3 years ago
ephphatha
3a7ae732cd
use unsigned types for item seeds
3 years ago
obligaron
bf86114ec3
Sync learned/changed spells
3 years ago
Anders Jenbo
e969a8ad01
Invert player to vision relation
3 years ago
obligaron
1a3e72bf17
Unify normal casting and casting from inventory
3 years ago
obligaron
40bb3aeb45
Replace earflag with DeathReason
3 years ago
staphen
151564f46d
Remove optimization that skips quest sync at game start
3 years ago
Łukasz
2ec0603896
use `Point`s instead of `x, y`s in GetRndObjLoc (objects.cpp) and portal-related functions (portal.cpp) ( #5897 )
...
Nice cleanup, thanks.
3 years ago
obligaron
55bf5348c4
Multiplayer: Prevent trapped doors to fire twice
3 years ago
Gleb Mazovetskiy
ca3ba14f82
msg.cpp: Always set `spellFrom`
...
Note that in a few places it is always being set to 0.
This is probably wrong and should instead be passed in the network
message as a parameter.
For now, this at least fixes the crash observed in #5791 .
3 years ago
Gleb Mazovetskiy
ebcd6b222d
Optimize `SpellData` size: 40 bytes -> 24
3 years ago
obligaron
5e9801f0cf
Sync Quest._qmsg
3 years ago
Gleb Mazovetskiy
b61dac853b
Add `GetSpellData(SpellID)`
3 years ago
KPhoenix
d813f13700
`enum spell_id` -> `enum class SpellID`
3 years ago
Eric Robinson
049f75515b
Fix bug in ef3a57b7 ( #5732 )
3 years ago
Eric Robinson
ef3a57b7d9
`enum spell_type` -> `enum class SpellType` ( #5674 )
3 years ago
Eric Robinson
30c1991039
`enum _mai_id` -> `enum class MonsterAIID` ( #5683 )
3 years ago
Gleb Mazovetskiy
068fdac7c1
Do not use PKWare with no MPQs + NONET
...
Reduces RG99 binary size by 12 KiB
3 years ago
Anders Jenbo
c99f7cf644
Floating numbers ( #5639 )
...
Co-authored-by: qndel <stefan551@o2.pl>
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
3 years ago
KPhoenix
8db521727d
`enum missile_id` -> `enum class MissileID`
...
Changes `enum missile_id` to `enum class MissileID`
3 years ago
staphen
0c4015869c
Remove unused _mdir variable from monster deltas
3 years ago
obligaron
0c3b434d76
Make debug command restart compatible with multiplayer
3 years ago
Gleb Mazovetskiy
bf2e6cd262
Fix disappearing portal
...
Fixes a regression introduced in ca69237d59 .
Fixes #5609
3 years ago
Gleb Mazovetskiy
ca69237d59
Big-endian support for multiplayer
...
Not sure if this works but it's a start
3 years ago