entWatch4: Streamline code + Intermission change.

Block 'Press', 'Touch' and 'Pickup' during intermission.
This commit is contained in:
zaCade
2018-08-08 17:31:50 +02:00
parent d4b9a3887b
commit b4116d7282
4 changed files with 178 additions and 168 deletions
+4 -4
View File
@@ -33,12 +33,12 @@ public void OnGameFrame()
{
char sHUDFormat[250];
char sHUDBuffer[64];
for (int index; index < EW_GetItemCount(); index++)
{
any itemArray[items];
EW_GetItemArray(index, itemArray, sizeof(itemArray));
if (itemArray[item_display] & DISPLAY_HUD)
{
if (itemArray[item_owned] && itemArray[item_owner] >= 0)
@@ -101,7 +101,7 @@ public void OnGameFrame()
Format(sHUDBuffer, sizeof(sHUDBuffer), "%s [%s]: %N", itemArray[item_short], "N/A", itemArray[item_owner]);
}
}
if (strlen(sHUDFormat) + strlen(sHUDBuffer) <= sizeof(sHUDFormat) - 2)
{
Format(sHUDFormat, sizeof(sHUDFormat), "%s\n%s", sHUDFormat, sHUDBuffer);
@@ -110,7 +110,7 @@ public void OnGameFrame()
}
}
}
Handle hMessage = StartMessageAll("KeyHintText");
BfWriteByte(hMessage, 1);
BfWriteString(hMessage, sHUDFormat);