On Tue, Apr 20, 2010 at 12:31 PM, Mattt <ma...@mattts.net> wrote:
>
>     actionmgr.cpp:115: error: invalid cast from type ‘SGTimeStamp’ to type
> ‘double’
>
>   ...so I've tried all sorts of ways to add .toMSecs(). Nothing is working.

timestamp.hxx has line 136:
double toMSecs() const
(See 
http://cvs.flightgear.org/viewvc/source/simgear/timing/timestamp.hxx?annotate=1.7&root=SimGear)

So, .toMSecs() should have worked like this:
( current - _lastNewAction ).toMSecs()
Alternatively, you could try:
current.toMSecs() - _lastNewAction.toMSecs()

If these don't work, please post the new error message.

-- 
Csaba/Jester

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to