593 |
|
|
594 |
void message(const string& msg, const Value &val) { |
void message(const string& msg, const Value &val) { |
595 |
if (msg == "direction" && val.get_type() == Value::DOUBLE) { |
if (msg == "direction" && val.get_type() == Value::DOUBLE) { |
596 |
Direction dir = static_cast<Direction>(val.get_double()); |
Direction dir = static_cast<Direction>((int)val.get_double()); |
597 |
set_dir(dir); |
set_dir(dir); |
598 |
init_model(); |
init_model(); |
599 |
} |
} |
1214 |
// enigma levels may create scramble messages using |
// enigma levels may create scramble messages using |
1215 |
// AddScramble() and SetScrambleIntensity() |
// AddScramble() and SetScrambleIntensity() |
1216 |
|
|
1217 |
Direction dir = static_cast<Direction>(val.get_double()); |
Direction dir = static_cast<Direction>((int)val.get_double()); |
1218 |
Cluster c; |
Cluster c; |
1219 |
find_row_or_column_cluster(c, get_pos(), dir, oxyd1_compatible()); |
find_row_or_column_cluster(c, get_pos(), dir, oxyd1_compatible()); |
1220 |
|
|