Commit Graph
88 Commits
Author SHA1 Message Date
Hubert Maier 861f5b78e9 SCUMM: Correct spelling mistake
accomodate -> accommodate
2022-10-27 15:57:28 +02:00
AndywinXp befd3b3511 JANITORIAL: SCUMM: Costume renderer and AKOS labeling
This commit:
- Continues my AKOS relabeling task and adds some documentation and missing information;
- Renames the codec functions from codec1, codec5 and codec16 to something more expressive;
- Add '_' in front of private class members, when missing;
- Changes "v1" names (unnamed variables supposedly coming from Ghidra or similar tools...) to something more expressive;
- Renames related variables from foo_bar (or foobar) to fooBar (on costume.cpp, base-costume.cpp and akos.cpp).
2022-09-28 00:12:52 +02:00
AndywinXp 8f744954c3 JANITORIAL: SCUMM: Improve readability of AKOS code
This is part of an on-going effort on my end to document the AKOS code, and fix strange stuff
such as integers being used as booleans, and variable_names instead of variableNames
2022-09-27 00:14:26 +02:00
athrxx 33c2631290 SCUMM: (V2) - improve CGA and Hercules modes
Should be pixel-perfect now.
This change is only about SCUMM2 (ZAK/MM).
2022-07-15 15:40:16 +02:00
athrxx 97fbe867cb SCUMM: (MMv1/ZAKv1) - add support for CGA, CGA Composite and Hercules modes
This does not improve anything about these modes for v2 and v3, except:
- brighter CGA colors
- v2 will also get the more accurate Hercules mouse cursor

