[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2729 - in branches/pingus_sdl/src: . math
From: |
jsalmon3 |
Subject: |
[Pingus-CVS] r2729 - in branches/pingus_sdl/src: . math |
Date: |
Sat, 14 Jul 2007 06:27:45 +0200 |
Author: jsalmon3
Date: 2007-07-14 06:27:40 +0200 (Sat, 14 Jul 2007)
New Revision: 2729
Modified:
branches/pingus_sdl/src/math/size.hpp
branches/pingus_sdl/src/pingus_level_impl.hpp
Log:
Initialize variables
Modified: branches/pingus_sdl/src/math/size.hpp
===================================================================
--- branches/pingus_sdl/src/math/size.hpp 2007-07-14 04:12:39 UTC (rev
2728)
+++ branches/pingus_sdl/src/math/size.hpp 2007-07-14 04:27:40 UTC (rev
2729)
@@ -50,7 +50,7 @@
//param width: Initial width of size structure.
//param height: Initial height of size structure.
//param size: Size structure to construct this one from.
- Size() { return; }
+ Size() : width(0), height(0) { return; }
Size(int width, int height)
: width(width), height(height) { }
@@ -104,7 +104,7 @@
//param width: Initial width of size structure.
//param height: Initial height of size structure.
//param size: Size structure to construct this one from.
- Sizef() { return; }
+ Sizef() : width(0.f), height(0.f) { return; }
Sizef(const Size& s)
: width((float)s.width),
Modified: branches/pingus_sdl/src/pingus_level_impl.hpp
===================================================================
--- branches/pingus_sdl/src/pingus_level_impl.hpp 2007-07-14 04:12:39 UTC
(rev 2728)
+++ branches/pingus_sdl/src/pingus_level_impl.hpp 2007-07-14 04:27:40 UTC
(rev 2729)
@@ -33,6 +33,8 @@
// Set defaults in constructor
PingusLevelImpl()
: ambient_light(255, 255, 255, 255),
+ number_of_pingus(0), number_to_save(0),
+ time(0), difficulty(0),
music("none")
{
// Do nothing
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2729 - in branches/pingus_sdl/src: . math,
jsalmon3 <=