* add statusbar->patches count

This commit is contained in:
Garux
2018-05-31 12:38:43 +03:00
parent 4a59d83139
commit 6b8a1980af
7 changed files with 27 additions and 33 deletions

View File

@@ -27,6 +27,8 @@
#include "patch.h"
#include "patchmanip.h"
#include "qe3.h"
namespace
{
std::size_t g_patchModuleCount = 0;
@@ -46,6 +48,8 @@ void Patch_Construct( EPatchType type ){
Patch::constructStatic( type );
PatchInstance::constructStatic();
PatchInstance::m_counter = &g_patchCount;
if ( type == ePatchTypeDoom3 ) {
MAX_PATCH_WIDTH = MAX_PATCH_HEIGHT = 99;
}
@@ -60,6 +64,8 @@ void Patch_Destroy(){
return;
}
PatchInstance::m_counter = 0;
Patch::destroyStatic();
PatchInstance::destroyStatic();
}