Commit Graph
67 Commits
Author SHA1 Message Date
Le Philousophe 26dd9a05fa ZVISION: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Torbjörn Andersson 6f9199e502 ZVISION: Fix the Zork Nemesis safe puzzle
This reverts bb2f218fa1 which was in
response to a Coverity report. Maybe it can be written in a better way -
I haven't wrapped my head around the trigonometry of it - but clicking
on a number on the safe dial is supposed to rotate the dial until that
number is at the red arrow head.

This way, it works. You can test it with "location a c 4 g 0".
2020-07-23 11:55:39 +02:00
Cameron Cawley 6ed8dea829 ZVISION: Disable the keymap when InputControl is focused 2020-03-15 17:35:09 +01:00
Bastien Bouclet e3abab45ab ZVISION: Add override keywords 2020-02-09 12:55:00 +01:00
D G Turner 008e2b85b6 ZVISION: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-24 02:04:53 +01:00
Eugene Sandulenko bb2f218fa1 ZVISION: Fix atan2() arguments order. CID 1394387 2018-07-23 23:46:06 +02:00
Eugene Sandulenko fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Max Horn 856475067a MISC: Remove some unused private member variables 2015-07-19 17:13:18 +02:00
RichieSams a851fa8e1a ZVISION: Refactor text rendering code in order to fix word wrapping
and clarify the logic. Fixes bug #6801
2015-02-11 15:13:19 -06:00
Torbjörn Andersson cbbd1a9219 ZVISION: Set safe control state value after animation finishes
If we set it before the animation starts, the final turn of the
wheel won't be animated, because the puzzle will already be solved.
2015-02-08 15:47:20 +01:00
Torbjörn Andersson 8725f2cff2 ZVISION: Limit input text to the width of the input control
This is to prevent the player from entering ridiculously long
savegame descriptions.
2015-02-08 13:56:01 +01:00
Torbjörn Andersson b7b4e9cc58 ZVISION: Draw transparent text in original save dialog
Before this change, text was drawn in black boxes in Zork Nemesis,
so while this does make it look better (and more like the original)
this may actually make the text slightly harder to read. The
original dialogs allowed only upper-case letters, but I think that
it's better to leave that to the player.
2015-02-08 10:13:18 +01:00
Filippos Karapetis 1adcb23d71 ZVISION: Fix bug #6784 (wrong scaling in the fist control) 2015-02-03 04:16:02 +02:00
RichieSams 89f233f488 ZVISION: Set the state value for the lever position during user dragging
Not just during the "returning" animation. Addresses part of bug #6761
2015-01-15 00:41:13 -06:00
RichieSams 4f28cec6ac ZVISION: Keep the hand cursor during lever movement
We have to explicitly set the cursor each call otherwise the cursor will
be reset to the idle cursor. Addresses part of bug #6761
2015-01-15 00:40:37 -06:00
Filippos Karapetis 79b92fe046 ZVISION: Clean up save logic, and fix a thumbnail-related FIXME
This fixes the save game thumbnails when using the original save/load
screens
2015-01-09 01:09:53 +02:00
Matthew Hoops 6d55998b40 ZVISION: Make the rest of the controls properly use VideoDecoder timing
The hacky use of getDuration() to retrieve the framerate() is gone

