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
Anders Jenbo
9358465bb5
AddMissile bin exact ( #621 )
...
* AddMissile bin exact
* Clean up bools
2019-03-11 23:59:26 +01:00
Max Desiatov
269aa345bd
Fix downstream 64-bit builds
2019-03-08 03:07:21 +01:00
Anders Jenbo
bc015e9af1
Make _miDelFlag bool
2019-03-02 16:12:03 +01:00
Anders Jenbo
b5c7026b15
Not all animation combinations exists for player animations
...
This issue causes the game to look for 126 non existing animations
- Player always drops weapons when dying
- Player can only block if using a shield
2019-02-20 22:40:03 +01:00
Anders Jenbo
9b7da61dcf
Auto format src
2019-01-13 18:55:59 +01:00
Anders Jenbo
6d5c9619a7
Clean up town_draw_town_all ( #544 )
...
* Clean up town_draw_town_all
* Clean up town_draw_e_flag
* Clean up InitPlayerLoc
* Fix VS 2015 builds
* Clean up gendung_get_dpiece_num_from_coord
* Clean up town_draw_clipped_e_flag
* Clean up town_draw_clipped_e_flag_2
* Remove HIDWORD() as it is now unused
2019-01-06 01:36:59 +01:00
Anders Jenbo
fd2a45ff9a
Engine.cpp ( #548 )
...
* Clean up DiabloAllocPtr
* Clean up mem_free_dbg
* Clean up GetDirection
* Clean up PlayInGameMovie
* 18 directions
2019-01-03 02:29:31 +01:00
Anders Jenbo
efec32bcd5
Compile files as C ( #527 )
...
* Compile files as C
* Provide fallback for qmemcpy
Enable C compilation for:
Source/gendung.cpp
Source/inv.cpp
Source/minitext.cpp
Source/pack.cpp
2018-12-30 13:16:11 +01:00
Robin Eklind
e915623726
rename SetCursor to SetCursor_ to avoid collision with windows.h
...
Translation done automatically using:
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
2018-12-30 03:19:10 +01:00
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
2018-12-29 17:54:22 +01:00