[Scummvm-cvs-logs] SF.net SVN: scummvm: [31860] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun May 4 15:11:18 CEST 2008


Revision: 31860
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31860&view=rev
Author:   lordhoto
Date:     2008-05-04 06:11:17 -0700 (Sun, 04 May 2008)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_v2.cpp
    scummvm/trunk/engines/kyra/kyra_hof.h
    scummvm/trunk/engines/kyra/script_hof.cpp

Modified: scummvm/trunk/engines/kyra/gui_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_v2.cpp	2008-05-04 13:07:13 UTC (rev 31859)
+++ scummvm/trunk/engines/kyra/gui_v2.cpp	2008-05-04 13:11:17 UTC (rev 31860)
@@ -529,7 +529,7 @@
 	return -1;
 }
 
-void KyraEngine_HoF::removeItemFromInventory(int slot) {
+void KyraEngine_HoF::removeSlotFromInventory(int slot) {
 	_mainCharacter.inventory[slot] = 0xFFFF;
 	if (slot < 10) {
 		_screen->hideMouse();

Modified: scummvm/trunk/engines/kyra/kyra_hof.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra_hof.h	2008-05-04 13:07:13 UTC (rev 31859)
+++ scummvm/trunk/engines/kyra/kyra_hof.h	2008-05-04 13:11:17 UTC (rev 31860)
@@ -461,7 +461,7 @@
 	static const uint16 _itemMagicTable[];
 
 	int getInventoryItemSlot(uint16 item);
-	void removeItemFromInventory(int slot);
+	void removeSlotFromInventory(int slot);
 	bool checkInventoryItemExchange(uint16 item, int slot);
 	void drawInventoryShape(int page, uint16 item, int slot);
 	void clearInventorySlot(int slot, int page);
@@ -730,7 +730,7 @@
 	int o2_addItemToCurScene(EMCState *script);
 	int o2_checkForItem(EMCState *script);
 	int o2_loadSoundFile(EMCState *script);
-	int o2_removeItemSlotFromInventory(EMCState *script);
+	int o2_removeSlotFromInventory(EMCState *script);
 	int o2_removeItemFromInventory(EMCState *script);
 	int o2_countItemInInventory(EMCState *script);
 	int o2_countItemsInScene(EMCState *script);
@@ -786,7 +786,7 @@
 	int o2_getCountDown(EMCState *script);
 	int o2_pressColorKey(EMCState *script);
 	int o2_objectChat(EMCState *script);
-	int o2_chapterChange(EMCState *script);
+	int o2_changeChapter(EMCState *script);
 	int o2_getColorCodeFlag1(EMCState *script);
 	int o2_setColorCodeFlag1(EMCState *script);
 	int o2_getColorCodeFlag2(EMCState *script);

Modified: scummvm/trunk/engines/kyra/script_hof.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_hof.cpp	2008-05-04 13:07:13 UTC (rev 31859)
+++ scummvm/trunk/engines/kyra/script_hof.cpp	2008-05-04 13:11:17 UTC (rev 31860)
@@ -420,9 +420,9 @@
 	return 0;
 }
 
-int KyraEngine_HoF::o2_removeItemSlotFromInventory(EMCState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_HoF::o2_removeItemSlotFromInventory(%p) (%d)", (const void *)script, stackPos(0));
-	removeItemFromInventory(stackPos(0));
+int KyraEngine_HoF::o2_removeSlotFromInventory(EMCState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_HoF::o2_removeSlotFromInventory(%p) (%d)", (const void *)script, stackPos(0));
+	removeSlotFromInventory(stackPos(0));
 	return 0;
 }
 
@@ -431,7 +431,7 @@
 	uint16 item = stackPos(0);
 	int slot = -1;
 	while ((slot = getInventoryItemSlot(item)) != -1)
-		removeItemFromInventory(slot);
+		removeSlotFromInventory(slot);
 	return 0;
 }
 
@@ -680,9 +680,9 @@
 	setGameFlag(0x1EF);
 	_mainCharX = _mainCharacter.x1;
 	_mainCharY = _mainCharacter.y1;
-	_noScriptEnter = 0;
+	_noScriptEnter = false;
 	enterNewScene(stackPos(0), _mainCharacter.facing, 0, 0, 0);
-	_noScriptEnter = 1;
+	_noScriptEnter = true;
 	return 0;
 }
 
@@ -1012,8 +1012,8 @@
 	return 0;
 }
 
-int KyraEngine_HoF::o2_chapterChange(EMCState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_HoF::o2_chapterChange(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine_HoF::o2_changeChapter(EMCState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_HoF::o2_changeChapter(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	const int chapter = stackPos(0);
 	const int scene = stackPos(1);
 
@@ -1555,7 +1555,7 @@
 	// 0x20
 	Opcode(o2_checkForItem);
 	Opcode(o2_loadSoundFile);
-	Opcode(o2_removeItemSlotFromInventory);
+	Opcode(o2_removeSlotFromInventory);
 	Opcode(o2_defineItem);
 	// 0x24
 	Opcode(o2_removeItemFromInventory);
@@ -1674,7 +1674,7 @@
 	Opcode(o2_pressColorKey);
 	// 0x80
 	Opcode(o2_objectChat);
-	Opcode(o2_chapterChange);
+	Opcode(o2_changeChapter);
 	Opcode(o2_getColorCodeFlag1);
 	Opcode(o2_setColorCodeFlag1);
 	// 0x84
@@ -1755,6 +1755,3 @@
 
 } // end of namespace Kyra
 
-
-
-


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list