| 926 | } |
| 927 | |
| 928 | void DemoReadHudMessage() { |
| 929 | char msg[HUD_MESSAGE_LENGTH]; |
| 930 | int color = cf_ReadInt(Demo_cfp); |
| 931 | uint8_t blink = cf_ReadByte(Demo_cfp); |
| 932 | cf_ReadString(msg, HUD_MESSAGE_LENGTH, Demo_cfp); |
| 933 | |
| 934 | if (color) { |
| 935 | AddColoredHUDMessage(color, msg); |
| 936 | } else if (blink) { |
| 937 | AddBlinkingHUDMessage(msg); |
| 938 | } else { |
| 939 | AddHUDMessage(msg); |
| 940 | } |
| 941 | } |
| 942 | |
| 943 | void DemoReadWeaponFire() { |
| 944 | vector pos, dir; |
no test coverage detected