summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/GameSave.cpp10
-rw-r--r--src/game/SignTool.cpp3
2 files changed, 3 insertions, 10 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp
index 9f20b37..9072921 100644
--- a/src/client/GameSave.cpp
+++ b/src/client/GameSave.cpp
@@ -1,11 +1,3 @@
-//
-// GameSave.cpp
-// The Powder Toy
-//
-// Created by Simon Robertshaw on 04/06/2012.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
-//
-
#include <iostream>
#include <sstream>
#include <cmath>
@@ -979,7 +971,7 @@ fail:
free(freeIndices);
if(partsSimIndex)
free(partsSimIndex);
- throw ParseException(ParseException::Corrupt, "Save data currupt");
+ throw ParseException(ParseException::Corrupt, "Save data corrupt");
fin:
bson_destroy(&b);
if(freeIndices)
diff --git a/src/game/SignTool.cpp b/src/game/SignTool.cpp
index eb1ef57..af267af 100644
--- a/src/game/SignTool.cpp
+++ b/src/game/SignTool.cpp
@@ -284,5 +284,6 @@ void SignTool::Click(Simulation * sim, Brush * brush, ui::Point position)
break;
}
}
- new SignWindow(this, sim, signIndex, position);
+ if (signIndex != -1 || sim->signs.size() < MAXSIGNS)
+ new SignWindow(this, sim, signIndex, position);
}