From fc22ac5643fdd3ff4a9b1d4d808ef942a99c796a Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sat, 21 Jul 2012 22:15:32 +0200 Subject: [PATCH] changed name and fixed wrong constant name --- app/Game/Core/Loader/Level.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Game/Core/Loader/Level.js b/app/Game/Core/Loader/Level.js index 63f5eff..8e71cd3 100644 --- a/app/Game/Core/Loader/Level.js +++ b/app/Game/Core/Loader/Level.js @@ -1,4 +1,4 @@ -define(["Game/Config/Settings", "Lib/Vendor/Box2D", "Game/Core/Collision/Detector"], function(Settings, Box2D, Detector) { +define(["Game/Config/Settings", "Lib/Vendor/Box2D", "Game/Core/Collision/Detector"], function(Settings, Box2D, CollisionDetector) { // Public function Level(path, engine) { @@ -50,7 +50,7 @@ define(["Game/Config/Settings", "Lib/Vendor/Box2D", "Game/Core/Collision/Detecto fixtureDef.friction = Settings.TILE_FRICTION; fixtureDef.restitution = Settings.TILE_RESTITUTION; fixtureDef.isSensor = false; - fixtureDef.userData = Detector.COLLISION_IDENTIFIER_TILE; + fixtureDef.userData = CollisionDetector.IDENTIFIER.TILE; this.engine.createBody(bodyDef).CreateFixture(fixtureDef); }