[Scummvm-cvs-logs] SF.net SVN: scummvm:[38222] scummvm/trunk/engines/groovie

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Feb 15 11:32:06 CET 2009


Revision: 38222
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38222&view=rev
Author:   dreammaster
Date:     2009-02-15 10:32:06 +0000 (Sun, 15 Feb 2009)

Log Message:
-----------
Fixed compiler warning about loss of precision

Modified Paths:
--------------
    scummvm/trunk/engines/groovie/detection.cpp
    scummvm/trunk/engines/groovie/groovie.cpp
    scummvm/trunk/engines/groovie/groovie.h

Modified: scummvm/trunk/engines/groovie/detection.cpp
===================================================================
--- scummvm/trunk/engines/groovie/detection.cpp	2009-02-15 10:29:34 UTC (rev 38221)
+++ scummvm/trunk/engines/groovie/detection.cpp	2009-02-15 10:32:06 UTC (rev 38222)
@@ -206,7 +206,7 @@
 
 bool GroovieMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const {
 	if (gd) {
-		*engine = new GroovieEngine(syst, (GroovieGameDescription *)gd);
+		*engine = new GroovieEngine(syst, (const GroovieGameDescription *)gd);
 	}
 	return gd != 0;
 }

Modified: scummvm/trunk/engines/groovie/groovie.cpp
===================================================================
--- scummvm/trunk/engines/groovie/groovie.cpp	2009-02-15 10:29:34 UTC (rev 38221)
+++ scummvm/trunk/engines/groovie/groovie.cpp	2009-02-15 10:32:06 UTC (rev 38222)
@@ -34,7 +34,7 @@
 
 namespace Groovie {
 
-GroovieEngine::GroovieEngine(OSystem *syst, GroovieGameDescription *gd) :
+GroovieEngine::GroovieEngine(OSystem *syst, const GroovieGameDescription *gd) :
 	Engine(syst), _gameDescription(gd), _debugger(NULL), _script(this),
 	_resMan(NULL), _grvCursorMan(NULL), _videoPlayer(NULL), _musicPlayer(NULL),
 	_graphicsMan(NULL), _waitingForInput(false) {

Modified: scummvm/trunk/engines/groovie/groovie.h
===================================================================
--- scummvm/trunk/engines/groovie/groovie.h	2009-02-15 10:29:34 UTC (rev 38221)
+++ scummvm/trunk/engines/groovie/groovie.h	2009-02-15 10:32:06 UTC (rev 38222)
@@ -70,7 +70,7 @@
 
 class GroovieEngine : public Engine {
 public:
-	GroovieEngine(OSystem *syst, GroovieGameDescription *gd);
+	GroovieEngine(OSystem *syst, const GroovieGameDescription *gd);
 	~GroovieEngine();
 
 protected:
@@ -98,7 +98,7 @@
 	GraphicsMan *_graphicsMan;
 
 private:
-	GroovieGameDescription *_gameDescription;
+	const GroovieGameDescription *_gameDescription;
 	Debugger *_debugger;
 	bool _waitingForInput;
 };


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list