git repos / blockattack-game

commit a944c46b

sago007 · 2016-04-02 13:34
a944c46b92cb24490dd6988def02effe4f9d68b1 patch · browse files
parent a35ab74b6bb526bf23e337ace3f79aae9f900ae0

Added some initializers

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 9fb4dbc..20b80f1 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -106,8 +106,6 @@ static void PhysFsSetSearchPath(const vector<string>& paths, const string& savep
static void PhysFsCreateFolders() {
- //We first create the folder there we will save (only on UNIX systems)
- //we call the external command "mkdir"... the user might have renamed this, but we hope he hasn't
PHYSFS_mkdir("screenshots");
PHYSFS_mkdir("replays");
PHYSFS_mkdir("puzzles");
@@ -270,12 +268,12 @@ void ResetFullscreen() {
//The small things that are faaling when you clear something
class ABall {
private:
- double x;
- double y;
- double velocityY;
- double velocityX;
- int color;
- unsigned long int lastTime;
+ double x = 0.0;
+ double y = 0.0;
+ double velocityY = 0.0;
+ double velocityX = 0.0;
+ int color = 0;
+ unsigned long int lastTime = 0;
public:
ABall() {