Skip to content

Commit

Permalink
Merge pull request #875 from WALLOFJUSTICE/dev23-q4
Browse files Browse the repository at this point in the history
* hotfixes
  • Loading branch information
WALLOFJUSTICE authored Jan 30, 2025
2 parents d76e7bb + cd5c388 commit 2baf1ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VS.2015/Barony/Barony.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ copy "$(TargetDir)$(TargetFileName)" "$(SolutionDir)EOS 4\barony_test.exe" </Com
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>OpenGL32.lib;glu32.lib;SDL2.lib;SDL2main.lib;SDL2_net.lib;SDL2_image.lib;fmodL_vc.lib;libpng16.lib;zlib.lib;SDL2_ttf.lib;physfs.lib;EOSSDK-Win64-Shipping.lib;steam_api64.lib;libtheoraplayer.lib;glew32.lib;nfd.lib;libcurl.lib;ws2_32.lib;Normaliz.lib;Crypt32.lib;Wldap32.lib;XPlatCppWindows_debug.lib;lib_json_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>OpenGL32.lib;glu32.lib;SDL2.lib;SDL2main.lib;SDL2_net.lib;SDL2_image.lib;fmod_vc.lib;libpng16.lib;zlib.lib;SDL2_ttf.lib;physfs.lib;EOSSDK-Win64-Shipping.lib;steam_api64.lib;libtheoraplayer.lib;glew32.lib;nfd.lib;libcurl.lib;ws2_32.lib;Normaliz.lib;Crypt32.lib;Wldap32.lib;XPlatCppWindows_debug.lib;lib_json_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<Profile>true</Profile>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/acthudweapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ void actHudWeapon(Entity* my)
}


if ( thrownWeapon && multiplayer == CLIENT )
if ( multiplayer == CLIENT && (thrownWeapon || (stats[HUDWEAPON_PLAYERNUM]->weapon && itemCategory(stats[HUDWEAPON_PLAYERNUM]->weapon) == POTION)) )
{
Item* item = stats[HUDWEAPON_PLAYERNUM]->weapon;
if ( item )
Expand Down
5 changes: 5 additions & 0 deletions src/eos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,11 @@ class EOSFuncs
}
}
}
if ( LobbySearchResults.CurrentLobbySearch )
{
EOS_LobbySearch_Release(LobbySearchResults.CurrentLobbySearch);
LobbySearchResults.CurrentLobbySearch = nullptr;
}
AccountManager.deinit();
UnsubscribeFromConnectionRequests();
SetNetworkAvailable(false);
Expand Down
11 changes: 11 additions & 0 deletions src/ui/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20451,6 +20451,15 @@ namespace MainMenu {
frame_right->setActualSize(SDL_Rect{0, 0, 304, 414});
frame_right->setBorder(0);
frame_right->setColor(0);
frame_right->setTickCallback([](Widget& widget) {
if ( Frame* frame = static_cast<Frame*>(&widget) )
{
for ( auto button : frame->getButtons() )
{
button->setDisabled(frame->isInvisible());
}
}
});
{
frame_right->addImage(
frame_right->getActualSize(),
Expand Down Expand Up @@ -21392,6 +21401,8 @@ namespace MainMenu {
frame_right->setInvisible(!lobbyFiltersEnabled && !frame_right->isInvisible());
}

frame_right->getTickCallback()(*frame_right);

/*clearLobbies();
for (auto& lobby : lobbies) {
addLobby(lobby);
Expand Down

0 comments on commit 2baf1ea

Please sign in to comment.