Commit graph

64 commits

Author SHA1 Message Date
Anders Jenbo
a515202943 Apply MAX_SEND_STR_LEN 2019-04-09 01:54:00 +02:00
Anders Jenbo
5c22841071 Apply MAX_PATH 2019-04-08 18:52:30 +02:00
Robin Eklind
018c81d5aa
Merge pull request #832 from AJenbo/StartGoldDrop
Clean up inv.cpp
2019-04-08 17:10:23 +09:00
Anders Jenbo
d2174e3454 Apply code style 2019-04-05 21:54:45 +02:00
Anders Jenbo
69ad8b63e0 Clean up StartGoldDrop 2019-04-05 16:44:04 +02:00
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl (#825) 2019-04-02 14:19:28 -05:00
Robin Eklind
24f6ba2d59
Merge pull request #780 from qndel/GetObjectStr
GetObjectStr almost bin exact
2019-04-02 20:13:53 +09:00
Anders Jenbo
54c73f740c clean up redundant code 2019-03-30 17:14:16 +01:00
qndel
8f7f936eda GetObjectStr almost bin exact 2019-03-28 17:25:50 +01:00
galaxyhaxz
afe4d4d3a9
Clean Control.cpp asm funcs (#707) 2019-03-19 18:37:22 -05:00
Anders Jenbo
ae2630cc46 Mem free dbg (#685)
* FreeQuestText

* DRLG_FreeL2SP

* GetHall

* FreeGMenu

* FreeObjectGFX

* DRLG_FreeL1SP

* FreeControlPan

* FreeLightTable

* Clean up DRLG_LoadDiabQuads

* DRLG_FreeL4SP

* FreeInterface
2019-03-19 15:37:07 +09:00
galaxyhaxz
87a0846a38
Clean CPrintString + Font index (#687) 2019-03-18 22:24:23 -05:00
galaxyhaxz
befd52c003 Fix type for 'gpBuffer' (#672) 2019-03-18 22:28:38 +09:00
galaxyhaxz
0bb9f666b3
Clean remaining .CEL functions (#657) 2019-03-17 15:56:53 -05:00
galaxyhaxz
81f3f5daa2 Cleaning Engine CEL functions (#652)
* Cleaning Engine CEL functions

* Fix C functions
2019-03-14 10:47:39 +09:00
galaxyhaxz
c0c5cc3610 Fix DrawSpellCel (#630) 2019-03-14 10:40:30 +09:00
Anders Jenbo
ca64011eb9
Replace __ROR4__ stdlib, make _ROR2__ C frindly (#540)
* Use stdlib _rotr instead of inline asm
* Compile control.cpp as C
This also makes qmemcpy avalible to the C compiler
2019-01-06 03:23:43 +01:00
Anders Jenbo
82d1f6c8e0 Clean up CheckChrBtns 2019-01-01 03:15:04 +01:00
Anders Jenbo
30a394798b Clean up control_set_gold_curs 2018-12-31 21:12:58 +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
47bf82b059 C compatability from a-d (#518) 2018-12-29 15:12:19 +01:00
Anders Jenbo
4a62a7c678 Code style 2018-12-29 02:15:20 +01:00
galaxyhaxz
eceb1c3b5b Fix tempstr length, add array 2018-12-18 09:37:37 +01:00
Anders Jenbo
ab3a6208d2 Use "BOOLEAN" instead of "bool"
bool is not defined in C
2018-11-26 12:35:03 +01:00
galaxyhaxz
d9a285327f
StartGame and PressEscKey (#461) 2018-11-12 15:27:43 -06:00
galaxyhaxz
86f00145f8 Remove empty_string garbage 2018-11-06 09:42:27 +01:00
Anders Jenbo
04b19f604d Monster.cpp (#443)
* Clean up MAI_Golum

* Clean up MAI_Garbud

* Clean up MAI_Lachdanan

* Clean up DeleteMonsterList

* Clean up FreeMonsters

* Define enums for resistance

* Correct AddPanelString input

* Correct pinfoflag type

* Define monster_goal

* apply enum to _pIFlags

* Correct DeleteMonsterList

* Add TODO for possible bug fix.
2018-10-31 15:26:03 +01:00
Anders Jenbo
b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo
27b23b4186 Format ingame UI 2018-10-22 01:31:21 +02:00
Anders Jenbo
6576954831 Clean up types used in gamemenu.cpp 2018-10-21 03:50:52 +02:00
Anders Jenbo
5394f63dd7 Define diablo_message enum 2018-10-21 02:27:48 +02:00
Anders Jenbo
35e8aa42c5 Fix lightning resistance on char screen 2018-10-20 13:39:14 +02:00
Andrew Dunstan
674407cb73 clean SetSpellTrans 2018-10-18 23:03:20 +02:00
Andrew Dunstan
053bcdb6b2 make the mana flask use the correct background 2018-10-13 23:46:15 +02:00
Anders Jenbo
48a1035d4a Remove unused varialbes 2018-10-12 11:04:23 +02:00
Anders Jenbo
f80de53b14 _iMagical enum (#393)
* _iMagical enum

* Color enum
2018-10-11 08:39:17 +02:00
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
2018-10-11 08:37:14 +02:00
Anders Jenbo
8f3d59e513 Monster.cpp (#400)
* Clean up hp and mana checks

* Clean up PrepDoEnding
2018-10-10 09:55:57 +02:00
Anders Jenbo
4d8ceea32d Types (#395)
* Apply plr_class

* Apply attribute_id

* NetSendCmd*(BOOL)
2018-10-08 14:17:05 +02:00
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
2018-10-07 11:04:22 +02:00
squidcc
3561450624 clean plrmsg.cpp (#386) 2018-10-06 14:00:37 +02:00
Anders Jenbo
744e225618 Clean up player.cpp (#387) 2018-10-06 00:33:58 +02:00
Anders Jenbo
837119d581 Merge branch 'master' of github.com:diasurgical/devilution into nightly 2018-09-28 23:16:16 +02:00
squidcc
4ed6d83265 fix regression in DrawSpellList() that caused only the first 1/4 spells to be drawn (#355)
fix places where sTownSpell was still being cast to DWORD
change SpellData::sTargeted to BOOL, fix spelldata[] definition to use TRUE/FALSE
2018-09-28 10:46:36 +02:00
nomdenom
4bb6bde99b Use sizeof() for memset()
I checked that the sizes do match. (+1 squashed commits)
2018-09-27 19:23:21 -07:00
Anders Jenbo
b7dfcf5ed5 Clean up CheckPlrSpell (#339) 2018-09-28 01:49:17 +02:00
Anders Jenbo
d8c4bcab5c Clean up DropHalfPlayersGold (#330) 2018-09-24 16:50:45 +02:00
Anders Jenbo
b5e2f74f65 Merge branch 'nightly' of github.com:diasurgical/devilution into StartPlayerKill 2018-09-23 16:47:46 +02:00
Anders Jenbo
cd79931ed4 Add iCurs enum 2018-09-23 16:46:00 +02:00
Anders Jenbo
db77557dce ValidatePlayer (#318)
* ValidatePlayer

* Add MAX_SPELLS define
2018-09-23 09:40:05 +02:00