JHGuitarFreak / UQM-MegaMod

A fork of The Ur-Quan Masters + HD-mod that remasters the HD graphics with a veritable smorgasbord of extra features, options, QoL improvements, and much more...
https://uqm-mods.sourceforge.net
GNU General Public License v2.0
80 stars 22 forks source link

Pedantic patch #253

Closed DanSorrell closed 2 months ago

DanSorrell commented 2 months ago

I’m building with the latest GCC compiler using the -= Main menu =- option of:

  1. Type of build = 1. Optimised release build.

My compiler refuses to build without applying Patch.zip. Maybe it will let this game compile if I crippled my compiler to an older version of the C standard. I think it’s better to just update the master branch to modern standards.

JHGuitarFreak commented 2 months ago

No worries. Applied the patch and nothing exploded so pushed to master with commit 1512e94

DanSorrell commented 2 months ago

Also should have included this:

./src/uqm/setupmenu.c

Change line 2389

From:

PutIntOpt (&optMusicResume, &opts->musicResume, "mm.musicResume", FALSE);

To:

PutIntOpt (&optMusicResume, (int*)&opts->musicResume, "mm.musicResume", FALSE);

JHGuitarFreak commented 2 months ago

Added