[nexuiz-commits] r8511 - in trunk/data/qcsrc: client server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jan 17 06:34:50 EST 2010
Author: fruitiex
Date: 2010-01-17 06:34:50 -0500 (Sun, 17 Jan 2010)
New Revision: 8511
Modified:
trunk/data/qcsrc/client/mapvoting.qc
trunk/data/qcsrc/server/g_world.qc
Log:
revert the mapvote change, it didnt really work online.
Modified: trunk/data/qcsrc/client/mapvoting.qc
===================================================================
--- trunk/data/qcsrc/client/mapvoting.qc 2010-01-17 09:49:58 UTC (rev 8510)
+++ trunk/data/qcsrc/client/mapvoting.qc 2010-01-17 11:34:50 UTC (rev 8511)
@@ -287,6 +287,8 @@
mv_active = 1;
+ ssdir = ReadString();
+
mv_num_maps = min(MAPVOTE_COUNT, ReadByte());
mv_abstain = ReadByte();
if(mv_abstain)
@@ -311,9 +313,7 @@
if(mv_maps_mask & power)
{
map = strzone(ReadString());
- ssdir = ReadString();
pk3 = strzone(ReadString());
-
mv_maps[i] = map;
mv_pk3[i] = pk3;
map = strzone(strcat(ssdir, "/", map));
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2010-01-17 09:49:58 UTC (rev 8510)
+++ trunk/data/qcsrc/server/g_world.qc 2010-01-17 11:34:50 UTC (rev 8511)
@@ -2074,7 +2074,6 @@
float mapvote_timeout;
string mapvote_message;
string mapvote_screenshot_dir;
-string mapvote_screenshot_dir2;
float mapvote_count;
float mapvote_count_real;
@@ -2202,11 +2201,6 @@
mapvote_screenshot_dir = "maps";
mapvote_screenshot_dir = strzone(mapvote_screenshot_dir);
- mapvote_screenshot_dir2 = cvar_string("g_maplist_votable_screenshot_dir2");
- if(mapvote_screenshot_dir2 == "")
- mapvote_screenshot_dir2 = "levelshots";
- mapvote_screenshot_dir2 = strzone(mapvote_screenshot_dir2);
-
MapVote_Spawn();
}
@@ -2246,7 +2240,7 @@
entity mapvote_ent;
float MapVote_SendEntity(entity to, float sf)
{
- string mapfile, mapfile2, pakfile;
+ string mapfile, pakfile;
float i, o;
if(sf & 1)
@@ -2258,6 +2252,7 @@
if(sf & 1)
{
// flag 1 == initialization
+ WriteString(MSG_ENTITY, mapvote_screenshot_dir);
WriteByte(MSG_ENTITY, mapvote_count);
WriteByte(MSG_ENTITY, mapvote_abstain);
WriteByte(MSG_ENTITY, mapvote_detail);
@@ -2278,23 +2273,13 @@
{
WriteString(MSG_ENTITY, mapvote_maps[i]);
mapfile = strcat(mapvote_screenshot_dir, "/", mapvote_maps[i]);
- mapfile2 = strcat(mapvote_screenshot_dir2, "/", mapvote_maps[i]);
pakfile = whichpack(strcat(mapfile, ".tga"));
if(pakfile == "")
pakfile = whichpack(strcat(mapfile, ".jpg"));
if(pakfile == "")
pakfile = whichpack(strcat(mapfile, ".png"));
- if(pakfile == "") {
- mapvote_screenshot_dir = mapvote_screenshot_dir2;
- pakfile = whichpack(strcat(mapfile2, ".tga"));
- }
- if(pakfile == "")
- pakfile = whichpack(strcat(mapfile2, ".jpg"));
- if(pakfile == "")
- pakfile = whichpack(strcat(mapfile2, ".png"));
for(o = strstr(pakfile, "/", 0)+1; o > 0; o = strstr(pakfile, "/", 0)+1)
pakfile = substring(pakfile, o, 999);
- WriteString(MSG_ENTITY, mapvote_screenshot_dir);
WriteString(MSG_ENTITY, pakfile);
}
}
More information about the nexuiz-commits
mailing list