MCPcopy Create free account
hub / github.com/DFHack/dfhack / push_margin

Function push_margin

plugins/siege-engine.cpp:1286–1292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284std::map<df::unit*, UnitPath*> UnitPath::cache;
1285
1286static void push_margin(lua_State *L, float margin)
1287{
1288 if (margin == MAX_TIME)
1289 lua_pushnil(L);
1290 else
1291 lua_pushnumber(L, margin);
1292}
1293
1294static int traceUnitPath(lua_State *L)
1295{

Callers 2

unitPosAtTimeFunction · 0.85
proposeUnitHitsFunction · 0.85

Calls 2

lua_pushnilFunction · 0.85
lua_pushnumberFunction · 0.85

Tested by

no test coverage detected