From c3c31b20b07d1971091cf225311a86c51b64e2ca Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 16 Apr 2012 21:19:12 +0100 Subject: [PATCH] Fix portals --- src/elements/prti.cpp | 6 ++---- src/simulation/Simulation.cpp | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/elements/prti.cpp b/src/elements/prti.cpp index 9bbbf261c..f5b237490 100644 --- a/src/elements/prti.cpp +++ b/src/elements/prti.cpp @@ -6,8 +6,6 @@ PRTO does (count+4)%8, so that it will come out at the opposite place to where it came in PRTO does +/-1 to the count, so it doesn't jam as easily */ -int portal_rx[8] = {-1, 0, 1, 1, 1, 0,-1,-1}; -int portal_ry[8] = {-1,-1,-1, 0, 1, 1, 1, 0}; int update_PRTI(UPDATE_FUNC_ARGS) { int r, nnx, rx, ry, fe = 0; @@ -17,8 +15,8 @@ int update_PRTI(UPDATE_FUNC_ARGS) { else if (parts[i].tmp<0) parts[i].tmp = 0; for (count=0; count<8; count++) { - rx = portal_rx[count]; - ry = portal_ry[count]; + rx = sim->portal_rx[count]; + ry = sim->portal_ry[count]; if (x+rx>=0 && y+ry>0 && x+rxpv; hv = air->hv; + //Clear signs signs = (sign*)calloc(MAXSIGNS, sizeof(sign)); int menuCount;