Andrew James
b19f2e80ce
Move anonymous namespace functions to the top of the file
1 year ago
Andrew James
c7abf2f778
Extract logic from CheckInvCut/AutoPlaceItemInInventory ( #7494 )
...
* Remove unnecessary namespace
* Extract FindSlotUnderCursor
* Split logic for finding a space in the inventory to dedicated functions
1 year ago
staphen
fade1d0b22
Fix error in Lua require() function
1 year ago
Gleb Mazovetskiy
197827acc9
Update Source/utils/surface_to_clx.cpp
...
Well spotted!
Co-authored-by: Stephen C. Wills <swills@gridprotectionalliance.org>
1 year ago
Gleb Mazovetskiy
aa751ff538
Reduce CLX header size from 10 to 6
...
We remain compatible with the 10-byte header size,
and actually now support any header size.
1 year ago
Sten Feldman
95c79ecd61
🇪🇪 ET Translation patch ( #7479 )
...
- First iteration of Estonian translations
- Added to Eesti to Options as well as included the strings to the Asset file.
1 year ago
Gleb Mazovetskiy
dbfa2feb48
SDL1: Avoid redundant palette update
...
When the display surface is 8-bit, skips a redundant call to `SDL_SetPalette`.
1 year ago
staphen
e1a08d369e
Do not assume 10-byte header for CL2 data
1 year ago
staphen
3caa80f453
Fix double to float conversion warnings in virtual gamepad logic
1 year ago
Eric Robinson
181247924b
Cleanup LoadGameLevel() ( #7467 )
1 year ago
Eric Robinson
d6c81898d6
Move Lazarus spawn code
1 year ago
Anders Jenbo
8dc6e0516a
Fix GetUniqueMonstPosition()
1 year ago
Eric Robinson
06528a58e7
Clean up PlaceUniqueMonster() position logic
1 year ago
Eric Robinson
baaa906583
Remove CheckCheatStats() ( #7461 )
1 year ago
Eric Robinson
0fd4a7b348
Fix Life/Mana bugs ( #5777 )
1 year ago
Gleb Mazovetskiy
1a32a705fe
Replaces uses of doubles with floats
...
Looks like the KallistiOS Dreamcast SDK disables double support
by default: 495e77fd60/environ_dreamcast.sh (L16)
We don't really need doubles in this code.
The one place where we might have needed them is the SMK video
decoder, handled in a separate PR.
1 year ago
Gleb Mazovetskiy
f476754313
Videos: Avoid float math for frame durations
...
SMK format actually defines frame durations in units that are 0.01ms:
91e732bb69/src/SmackerDecoder.cpp (L329-L334)
That's great because it means we can do everything using integer math.
1 year ago
staphen
1078598226
Hide Upscale option in Settings menu
1 year ago
Gleb Mazovetskiy
92aeb01ebb
Fix stairs rendering in Caves and Hell
...
Stairs can have the same `TileProperties` as floors but do not
always follor the same graphics layout as floors, so we shouldn't
apply optimizations to them.
The only floors affected seem to be:
1. Caves: tile 48 sub-tile 171 frame 461 (TileProperties: None)
2. Hell: tile 46 sub-tile 141 frame 386 (TileProperties: BlocksMissile)
Note that the few broken in pixels in caves are actually incorrectly
attributed to the non-Solid tile, really they should be part of the
solid tile 49.
As there doesn't seem to be a quick and easy way to check if a frame
is part of Stairs, we add a check for BlocksMissile tile property
instead.
This fixes Hell but isn't enough to fix Caves.
To fix Caves, we then add a `BlocksMissile` flag to the broken sub-tile.
2 years ago
Gleb Mazovetskiy
8c39edfe7e
Add `dev.display.tileData('microTiles')`
2 years ago
Andrew James
59471f0828
Remove special case when auto-placing 2x2 items
2 years ago
Gleb Mazovetskiy
67f822f659
Speed-up debug grid
...
`dev.display.grid()` previously tanked the FPS even on my beefy machine.
It is now much faster.
I've also noticed that the grid is glitchy when but this is also the
case before this PR.
2 years ago
Gleb Mazovetskiy
898cb3ae3d
Screenshotting: Use `SDL_RWops` throughout
...
Turns out `SDL_RWFromFP` isn't implemented in SDL for mingw.
2 years ago
staphen
b78ec23362
Fix bounds check in RenderClxOutline()
2 years ago
Eric Robinson
d7b5a0c972
Update hwcursor.cpp
2 years ago
qndel
fe15ae32f0
fix warnings
2 years ago
Eric Robinson
793eb7a835
Fix 0 charge staff in speed spell ( #6502 )
...
* Fix 0 charge staff in speed spell
2 years ago
Eric Robinson
9f197f5ebc
Rename Missile::_mirange to Missile::duration ( #7214 )
2 years ago
Eric Robinson
cdd22626b4
Fix Knockback direction ( #7093 )
2 years ago
Anders Jenbo
ee8907eb96
Use Point in cursor.cpp
2 years ago
Todd-C-Goldfarb
cadb6d86a5
Refactor: Check_Curs_Move() (Issue: 1995)
2 years ago
Eric Robinson
109c3b165c
Bugfix/Refactor: Min-Max Damage Range Calculations ( #7022 )
2 years ago
Eric Robinson
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2 years ago
Anders Jenbo
974f517fd9
Make belt_item_type in to an enum class
2 years ago
Eric Robinson
6396af1ff5
Cleanup panel code (Part 2) ( #7421 )
2 years ago
KPhoenix
b0cb1b92ed
Bugfix: Corruption item power
2 years ago
Eric Robinson
d8e58b2547
Fix Elemental Arrows vs Objects ( #6507 )
2 years ago
Eric Robinson
0e1e87389a
Revise FailedToOpenFileError ( #7305 )
2 years ago
qndel
724cce7d90
fix being able to repair equipped items for free
2 years ago
Stephen C. Wills
cfe9a8ccdd
Introduce xoshiro RNG to generate dungeon seeds ( #7030 )
2 years ago
Eric Robinson
8970eaa410
Cleanup panel code (Part 1) ( #7417 )
...
HPPer changed from 80 to 81. The globes have 81 rows of pixels that can be filled.
2 years ago
staphen
dbd33e6f52
Update optimized transparency lookup when cycling colors
2 years ago
Eric Robinson
cabc85b660
Fix Magic Rock animations ( #7365 )
2 years ago
Anders Jenbo
e949f41d83
Clean up selection type
2 years ago
KPhoenix
e58ba95a96
Fix Underministic Item Generation
2 years ago
Anders Jenbo
8128086d5b
Clean up DoBlitScreen
2 years ago
Eric Robinson
fc457388fd
Removes the logic that mimics the Hellfire oversight
2 years ago
Andrew James
99e12f7663
dedupe code to pick up/auto-move items from body
2 years ago
Andrew James
e9bb19b60f
tidy up one-hand equip logic
2 years ago
Andrew James
db02222cda
remove temporary ii variable
2 years ago