Skip to content

Commit

Permalink
git subrepo pull d2mapapi
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "d2mapapi"
  merged:   "40f6bda"
upstream:
  origin:   "[email protected]:soarqin/d2mapapi_mod.git"
  branch:   "master"
  commit:   "40f6bda"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
  • Loading branch information
soarqin committed Dec 14, 2021
1 parent d98521f commit 640286b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions d2mapapi/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = [email protected]:soarqin/d2mapapi_mod.git
branch = master
commit = d9532a262521c55be5504749643176d3c8cb85d4
parent = 4989d39dfda7c3f085d3a8a91320be98313df52f
commit = 40f6bda69b168cb2d4d0b6eb2c9a62c7c1972b88
parent = d98521fddd0d2e91eaef345ea84774348bb865ae
method = rebase
cmdver = 0.4.3
2 changes: 1 addition & 1 deletion d2mapapi/httpd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ int wmain(int argc, wchar_t *argv[]) {
}
auto key = uint64_t(seed) | (uint64_t(difficulty) << 32);
auto &session = sessions[key];
sessionsOrder.emplace_back(key);
if (!session) {
sessionsOrder.emplace_back(key);
session = std::make_unique<d2mapapi::Session>();
session->update(seed, difficulty);
if (sessionsOrder.size() > SessionsCacheSize) {
Expand Down
4 changes: 2 additions & 2 deletions d2mapapi/mapdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ MapData::MapData(Act *act, unsigned int areaId) : CollisionMap(areaId) {
if (side < 0) { continue; }
bool bAddedNear = false;
if (!pRoom2Near->pRoom1(d2Ver)) {
D2COMMON_AddRoomData(act, pRoom2Near->pLevel(d2Ver)->dwLevelNo(d2Ver), nearPosX, nearPosY, nullptr);
D2COMMON_AddRoomData(act, nearLevelNo, nearPosX, nearPosY, nullptr);
bAddedNear = true;
}
int sideStart = -1;
Expand Down Expand Up @@ -169,7 +169,7 @@ MapData::MapData(Act *act, unsigned int areaId) : CollisionMap(areaId) {
}
}
if (bAddedNear) {
D2COMMON_RemoveRoomData(act, pRoom2Near->pLevel(d2Ver)->dwLevelNo(d2Ver), nearPosX, nearPosY, nullptr);
D2COMMON_RemoveRoomData(act, nearLevelNo, nearPosX, nearPosY, nullptr);
}
}

Expand Down
2 changes: 1 addition & 1 deletion d2mapapi/piped.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ int wmain(int argc, wchar_t *argv[]) {
}
auto key = uint64_t(req.seed) | (uint64_t(req.difficulty) << 32);
auto &session = sessions[key];
sessionsOrder.emplace_back(key);
if (!session) {
sessionsOrder.emplace_back(key);
session = std::make_unique<d2mapapi::Session>();
session->update(req.seed, req.difficulty);
if (sessionsOrder.size() > SessionsCacheSize) {
Expand Down

0 comments on commit 640286b

Please sign in to comment.