Commit a8e4967
committed
Fix 0.7 messages being recorded to server demos
Always repack messages as 0.6 before recording them to server demos, as server demos should only contain 0.6 messages.
This previously caused error messages to be logged when playing server demos that contained messages sent to 0.7 players. For example, passing the first checkpoint in the Tutorial map causes `protocol7::CNetMsg_Sv_Checkpoint` to be sent, which is an invalid message in 0.6 demos.
Note that messages to individual clients are now also recorded to demos independent from the result of calling `CAntibot::OnEngineServerMessage`, which is consistent with the behavior when sending messages to all clients with client ID `-1`.1 parent 0656f20 commit a8e4967
1 file changed
+25
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | 948 | | |
962 | | - | |
| 949 | + | |
| 950 | + | |
963 | 951 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
970 | 962 | | |
971 | 963 | | |
972 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
973 | 977 | | |
| 978 | + | |
974 | 979 | | |
975 | 980 | | |
976 | 981 | | |
| |||
0 commit comments