From 888337527eb33c8392704d39cf65bdf278f3ad3f Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Mon, 3 Mar 2003 05:28:13 +0000 Subject: [PATCH] Use Write*V and WriteBytes, instead of antique bloated functions. ;) --- ruamoko/game/Axe.r | 8 ++------ ruamoko/game/tempent.r | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/ruamoko/game/Axe.r b/ruamoko/game/Axe.r index 4da0c7f7c..6ce6d31ee 100644 --- a/ruamoko/game/Axe.r +++ b/ruamoko/game/Axe.r @@ -42,12 +42,8 @@ else { sound (s, CHAN_WEAPON, "player/axhit2.wav", 1, ATTN_NORM); - WriteByte (MSG_MULTICAST, SVC_TEMPENTITY); - WriteByte (MSG_MULTICAST, TE_GUNSHOT); - WriteByte (MSG_MULTICAST, 3); - WriteCoord (MSG_MULTICAST, org_x); - WriteCoord (MSG_MULTICAST, org_y); - WriteCoord (MSG_MULTICAST, org_z); + WriteBytes (MSG_MULTICAST, SVC_TEMPENTITY, TE_GUNSHOT, 3.0); + WriteCoordV (MSG_MULTICAST, org); multicast (org, MULTICAST_PVS); } } diff --git a/ruamoko/game/tempent.r b/ruamoko/game/tempent.r index 8d378bff5..5cc3cd971 100644 --- a/ruamoko/game/tempent.r +++ b/ruamoko/game/tempent.r @@ -3,11 +3,7 @@ void(vector org, float damage) SpawnBlood = { - WriteByte (MSG_MULTICAST, SVC_TEMPENTITY); - WriteByte (MSG_MULTICAST, TE_BLOOD); - WriteByte (MSG_MULTICAST, 1); - WriteCoord (MSG_MULTICAST, org_x); - WriteCoord (MSG_MULTICAST, org_y); - WriteCoord (MSG_MULTICAST, org_z); + WriteBytes (MSG_MULTICAST, SVC_TEMPENTITY, TE_BLOOD, 1.0); + WriteCoordV (MSG_MULTICAST, org); multicast (org, MULTICAST_PVS); };