mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
WINTERMUTE: More formatting fixes.
This commit is contained in:
parent
5d4d65d6d9
commit
c239b868da
@ -481,10 +481,10 @@ bool SXMemBuffer::scSetProperty(const char *name, ScValue *value) {
|
||||
_length = max(value->getInt(0), 0);
|
||||
|
||||
char propName[20];
|
||||
if (_length < OrigLength) {
|
||||
for(int i=_length; i<OrigLength; i++) {
|
||||
sprintf(PropName, "%d", i);
|
||||
_values->DeleteProp(PropName);
|
||||
if (_length < origLength) {
|
||||
for(int i=_length; i < origLength; i++) {
|
||||
sprintf(propName, "%d", i);
|
||||
_values->DeleteProp(propName);
|
||||
}
|
||||
}
|
||||
return STATUS_OK;
|
||||
|
@ -70,13 +70,13 @@ namespace Wintermute {
|
||||
\
|
||||
/*SystemClass Register##class_name(class_name::_className, class_name::PersistBuild, class_name::PersistLoad, persistent_class);*/\
|
||||
\
|
||||
void* className::operator new (size_t size) {\
|
||||
void* className::operator new(size_t size) {\
|
||||
void* ret = ::operator new(size);\
|
||||
SystemClassRegistry::getInstance()->registerInstance(#className, ret);\
|
||||
return ret;\
|
||||
}\
|
||||
\
|
||||
void className::operator delete (void *p) {\
|
||||
void className::operator delete(void *p) {\
|
||||
SystemClassRegistry::getInstance()->unregisterInstance(#className, p);\
|
||||
::operator delete(p);\
|
||||
}\
|
||||
|
Loading…
x
Reference in New Issue
Block a user