summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-16 20:19:12 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-16 20:19:12 (GMT)
commitc3c31b20b07d1971091cf225311a86c51b64e2ca (patch)
tree3078c4cab8f2a1a1d930788fd131d1432d8450f5 /src/simulation/Simulation.cpp
parent465cb12af436a65871bd149174da0e7479d108bd (diff)
downloadpowder-c3c31b20b07d1971091cf225311a86c51b64e2ca.zip
powder-c3c31b20b07d1971091cf225311a86c51b64e2ca.tar.gz
Fix portals
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 7fdd6d6..c266e22 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -3372,7 +3372,9 @@ Simulation::~Simulation()
}
Simulation::Simulation():
- sys_pause(0)
+ sys_pause(0),
+ portal_rx({-1, 0, 1, 1, 1, 0,-1,-1}),
+ portal_ry({-1,-1,-1, 0, 1, 1, 1, 0})
{
//Create and attach gravity simulation
grav = new Gravity();
@@ -3397,6 +3399,7 @@ Simulation::Simulation():
pv = air->pv;
hv = air->hv;
+ //Clear signs
signs = (sign*)calloc(MAXSIGNS, sizeof(sign));
int menuCount;