Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8abd5c

Browse files
committed
StepBetween: renamed stuff back to the way it was. Thought I had already done that.
1 parent 7972902 commit f8abd5c

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

library/LuaApi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ static const LuaWrapper::FunctionReg dfhack_maps_module[] = {
13091309
WRAPM(Maps, enableBlockUpdates),
13101310
WRAPM(Maps, getGlobalInitFeature),
13111311
WRAPM(Maps, getLocalInitFeature),
1312-
WRAPM(Maps, canPathBetween),
1312+
WRAPM(Maps, canWalkBetween),
13131313
WRAPM(Maps, spawnFlow),
13141314
WRAPN(hasTileAssignment, hasTileAssignment),
13151315
WRAPN(getTileAssignment, getTileAssignment),

library/include/modules/Maps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ extern DFHACK_EXPORT bool SortBlockEvents(df::map_block *block,
308308
/// remove a block event from the block by address
309309
extern DFHACK_EXPORT bool RemoveBlockEvent(uint32_t x, uint32_t y, uint32_t z, df::block_square_event * which );
310310

311-
DFHACK_EXPORT bool canPathBetween(df::coord pos1, df::coord pos2);
311+
DFHACK_EXPORT bool canWalkBetween(df::coord pos1, df::coord pos2);
312312
DFHACK_EXPORT bool canStepBetween(df::coord pos1, df::coord pos2);
313313
}
314314
}

library/modules/Maps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ bool Maps::ReadGeology(vector<vector<int16_t> > *layer_mats, vector<df::coord2d>
524524
return true;
525525
}
526526

527-
bool Maps::canPathBetween(df::coord pos1, df::coord pos2)
527+
bool Maps::canWalkBetween(df::coord pos1, df::coord pos2)
528528
{
529529
auto block1 = getTileBlock(pos1);
530530
auto block2 = getTileBlock(pos2);

plugins/devel/stepBetween.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ df::coord prev;
8080
command_result stepBetween (color_ostream &out, std::vector <std::string> & parameters)
8181
{
8282
df::coord bob = Gui::getCursorPos();
83-
out.print("(%d,%d,%d), (%d,%d,%d): canWalkBetween = %d, canPathBetween = %d\n", prev.x, prev.y, prev.z, bob.x, bob.y, bob.z, Maps::canStepBetween(prev, bob), Maps::canPathBetween(prev,bob));
83+
out.print("(%d,%d,%d), (%d,%d,%d): canStepBetween = %d, canWalkBetween = %d\n", prev.x, prev.y, prev.z, bob.x, bob.y, bob.z, Maps::canStepBetween(prev, bob), Maps::canWalkBetween(prev,bob));
8484

8585
prev = bob;
8686
return CR_OK;

plugins/fix-armory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static bool try_store_item(df::building *target, df::item *item)
475475
df::coord tpos(target->centerx, target->centery, target->z);
476476
df::coord ipos = Items::getPosition(item);
477477

478-
if (!Maps::canPathBetween(tpos, ipos))
478+
if (!Maps::canWalkBetween(tpos, ipos))
479479
return false;
480480

481481
// Check if the target has enough space left

0 commit comments

Comments
 (0)