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
galaxyhaxz
9c98c1e43d
Fix all "pass by ref" functions
2019-12-02 09:16:01 +01:00
galaxyhaxz
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 Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
2019-10-21 09:56:36 +02:00
qndel
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 Eklind
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
qndel
0a76a26b24
Clean up
2019-08-31 07:40:44 +02:00
qndel
a17e34c4bf
applied enums to _pmode and untangled ifs
2019-08-31 06:23:35 +02:00
qndel
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 Eklind
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 Eklind
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
galaxyhaxz
26932a843f
Fix min diff in PlrHitMonst ( #1281 )
2019-06-28 02:41:41 +02:00
Duarte Alvim
6a4142fb08
Add gold constants
2019-06-16 02:24:09 +02:00
Manuel K
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 Semushin
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 Eklind
bfe060f173
Merge pull request #1037 from AJenbo/count
...
Correct count
2019-04-26 18:55:59 +09:00
galaxyhaxz
029b15f298
Fix type for Dungeon Micros
2019-04-26 03:17:06 +02:00
Anders Jenbo
512f858e67
Correct count
2019-04-26 02:34:19 +02:00
Anders Jenbo
55a0396f8f
Clean up mem_free_dbg style
2019-04-22 13:22:57 +02:00
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
2019-04-21 17:20:38 +02:00
galaxyhaxz
4e01e03711
Cleanup default calling conventions
2019-04-09 12:04:00 +02:00
galaxyhaxz
7b687413b2
Rename InitPlayerLoc
2019-04-07 23:24:08 +02:00
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl ( #825 )
2019-04-02 14:19:28 -05:00
galaxyhaxz
5238265702
Implement assert support ( #791 )
2019-03-29 21:26:37 -05:00
galaxyhaxz
a29c75a3a2
Fix a few func/var names ( #731 )
2019-03-24 05:54:44 -05:00