| 1083 | } |
| 1084 | |
| 1085 | static int link_adjacent_smooth_walls(lua_State *L) |
| 1086 | { |
| 1087 | DFCoord pos; |
| 1088 | if (lua_gettop(L) <= 1) |
| 1089 | Lua::CheckDFAssign(L, &pos, 1); |
| 1090 | else |
| 1091 | pos = DFCoord(luaL_checkint(L, 1), luaL_checkint(L, 2), |
| 1092 | luaL_checkint(L, 3)); |
| 1093 | |
| 1094 | MapExtras::MapCache map; |
| 1095 | adjust_smooth_wall_dir(map, pos); |
| 1096 | refresh_adjacent_smooth_walls(map, pos); |
| 1097 | map.WriteAll(); |
| 1098 | return 0; |
| 1099 | } |
| 1100 | |
| 1101 | DFHACK_PLUGIN_LUA_COMMANDS { |
| 1102 | DFHACK_LUA_COMMAND(dig_now_tile), |
nothing calls this directly
no test coverage detected