X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fplayerdemo.qc;h=6f263ae448c9b4e96e0bb664bcf43fa1f2d5b83b;hb=d95afcf1229a11a7198936683998d16a1c2500d7;hp=5ca2c1ca99d4450c11ad86b526f23cfaa869ec74;hpb=f203a8239ab58e776da8df7bce46be73d2d655a4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/playerdemo.qc b/qcsrc/server/playerdemo.qc index 5ca2c1ca9..6f263ae44 100644 --- a/qcsrc/server/playerdemo.qc +++ b/qcsrc/server/playerdemo.qc @@ -12,9 +12,9 @@ const float PLAYERDEMO_MODE_OFF = 0; const float PLAYERDEMO_MODE_READING = 1; const float PLAYERDEMO_MODE_WRITING = 2; -void playerdemo_init() -{SELFPARAM(); - self.playerdemo_mode = PLAYERDEMO_MODE_OFF; +void playerdemo_init(entity this) +{ + this.playerdemo_mode = PLAYERDEMO_MODE_OFF; } void playerdemo_shutdown() {SELFPARAM(); @@ -58,7 +58,7 @@ void playerdemo_open_write(string f) PLAYERDEMO_FIELD(func,string,playerskin) \ PLAYERDEMO_FIELD(func,float,frame) \ PLAYERDEMO_FIELD(func,float,effects) \ - PLAYERDEMO_FIELD(func,float,switchweapon) \ + /* PLAYERDEMO_FIELD(func,float,switchweapon) */ \ PLAYERDEMO_FIELD(func,float,BUTTON_ATCK) \ PLAYERDEMO_FIELD(func,float,BUTTON_ATCK2) \ PLAYERDEMO_FIELD(func,float,BUTTON_CROUCH) \