| 1719 | } |
| 1720 | |
| 1721 | void DemoReadPersistantHUDMessage() { |
| 1722 | ddgr_color color; |
| 1723 | int x; |
| 1724 | int y; |
| 1725 | float time; |
| 1726 | int flags; |
| 1727 | int sound_index; |
| 1728 | char *fmt; |
| 1729 | |
| 1730 | color = (uint32_t)cf_ReadInt(Demo_cfp); |
| 1731 | x = cf_ReadInt(Demo_cfp); |
| 1732 | y = cf_ReadInt(Demo_cfp); |
| 1733 | time = cf_ReadFloat(Demo_cfp); |
| 1734 | flags = cf_ReadInt(Demo_cfp); |
| 1735 | sound_index = cf_ReadInt(Demo_cfp); |
| 1736 | int msglen = cf_ReadShort(Demo_cfp); |
| 1737 | fmt = (char *)mem_malloc(msglen); |
| 1738 | cf_ReadBytes((uint8_t *)fmt, msglen, Demo_cfp); |
| 1739 | AddPersistentHUDMessage(color, x, y, time, flags, sound_index, fmt); |
| 1740 | mem_free(fmt); |
| 1741 | } |
| 1742 | |
| 1743 | void DemoWriteSetObjDead(object *obj) { |
| 1744 | cf_WriteByte(Demo_cfp, DT_SETOBJDEAD); |
no test coverage detected