/[enigma]/enigma/src/stones_complex.cc
ViewVC logotype

Diff of /enigma/src/stones_complex.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by reallysoft, Tue Jul 15 22:04:45 2003 UTC revision 1.36 by mhawlisch, Thu Jul 17 07:18:09 2003 UTC
# Line 593  namespace Line 593  namespace
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              }              }
# Line 1214  PuzzleStone::message(const string& msg, Line 1214  PuzzleStone::message(const string& msg,
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    

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26