changeset 757:0b3f4b854652

if and ; errors
author zipi
date Sat, 23 Mar 2013 10:39:14 +0000
parents 3523c3b581e5
children b2468462a360
files Player.cpp UIHouses.cpp mm7_2.cpp
diffstat 3 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Player.cpp	Sat Mar 23 00:18:02 2013 +0200
+++ b/Player.cpp	Sat Mar 23 10:39:14 2013 +0000
@@ -8276,7 +8276,7 @@
     currPlayerId = 1;
   else if ( this == pPlayers[3] )
     currPlayerId = 2;
-  else if ( this == pPlayers[4] );
+  else if ( this == pPlayers[4] )
      currPlayerId  = 3;
   if ( var_type > VAR_AutoNotes )
   {
--- a/UIHouses.cpp	Sat Mar 23 00:18:02 2013 +0200
+++ b/UIHouses.cpp	Sat Mar 23 10:39:14 2013 +0000
@@ -1553,7 +1553,7 @@
         v106.x = 0;
         do
         {
-          if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v55].uItemID);//9 * (v55 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
+          if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v55].uItemID)//9 * (v55 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
             ++v106.x;
           ++v55;
         }
@@ -2056,7 +2056,7 @@
       v114 = 0;
       do
       {
-        if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v114].uItemID);
+        if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v114].uItemID)
         {
           v46 = ItemsInShopTexture[v114];
           v47 = 152 - v46->uTextureHeight;
@@ -2083,7 +2083,7 @@
       v114 = 0;
       do
       {
-        if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v114+1].uItemID);
+        if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v114+1].uItemID)
         {
           v50 = ItemsInShopTexture[v114 + 6];
           v51 = 308 - v50->uTextureHeight;
@@ -2116,7 +2116,7 @@
         v109 = 0;
         do
         {
-          if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v62].uItemID);
+          if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v62].uItemID)
             ++v109;
           ++v62;
         }
@@ -2702,7 +2702,7 @@
         v149 = 0;
         for(int i=0; i<8; ++i)
             {
-            if ( pParty->StandartItemsInShops[window_SpeakInHouse->par1C][i].uItemID);
+            if ( pParty->StandartItemsInShops[window_SpeakInHouse->par1C][i].uItemID)
             ++v149;
 
             }
@@ -4753,7 +4753,7 @@
     do
     {
      // if ( pParty->field_777C[9 * (v49 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
-	 if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uItemID);
+	 if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uItemID)
       {
         v50 = ItemsInShopTexture[v49];
         v51 = 152 - v50->uTextureHeight;
@@ -4786,7 +4786,7 @@
     do
     {
       //if ( pParty->field_777C[9 * (v122 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 54] )
-	if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v122+1].uItemID);
+	if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v122+1].uItemID)
       {
         v54 = ItemsInShopTexture[v122 + 6];
         v55 = 306 - v54->uTextureHeight;
@@ -4882,12 +4882,12 @@
   if ( result )
   {
     v66 = 0;
-    v117 = 0;
+    v117 = 0;\
     if ( dialog_menu_id == HOUSE_DIALOGUE_SHOP_BUY_STANDARD)
     {
       do
       {
-        if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v66].uItemID); //9 * (v66 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
+        if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v66].uItemID) //9 * (v66 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
           ++v117;
         ++v66;
       }
--- a/mm7_2.cpp	Sat Mar 23 00:18:02 2013 +0200
+++ b/mm7_2.cpp	Sat Mar 23 10:39:14 2013 +0000
@@ -1590,7 +1590,7 @@
 					do
 					{
 						// if ( pParty->field_777C[9 * (v48 + 12 * (int)v47)] )
-						if ( pParty->StandartItemsInShops[(int)v47][v48].uItemID);
+						if ( pParty->StandartItemsInShops[(int)v47][v48].uItemID)
 						{
 							v49 = rand();
 							v8 = window_SpeakInHouse;