obligaron
3b87433fc2
Move GetFrameToUseForPlayerRendering to AnimationInfo
2021-04-29 04:33:51 +02:00
obligaron
1de46a8495
Rename member variables
2021-04-29 04:33:51 +02:00
obligaron
0b5183f63e
Introduce AnimationInfo
...
Update AnimationInfo.DelayLen comment
2021-04-29 04:33:51 +02:00
thebigMuh
ad8f342db0
Adding constness
2021-04-26 23:30:02 +02:00
thebigMuh
7ce3957a8a
Split of QoL features into separate files
2021-04-26 19:31:25 +02:00
obligaron
239a43cc1c
Remove "AnimWidth2" expect for missiles ( #1680 )
2021-04-25 13:32:33 +02:00
Jmgr
1b7e0d2cb3
Migrate existing log entries
2021-04-25 02:39:42 +02:00
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
2021-04-25 01:25:48 +02:00
Anders Jenbo
98cd435fba
♻️ Apply point types to missiles
2021-04-24 21:41:04 +02:00
Anders Jenbo
efbe8a8338
♻️ add possition points to monsters
2021-04-24 20:29:52 +02:00
Anders Jenbo
275404029e
♻️ Cleanup player temp variables
2021-04-24 17:07:07 +02:00
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
2021-04-24 04:46:08 +02:00
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
2021-04-23 02:48:25 +02:00
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
2021-04-22 20:33:24 +02:00
Anders Jenbo
1e3ed903be
🎨 strip redundant else
2021-04-22 00:39:48 +02:00
Anders Jenbo
d024f79b0e
🧹 performance-unnecessary-value-param
2021-04-22 00:08:19 +02:00
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
2021-04-21 05:31:17 +02:00
Anders Jenbo
9e307a0d4a
🎨 Rename towner[] to towners[]
2021-04-19 22:42:19 +02:00
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
2021-04-19 22:42:19 +02:00
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
2021-04-19 16:02:05 +02:00
thebigMuh
50dcf587f4
Adding fancier XP bar ( #1597 )
2021-04-19 02:59:20 +02:00
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
2021-04-19 02:44:39 +02:00
Anders Jenbo
946ff5b0fa
♻️ Performe static casts when load save game data
2021-04-18 23:27:21 +02:00
Anders Jenbo
61d15e23db
🎨 Apply direction enum to monsters and relations
...
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
2021-04-18 23:13:03 +02:00
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
2021-04-18 18:15:47 +02:00
Gleb Mazovetskiy
b2601a04e0
Zoom: Fix off-by-1 and handle odd dimensions
2021-04-16 04:29:26 +02:00
qndel
d8444ed695
Clean DrawInvBelt + outline colors
...
* fix right hand items
2021-04-16 02:17:28 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
obligaron
9fbe139f64
cache ProgressToNextGameTick and update it only once before rendering
2021-04-12 20:44:29 +02:00
obligaron
c7b9ffec1f
Decouple Animations from Gamelogi (Smooth Animations for skipped Frames).
...
NewPlrAnim: Use default arguments instead of overloads
StartPlrHit: Fix skippedAnimationFrames - Frames starts with 1
Add missing comment for StartPlrHit
Fix GotHit-Animation: Skipping Frames corrected and adjusted _pAnimGameTicksSinceSequenceStarted for animations that don't start with a additional tick.
Thanks @StephenCWills for the gothit skipping frame calculation logic :-)
Update StartWalk: calculated numSkippedFrames in own line.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
StartPlrHit: always initialize skippedAnimationFrames
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Update nthread_GetProgressToNextGameTick comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
fix spelling "lenght" instead of "length"
Update NewPlrAnim comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
GetFrameToUseForPlayerRendering: avoid one "else"
2021-04-12 20:44:29 +02:00
Gleb Mazovetskiy
db3eaacfcf
Stop relying on buffer padding in cursor rendering
...
Follow-up to #1173
2021-04-10 19:09:28 +01:00
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
2021-04-10 12:21:21 +02:00
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
2021-04-09 15:13:02 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
2021-04-06 11:45:28 +02:00
FluffyQuack
c0f57f3020
🐮 Draw outline for color in index 0 for inventory icons. ( #1318 )
2021-04-03 03:39:44 +02:00
Anders Jenbo
ca2c2ba5e7
🚨 Handle a bunch of warnings from CLang
2021-03-29 06:26:31 +02:00
Gleb Mazovetskiy
92fbd21b11
Fix SDL_Rect warnings on SDL1
2021-03-22 20:48:17 +01:00
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
2021-03-17 23:37:58 +01:00
Gleb Mazovetskiy
4d6de74eb8
Don't rely on BORDER_LEFT/TOP in cursor rendering
...
The code there previously implicitly relied on BORDER_LEFT/TOP being
large enough.
2021-03-13 15:34:53 +01:00
Gleb Mazovetskiy
cd59a1c323
Completely replace gpBuffer with CelOutputBuffer
...
`CelOutputBuffer` now contains an `SDL_Surface` and an `SDL_Rect`.
We now have access to SDL surface manipulation functions.
`gpBuffer` and `gpBufEnd` are completely gone 🧹
This results in some FPS loss (250 -> 195) recovered in a subsequent
commit.
2021-03-13 05:13:26 +01:00
Gleb Mazovetskiy
4b45b642a7
Migrate scrollrt_draw_cursor_back_buffer away from gpBuffer
2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
afa3a6bf27
Migrate capture.cpp away from gpBuffer
2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
599d2e5e38
Migrate QOL away from gpBuffer
2021-03-13 02:26:11 +01:00
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
f607807c95
Migrate the rest of drawing away from gpBufEnd
2021-03-13 02:26:11 +01:00