Fixed inventory window display bugs using old parent position code for rendering.
This commit is contained in:
@@ -38,6 +38,7 @@ void State_OverworldMap::OnUserUpdate(Crawler*game){
|
||||
|
||||
for(ConnectionPoint&cp:connections){
|
||||
if(game->GetMouse(Mouse::LEFT).bPressed&&geom2d::overlaps(game->GetWorldMousePos(),cp.rect)){
|
||||
Menu::OpenMenu(MenuType::INVENTORY);
|
||||
for(int neighborInd:currentConnectionPoint->neighbors){
|
||||
if(neighborInd==-1)continue;
|
||||
ConnectionPoint&neighbor=ConnectionPointFromIndex(neighborInd);
|
||||
|
||||
Reference in New Issue
Block a user