Commit graph

349 commits

Author SHA1 Message Date
Gleb Mazovetskiy
bafbad6b5b Migrate RedBack away from gpBuffer 2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
e7c9ba40f5 Migrate DrawLife/ManaFlask away from gpBuffer 2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
ab6aa3f280 Migrate SetFlaskHeight away from gpBuffer
Also renames to `DrawFlaskTop` and makes it static.
2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
379b45e021 Migrate CelDrawLight to CelDrawLightTo 2021-03-06 09:55:14 +01:00
Gleb Mazovetskiy
b43325028f Migrate CelDraw to CelDrawTo 2021-03-06 09:55:14 +01:00
Anders Jenbo
e280432b92 🚨 Fix all SDL1 warnings 2021-03-06 05:56:47 +01:00
Anders Jenbo
dd73ff2cf0
🚩 Add option for disabeling frindly fire (#1104) 2021-03-06 04:15:54 +01:00
Juliano Leal Goncalves
37466890e0 ♻️ Extract 'ItemStruct.isEmpty()' function 2021-03-05 03:52:11 +01:00
Anders Jenbo
2923ad043a 🚸 Shift+click to clear the readied spell 2021-03-05 00:53:51 +01:00
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing (#1095)
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
2021-03-03 18:20:24 +01:00
Juliano Leal Goncalves
c81a1efb55
Standardize colon alignment on text (#816) 2021-02-27 23:03:41 +01:00
Gleb Mazovetskiy
8283f85e24 Engine: Functions to render to any buffer
Refactor the rendering functions to allow rendering to any output
buffer.

New functions that accept a buffer have the `To` suffix.

The functions that render to the global buffer now always accept
coordinates.
2021-02-27 17:49:39 +01:00
Anders Jenbo
70ca20b59f Clean up Hellfire special cases 2021-02-25 05:50:24 +01:00
Anders Jenbo
36a196389b Fix remaning basic compiler errors and warnings 2021-02-22 13:51:42 +01:00
pionere
f5c1079d6f eliminate unused code 2021-02-19 22:04:11 +01:00
qndel
ab9911064f unify checks for single and multiplayer 2021-02-18 22:32:01 +01:00
Anders Jenbo
c08a10e44b Unify calculation of gold icon 2021-02-18 20:52:07 +01:00
Juliano Leal Goncalves
0c19d43ee8 Replace "hot key" occurrences with "hotkey" 2021-02-17 19:49:23 +01:00
Juliano Goncalves
20c44a08ca Spend all stat points with shift click 2021-02-17 19:07:39 +01:00
Anders Jenbo
00e3ff08ae Unify majorty of monster.cpp 2021-01-17 03:55:23 +01:00
Anders Jenbo
ccd0e7fd23 Merge branch 'master' of github.com:diasurgical/devilution 2021-01-16 02:10:25 +01:00
Robin Eklind
ef64f49c4c control: add BUGFIX comment for DrawSpellBook
The render of the spellbook page 3 and page 4 buttons were both
off by one pixel.
2021-01-13 15:37:52 +01:00
Anders Jenbo
8c261d0966 Merge remaning clean Hellfire code paths 2021-01-09 19:04:31 +01:00
Anders Jenbo
0c96e32f19 Unify all defines, enums and structs 2021-01-08 20:53:06 +01:00
Anders Jenbo
e609e170d0 Merge a large chunk of Hellfire the code paths 2021-01-06 08:07:20 +01:00
Anders Jenbo
c802cbdc4d Merge more Hellfire code paths 2021-01-05 23:14:35 +01:00
Anders Jenbo
d20eddf48e Unifcy a chunk of Hellfire's code pathts 2020-12-28 01:11:25 +01:00
Anders Jenbo
61b2d0de95 Merge branch 'master' of github.com:diasurgical/devilution 2020-12-16 02:24:39 +01:00
qndel
c4c2e0420c
spell defines and macros (#2162) 2020-12-04 19:18:22 +01:00
Anders Jenbo
4794c8357c Merge branch 'master' of github.com:diasurgical/devilution 2020-11-02 03:59:47 +01:00
Anders Jenbo
086cdf6afe Re order control.cpp 2020-11-02 02:36:48 +01:00
Anders Jenbo
330074e840 Clean up menu animation code 2020-10-31 21:41:06 +01:00
Anders Jenbo
72e2637061 Merge branch 'master' of github.com:diasurgical/devilution 2020-10-25 17:38:06 +01:00
Gleb Mazovetskiy
ec329e645c Fix all "no-write-strings" warnings 2020-10-25 15:37:51 +01:00
Anders Jenbo
e073422ce7 Unify executable for Spawn and Retail
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.

This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
2020-10-20 19:42:01 +02:00
Anders Jenbo
cec9579186 Merge branch 'master' of github.com:diasurgical/devilution 2020-10-12 10:48:34 +02:00
Anders Jenbo
2d6c1efeab Merge branch 'master' of github.com:diasurgical/devilution 2020-10-12 10:46:28 +02:00
Anders Jenbo
02ddab6a31
Apply SPLICONLENGTH 2020-10-12 09:08:42 +02:00
qndel
ed11e3bde5 [hellfire] DrawSpellList bin exact 2020-10-12 06:54:05 +02:00
qndel
5d7eeddcc9 [hellfire] DrawChr bin exact 2020-10-12 05:28:23 +02:00
Anders Jenbo
7e04c63977 Merge branch 'hellfire' of github.com:diasurgical/devilution 2020-10-11 23:53:07 +02:00
Anders Jenbo
f1a193e1e2 Merge branch 'master' of github.com:diasurgical/devilution 2020-10-11 07:01:25 +02:00
qndel
fb8955dd5c control_print_talk_msg cleanup 2020-10-10 14:52:45 +02:00
qndel
a78d532e2c DrawGoldSplit cleanup 2020-10-10 14:52:16 +02:00
qndel
af76de2563 CheckSBook cleanup 2020-10-10 14:51:39 +02:00
qndel
f5ab247c42 CheckChrBtns cleanup 2020-10-10 14:51:05 +02:00
qndel
703ec92566 control_check_btn_press cleanup 2020-10-10 14:50:18 +02:00
qndel
0ef6d9e97b DoPanBtn cleanup 2020-10-10 01:13:50 +02:00
qndel
f0f33571a6 DoSpeedBook cleanup 2020-10-10 00:53:56 +02:00
qndel
1e5554ec6f DrawChr cleanup 2020-10-09 12:42:03 +02:00