aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
AgeCommit message (Collapse)Author
2017-08-27TITANIC: Fix viewport _field24/starcolor not being savedDavid Fioramonti
One of the fields wasn't getting saved. This field determines whether the star color should be pink or white. It gets recomputed when you put the helmet back on so it doesn't really matter. Previously, when it loaded this value it was loading some orientation data which occurs next in the saved data file for saved games saved by scummvm versions before this commit.
2017-08-27TITANIC: Move Rad2Deg from dvector to fvectorDavid Fioramonti
I wanted to use that variable in viewport.cpp and since fvector.h is included in more functions (already) then dvector it makes sense to move it there.
2017-08-27TITANIC: Add fpose product helper functionDavid Fioramonti
This adds a non-member function that computes the product between two fpose "matrices" and puts it in a third. One of the constructor was doing that so now it calls this non-member function.
2017-08-26TITANIC: Added frame debugger command for setting objects' movie framesPaul Gilbert
2017-08-26TITANIC: Fix error setting correct PET buttons for a given areaPaul Gilbert
2017-08-26TITANIC: Fix German strings in create_titanic, regenerate titanic.datPaul Gilbert
2017-08-26TITANIC: Add further strings to create_titanic toolPaul Gilbert
2017-08-26TITANIC: Hide back view of MaitreD from close to the tablePaul Gilbert
The MaitreD was rendered using frame 0 from c386.avi, but with a corrupted right and bottom edge. Ironically, the MaitreD object isn't used at all, since hiding him revealed he's part of the background as well. From the video, it seems like he was meant to have an idle wiggle animation that didn't end up being used.
2017-08-26TITANIC: Fix another struct vs class warningPaul Gilbert
2017-08-25TITANIC: Fix struct vs class forward declaration warningPaul Gilbert
2017-08-25TITANIC: Fix buffer overflow when getting first class upgradeColin Snover
2017-08-25TITANIC: Fix Door/Bellbot remaining when summoned outside doorsPaul Gilbert
2017-08-25TITANIC: Show NPC portrait in Conversations tab after loading savegamePaul Gilbert
2017-08-25TITANIC: Fix doubled announcement when summoning DoorBotColin Snover
This would happen when the player is in one of the rooms with a room-specific announcement.
2017-08-25TITANIC: Correct cursor after ejecting cylinder in music systemPaul Gilbert
2017-08-25TITANIC: Don't allow cylinders to be dropped in music system slot closedPaul Gilbert
2017-08-24TITANIC: Reduce header includes for star_control filesDavid Fioramonti
Minimized a lot of the unncessary files includes in the implementation files as well.
2017-08-24TITANIC: Fixed titanic.h float random function rangeDavid Fioramonti
Fixed float random number function of titanic.h which could of given 65537 instead of a max of 65535.
2017-08-24TITANIC: Reduce header includes for titanic.hDavid Fioramonti
I reduced the header includes a lot in Titanic.h and forward declared when I could. Titanic.h was including a lot and a lot of functions that were including it were not using its API. This will help make it more clear which implementation files are using which class since they will just need to include which ones they need. I also moved the debug related items in Titanic.h into the debugger header. I also reordered several of the the header includes to be local to global.
2017-08-23TITANIC: Disable fix for dispensed chickens' initial temperaturePaul Gilbert
The original had a bug that didn't dispense chickens as cold when the yellow fuse was removed from the fusebox. Too many walkthroughs suggest removing it though, so I'm disabling fix to avoid confusion.
2017-08-23TITANIC: Fix incorrect cursor after getting nosePaul Gilbert
2017-08-22TITANIC: Don't allow GMM loading in the middle of receiving mailPaul Gilbert
2017-08-22TITANIC: Ensure PET _remoteTargetName is set when savingPaul Gilbert
2017-08-22TITANIC: Fix using Fn keys when Conversations tab is activePaul Gilbert
2017-08-22TITANIC: Formatting fixes for star control classesPaul Gilbert
2017-08-22Merge pull request #997 from dafioram/star_fix10148Paul Gilbert
TITANIC: Change ship view and position even if not moved
2017-08-21TITANIC: Renamings for MaitreDScriptPaul Gilbert
2017-08-21TITANIC: Renamings for CMaitreDProdReceptorPaul Gilbert
2017-08-21TITANIC: Made variable for magic number used in auto camera moverDavid Fioramonti
This variable controls the number of transitions the game goes through when the mover is changing position. This reduces several 31/32s from the code.
2017-08-21TITANIC: Camera Auto Mover class cleanupDavid Fioramonti
Named some functions, made _speeds be an array instead of a dynamic one.
2017-08-21TITANIC: Named some functions in fvectorDavid Fioramonti
2017-08-20TITANIC: Prevent 2 star locking for large distancesDavid Fioramonti
I have added a conditional to the code so that if the player tries to lock onto the 2nd star and they are very far away, >1e8, then the game will not allow the star to be locked. This is a temporary workaround since if a distance of farther then this is attempted then the view will be throw way off and the stars will not be shown locking onto correctly. I've also made the locking functions return booleans so I can determine the success of the lockings. This is a partial fix for #9961.
2017-08-20TITANIC: Fix Tab key toggle for Starfield/Photo being brokenPaul Gilbert
2017-08-20TITANIC: Fix Coverity suggestion in CPetConversationsPaul Gilbert
2017-08-20TITANIC: Add Tab key as a shortcut for switching to inventoryPaul Gilbert
2017-08-20TITANIC: Change ship view and position even if not movedDavid Fioramonti
The code was preventing the position and view from changing when the distance between the current and new position for a marked auto mover was zero. This happens if you lock the 2nd or 3rd star and then unlock and relock again. It was prevented this with asserts and if statement checks and I removed them all. This section of code isn't doing any inverses based on the reciprocal of the distance so theres no issue with allowing transition speeds/distances of zero. Fixes #10148.
2017-08-20TITANIC: Properly reset Parrot flag if you look away while he's eatingPaul Gilbert
2017-08-20TITANIC: Further camera and crosshair classes cleanupPaul Gilbert
2017-08-20Merge pull request #995 from dafioram/star_camera_workPaul Gilbert
TITANIC: CStarCamera Refactoring and CStarCrosshairs logic fix
2017-08-20TITANIC: Pause the engine while the save/load dialogs are openBastien Bouclet
2017-08-19TITANIC: Fix flagging of mouth and vision centre inserting in TitaniaPaul Gilbert
2017-08-19TITANIC: Hide cursor when bridge view is showing movement sequencePaul Gilbert
2017-08-19TITANIC: Start end credits at bottom of screen, not the topPaul Gilbert
2017-08-19TITANIC: Fix getting chicken after not picking up a previous onePaul Gilbert
When you dispense a chicken, but don't pick it up and leave, the chicken is returned to the dispensor. But previously you couldn't then get another chicken, though you should be able to get one.
2017-08-19TITANIC: Prevent moving for locking stars when onto of starDavid Fioramonti
Originally, if you unlocked a star when you had 2 or 3 stars locked and then relocked without changing views then the game crashed. This was because it was trying to transition a distance of zero and this failed an assert (to normalize the length to be the distance). The transition is no longer done so the crash does not happen. Fixes #10147.
2017-08-19TITANIC: Pull assert out of dvector/fvector normalizationDavid Fioramonti
Before the normalization function was asserting if it couldn't normalize now the caller can determine what to do with a failed normalization.
2017-08-18TITANIC: Add logic to prevent removing locked/marked stars via skymapDavid Fioramonti
If you want to remove locked stars you can do so using the D key, but previously, you could also deselect a currently locked star via the skymap and it would crash. It previously crashed if: 1. You had 2 stars locked on and you tried to remove the 1st 2. Had 1 locked and 1 unlocked and you tried to unlock the 1st 3. Had 2 locked and 1 unlocked and you tried to unlock any of the other two locked stars. Refactoring would allow quicker comprehension of the logic of this section of code. Fixes #10126.
2017-08-18TITANIC: Allow GMM/F7 loading in prologue before player gets the PETPaul Gilbert
2017-08-18TITANIC: Fix use-after-free in TTtalker when loading savegamesPaul Gilbert
2017-08-18TITANIC: Renamed functions that adds/removes stars/markersDavid Fioramonti
Before it was add/remove row so the new name is more informative.