forked from UNLOZE/sm-plugins
entWatch4: Streamline code + Intermission change.
Block 'Press', 'Touch' and 'Pickup' during intermission.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user