Line
Link Here
|
0 |
-- src/lua.cc |
0 |
++ src/lua.cc |
Lines 574-580
Link Here
|
574 |
int y = round_down<int>(lua_tonumber(L, 2)); |
574 |
int y = round_down<int>(lua_tonumber(L, 2)); |
575 |
const char *dir = lua_tostring(L,3); |
575 |
const char *dir = lua_tostring(L,3); |
576 |
const char *allowed = "wsen"; |
576 |
const char *allowed = "wsen"; |
577 |
char *found = strchr(allowed, dir[0]); |
577 |
const char *found = strchr(allowed, dir[0]); |
578 |
|
578 |
|
579 |
if (found && found[0]) |
579 |
if (found && found[0]) |
580 |
world::AddScramble(GridPos(x,y), enigma::Direction(found-allowed)); |
580 |
world::AddScramble(GridPos(x,y), enigma::Direction(found-allowed)); |