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
Gleb Mazovetskiy
ef4a547954
msg.cpp: Log received commands debug define
3 years ago
obligaron
b3b62800b5
Initial sync qvar2
3 years ago
obligaron
911ba21e0e
Set player old position on level join to prevent a crash when leaving the game
3 years ago
obligaron
50cea20687
Show portal opening animation in town
3 years ago
obligaron
31141ffb4d
DeltaLoadLevel: Sync objects before items so that closed areas get opened
3 years ago
obligaron
1999280c7a
Fix assert in delta_sync_monster
3 years ago
obligaron
57a3ede76a
Introduce UseMultiplayerQuests
3 years ago
obligaron
17712562c8
Sync Quest._qvar2
3 years ago
obligaron
0de0894ad5
Enable sync of all quests
3 years ago
Gleb Mazovetskiy
680ab5ec40
Overhaul backbuffer state handling
...
When rendering directly to the output buffer, we need to maintain the
state of what has been drawn and what needs redrawing per-buffer.
We previously tried to do it implicitly by checking `SDL_DOUBLEBUF` and
other flags. The previous implementation was broken in several
ways, resulting in rendering issues on devices that support 8-bit output
directly.
Changes this mechanism to explicitly maintain buffer state per output
buffer. The new mechanism doesn't require knowledge of the number of
buffers, and thus also works correctly with triple-buffering.
Fixes #5447
3 years ago
Gleb Mazovetskiy
0498d7d3a7
Fix compilation warnings
3 years ago
staphen
21bd760bfa
Bypass CMD_PUTITEM when triggering CMD_OPENHIVE or CMD_OPENGRAVE
3 years ago
obligaron
d59a7e2794
Combine SyncDropItem and SyncPutItem
3 years ago
obligaron
ba65d5fbff
SyncPutItem: Always use passed coordinates for item position
3 years ago
obligaron
d0c1aba463
Don't process get request item commands after start changing level
3 years ago
Gleb Mazovetskiy
ec12d7ce44
Player: Optimize to save 40 bytes
3 years ago
qndel
c05c4c0f55
fix typos
4 years ago