staphen
30a9595020
Fix Hork Demon and Nakrul drops in multiplayer
2022-02-04 18:44:26 +01:00
ephphatha
db1d776539
Deduplicate PItem and DItem
2022-01-24 21:12:13 +01:00
Robin
b2a623f229
msg: add documentation of cmd_id enum ( #3960 )
2022-01-19 02:54:45 +01:00
staphen
5b21e0188f
Fix order of operations during game initialization
2022-01-15 06:47:09 +01:00
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.
2021-11-23 19:08:41 +01:00
qndel
b00feb4c3d
sync monster mWhoHit and hitpoints
2021-11-06 19:03:05 +01:00
Anders Jenbo
b4f699f0a3
Validate item network messages
2021-10-12 04:56:30 +02:00
Anders Jenbo
7001ead263
Mark network pointers as const
2021-10-02 20:30:16 +02:00
Anders Jenbo
2708b16c05
Validate CMD_SYNCDATA ( #2968 )
2021-09-30 15:38:10 +02:00
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.
2021-09-13 23:45:51 +02:00
Juliano Leal Goncalves
0baffa6e33
🚚 Rename 'QuestStruct' to 'Quest'
2021-09-02 05:46:01 +02:00
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
2021-08-30 13:40:08 +02:00
qndel
3d92b6eea5
Rewrite manashield into not using a missile
2021-08-25 19:32:10 +02:00
qndel
d76158ca03
reflect without missile! ( #2659 )
2021-08-22 01:32:41 +02:00
Anders Jenbo
5ddcd90ff9
Make NetSendCmdQuest() take a quest structure as input
2021-08-20 12:13:17 +02:00
qndel
7ba878fd4d
fix reflect on loading
2021-08-20 00:55:54 +02:00
Vladimir Olteanu
d8da397795
Use std::list to manage TMegaPkts
2021-07-18 15:27:07 +02:00
Anders Jenbo
0889780923
Remove more usage of miniwin types
2021-07-18 02:11:58 +02:00
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
2021-07-04 16:09:32 -07:00
Anders Jenbo
ee2e7518c4
Clang-tidy: FunctionCase part 2
2021-07-03 12:36:04 -07:00
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
2021-06-27 10:37:09 +02:00
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
2021-06-27 01:06:00 +02:00
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract Point, Direction, clamp
...
`engine.h` is getting quite bloated. Moves this code to their own files.
2021-06-21 01:36:20 -07:00
Juliano Leal Goncalves
d55cd99dd5
🚚 Rename 'direction' enum to 'Direction'
2021-05-24 04:46:08 +02:00
Anders Jenbo
a095bc0bf7
♻️ Migrate more code away from miniwin
2021-05-13 02:30:18 +02:00
Anders Jenbo
f884ba5340
🔥 Remove more miniwin dependencies
2021-04-29 23:04:56 +02:00
Anders Jenbo
5745f099ba
♻️ Use Point for positions in msg.cpp functions
2021-04-29 21:36:31 +02:00
Jmgr
c33182d6de
Modernize deprecated headers
2021-04-25 02:50:31 +02:00
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
2021-04-24 17:07:07 +02:00
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
2021-04-20 19:39:38 +02:00
Anders Jenbo
5fdb9ce459
🎨 Format code
2021-04-19 00:37:33 +02:00
Anders Jenbo
61d15e23db
🎨 Apply direction enum to monsters and relations
...
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
2021-04-18 23:13:03 +02:00
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
2021-04-16 01:04:54 +02:00
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
2021-04-16 01:04:54 +02:00
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
2021-04-14 17:36:31 +02:00
Anders Jenbo
177373d674
Merge branch '1.2'
2021-04-13 04:35:24 +02:00
Anders Jenbo
1ff91b3aca
🐛 [hellfire] Items with negative AC morphing in to high positive AC in multiplayer
2021-04-12 18:35:50 +02:00
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
2021-04-10 05:24:01 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
b1ffdca0a3
♻️ make better use of enums
2021-04-08 20:29:16 +02:00
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
2021-04-06 15:21:25 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
2021-04-01 14:52:44 +02:00
Anders Jenbo
173d9c5b1d
Use sized types for network messages
2021-02-25 05:50:24 +01:00
Anders Jenbo
6f8f4c3293
Unify another chunk of simple Hellfire code paths
2021-01-07 07:19:07 +01:00
Anders Jenbo
4ae75753c8
Merge branch 'master' of github.com:diasurgical/devilution
2020-11-09 01:24:02 +01:00
Anders Jenbo
75a14114bb
Reorder msg.cpp
2020-11-04 05:17:31 +01:00
Anders Jenbo
2d6c1efeab
Merge branch 'master' of github.com:diasurgical/devilution
2020-10-12 10:46:28 +02:00
Joel Falcou
c4223d4c29
Per file basis use of extern C
2020-04-22 13:15:29 +02:00