Skip to content

Commit

Permalink
fixies
Browse files Browse the repository at this point in the history
  • Loading branch information
schombert committed Dec 2, 2024
1 parent 7cf93c1 commit 35c46c4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
Binary file added assets/gradient.dds
Binary file not shown.
5 changes: 0 additions & 5 deletions src/network/httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -2962,11 +2962,6 @@ inline bool mmap::open(const char *path) {
// If the following line doesn't compile due to QuadPart, update Windows SDK.
// See:
// https://github.com/yhirose/cpp-httplib/issues/1903#issuecomment-2316520721
if (static_cast<ULONGLONG>(size.QuadPart) >
(std::numeric_limits<decltype(size_)>::max)()) {
// `size_t` might be 32-bits, on 32-bits Windows.
return false;
}
size_ = static_cast<size_t>(size.QuadPart);

#if _WIN32_WINNT >= _WIN32_WINNT_WIN8
Expand Down
2 changes: 1 addition & 1 deletion src/network/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ void log_player_nations(sys::state& state) {
}
}

std::map<int, std::string> readableCommandTypes = {
static std::map<int, std::string> readableCommandTypes = {
{0,"invalid"},
{1,"change_nat_focus"},
{2,"start_research"},
Expand Down
2 changes: 1 addition & 1 deletion src/network/persistent_server_extensions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace network {

int lastchange = 0;
static int lastchange = 0;

inline void read_player_nations(sys::state& state, char const* start, char const* end) noexcept {
char const* cpos = start;
Expand Down
2 changes: 1 addition & 1 deletion src/network/webui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using json = nlohmann::json;
namespace webui {

// HTTP
httplib::Server svr;
static httplib::Server svr;

inline void init(sys::state& state) noexcept {

Expand Down

0 comments on commit 35c46c4

Please sign in to comment.