aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/util
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/util')
-rw-r--r--NorthstarDLL/util/printmaps.cpp22
-rw-r--r--NorthstarDLL/util/version.cpp36
2 files changed, 29 insertions, 29 deletions
diff --git a/NorthstarDLL/util/printmaps.cpp b/NorthstarDLL/util/printmaps.cpp
index dd825bff..c4e30886 100644
--- a/NorthstarDLL/util/printmaps.cpp
+++ b/NorthstarDLL/util/printmaps.cpp
@@ -19,7 +19,7 @@ enum class MapSource_t
};
const std::unordered_map<MapSource_t, const char*> PrintMapSource = {
- {MapSource_t::VPK, "VPK"}, {MapSource_t::MOD, "MOD"}, {MapSource_t::GAMEDIR, "R2"}};
+ {MapSource_t::VPK, "VPK"}, {MapSource_t::MOD, "MOD"}, {MapSource_t::GAMEDIR, "R2"}};
struct MapVPKInfo
{
@@ -62,7 +62,7 @@ void RefreshMapList()
{
const int iNumRetailNonMapVpks = 1;
static const char* const ppRetailNonMapVpks[] = {
- "englishclient_frontend.bsp.pak000_dir.vpk"}; // don't include mp_common here as it contains mp_lobby
+ "englishclient_frontend.bsp.pak000_dir.vpk"}; // don't include mp_common here as it contains mp_lobby
// matches directory vpks, and captures their map name in the first group
static const std::regex rVpkMapRegex("englishclient_([a-zA-Z0-9_]+)\\.bsp\\.pak000_dir\\.vpk", std::regex::icase);
@@ -135,10 +135,10 @@ int, __fastcall, (const char *const cmdname, const char *const partial, char com
{
strcpy(commands[numMaps], cmdname);
strncpy_s(
- commands[numMaps++] + cmdLength,
- COMMAND_COMPLETION_ITEM_LENGTH,
- &vMapList[i].name[0],
- COMMAND_COMPLETION_ITEM_LENGTH - cmdLength);
+ commands[numMaps++] + cmdLength,
+ COMMAND_COMPLETION_ITEM_LENGTH,
+ &vMapList[i].name[0],
+ COMMAND_COMPLETION_ITEM_LENGTH - cmdLength);
}
}
@@ -146,11 +146,11 @@ int, __fastcall, (const char *const cmdname, const char *const partial, char com
}
ADD_SQFUNC(
- "array<string>",
- NSGetLoadedMapNames,
- "",
- "Returns a string array of loaded map file names",
- ScriptContext::UI | ScriptContext::CLIENT | ScriptContext::SERVER)
+ "array<string>",
+ NSGetLoadedMapNames,
+ "",
+ "Returns a string array of loaded map file names",
+ ScriptContext::UI | ScriptContext::CLIENT | ScriptContext::SERVER)
{
// Maybe we should call this on mods reload instead
RefreshMapList();
diff --git a/NorthstarDLL/util/version.cpp b/NorthstarDLL/util/version.cpp
index 1ad62438..d81f0e23 100644
--- a/NorthstarDLL/util/version.cpp
+++ b/NorthstarDLL/util/version.cpp
@@ -17,23 +17,23 @@ void InitialiseVersion()
{
sprintf(version, "%d.%d.%d.%d+dev", northstar_version[0], northstar_version[1], northstar_version[2], northstar_version[3]);
ua_len += snprintf(
- NSUserAgent + ua_len,
- sizeof(NSUserAgent) - ua_len,
- "R2Northstar/%d.%d.%d+dev",
- northstar_version[0],
- northstar_version[1],
- northstar_version[2]);
+ NSUserAgent + ua_len,
+ sizeof(NSUserAgent) - ua_len,
+ "R2Northstar/%d.%d.%d+dev",
+ northstar_version[0],
+ northstar_version[1],
+ northstar_version[2]);
}
else
{
sprintf(version, "%d.%d.%d.%d", northstar_version[0], northstar_version[1], northstar_version[2], northstar_version[3]);
ua_len += snprintf(
- NSUserAgent + ua_len,
- sizeof(NSUserAgent) - ua_len,
- "R2Northstar/%d.%d.%d",
- northstar_version[0],
- northstar_version[1],
- northstar_version[2]);
+ NSUserAgent + ua_len,
+ sizeof(NSUserAgent) - ua_len,
+ "R2Northstar/%d.%d.%d",
+ northstar_version[0],
+ northstar_version[1],
+ northstar_version[2]);
}
if (IsDedicatedServer())
@@ -75,12 +75,12 @@ void InitialiseVersion()
// windows version
if (osvi.dwMajorVersion)
ua_len += snprintf(
- NSUserAgent + ua_len,
- sizeof(NSUserAgent) - ua_len,
- " Windows/%d.%d.%d",
- osvi.dwMajorVersion,
- osvi.dwMinorVersion,
- osvi.dwBuildNumber);
+ NSUserAgent + ua_len,
+ sizeof(NSUserAgent) - ua_len,
+ " Windows/%d.%d.%d",
+ osvi.dwMajorVersion,
+ osvi.dwMinorVersion,
+ osvi.dwBuildNumber);
// wine version
if (wine_version && wine_build_id)