Commit Graph
21 Commits
Author SHA1 Message Date
Paul Gilbert 11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
David Fioramonti fb3dcb9ee0 TITANIC: Use degree conversion common math funcs
I tested the star puzzle and it is still good.
2018-07-03 23:08:48 +01:00
Adrian Frühwirth cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
David Fioramonti d3a0a487be TITANIC: star control, removed todos and improved some comments 2017-09-07 06:33:05 -07:00
David Fioramonti 40684e83d3 TITANIC: Better naming for Viewport function
I differentiated getRelativePosCentering() and
getRelativePosCentering2() since one was using
the raw Pose and one was using the regular Pose.
2017-09-07 06:23:01 -07:00
Paul Gilbert ba84efe497 TITANIC: Minor cleanup and warning fixes to star control 2017-09-02 11:20:17 -04:00
Paul Gilbert d1325e2d12 TITANIC: Formatting fixes for viewport refactoring 2017-08-30 20:05:47 -04:00
David Fioramonti 5cf2f16ca0 TITANIC: Refactoring of Viewport class
1. Improved naming of functions.
	E.x., fn17 is now called getRelativePosNoCentering
2. Improved variable names
	E.x., _valArray[3] is now _pixel1OffSetX, naming makes sense for it
	use in CBaseStars::draw.
3. Lots of comments and TODO added for suspicious behavior
	Mentioned unused functions and values that don't get used.
4. Changes in other classes that viewport renaming affected
	Some of the star_camera functions were 1-1 mapping of
	functions in viewport so I just made the names be the same.
2017-08-27 05:39:13 -07:00
David Fioramonti de5e2c9674 TITANIC: Fix viewport _field24/starcolor not being saved
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-27 05:32:23 -07:00
David Fioramonti 42cdd66f81 TITANIC: Move Rad2Deg from dvector to fvector
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-27 05:30:24 -07:00
David Fioramonti d01354ab0d TITANIC: Reduce header includes for star_control files
Minimized a lot of the unncessary files includes in the
implementation files as well.
2017-08-24 04:31:04 -07:00
David Fioramonti c96b01b82e TITANIC: Reduce header includes for titanic.h
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-24 04:06:54 -07:00
David Fioramonti 04598dd5ad TITANIC: Named some functions in fvector 2017-08-21 15:42:50 -07:00
David Fioramonti 24354ac6a8 TITANIC: fpose, simplify inverse
Was doing 3x3 inverse now it is doing a transpose.
Also named the function.
2017-08-16 20:42:09 -07:00
David Fioramonti 4bd42373ce TITANIC: star control, fmatrix refactoring
renamed fn2->MatRProd and fn3->MatLProd.
They do post (R) and pre (L) multiplication.
2017-08-15 14:41:48 -07:00
Paul Gilbert 30b5fc8c36 TITANIC: Fix copying viewport _valArray data 2017-05-28 18:17:51 -04:00
Paul Gilbert 38beceef7d TITANIC: Renamings of orientation related variables and methods 2017-05-28 15:53:52 -04:00
Paul Gilbert feb359e4a9 TITANIC: Renamings for positions and orientations 2017-04-16 21:46:36 -04:00
Paul Gilbert 4fae7c8e78 TITANIC: Renaming of camera setting position & orientation 2017-04-16 17:24:41 -04:00
Paul Gilbert 0774501c8d TITANIC: Renaming for viewport position poses and access methods 2017-04-16 16:00:03 -04:00
Paul Gilbert e1ea47eb5c TITANIC: Rename CStarControlSub13 to CViewport 2017-04-16 15:40:54 -04:00