diff options
Diffstat (limited to 'engines')
| -rw-r--r-- | engines/wintermute/ad/ad_talk_holder.cpp | 2 | ||||
| -rw-r--r-- | engines/wintermute/base/base_engine.h | 2 | ||||
| -rw-r--r-- | engines/wintermute/base/gfx/base_surface.h | 2 | ||||
| -rw-r--r-- | engines/wintermute/base/scriptables/script.cpp | 26 | ||||
| -rw-r--r-- | engines/wintermute/base/scriptables/script_ext_date.cpp | 2 | ||||
| -rw-r--r-- | engines/wintermute/base/scriptables/script_ext_file.cpp | 6 | ||||
| -rw-r--r-- | engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp | 6 | ||||
| -rw-r--r-- | engines/wintermute/base/scriptables/script_value.cpp | 2 | ||||
| -rw-r--r-- | engines/wintermute/persistent.h | 10 | 
9 files changed, 29 insertions, 29 deletions
diff --git a/engines/wintermute/ad/ad_talk_holder.cpp b/engines/wintermute/ad/ad_talk_holder.cpp index cca4fdc2cb..937a4b333d 100644 --- a/engines/wintermute/ad/ad_talk_holder.cpp +++ b/engines/wintermute/ad/ad_talk_holder.cpp @@ -355,7 +355,7 @@ bool AdTalkHolder::scSetProperty(const char *name, ScValue *value) {  	//////////////////////////////////////////////////////////////////////////  	// Item  	////////////////////////////////////////////////////////////////////////// -	if (strcmp(name, "Item")==0){ +	if (strcmp(name, "Item")==0) {  	    SetItem(value->getString());  	    return STATUS_OK;  	} diff --git a/engines/wintermute/base/base_engine.h b/engines/wintermute/base/base_engine.h index 1ed0e3ab01..f04c594699 100644 --- a/engines/wintermute/base/base_engine.h +++ b/engines/wintermute/base/base_engine.h @@ -57,7 +57,7 @@ public:  	Common::RandomSource *getRandomSource() { return _rnd; }  	uint32 randInt(int from, int to); -	SystemClassRegistry *getClassRegistry(){ return _classReg; } +	SystemClassRegistry *getClassRegistry() { return _classReg; }  	BaseGame *getGameRef() { return _gameRef; }  	BaseFileManager *getFileManager() { return _fileManager; }  	static void LOG(bool res, const char *fmt, ...); diff --git a/engines/wintermute/base/gfx/base_surface.h b/engines/wintermute/base/gfx/base_surface.h index 1f6915ea37..012be95aac 100644 --- a/engines/wintermute/base/gfx/base_surface.h +++ b/engines/wintermute/base/gfx/base_surface.h @@ -80,7 +80,7 @@ public:  	}  	Common::String getFileNameStr() { return _filename; }  	const char* getFileName() { return _filename.c_str(); } -	//void SetWidth(int Width){ _width = Width;    } +	//void SetWidth(int Width) { _width = Width;    }  	//void SetHeight(int Height){ _height = Height; }  protected:  	bool _ckDefault; diff --git a/engines/wintermute/base/scriptables/script.cpp b/engines/wintermute/base/scriptables/script.cpp index 54d0a9cdc7..9bb7fedf38 100644 --- a/engines/wintermute/base/scriptables/script.cpp +++ b/engines/wintermute/base/scriptables/script.cpp @@ -622,11 +622,11 @@ bool ScScript::executeInstruction() {  			}  			/*  			ScValue* val = var->getProp(MethodName); -			if (val){ +			if (val) {  			    dw = GetFuncPos(val->getString()); -			    if (dw==0){ +			    if (dw==0) {  			        TExternalFunction* f = GetExternal(val->getString()); -			        if (f){ +			        if (f) {  			            ExternalCall(_stack, _thisStack, f);  			        }  			        else{ @@ -955,13 +955,13 @@ bool ScScript::executeInstruction() {  		/*  		if ((op1->isNULL() && !op2->isNULL()) || (!op1->isNULL() && op2->isNULL())) _operand->setBool(false); -		else if (op1->isNative() && op2->isNative()){ +		else if (op1->isNative() && op2->isNative()) {  		    _operand->setBool(op1->getNative() == op2->getNative());  		} -		else if (op1->getType()==VAL_STRING || op2->getType()==VAL_STRING){ +		else if (op1->getType()==VAL_STRING || op2->getType()==VAL_STRING) {  		    _operand->setBool(scumm_stricmp(op1->getString(), op2->getString())==0);  		} -		else if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT){ +		else if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT) {  		    _operand->setBool(op1->getFloat() == op2->getFloat());  		}  		else{ @@ -979,13 +979,13 @@ bool ScScript::executeInstruction() {  		/*  		if ((op1->isNULL() && !op2->isNULL()) || (!op1->isNULL() && op2->isNULL())) _operand->setBool(true); -		else if (op1->isNative() && op2->isNative()){ +		else if (op1->isNative() && op2->isNative()) {  		    _operand->setBool(op1->getNative() != op2->getNative());  		} -		else if (op1->getType()==VAL_STRING || op2->getType()==VAL_STRING){ +		else if (op1->getType()==VAL_STRING || op2->getType()==VAL_STRING) {  		    _operand->setBool(scumm_stricmp(op1->getString(), op2->getString())!=0);  		} -		else if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT){ +		else if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT) {  		    _operand->setBool(op1->getFloat() != op2->getFloat());  		}  		else{ @@ -1002,7 +1002,7 @@ bool ScScript::executeInstruction() {  		op1 = _stack->pop();  		/* -		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT){ +		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT) {  		    _operand->setBool(op1->getFloat() < op2->getFloat());  		}  		else _operand->setBool(op1->getInt() < op2->getInt()); @@ -1017,7 +1017,7 @@ bool ScScript::executeInstruction() {  		op1 = _stack->pop();  		/* -		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT){ +		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT) {  		    _operand->setBool(op1->getFloat() > op2->getFloat());  		}  		else _operand->setBool(op1->getInt() > op2->getInt()); @@ -1032,7 +1032,7 @@ bool ScScript::executeInstruction() {  		op1 = _stack->pop();  		/* -		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT){ +		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT) {  		    _operand->setBool(op1->getFloat() <= op2->getFloat());  		}  		else _operand->setBool(op1->getInt() <= op2->getInt()); @@ -1047,7 +1047,7 @@ bool ScScript::executeInstruction() {  		op1 = _stack->pop();  		/* -		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT){ +		if (op1->getType()==VAL_FLOAT && op2->getType()==VAL_FLOAT) {  		    _operand->setBool(op1->getFloat() >= op2->getFloat());  		}  		else _operand->setBool(op1->getInt() >= op2->getInt()); diff --git a/engines/wintermute/base/scriptables/script_ext_date.cpp b/engines/wintermute/base/scriptables/script_ext_date.cpp index 5aa069d0b2..53a1d36b81 100644 --- a/engines/wintermute/base/scriptables/script_ext_date.cpp +++ b/engines/wintermute/base/scriptables/script_ext_date.cpp @@ -224,7 +224,7 @@ bool SXDate::scSetProperty(const char *name, ScValue *value) {  	//////////////////////////////////////////////////////////////////////////  	// Name  	////////////////////////////////////////////////////////////////////////// -	if (name == "Name")==0){ +	if (name == "Name")==0) {  	    setName(value->getString());  	    return STATUS_OK;  	} diff --git a/engines/wintermute/base/scriptables/script_ext_file.cpp b/engines/wintermute/base/scriptables/script_ext_file.cpp index a1d39c5d0a..08ecc8d7db 100644 --- a/engines/wintermute/base/scriptables/script_ext_file.cpp +++ b/engines/wintermute/base/scriptables/script_ext_file.cpp @@ -701,13 +701,13 @@ bool SXFile::scSetProperty(const char *name, ScValue *value) {  	//////////////////////////////////////////////////////////////////////////  	// Length  	////////////////////////////////////////////////////////////////////////// -	if (strcmp(name, "Length")==0){ +	if (strcmp(name, "Length")==0) {  	    int origLength = _length;  	    _length = max(value->getInt(0), 0);  	    char propName[20]; -	    if (_length < OrigLength){ -	        for(int i=_length; i<OrigLength; i++){ +	    if (_length < OrigLength) { +	        for(int i=_length; i<OrigLength; i++) {  	            sprintf(PropName, "%d", i);  	            _values->DeleteProp(PropName);  	        } diff --git a/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp b/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp index 8f05b7bff6..d1a7546493 100644 --- a/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp +++ b/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp @@ -476,13 +476,13 @@ bool SXMemBuffer::scSetProperty(const char *name, ScValue *value) {  	//////////////////////////////////////////////////////////////////////////  	// Length  	////////////////////////////////////////////////////////////////////////// -	if (strcmp(name, "Length")==0){ +	if (strcmp(name, "Length")==0) {  	    int origLength = _length;  	    _length = max(value->getInt(0), 0);  	    char propName[20]; -	    if (_length < OrigLength){ -	        for(int i=_length; i<OrigLength; i++){ +	    if (_length < OrigLength) { +	        for(int i=_length; i<OrigLength; i++) {  	            sprintf(PropName, "%d", i);  	            _values->DeleteProp(PropName);  	        } diff --git a/engines/wintermute/base/scriptables/script_value.cpp b/engines/wintermute/base/scriptables/script_value.cpp index 0bc7ab5807..ad8ab26e09 100644 --- a/engines/wintermute/base/scriptables/script_value.cpp +++ b/engines/wintermute/base/scriptables/script_value.cpp @@ -242,7 +242,7 @@ bool ScValue::setProp(const char *name, ScValue *val, bool copyWhole, bool setAs  		/*  		_valIter = _valObject.find(Name); -		if (_valIter != _valObject.end()){ +		if (_valIter != _valObject.end()) {  		    delete _valIter->_value;  		    _valIter->_value = NULL;  		} diff --git a/engines/wintermute/persistent.h b/engines/wintermute/persistent.h index 22acc0c4e4..d768f44b65 100644 --- a/engines/wintermute/persistent.h +++ b/engines/wintermute/persistent.h @@ -56,27 +56,27 @@ namespace Wintermute {  #define IMPLEMENT_PERSISTENT(className, persistentClass)\  	const char className::_className[] = #className;\ -	void* className::persistBuild(){\ +	void* className::persistBuild() {\  		return ::new className(DYNAMIC_CONSTRUCTOR, DYNAMIC_CONSTRUCTOR);\  	}\  	\ -	bool className::persistLoad(void *instance, BasePersistenceManager *persistMgr){\ +	bool className::persistLoad(void *instance, BasePersistenceManager *persistMgr) {\  		return ((className*)instance)->persist(persistMgr);\  	}\  	\ -	const char *className::getClassName(){\ +	const char *className::getClassName() {\  		return #className;\  	}\  	\  	/*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);\  	}\  | 
