Skip to content

Commit

Permalink
fix: new version of box2d
Browse files Browse the repository at this point in the history
  • Loading branch information
panda2134 committed May 11, 2021
1 parent 07bcc6a commit dd414f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions statements/gitHeadLocal.gin
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
\usepackage[%
shash={d8fb24e},
lhash={d8fb24e6ebd78944eaad8b253a7a4649dc9e09d1},
shash={07bcc6a},
lhash={07bcc6a6dcf13386e361af1651358678db10fe0a},
authname={panda2134},
authemail={[email protected]},
authsdate={2021-05-11},
authidate={2021-05-11 21:40:05 +0800},
authudate={1620740405},
authidate={2021-05-11 21:52:42 +0800},
authudate={1620741162},
commname={panda2134},
commemail={[email protected]},
commsdate={2021-05-11},
commidate={2021-05-11 21:40:05 +0800},
commudate={1620740405},
commidate={2021-05-11 21:52:42 +0800},
commudate={1620741162},
refnames={ (HEAD -> master)},
firsttagdescribe={278ae407-2-gd8fb24e},
reltag={d8fb24e}
firsttagdescribe={278ae407-3-g07bcc6a},
reltag={07bcc6a}
]{gitexinfo}
4 changes: 2 additions & 2 deletions world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ World::World() {
static_cast<float>(players[i]->position().y));
b2players[i] = b2world->CreateBody(&bodyDef);
b2players[i]->GetUserData() =
reinterpret_cast<uintptr_t>(new b2bodydata{players[i], b2players[i]});
reinterpret_cast<void *>(new b2bodydata{players[i], b2players[i]});
b2CircleShape dynamicBox;
dynamicBox.m_radius = static_cast<float>(PLAYER_RADIUS);
b2FixtureDef fixtureDef;
Expand Down Expand Up @@ -351,7 +351,7 @@ void thuai::World::addEgg(int index) {
static_cast<float>(eggs[index]->position().y));
b2eggs[index] = b2world->CreateBody(&bodyDef);
b2eggs[index]->GetUserData() =
reinterpret_cast<uintptr_t>(new b2bodydata(eggs[index], b2eggs[index]));
reinterpret_cast<void *>(new b2bodydata(eggs[index], b2eggs[index]));
b2CircleShape dynamicBox;
dynamicBox.m_radius = static_cast<float>(EGG_RADIUS);
b2FixtureDef fixtureDef;
Expand Down

0 comments on commit dd414f6

Please sign in to comment.