Commit d9f808c1 authored by Holger Kaelberer's avatar Holger Kaelberer
Browse files

balancebox, fix clearing of contact fields in editor

parent a66bb18c
......@@ -210,6 +210,8 @@ function modifyMap(props, row, col)
newValue = 0;
props.mapModel.setProperty(row * level.map.length + col,
"contactValue", 0)
props.mapModel.setProperty(row * level.map.length + col,
"orn", 0)
} else { // all other tools
// special treatment for mutually exclusive ones:
......@@ -219,6 +221,8 @@ function modifyMap(props, row, col)
|| props.currentTool === TOOL_BALL) {
// helper:
var MUTEX_MASK = (START | GOAL | HOLE | CONTACT) ^ props.currentTool;
props.mapModel.setProperty(row * level.map.length + col,
"orn", 0)
newValue &= ~MUTEX_MASK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment