Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed Nov 19, 2024
1 parent 8e3917a commit f5d9542
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/silvergun/mgr/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ class messages final : private manager<messages> {
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
return;
}
sys += ch;
}
Expand All @@ -133,7 +132,6 @@ class messages final : private manager<messages> {
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
return;
}
to += ch;
}
Expand All @@ -142,7 +140,6 @@ class messages final : private manager<messages> {
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
return;
}
from += ch;
}
Expand All @@ -151,7 +148,6 @@ class messages final : private manager<messages> {
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
return;
}
cmd += ch;
}
Expand All @@ -160,7 +156,6 @@ class messages final : private manager<messages> {
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
return;
}
args += ch;
}
Expand Down Expand Up @@ -252,7 +247,7 @@ class messages final : private manager<messages> {
if (timer != -1) timer += engine_time::check();
// Add message to queue. Ignore incomplete messages. Sort while adding.
if (sys != "" && cmd != "") add(message(timer, sys, to, from, cmd, args));
} catch(...) {}
} catch(...) { break; }
}
al_fclose(file);
return true;
Expand Down

0 comments on commit f5d9542

Please sign in to comment.