X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fwall.qc;h=a0d66d719e4ab04a201f990fbcb5defd7aa42822;hb=ee5353529c2fee304ac944aa19af53cc85eca7b0;hp=b94fddd8d81e91ce4283c915dad6ab56ed0dc149;hpb=10c0be8573ea4ab40c24c4a4267f445e00b63857;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/wall.qc b/qcsrc/client/wall.qc index b94fddd8d..a0d66d719 100644 --- a/qcsrc/client/wall.qc +++ b/qcsrc/client/wall.qc @@ -1,5 +1,7 @@ #include "wall.qh" +#include "autocvars.qh" +#include "main.qh" #include "bgmscript.qh" @@ -136,6 +138,7 @@ NET_HANDLE(ENT_CLIENT_WALL, bool isnew) this.colormap = ReadShort(); else this.colormap = 0; + this.skin = ReadByte(); } if(f & 2) @@ -213,11 +216,11 @@ NET_HANDLE(ENT_CLIENT_WALL, bool isnew) this.movedir_z = ReadCoord(); this.lip = ReadByte() / 255.0; } - this.fade_start = ReadShort(); - this.fade_end = ReadShort(); - this.alpha_max = ReadShort(); - this.alpha_min = ReadShort(); - this.inactive = ReadShort(); + this.fade_start = ReadByte(); + this.fade_end = ReadByte(); + this.alpha_max = ReadByte(); + this.alpha_min = ReadByte(); + this.inactive = ReadByte(); this.fade_vertical_offset = ReadShort(); BGMScript_InitEntity(this); } @@ -230,5 +233,6 @@ NET_HANDLE(ENT_CLIENT_WALL, bool isnew) this.entremove = Ent_Wall_Remove; this.draw = Ent_Wall_Draw; + if (isnew) IL_PUSH(g_drawables, this); setpredraw(this, Ent_Wall_PreDraw); }