mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-01 18:27:55 +00:00
silence warning better
This commit is contained in:
@@ -3623,7 +3623,7 @@ EX void save_customchar(charstyle& cs, const string& fname) {
|
|||||||
EX void load_customchar(charstyle& cs, const string& fname) {
|
EX void load_customchar(charstyle& cs, const string& fname) {
|
||||||
FILE *f = fopen(fname.c_str(), "rt");
|
FILE *f = fopen(fname.c_str(), "rt");
|
||||||
if(!f) throw hstream_exception();
|
if(!f) throw hstream_exception();
|
||||||
int vernum;
|
unsigned int vernum;
|
||||||
if(!fscanf(f, "%x", &vernum)) throw hstream_exception();
|
if(!fscanf(f, "%x", &vernum)) throw hstream_exception();
|
||||||
int lh;
|
int lh;
|
||||||
if(!fscanf(f, "%d %d\n%08x %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
if(!fscanf(f, "%d %d\n%08x %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||||
|
Reference in New Issue
Block a user