summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 12:24:23 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 22:48:38 +0100
commit5d91803c9ff9656c0e9103ebba843f7625500fdc (patch)
tree04fac754d5a85c573e7df3a5ad468b2da2d3aa10 /common
parent8b9e6a0abb6291ce7b37b44375151e421bca0de4 (diff)
Whoops, missed one. Also, we don't need to construct a rotated tile.
Diffstat (limited to 'common')
-rw-r--r--common/tile.cpp4
-rw-r--r--common/tile.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/common/tile.cpp b/common/tile.cpp
index 8ade606..4b7e3ef 100644
--- a/common/tile.cpp
+++ b/common/tile.cpp
@@ -2,11 +2,11 @@
#include <algorithm>
-Tile::Tile(Tile::Type t, bool re, bool ro) : type(t), red(re), rotated(ro) {
+Tile::Tile(Tile::Type t, bool re) : type(t), red(re), rotated(false), invisible(false) {
}
-Tile::Tile(Set s, int num, bool re, bool ro) : red(re), rotated(ro) {
+Tile::Tile(Set s, int num, bool re) : red(re), rotated(false), invisible(false) {
switch(s) {
case Man:
type = Type(Man_1 + num - 1);
diff --git a/common/tile.h b/common/tile.h
index 461e145..df3ea76 100644
--- a/common/tile.h
+++ b/common/tile.h
@@ -62,10 +62,10 @@ class Tile {
bool invisible;
//! Construct tile by type.
- Tile(Type t = Back, bool re = false, bool ro = false);
+ Tile(Type t = Back, bool re = false);
//! Construct tile by set and number.
- Tile(Set s, int num, bool re = false, bool ro = false);
+ Tile(Set s, int num, bool re = false);
virtual ~Tile(){};