Thanks to md5 for testing (and for filling in a few gaps since I was coding in the blind ;))
2014-12-28 21:27:56 -05:00
Filippos Karapetis 587b1ad69c ZVISION: The fist control is only used in one location 2014-12-28 18:42:18 +02:00
Filippos Karapetis 78b2c87d51 ZVISION: Document some more controls 2014-12-28 15:27:55 +02:00
Filippos Karapetis e8820d26e7 ZVISION: Fix a warning 2014-12-26 12:42:01 +02:00
Filippos Karapetis 5a72eea2bb ZVISION: Move some event/rendering code out of the main engine code 2014-12-26 12:41:36 +02:00
Filippos Karapetis 4d0ebfaa22 ZVISION: Move the save manager together with the other file classes 2014-12-26 04:03:20 +02:00
Filippos Karapetis fa2d8d927b ZVISION: Plug more memory leaks 2014-12-24 23:27:03 +02:00
Filippos Karapetis e8e21fabe4 ZVISION: Set all the internal graphics operations to use RGB555 (1/2)
This is the first part of the changes to make the engine use RGB555
internally again. This is done to simplify the rendering pipeline -
the engine will use RGB555 internally, but will output to RGB565.
The overall changes have been broken into two commits, thus this
first commit will break all the game colors
2014-12-24 22:56:55 +02:00
Filippos Karapetis 99073f9b57 ZVISION: Fix some buffer overruns with the usage of sscanf() 2014-12-23 02:20:17 +02:00
Filippos Karapetis e5ecd500cf ZVISION: Document some controls that are only used in Zork: Nemesis 2014-12-21 23:33:48 +02:00
Marisa-Chan 5fb33ee5e7 ZVISION: Fix unchecked return value (CID 1257098) 2014-12-19 17:19:12 +06:00
Marisa-Chan 79f75059de ZVISION: Fix copy into fixed size buffer (CID 1257096) 2014-12-19 17:18:46 +06:00
Marisa-Chan fafbd425dc ZVISION: Fix copy into fixed size buffer (CID 1257095) 2014-12-19 17:18:11 +06:00
Marisa-Chan abf37ebbf3 ZVISION: Fix uninitialized scalar field (CID 1257080) 2014-12-19 16:51:43 +06:00
Marisa-Chan fb0872e40b ZVISION: Fix uninitialized scalar field (CID 1257076) 2014-12-19 16:48:36 +06:00
Marisa-Chan c50024fd86 ZVISION: Fix uninitialized pointer field (CID 1109699) 2014-12-19 15:37:33 +06:00
Marisa-Chan d96834020c ZVISION: Fix uninitialized scalar field (CID 1109669) 2014-12-19 15:31:43 +06:00
Filippos Karapetis 77705752ef ZVISION: Move trimCommentsAndWhiteSpace() into the script manager
This allows us to remove the last remnants of utility.*
2014-12-16 01:58:57 +02:00
Filippos Karapetis 7630e3204e ZVISION: Move all the remaining utility classes into the core 2014-12-16 01:58:56 +02:00
Filippos Karapetis 4b2b5e686b ZVISION: Move the mouse cursor handling code into the graphics code 2014-12-16 01:58:55 +02:00
Filippos Karapetis 7f61a09478 ZVISION: Make the RLF decoder a subclass of the common video decoder
This way, the redundant MetaAnimation class can now be removed
2014-12-16 01:58:55 +02:00
Filippos Karapetis 1f80e1389f ZVISION: Fix the responsiveness of level controls to mouse movement
This fixes the responsiveness of the levers in the planet screen of
Zork: Nemesis
2014-12-09 19:38:11 +02:00
Filippos Karapetis ecb1979245 ZVISION: Implement more advanced engine features
Save game thumbnails and save game creation date have now been
implemented
2014-12-08 01:25:27 +02:00
Filippos Karapetis 2a4a6df5f2 ZVISION: Remove superfluous spacing and reorder some includes 2014-12-03 01:12:35 +02:00
Filippos Karapetis 61f654e4ee ZVISION: Explicitly define which version of atan2() to use
This is needed by MSVC
2014-12-03 00:53:36 +02:00
Marisa-Chan 5b352da304 ZVISION: More CamelCase and a bit of comments cleanup 2014-11-20 14:48:24 +06:00
Marisa-Chan d5f7a1dc03 ZVISION: Implement forgotten setVenus for controls 2014-11-20 14:02:08 +06:00
Marisa-Chan e970d121ff ZVISION: Lead code of all controls to the same style 2014-11-12 16:05:48 +06:00
Marisa-Chan 0b3a20f645 ZVISION: Some push toggles may contain few hotspot zones 2014-10-22 11:43:24 +07:00
Marisa-Chan a65ec38f8d ZVISION: Fix code style 2014-10-10 16:50:59 +07:00
Marisa-Chan ac74070af1 ZVISION: Lever blitter must scale image to rect 2014-10-10 16:49:38 +07:00
Marisa-Chan 2a6c2fdf45 ZVISION: Titler control and DisplayMessage action implemented 2014-09-10 16:20:50 +07:00
Marisa-Chan 39c3a26bfa ZVISION: Fix setStateFlag->setStateValue in HotMov control 2014-09-10 16:17:30 +07:00