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
Robin Eklind
9772cd0743
Add definition of j_lock_buf_priv and j_unlock_buf_priv for debug release.
...
Also add a debug target for MakefileVC.
8 years ago
Robin Eklind
3103da7f1d
Add missing arg to j_lock_buf_priv and j_unlock_buf_priv ( #374 )
8 years ago
Anders Jenbo
226fbc68b0
effects_cleanup_sfx & stream_update ( #375 )
...
* effects_cleanup_sfx & stream_update
* effects_play_sound
* effect_is_playing, PlaySFX, PlaySfxLoc & effects_play_sound
8 years ago
Andrew Dunstan
e34be64ef4
Resolve conflicts
8 years ago
Andrew Dunstan
22dc793b7d
Clean remaining pfile.cpp functions
...
full file is binary exact except for pfile_create_player_description (minor diff)
8 years ago
squidcc
3561450624
clean plrmsg.cpp ( #386 )
8 years ago
galaxyhaxz
2f46409b64
Add inlining to render.cpp (btm) ( #383 )
8 years ago
Anders Jenbo
744e225618
Clean up player.cpp ( #387 )
8 years ago
squidcc
7c1d00d15c
Finish cleaning player.cpp ( #365 )
...
* clean RespawnDeadItem
clean PM_ChangeLightOffset
Clean PlrDeadItem (exact)
* fix typo in PlrDeadItem
* Fix PM_ChangeLightOff (exact)
* Fix remaning issues with RespawnDeadItem
8 years ago
galaxyhaxz
8a7f5eca14
Fix Fireball Collision
8 years ago
galaxyhaxz
cd82710607
Fix __int64 in missiles ( #380 )
8 years ago
galaxyhaxz
395adc3c6b
Minor fixes ( #379 )
8 years ago
galaxyhaxz
c775439589
Cleanup "loadsave.cpp" ( #376 )
8 years ago
Anders Jenbo
fff0a9161c
movie.cpp ( #378 )
8 years ago
Anders Jenbo
79faf4a3c4
Update .travis.yml
8 years ago
Anders Jenbo
f269f4561b
PlaySFX_priv, stream_play ( #371 )
...
* PlaySFX_priv, stream_play
* Fix build warnings in player.cpp
* Clean up FreeMonsterSnd
* Added more enums and defines for sound and effects.
8 years ago
galaxyhaxz
6ee4d0dad0
Cleanup L5roomGen ( #372 )
8 years ago
squidcc
b9eca92474
pfile cleaning #2 ( #373 )
...
* clean GetSaveDirectory and pfile_read_hero
clean pfile_open_save_archive
clean pfile_archive_contains_game
clean pfile_get_player_class
clean pfile_get_file_name
clean GetTempSaveNames
clean GetPermSaveNames
clean pfile_update
clean pfile_init_save_directory
clean pfile_write_hero
clean pfile_open_archive
clean pfile_flush_W
* add stub for mpqapi_update_multi_creation_time
8 years ago