I will do improve v2/v3 as separate tasks. v3 seems to be mostly fine, anyway, except for the actors (we dither them just like the backgrounds, but that looks different in DOSBox).
2022-07-10 01:04:38 +02:00
Torbjörn Andersson 2937c616ae SCUMM: Fix glitch introduced by DOTT Chron-O-John workaround
The mainRoutine() function returns a byte, not a bool. This caused text
to be partly erased when drugging the piranha poodles in MI1. Probably
other things as well.
2022-05-21 09:51:14 +02:00
Donovan Watteau e5c8043ece SCUMM: Fix costume palette glitch in Amiga Monkey2 (bug #13433)
As discovered by RetroSpeedruns on YouTube, in the Amiga version of Monkey
Island 2, trying to use the stick on the dog at the front of the Governor
Mansion's on Booty Island will cause a palette glitch for this costume.

This costume can be used in rooms 29 and 55, but in the latter case,
the palette won't match with this room's constraints.  So, we override
this invalid palette when the costume is loaded from that room.

The palette was handmade, working from the colors of costume 1, and
trying to match the colors of costume 55/animation 13 while triggering
them in the jail and in front of the Governor's Mansion.
2022-04-30 13:06:36 +03:00
Torbjörn Andersson d0ac6fc453 SCUMM: Clean up DOTT Chron-O-John workaround a bit
With the last set of adjustments, it no longer seems necessary to check
which frame of the lid animation is being drawn. I count that as a win!
2022-04-25 09:51:51 +02:00
Torbjörn Andersson a8b5d65fb8 SCUMM: Work around DOTT glitch when Bernard looks out of Chron-O-John
When Bernard turns his head inside the Chron-O-John during the DOTT
intro, part of the Chron-O-John is mirrored along with Bernard's face.
This is probably because the opening of the lid is part of the actor
animation.

This causes a visible glitch when Bernard is facing to the left side of
the screen. We fix that by always keeping the same mirroring for the
Chron-O-John and adjusting Bernard's head by a few pixels.
2022-04-25 10:16:18 +03:00
athrxx 2adc35e261 SCUMM: fix minor (and rare) costume rendering glitch
(DOTT bug mentioned here: https://github.com/scummvm/scummvm/pull/3795/)

I found this in all versions from 1 to 6, so I applied the fix to all non-AKOS and non-v0 costumes.
2022-04-20 19:48:22 +02:00
Torbjörn Andersson 132a07c0e8 SCUMM: Fix graphics glitch in TurboGrafx-16 version of Loom
Now Bobbin's palette is changed when entering/leaving the darkened tent.
It's odd that this effect looks so different from all other versions of
the game that I've tried (VGA, EGA and FM Towns), but it seems to match
the original behavior based on YouTube videos I've watched.
2022-02-04 18:51:40 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh ed5489929c SCUMM: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Cameron Cawley d02daaeb2b SCUMM: Remove direct use of Graphics::Surface from ARM code (#2931) 2021-05-04 00:17:52 +03:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
sluicebox 93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
mataniko 90dc392f82 SCUMM: Render dark rooms and flashlight accurately in MM NES
The flashlight in MM NES does not have rounded corners, and due to
palette limitations does not render the lit areas in color.

This commit also adjusts the palette for sprites in dark rooms to match
a real NES.
2020-05-04 00:05:47 -04:00
D G Turner 59b639ed4d SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-23 11:56:16 +00:00
Robert Crossfield 71172add9c SCUMM: Original V0-V2 flashlight shape and size for MM/Zak (#10947, #10951) 2019-05-05 15:41:20 +03:00
Robert Crossfield c95b6a9f8d SCUMM: Fix bug #6817 (V1 Actors drawn 1 line too high) 2016-12-27 10:21:23 +11:00
Johannes Schickel 3847465163 SCUMM: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel c05cb7f3bb SCUMM: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:31 +02:00
Johannes Schickel 89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Bertrand Augereau 09f193352a SCUMM: PCESetCostumeData should have static linking 2012-09-01 14:14:23 +02:00
Tarek Soliman a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tobias Gunkel 67d67ec4f6 SCUMM: replaced A with a0 to avoid upper-case local vars 2012-02-11 08:36:35 +01:00
Tobias Gunkel 0aabf95cb8 SCUMM: match style-guide, add missing spaces between some "if ()", "for ()" 2012-02-11 08:30:15 +01:00
Tobias Gunkel 9dd6105ce6 SCUMM: replace "c64" with "v0" when it applies to both C64 and AppleII v0 versions
In addition some routines (e.g. the gfx ones) that are even used in v1.
2012-02-11 08:30:08 +01:00
Tobias Gunkel 5d3e1dd0dc SCUMM: remove the temporary variable _limb_current 2012-02-11 08:30:05 +01:00
Tobias Gunkel e14e4ab3b0 SCUMM: adjust to coding style-guide 2012-02-11 08:30:02 +01:00
Tobias Gunkel 434aaaf0c0 SCUMM: fix gcc compiler warnings 2012-02-11 08:30:00 +01:00
Robert Crossfield a8008e0a71 SCUMM: Fix if there is no costume set 2012-02-11 08:29:59 +01:00
Robert Crossfield c6688cf0d5 SCUMM: Remove unused variable, remove old comment 2012-02-11 08:29:41 +01:00
Robert Crossfield 1ca0b84b01 SCUMM: Improve comments 2012-02-11 08:29:38 +01:00
Robert Crossfield 1e8d0664ac SCUMM: Fix Tentacle issue, and possibly some other animation issues 2012-02-11 08:29:32 +01:00
Robert Crossfield 08e3866395 SCUMM: Animation Fixes 2012-02-11 08:29:24 +01:00
Robert Crossfield 65fb1f9a09 SCUMM: Fix the animation system, rename the Limb Frame Repeat variable 2012-02-11 08:29:22 +01:00
segrax a999aa39ba SCUMM: Re-arrange some things to make it closer to the original 2012-02-11 08:29:02 +01:00
segrax e2d45467bb SCUMM: improve unknown variable support, add case 0xff to the animateactor opcode 2012-02-11 08:28:59 +01:00
segrax cbae5c79b7 SCUMM: Change vars to ints, remove unused variable for now 2012-02-11 08:28:51 +01:00
segrax b999fe9e26 SCUMM: Add in support in v0 for the unknown variable to o_animateActor 2012-02-11 08:28:41 +01:00
Johannes Schickel 4ea4172cba SCUMM: Implement proper Indy4 Amiga palette handling.
This should fix incorrect text colors in some scenes.
2011-08-26 05:54:47 +02:00
Max Horn 88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
dhewg 983b044ccb ARM: Global symbols get an underscore prefix on darwin
apply same solution as for the sound/smush ARM asm here
2011-04-23 03:39:37 +02:00
Max Horn a7248a0601 ENGINES: Replace many printfs by warning/debug/debugN
svn-id: r54031
2010-11-01 21:37:47 +00:00
Johannes Schickel 1242a4eb8c Some style fixes.
svn-id: r48272
2010-03-16 14:34:25 +00:00
Travis Howell b968a69468 Add patch #2970176 - V0: MM Verb + Anim Fix.
svn-id: r48269
2010-03-16 08:59:48 +00:00
Travis Howell 2035cdbba8 Add patch #2970899 - MM V0: flipped limbs drawing fix.
svn-id: r48267
2010-03-16 08:38:06 +00:00
Neil Millstone bcb721cccd SCUMM: Fix stride of palette data in ARM optimised costime renderer
svn-id: r48135
2010-02-26 16:17:12 +00:00