From 9d632dd826c8a312095de0f56df66b2580d336cb Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 6 Jul 2008 11:21:21 +0000 Subject: major update. server clean up and much added documentation --- src/engine/e_if_other.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/engine/e_if_other.h') diff --git a/src/engine/e_if_other.h b/src/engine/e_if_other.h index e02a7fd1..3d43533d 100644 --- a/src/engine/e_if_other.h +++ b/src/engine/e_if_other.h @@ -281,6 +281,20 @@ void snap_invalidate_item(int snapid, int index); */ void snap_input(void *data, int size); +/* + Function: snap_set_staticsize + Tells the engine how big a specific item always will be. This + helps the engine to compress snapshots better. + + Arguments: + type - Item type + size - Size of the data. + + Remarks: + Size must be in a multiple of 4. +*/ +void snap_set_staticsize(int type, int size); + /* message packing */ enum { -- cgit 1.4.1