Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Mar 26, 2014
2 parents 76799c2 + 2b4eb0f commit 638c70c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ AC_SDL_MAIN_WORKAROUND([
[Build without libpng @<:@default=check@:>@]),
[],
[
AC_CHECK_LIB(png, png_get_io_ptr, [], [], -lz)
AC_CHECK_LIB(z, zlibVersion)
AC_CHECK_LIB(png, png_get_io_ptr)
])
AC_CHECK_LIB(m, log)
Expand Down
4 changes: 2 additions & 2 deletions src/d_iwad.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static void CheckSteamGUSPatches(void)
int len;

// Already configured? Don't stomp on the user's choices.
current_path = D_GetStrVariable("gus_patch_path");
current_path = M_GetStrVariable("gus_patch_path");
if (current_path != NULL && strlen(current_path) > 0)
{
return;
Expand All @@ -365,7 +365,7 @@ static void CheckSteamGUSPatches(void)
{
snprintf(patch_path, len, "%s\\%s",
install_path, STEAM_BFG_GUS_PATCHES);
D_SetVariable("gus_patch_path", patch_path);
M_SetVariable("gus_patch_path", patch_path);
}

free(patch_path);
Expand Down

0 comments on commit 638c70c

Please sign in to comment.