Dennis Duda
458cf2cf3e
Update CONTRIBUTING.md to include the coding style guide
8 years ago
Andrew Dunstan
47244b9f3c
clean all On_* functions
8 years ago
Anders Jenbo
35e8aa42c5
Fix lightning resistance on char screen
8 years ago
Anders Jenbo
c24569205d
Format compleated files
8 years ago
Anders Jenbo
f1d4e707f7
Auto format
8 years ago
Andrew Dunstan
674407cb73
clean SetSpellTrans
8 years ago
Anders Jenbo
456d651f55
Clean up more bools related to sound.cpp
8 years ago
Anders Jenbo
8e2d0df643
Clean up some bools
8 years ago
Anders Jenbo
b6c6dc05d7
Order properties
8 years ago
Anders Jenbo
f1c8439c64
Change setlvlnum to BYTE
8 years ago
Anders Jenbo
badf38841e
Align a bit of code style
8 years ago
Anders Jenbo
50c7094d35
Auto format portal.cpp
8 years ago
Andrew Dunstan
0a17c0961d
clean and format portal.cpp
8 years ago
Andrew Dunstan
5dd1153979
rename riff_chunk -> CKINFO
8 years ago
Andrew Dunstan
4c085a734b
clean wave.cpp
8 years ago
Anders Jenbo
4708345d31
Align spelldata data table
8 years ago
Andrew Dunstan
c2fbc0e661
player_mask -> pmask
8 years ago
Andrew Dunstan
1430acc47f
msg.cpp cleanup part #0
8 years ago
Andrew Dunstan
c2d49ff75f
add missing va_end "calls"
8 years ago
Andrew Dunstan
d8da11f0dc
clean restrict.cpp
8 years ago
Anders Jenbo
2db187faf5
Correct AnimStruct names ( #417 )
...
Fixes #384
8 years ago
Andrew Dunstan
053bcdb6b2
make the mana flask use the correct background
8 years ago
Anders Jenbo
48a1035d4a
Remove unused varialbes
8 years ago
Andrew Dunstan
dea936a6a9
clean track.cpp
8 years ago
Anders Jenbo
4fa5baf291
Apply enum to _pSplLvl
8 years ago
Anders Jenbo
a7c9e90c3c
Clean up _pMemSpells in OperateShrine
8 years ago
Anders Jenbo
7a5c283db2
Clean up CalcPlrStaff
8 years ago
Anders Jenbo
8ef6488acf
Clean up CalcPlrScrolls
8 years ago
Anders Jenbo
51d838841f
Clean up OperateBook
8 years ago
Anders Jenbo
83e52d47e1
Clean up MaxSpellsCheat and SetSpellLevelCheat
8 years ago
Anders Jenbo
f80de53b14
_iMagical enum ( #393 )
...
* _iMagical enum
* Color enum
8 years ago
Anders Jenbo
96ab38730f
Control.cpp ( #396 )
...
* Clean up ToggleSpell
* Clean up DrawLifeFlask and UpdateLifeFlask
* Clean up DrawManaFlaskm, control_update_life_mana and UpdateManaFlask
* Clean up CheckSBook
* Clean up DoSpeedBook
* Decompose magic numbers
* Clean up GetSBookTrans
* Apply spell_type
* Slight clean up of DrawSpellList
This improves the bin diff a little bit but more importantly gets rid of
_p*Spells[] usage in control.cpp
8 years ago
Anders Jenbo
c878a630f5
Monster.cpp ( #402 )
...
* Clean up DeleteMonster
* AddMonster
* Clean up NewMonsterAnim
* Clean up M_Ranged, M_Talker and M_GetDir
* Clean up M_StartDelay
* Clean up M_StartSpStand
* Clean M_StartSpStand
* Add enum to monster Anim
8 years ago
Anders Jenbo
249f211bb6
Follow GitHub standard for file naming ( #403 )
...
This will allow CONTRIBUTING.md and other documents to be detected by
github and appear in relevant places
8 years ago
Anders Jenbo
8f3d59e513
Monster.cpp ( #400 )
...
* Clean up hp and mana checks
* Clean up PrepDoEnding
8 years ago
squidcc
3f7055387d
fix _px/_py being used instead of _pxoff/_pyoff ( #397 )
8 years ago
Anders Jenbo
4d8ceea32d
Types ( #395 )
...
* Apply plr_class
* Apply attribute_id
* NetSendCmd*(BOOL)
8 years ago
Anders Jenbo
411fa9f24a
Add enumds for _pgfxnum and fully use inv_body_loc ( #392 )
...
* Add enumds for _pgfxnum and fully use inv_body_loc
* _iIdentified is BOOL
* _pgfxnum
8 years ago
galaxyhaxz
0f184f2b71
Move assembly to _asm.cpp ( #388 )
8 years ago
Anders Jenbo
72a13f1d26
Make .clang-format compatible with older versions
8 years ago
Robin Eklind
82527fb92b
Put braces around for loop with empty body.
8 years ago
Robin Eklind
e18a70f82b
Use .clang-format config instead of -style command line settings.
...
The Source/.clang-format config is used for *.cpp files.
The root .clang-format config is used for *.h files.
8 years ago
Robin Eklind
892e84136e
Add Devilution specific config values for clang-format.
...
* AlignTrailingComments: true
* AllowShortBlocksOnASingleLine: true
* AllowShortFunctionsOnASingleLine: None
* PointerAlignment: Right
Note, currently, the format.sh script uses the config file
for .cpp files. The `AlignConsecutiveAssignments: true` setting
is specifically added for .h files.
I could not find a way to specify what config file to use
for clang-format. So, for now, the config file is used for
.cpp.
8 years ago
Robin Eklind
fed3f265af
Add default clang-format config for WebKit.
...
Generated as follows:
$ clang-format --version
clang-format version 7.0.0 (tags/RELEASE_700/final)
$ clang-format -style=webkit -dump-config > .clang-format
8 years ago
Robin Eklind
7515655efb
Run format.sh
8 years ago
Robin Eklind
e9f16669ab
Add clang-format script.
...
Base default style on WebKit and set a few options
specific to Devilution.
* `AlignTrailingComments: true`
* `AllowShortBlocksOnASingleLine: true`
* `AllowShortFunctionsOnASingleLine: None`
* `PointerAlignment: Right`
For header files, we also want to add
* `AlignConsecutiveAssignments: true`
8 years ago
squidcc
99f1a7c1d8
Fix AutomapZoomIn, AutomapZoomOut, AutomapZoomReset ( #349 )
...
Clean DrawAutomapGame (binary exact)
Clean GetAutomapType ("not eax" instead of "not ax")
8 years ago
Anders Jenbo
46897e9c6e
Correct a couple of values ( #389 )
8 years ago
squidcc
8fd0561588
clean all tmsg functions ( #357 )
...
* clean all tmsg functions
* type fix-ups
8 years ago
squidcc
e8e725c35a
clean dead.cpp ( #369 )
8 years ago