[Orxonox-commit 404] r2149 - media/levels

scheusso at orxonox.net scheusso at orxonox.net
Tue May 19 20:55:13 CEST 2009


Author: scheusso
Date: 2009-05-19 20:55:13 +0200 (Tue, 19 May 2009)
New Revision: 2149

Modified:
   media/levels/CuboidSpaceStation.lua
Log:
fix to ensure lua5.0 compatibility


Modified: media/levels/CuboidSpaceStation.lua
===================================================================
--- media/levels/CuboidSpaceStation.lua	2009-05-19 09:43:04 UTC (rev 2148)
+++ media/levels/CuboidSpaceStation.lua	2009-05-19 18:55:13 UTC (rev 2149)
@@ -494,8 +494,8 @@
 		vector={}
 		-- This must be done, because there are different sides from where I try to attach a part.
 		coord1=1*yAxis+2*zAxis
-		coord2=(coord1+1)%3
-		coord3=(coord2+1)%3
+		coord2=math.mod(coord1+1,3)
+		coord3=math.mod(coord2+1,3)
 
 		for pc=1,parts do
 			tempIndex = index[pc]




More information about the Orxonox-commit mailing list