diff UI/UICharacter.cpp @ 1567:9f8b3e904e14

Player::ReceiveDamage, very small edits; prepended "Is" to item functions returning bool values (broken, indetified, stolen)
author Grumpy7
date Sun, 08 Sep 2013 05:22:33 +0200
parents c4ab816fcc5e
children 75fafd8ced59
line wrap: on
line diff
--- a/UI/UICharacter.cpp	Sun Sep 08 04:11:10 2013 +0200
+++ b/UI/UICharacter.cpp	Sun Sep 08 05:22:33 2013 +0200
@@ -1593,9 +1593,9 @@
     }
     else
     {
-      if (player->pInventoryItemList[player->pInventoryMatrix[i] - 1].Identified() || pCurrentScreen != SCREEN_HOUSE)
+      if (player->pInventoryItemList[player->pInventoryMatrix[i] - 1].IsIdentified() || pCurrentScreen != SCREEN_HOUSE)
       {
-        if (player->pInventoryItemList[player->pInventoryMatrix[i] - 1].Broken())
+        if (player->pInventoryItemList[player->pInventoryMatrix[i] - 1].IsBroken())
           pRenderer->DrawTransparentRedShade(uCellX, uCellY, pTexture);
         else
           pRenderer->DrawTextureTransparent(uCellX, uCellY, pTexture);
@@ -1634,9 +1634,9 @@
   }
   else
   {
-    if (item->Broken())
+    if (item->IsBroken())
       pRenderer->DrawTransparentRedShade(x, y, item_texture);
-    else if (!item->Identified())
+    else if (!item->IsIdentified())
       pRenderer->DrawTransparentGreenShade(x, y, item_texture);
     else
       pRenderer->DrawTextureTransparent(x, y, item_texture);