| 513 | } |
| 514 | |
| 515 | static int getTargetArea(lua_State *L) |
| 516 | { |
| 517 | auto engine = find_engine(L, 1, false, true); |
| 518 | |
| 519 | if (engine && engine->hasTarget()) |
| 520 | { |
| 521 | Lua::Push(L, engine->target.first); |
| 522 | Lua::Push(L, engine->target.second); |
| 523 | } |
| 524 | else |
| 525 | { |
| 526 | lua_pushnil(L); |
| 527 | lua_pushnil(L); |
| 528 | } |
| 529 | |
| 530 | return 2; |
| 531 | } |
| 532 | |
| 533 | static void clearTargetArea(df::building_siegeenginest *bld) |
| 534 | { |
nothing calls this directly
no test coverage detected