[Scummvm-cvs-logs] SF.net SVN: scummvm:[43947] scummvm/trunk/engines/teenagent

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Sep 4 22:10:33 CEST 2009


Revision: 43947
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43947&view=rev
Author:   fingolfin
Date:     2009-09-04 20:10:32 +0000 (Fri, 04 Sep 2009)

Log Message:
-----------
TEEN: Made some stuff const

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/actor.cpp
    scummvm/trunk/engines/teenagent/music.cpp

Modified: scummvm/trunk/engines/teenagent/actor.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/actor.cpp	2009-09-04 20:09:29 UTC (rev 43946)
+++ scummvm/trunk/engines/teenagent/actor.cpp	2009-09-04 20:10:32 UTC (rev 43947)
@@ -28,9 +28,9 @@
 namespace TeenAgent {
 
 void Actor::render(Graphics::Surface * surface, const Common::Point & position, uint8 orientation, int delta_frame) {
-	uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
-	uint8 frames_up[] = {18, 19, 20, 21, 22, 23, 24, 25, };
-	uint8 frames_down[] = {10, 11, 12, 13, 14, 15, 16, 17, };
+	const uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
+	const uint8 frames_up[] = {18, 19, 20, 21, 22, 23, 24, 25, };
+	const uint8 frames_down[] = {10, 11, 12, 13, 14, 15, 16, 17, };
 	
 	Surface * s = NULL;
 	

Modified: scummvm/trunk/engines/teenagent/music.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/music.cpp	2009-09-04 20:09:29 UTC (rev 43946)
+++ scummvm/trunk/engines/teenagent/music.cpp	2009-09-04 20:10:32 UTC (rev 43947)
@@ -28,7 +28,7 @@
 
 namespace TeenAgent {
 
-static uint32 noteToPeriod[3][12] = {
+static const uint32 noteToPeriod[3][12] = {
 	{855, 807, 761, 720, 678, 640, 604, 569, 537, 508, 480, 453},
 	{428, 404, 381, 360, 338, 320, 301, 285, 269, 254, 239, 226},
 	{214, 201, 189, 179, 170, 160, 151, 143, 135, 127, 120, 113}


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