Commit graph

113 commits

Author SHA1 Message Date
Anders Jenbo
c384711a5f Backport cleanups from hellfire branch 2020-04-08 20:16:32 +02:00
Anders Jenbo
f1c216e688 Make player struct x/y fields match monster struct 2020-04-07 03:26:38 +02:00
Anders Jenbo
187a021b30
More documentation from sanctuary/notes (#2026) 2020-03-30 11:31:36 +02:00
galaxyhaxz
c632e2d1d0
Names and bug fixes (#1974) 2020-03-12 04:32:53 +01:00
galaxyhaxz
71565b9c02
Several updates [enums+names] (#2002)
* Several updates

* Correct msg_get_next_packet

* Update enums.h

Co-Authored-By: Robin Eklind <mewmew@users.noreply.github.com>

Co-authored-by: Robin Eklind <mewmew@users.noreply.github.com>
2020-03-11 21:27:40 -05:00
Anders Jenbo
0383f9abcd Add documentation to more files 2020-03-02 02:29:28 +01:00
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h (#2005)
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.

Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
2020-02-14 13:12:54 +01:00
galaxyhaxz
6605e1de5e Fix variable 'gbSelectProvider' 2020-01-17 21:07:10 +01:00
Anders Jenbo
0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo
3e7d352fde Format files 2019-10-21 20:04:14 +02:00
qndel
57f1fcce4c some enums (#1816) 2019-10-20 20:40:35 +02:00
Anders Jenbo
683a50527d Correct missmatched bool types 2019-10-04 09:26:26 +02:00
Robin Eklind
0b7fca12af multi: use sizeof(sgGameInitInfo) for initdatabytes 2019-09-19 03:32:40 +02:00
galaxyhaxz
f13512bbb8 Clean multi_send_zero_packet right 2019-08-16 14:06:22 +02:00
Anders Jenbo
68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Martin Hauke
6fc09ea8a6 Fix some typos 2019-07-23 14:33:42 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Anders Jenbo
e2bff090d6 Come up with names for all remaning arguments 2019-07-21 00:57:53 +02:00
Robin Eklind
105a583ce0 Use TRUE and FALSE enums for setlevel.
Also simplify if conditions to make
use of boolean values.

(If the cleanup4 PR ends up increasing
inserts/deletions, then this commit is
probably at fault.)
2019-07-17 20:42:26 +02:00
Robin Eklind
983d2d6769 Make _pLvlChanging into a boolean.
_pLvlChanging is only ever used in boolean contexts.
2019-07-17 12:24:07 +02:00
Robin Eklind
9b6e866878
Update Source/multi.cpp
Co-Authored-By: Anders Jenbo <anders@jenbo.dk>
2019-07-16 22:38:59 +02:00
Robin Eklind
98ac9ebaf3 multi: use name from PSX for InitLevelType 2019-07-16 14:10:40 +02:00
Robin Eklind
f47e29d60d multi: rename InitNewSeed to DTypeFromDLvl 2019-07-16 12:20:48 +02:00
Anders Jenbo
32a51d17ca Align function signatures with PSX symbols
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
2019-07-08 04:12:12 +02:00
Anders Jenbo
7c071924ad Format recently cleaned code 2019-07-06 05:13:01 +02:00
Joan Karadimov
fce804a09a Use the dungeon_type enum for leveltype 2019-06-28 11:58:44 +03:00
Anders Jenbo
a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Sergey Semushin
f614822f82 Clean up NetSendHiPri. 2019-06-08 13:40:24 +01:00
Sergey Semushin
a22259f06b Clean up multi_process_network_packets. 2019-06-08 13:39:39 +01:00
galaxyhaxz
e177fa5021 multi_handle_all_packets 2019-06-03 16:01:38 -05:00
Anders Jenbo
11b6b1f860 Remove more garbage 2019-06-03 02:20:42 +01:00
Sergey Semushin
13ff40e3ff Clean up multi_recv_packet. 2019-05-30 11:16:32 +01:00
galaxyhaxz
e404c62473 multi_begin_timeout 2019-05-30 11:10:52 +01:00
Anders Jenbo
565bb5aa7d Adust dFlag enums 2019-05-29 16:23:08 +01:00
Anders Jenbo
1d7a548cd7 Clean up nthread.cpp 2019-05-21 00:32:10 +01:00
qndel
91c77db865 multi_send_zero_packet bin exact (#1201) 2019-05-19 17:48:11 +01:00
qndel
0f28bc5da1 multi_send_msg_packet bin exact 2019-05-18 03:35:51 +01:00
qndel
aec0dd77a1 multi_copy_packet bin exact 2019-05-18 01:01:06 +01:00
Anders Jenbo
faeb360c88 Revert multi.h to not include storm.h 2019-05-09 00:33:01 +02:00
Anders Jenbo
790197cae5 Define SEVTHANDLER 2019-05-08 19:15:27 +01:00
Anders Jenbo
4a8f9fb964 Clean up nthread_terminate_game 2019-05-08 16:01:14 +01:00
Anders Jenbo
8a142d3c46 Clean up multi_event_handler 2019-05-08 08:33:52 +01:00
qndel
ec6deaec98 multi_handle_events bin exact (#1056) 2019-04-27 00:43:07 +02:00
Anders Jenbo
4b9c39170b Apply MAX_PLRS 2019-04-26 02:19:43 +02:00
Anders Jenbo
549bbcee92 Clean up multi_msg_add 2019-04-26 02:16:43 +02:00
Anders Jenbo
29cf53c825 Clean up NetSendLoPri 2019-04-26 02:15:02 +02:00
Anders Jenbo
71e13aabc7 Clean up multi_msg_countdown 2019-04-26 01:47:04 +02:00
Anders Jenbo
dc3a4b8820 Clean up multi_parse_turn 2019-04-26 01:43:23 +02:00
Anders Jenbo
9744d10222 Clean up multi_handle_turn_upper_bit 2019-04-26 01:24:13 +02:00
Anders Jenbo
3f6b6b2fb2 Clean up multi_clear_left_tbl 2019-04-26 01:22:33 +02:00