ephphatha
b4839dadcc
Dedupe operate object network commands
4 years ago
Anders Jenbo
b9aa2959a6
Split deleta sync from operate door
4 years ago
ephphatha
4a8f375011
Use position for operate object network commands
...
Only one remaining use of Object::getId for caching the target of a command requiring the player to path to an object.
4 years ago
ephphatha
de83d9440e
Use position for break object network messages
4 years ago
ephphatha
0c08980c71
Combine Telekinesis with other object network commands
4 years ago
ephphatha
3a7fd8da2d
Only send and consume object location for location based messages
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Anders Jenbo
56915974d6
Minimize passing of player indexes
4 years ago
Anders Jenbo
9cae6dad7d
Clean up most usages of DWORD
4 years ago
Cesar Canassa
f0d1d58499
♻️ Remove monsterId from delta_kill_monster
4 years ago
Cesar Canassa
79f5cdb2be
♻️ change delta_monster_hp to receive a Monster reference ( #4873 )
4 years ago
obligaron
e151274fdf
Introduce IsValidLevel
4 years ago
obligaron
22a113d3a6
Introduce GetLevelForMultiplayer
4 years ago
obligaron
8637e05650
Remove bLevel from delta_kill_monster_ and delta_monster_hp
4 years ago
obligaron
783db07cbf
Replace CMD_DLEVEL_0/_1/... with generic CMD_DLEVEL
4 years ago
obligaron
29e4ec4ef1
Move delta structs to msg.cpp
4 years ago
obligaron
2b0b944afb
Manage friendly mode per player and sync state between clients
4 years ago
obligaron
d921fb3e97
Throttle send player commands to avoid desyncs
4 years ago
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
4 years ago
obligaron
299469c710
Sync mana between clients
4 years ago
Anders Jenbo
55a0b71b1c
Only spawn loot once
4 years ago
staphen
30a9595020
Fix Hork Demon and Nakrul drops in multiplayer
4 years ago
ephphatha
db1d776539
Deduplicate PItem and DItem
4 years ago
Robin
b2a623f229
msg: add documentation of cmd_id enum ( #3960 )
4 years ago
staphen
5b21e0188f
Fix order of operations during game initialization
4 years ago
ephphatha
baa1cd65c5
Make FindGetItem return an index into ActiveItems
...
This allows the calling code in DeltaLoadLevel to behave the same as every other use of DeleteItem, making it possible to remove the duplicate argument and ensure that the ActiveItems/AvailableItems arrays are treated appropriately.
4 years ago
qndel
b00feb4c3d
sync monster mWhoHit and hitpoints
4 years ago
Anders Jenbo
b4f699f0a3
Validate item network messages
4 years ago
Anders Jenbo
7001ead263
Mark network pointers as const
5 years ago
Anders Jenbo
2708b16c05
Validate CMD_SYNCDATA ( #2968 )
5 years ago
Juliano Leal Goncalves
9ac324b8e1
🐛 Prevent manipulation of spell type being cast ( #2856 )
...
This prevents frame-perfect manipulated of the spell type after the command has already been sent.
5 years ago
Juliano Leal Goncalves
0baffa6e33
🚚 Rename 'QuestStruct' to 'Quest'
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
qndel
3d92b6eea5
Rewrite manashield into not using a missile
5 years ago
qndel
d76158ca03
reflect without missile! ( #2659 )
5 years ago
Anders Jenbo
5ddcd90ff9
Make NetSendCmdQuest() take a quest structure as input
5 years ago
qndel
7ba878fd4d
fix reflect on loading
5 years ago
Vladimir Olteanu
d8da397795
Use std::list to manage TMegaPkts
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
5 years ago
Anders Jenbo
ee2e7518c4
Clang-tidy: FunctionCase part 2
5 years ago
Andrew James
20190ee687
Update random number functions to avoid IB ( #2226 )
...
* Update random number functions to avoid IB
Most calls to set seed were using uint32_t already, there were a few variables which were better served by having their type changed from signed to unsigned. The one exception is ItemStruct::_iSeed. This is an identifier that also happens to be used as a seed occasionally so a comment was added documenting this exception.
Includes suggested style changes for Source/towners.h; Source/towners.cpp; Source/msg.h; Source/multi.h
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract `Point`, `Direction`, `clamp`
...
`engine.h` is getting quite bloated. Moves this code to their own files.
5 years ago
Juliano Leal Goncalves
d55cd99dd5
🚚 Rename 'direction' enum to 'Direction'
5 years ago
Anders Jenbo
a095bc0bf7
♻️ Migrate more code away from miniwin
5 years ago
Anders Jenbo
f884ba5340
🔥 Remove more miniwin dependencies
5 years ago
Anders Jenbo
5745f099ba
♻️ Use Point for positions in msg.cpp functions
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
5 years ago