]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mapvoting.qc
Net: register all types
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mapvoting.qc
index 21bb421a960d3a0a4b8738b32ad9bc6d1ba0df26..1acfa8042c11c0a23ac84771570607ea42965aee 100644 (file)
@@ -853,6 +853,7 @@ void MapVote_UpdateVotes()
 
 void Ent_MapVote()
 {
+       make_pure(self);
        int sf = ReadByte();
 
        if(sf & 1)
@@ -865,6 +866,12 @@ void Ent_MapVote()
                MapVote_UpdateVotes();
 }
 
+NET_HANDLE(TE_CSQC_PICTURE, bool isNew)
+{
+       Net_MapVote_Picture();
+       return true;
+}
+
 void Net_MapVote_Picture()
 {
        int type = ReadByte();