2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-29 08:05:50 +03:00

reset minor version

This commit is contained in:
s1lentq 2016-11-07 22:27:18 +07:00
parent 4090ff3db5
commit b172d20227
5 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,3 @@
majorVersion=3 majorVersion=3
minorVersion=13 minorVersion=0
maintenanceVersion=0 maintenanceVersion=0

View File

@ -42,10 +42,10 @@
#define __BUILD_TIME__ "13:14:09" #define __BUILD_TIME__ "13:14:09"
#define __BUILD_DATE__ "Aug 29 2013" #define __BUILD_DATE__ "Aug 29 2013"
#endif #endif
#else #else // REHLDS_FIXES
#define __BUILD_TIME__ APP_COMMIT_TIME #define __BUILD_TIME__ APP_COMMIT_TIME
#define __BUILD_DATE__ APP_COMMIT_DATE #define __BUILD_DATE__ APP_COMMIT_DATE
#endif #endif // REHLDS_FIXES
#ifdef HOOK_ENGINE #ifdef HOOK_ENGINE
#define serverinfo (*pserverinfo) #define serverinfo (*pserverinfo)

View File

@ -2436,7 +2436,7 @@ void Host_Version_f(void)
#ifdef REHLDS_FIXES #ifdef REHLDS_FIXES
Con_Printf("ReHLDS version: " APP_VERSION "\n"); Con_Printf("ReHLDS version: " APP_VERSION "\n");
Con_Printf("Build date: " __BUILD_TIME__ " " __BUILD_DATE__ " (%i)\n", build_number()); Con_Printf("Build date: " __BUILD_TIME__ " " __BUILD_DATE__ " (%i)\n", build_number());
Con_Printf("Build from: "APP_COMMIT_URL APP_COMMIT_SHA"\n"); Con_Printf("Build from: " APP_COMMIT_URL APP_COMMIT_SHA "\n");
#else #else
Con_Printf("Exe build: " __BUILD_TIME__ " " __BUILD_DATE__ " (%i)\n", build_number()); Con_Printf("Exe build: " __BUILD_TIME__ " " __BUILD_DATE__ " (%i)\n", build_number());
#endif #endif

View File

@ -35,7 +35,7 @@
#include "model.h" #include "model.h"
#define REHLDS_API_VERSION_MAJOR 3 #define REHLDS_API_VERSION_MAJOR 3
#define REHLDS_API_VERSION_MINOR 13 #define REHLDS_API_VERSION_MINOR 0
//Steam_NotifyClientConnect hook //Steam_NotifyClientConnect hook
typedef IHookChain<qboolean, IGameClient*, const void*, unsigned int> IRehldsHook_Steam_NotifyClientConnect; typedef IHookChain<qboolean, IGameClient*, const void*, unsigned int> IRehldsHook_Steam_NotifyClientConnect;

View File

@ -58,9 +58,9 @@ void AbstractHookChainRegistry::removeHook(void* hookFunc) {
// erase hook // erase hook
for (int i = 0; i < m_NumHooks; i++) for (int i = 0; i < m_NumHooks; i++)
{ {
--m_NumHooks;
if (hookFunc == m_Hooks[i]) if (hookFunc == m_Hooks[i])
{ {
--m_NumHooks;
if (m_NumHooks != i) if (m_NumHooks != i)
{ {
Q_memmove(&m_Hooks[i], &m_Hooks[i + 1], (m_NumHooks - i) * sizeof(m_Hooks[0])); Q_memmove(&m_Hooks[i], &m_Hooks[i + 1], (m_NumHooks - i) * sizeof(m_Hooks[0]));