Commit Graph
997 Commits
Author SHA1 Message Date
Eugene Sandulenko a2c96b6233 MM: XEEN: Remove unused variable 2023-09-19 14:44:18 +02:00
Eugene Sandulenko 5a2fbed061 MM: MM1: Remove redundant copy constructor
Default one will work equally fine
2023-09-19 14:43:51 +02:00
Eugene Sandulenko 15866dc113 MM: MM1: Comment out unused class variables 2023-09-19 14:43:25 +02:00
elasota 9892bedc61 COMMON: Add createReadStreamForAltStream to open Mac resource fork and metadata streams 2023-08-30 00:31:00 +02:00
Paul Gilbert 9a9f2e3faf MM: MM1: Fixes for casting energy blast (and other iterative spells) 2023-08-15 20:11:13 -07:00
Paul Gilbert f934b0b64f MM: MM1: Fix monster selection after first monster killed 2023-08-14 19:09:58 -07:00
Paul Gilbert 06c1d02522 MM: MM1: Add missing param guard to getRandomNumber 2023-08-14 18:59:21 -07:00
Paul Gilbert c599d4f861 MM: MM1: Fix setting up random monster list for combat 2023-08-13 18:56:18 -07:00
Paul Gilbert 0e3c70d523 MM: MM1: Fix enhanced mode combat crash 2023-08-13 17:58:01 -07:00
Paul Gilbert 03470bf83c MM: MM1: Hopefully fix new deprecated InfoMessage warnings 2023-08-13 17:36:56 -07:00
D G Turner 79ac349b9c MM: MM1: Fix Likely Oversight of Field in Custom Copy Assignment Operator 2023-08-14 01:15:55 +01:00
Paul Gilbert c1e8258275 MM: MM1: Added dump_roster command to create original roster.dta 2023-08-06 15:17:02 -07:00
Paul Gilbert a6f01a7599 MM: MM1: Fix new characters to be at level 1 2023-08-06 15:17:01 -07:00
Paul Gilbert ab25cfd0df MM: MM1: Fix crash using Turn Undead spell 2023-08-06 14:44:32 -07:00
Miro Kropacek f85fde7707 ENGINES: ALL: Use new CursorMan API where applicable
This makes code not only cleaner but also friendly to 8-bit surfaces
where pitch != width.
2023-07-19 22:22:11 +02:00
elasota b8acbe6bee COMMON: Archive path refactoring, add getFileName and getPathInArchive that unambiguously return the filename or the full path 2023-07-19 18:51:37 +02:00
Paul Gilbert b64caa512a MM: MM1: Remove dprecated | formatting for names 2023-07-07 19:29:10 -07:00
PushmePullyu 15027796b7 MM: MM1: Fix (un)equipping items in enhanced mode
- Switch to equipped items view when selecting the unequip action
- Switch to backpack items view when selecting the equip action

Depending on current mode, ViewsEnh::CharacterInventory holds either
a list of backpack or equipped items (BACKPACK_MODE/ARMS_MODE).

When calling the equip(/unequip) method, the index of the selected
equipment from the list is passed.

However, these methods always access the backpack(/equipped) item
list regardless of the current mode.

The use of an invalid index then leads to manipulating the wrong
item and/or the use of uninitialized/stale values.

This is fixed by setting the appropriate mode before the call.
2023-06-18 17:14:23 -07:00
PushmePullyu aa2b1beece MM: MM1: Fix out-of-bounds read on drawing stats 2023-06-18 17:13:05 -07:00
PushmePullyu f8443c5e66 MM: MM1: Fix bounds check in enhanced mode inventory handling 2023-06-18 00:54:19 +03:00
PushmePullyu 1ae8852549 MM: MM1: Fix crash on roster load
Do not ignore EOS when loading roster save.
This prevents a comparison with an uninitialized variable.

