X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fonslaught%2Fonslaught.qc;h=80d6a6be29fa146940ccf242cfddb9c90413e2ea;hp=afbd31842978a332d81c4a3d914a2202799fddae;hb=d01c567581179df7cc68bcdc8dce58efad911bc4;hpb=8f08a117d2eada0c38cb1d07a0798daf192dd666 diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc index afbd31842..80d6a6be2 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc @@ -1,6 +1,6 @@ #include "onslaught.qh" -#ifndef MENUQC +#ifdef GAMEQC REGISTER_NET_LINKED(ENT_ONSCAMERA) #endif @@ -9,9 +9,7 @@ REGISTER_NET_LINKED(ENT_ONSCAMERA) entity generator_camera; NET_HANDLE(ENT_ONSCAMERA, bool isnew) { - this.origin_x = ReadCoord(); - this.origin_y = ReadCoord(); - this.origin_z = ReadCoord(); + this.origin = ReadVector(); setorigin(this, this.origin); this.angles_x = ReadAngle();