Add disabling of return to camp button when already at the camp or the camp has yet to be unlocked. Release Build 7644.
This commit is contained in:
@@ -92,15 +92,6 @@ void State_OverworldMap::OnUserUpdate(AiL*game){
|
||||
game->UpdateCamera(game->GetElapsedTime());
|
||||
game->GetPlayer()->Update(game->GetElapsedTime());
|
||||
|
||||
if(game->GetKey(PGUP).bHeld){
|
||||
mosaicAmt+=game->GetElapsedTime()*10;
|
||||
game->SetMosaicEffect(uint8_t(mosaicAmt));
|
||||
}
|
||||
if(game->GetKey(PGDN).bHeld){
|
||||
mosaicAmt-=game->GetElapsedTime()*10;
|
||||
game->SetMosaicEffect(uint8_t(mosaicAmt));
|
||||
}
|
||||
|
||||
if(game->GetPlayer()->GetPos()!=playerTargetPos){
|
||||
if(geom2d::line<float>(game->GetPlayer()->GetPos(),playerTargetPos).length()<2){
|
||||
game->GetPlayer()->SetPos(playerTargetPos);
|
||||
|
||||
Reference in New Issue
Block a user