Fixes #14509
2023-06-12 07:45:44 -07:00
Alexander Izmailov ba5f3d9028 MM: XEEN: workaround for broken canrnage hand animation.
Some resource files from MM1 are opened by ID, that is hash(filename).
The ID for "049.att." file is exist and incorrect for this file.
MM4-5 games should not use IDs at all.
Not sure if here is the right place to select the way sprite loads.
But it fixes bug #14503.
2023-06-10 16:06:16 -07:00
Alexander Izmailov a3cfd1fabd MM: XEEN: add hp and sp bars for QoL 2023-06-10 16:03:08 -07:00
Paul Gilbert 32bcd55d6c MM: MM1: Add direct detection for the Graphics Overhauld Mod.
We don't support running the game directly from it, since doing
so would bypass the need for the original game. But at least
this way, it will be recognised, and users will be given an
informative message of why the game won't run.
2023-06-10 09:20:45 -07:00
Paul Gilbert f13675d5e4 MM: MM1: Mark game ready for testing 2023-06-05 21:59:05 -07:00
Paul Gilbert 027d3e7a5c MM: MM1: Allow switching party members at market
It doesn't do anything, since food is bought for the whole
party rather than one user at a time. But it doesn't hurt,
and may help avoid players getting confused.
2023-06-05 21:52:21 -07:00
Paul Gilbert d205814864 MM: MM1: Fix combat round highlighting 2023-06-05 21:42:51 -07:00
Paul Gilbert 426c547a6a MM: MM1: Add Xeen deeath laugh to death screen 2023-06-05 21:42:51 -07:00
Paul Gilbert 32cbdebb68 MM: MM1: Fix applying combat damage to correct monster 2023-06-05 20:53:54 -07:00
Paul Gilbert 021698b7e7 MM: XEEN: Better fix for Day Of Sorcery crash 2023-06-04 22:34:27 -07:00
PushmePullyu 4ec2fbdb38 MM: MM1: Fix portrait validation 2023-06-04 20:48:32 -07:00
Paul Gilbert 09bdd77215 MM: MM1: Fit combat monster list when all monsters slots are filled 2023-06-04 17:03:59 -07:00
Paul Gilbert c03811fd22 MM: MM1: Fix text entry 2023-06-04 14:17:00 -07:00
Paul Gilbert cf798c2d31 MM: MM1: Finished Duplication spell views 2023-06-04 14:00:52 -07:00
Paul Gilbert 9c05226f25 MM: MM1: Better glyph for Recharge Item Charge button 2023-06-04 14:00:52 -07:00
Paul Gilbert 442707aa52 MM: MM1: Added missing files from last commit 2023-06-03 22:54:47 -07:00
Paul Gilbert e548fd5be3 MM: MM1: Finished teleport spell views 2023-06-03 22:36:50 -07:00
Paul Gilbert 30f4adf46b MM: MM1: Added Recharge Item views 2023-06-03 20:49:22 -07:00
Paul Gilbert c80f16628b MM: MM1: Fixes for original Recharge Item view 2023-06-03 18:51:32 -07:00
Paul Gilbert b1ccb1695d MM: MM1: Added Detect Magic view 2023-06-03 16:55:59 -07:00
Paul Gilbert 94cd53cac2 MM: MM1: Implement item discarding 2023-06-03 16:55:59 -07:00
Paul Gilbert 56a99dc79f MM: MM1: Refresh display after equipping/removing items 2023-06-03 16:55:59 -07:00
Paul Gilbert 8a469814d4 MM: XEEN: Fix using Coin of Daily Sorcery 2023-06-03 11:30:24 -07:00
D G Turner 896484600b MM: MM1: Fix Duplicated Code Branches GCC Compiler Warning
The ScrollView::draw method was just calling the parent class of PartyView
so code that selects between this i.e. in combat or not, gave a GCC warning
as both paths were identical. This fixes this warning and allows the
behaviour to be varied in future.
2023-06-03 16:57:10 +01:00
D G Turner 859b2dfd11 MM: MM1: Fix Unused Variable GCC Compiler Warning 2023-06-03 16:56:51 +01:00
Paul Gilbert da0e6444cb MM: MM1: Fixes for original Detect Magic view 2023-06-02 22:51:25 -07:00
Paul Gilbert fcce523edb MM: MM1: Properly implement views for fly spell 2023-06-02 21:41:46 -07:00
Paul Gilbert 85b9fa20c7 MM: MM1: Location spell view for enhanced mode 2023-06-02 20:32:28 -07:00
Paul Gilbert e7d1ddd36d MM: MM1: Fix Location spell in original 2023-06-02 20:32:28 -07:00
Paul Gilbert 8d46e1c5a5 MM: MM1: Further fixes for cast spell display 2023-06-02 20:32:28 -07:00