Commit Graph
230 Commits
Author SHA1 Message Date
galaxyhaxz f89204e7dd Fix function/var names (effects/sound) 2020-03-24 00:22:36 -05:00
galaxyhaxzandGitHub c632e2d1d0 Names and bug fixes (#1974) 2020-03-12 04:32:53 +01:00
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 d6f70c56ce Format files 2020-03-01 22:48:17 +01:00
Anders Jenbo 3c276a3cd3 Add documentation
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00
galaxyhaxz 81ff8e6287 Metallic hydrogen neural array 2020-02-28 16:35:57 -06:00
Anders JenboandGitHub 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
qndelandAnders Jenbo 3770c8551d max walkpath (#1996) 2020-01-27 10:52:00 +01:00
Anders Jenbo bae579ab90 Align PM_DoWalk, PM_DoWalk2 and PM_DoWalk3
Hellfire shows that World* was the correct param
2020-01-10 00:42:34 +01:00
Anders Jenbo 4be0564bda SyncPlrAnim clean up 2020-01-09 20:40:08 +01:00
Anders Jenbo 0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
galaxyhaxzandAnders Jenbo 9c98c1e43d Fix all "pass by ref" functions 2019-12-02 09:16:01 +01:00
galaxyhaxzandAnders Jenbo 67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Anders Jenbo 92ab05ea13 Decompose more magic numbers 2019-10-26 00:24:55 +02:00
Robin EklindandAnders Jenbo e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
qndelandGitHub 5cd3c3e1d2 Merge pull request #1562 from AJenbo/RemovePlrMissiles
Clean up RemovePlrMissiles
2019-09-08 01:07:09 +02:00
Anders Jenbo b834c4e418 Clean up RemovePlrMissiles 2019-09-06 22:52:44 +02:00
Anders Jenbo f331d3b5a4 Backport Hellfire cleanups 2019-09-05 15:20:27 +02:00
Robin EklindandGitHub 9cde400c86 Merge pull request #1509 from AJenbo/PM_ChangeLightOff
Clean up PM_ChangeLightOff
2019-09-05 10:57:07 +02:00
Anders Jenbo 4e5b9312a6 Clean up PM_ChangeLightOff 2019-09-04 21:14:39 +02:00
Anders Jenbo a3cfdccf68 Add the e variable to AddPlrMonstExper 2019-09-04 06:31:46 +02:00
Anders Jenbo fae3c2a237 Clean up AddPlrMonstExper 2019-09-03 23:46:10 +02:00
Anders Jenbo 9daea5be8a Back port clean ups from Hellfire 2019-09-03 00:27:42 +02:00
Anders Jenbo 5169f3024c RestartTownLvl clean up 2019-08-31 07:52:23 +02:00
qndelandAnders Jenbo 0a76a26b24 Clean up 2019-08-31 07:40:44 +02:00
qndelandAnders Jenbo a17e34c4bf applied enums to _pmode and untangled ifs 2019-08-31 06:23:35 +02:00
qndelandAnders Jenbo a521da3ccf [hellfire] PM_DoDeath bin exact 2019-08-30 15:45:15 +02:00
Anders Jenbo 346f87fba8 [spawn] make GetPlrGFXSize bin exact 2019-08-30 07:55:44 +02:00
Anders Jenbo 68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo 9d3ce818f0 Correct BOOLS 2019-07-21 19:11:11 +02:00
Anders Jenbo b023104434 Remove u from values 2019-07-21 00:57:53 +02:00
Anders Jenbo 3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +02:00
Robin EklindandGitHub eaf8fbd0e7 Merge pull request #1312 from mewpull/cleanup4
Update player struct to use more booleans.
2019-07-18 02:50:53 +02:00
Robin Eklind 002ad4056c split PWVel into two global variables, PWVel and AnimLenFromClass
Background:

From the values of PWVel, I think it is
actually two global variables that have
been merged into one.

	int PWVel[4][3] = {
		 { 2048, 1024, 512 },
		 { 2048, 1024, 512 },
		 { 2048, 1024, 512 },
		 { 8, 8, 8 }
	};

I think it should be:

	int PWVel[3][3] = {
		 { 2048, 1024, 512 },
		 { 2048, 1024, 512 },
		 { 2048, 1024, 512 }
	};
	int AnimLenFromClass[3] = {
		 { 8, 8, 8 }
	};

Then, this code in PM_DoWalk would make more sense:

Before:
    vel = 8;
    if (currlevel != 0) {
        vel = PWVel[3][plr[pnum]._pClass];
    }

After:
    AnimLen = 8;
    if (currlevel != 0) {
        AnimLen = AnimLenFromClass[plr[pnum]._pClass];
    }
2019-07-17 22:36:06 +02:00
Robin Eklind b727d158ab Make _pSLvlVisited into a boolean.
_pSLvlVisited is only ever used in boolean contexts.
2019-07-17 20:36:02 +02:00
Robin Eklind 29eb52b6d0 Make _pLvlVisited into a boolean.
_pLvlVisited is only ever used in boolean contexts.
2019-07-17 20:34:45 +02:00
Robin Eklind a443e5091e Make _pInfraFlag a boolean.
_pInfraFlag is only ever used in boolean contexts.
2019-07-17 15:12:11 +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 EklindandAnders Jenbo 8402bbaff5 player: replace WALK_NONE with -1 for lightning index 2019-07-17 00:30:27 +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
galaxyhaxzandAnders Jenbo 26932a843f Fix min diff in PlrHitMonst (#1281) 2019-06-28 02:41:41 +02:00
Duarte AlvimandAnders Jenbo 6a4142fb08 Add gold constants 2019-06-16 02:24:09 +02:00
Manuel KandAnders Jenbo 896933f55e Replace magic number 352 with VIEWPORT_HEIGHT (#1232) 2019-06-02 17:51:33 +01:00
Anders Jenbo 56dcdd669b Clean up DrawChr 2019-05-31 16:03:03 +01:00
Anders Jenbo 565bb5aa7d Adust dFlag enums 2019-05-29 16:23:08 +01:00
Sergey SemushinandAnders Jenbo 47aee25195 Make Do_Death bin exact. 2019-05-06 23:03:54 +01:00
Anders Jenbo 9f5af2e6df Clean up player.cpp 2019-05-02 00:16:46 +01:00
Anders Jenbo 66438890aa Clean up spells.cpp 2019-05-02 00:16:46 +01:00
Robin EklindandGitHub bfe060f173 Merge pull request #1037 from AJenbo/count
Correct count
2019-04-26 18:55:59 +09:00