- fix teleporters to not display if you don't have them

- disable topcolor change blocking for now
This commit is contained in:
Adam Olsen 2001-09-21 14:13:52 +00:00
parent ad94b40139
commit d607291546
2 changed files with 3 additions and 3 deletions

View file

@ -1112,7 +1112,7 @@ void() Menu_Engineer =
else else
st += "\n"; st += "\n";
if (self.has_teleporter < 2 && self.ammo_cells >= BUILD_COST_TELEPORTER) if (self.has_teleporter < 2 && self.ammo_cells >= BUILD_COST_TELEPORTER && self.tf_items & NIT_TELEPORTER)
st += "\x97.. Build a Teleporter Pad \n"; st += "\x97.. Build a Teleporter Pad \n";
else else
st += "\n"; st += "\n";

View file

@ -566,11 +566,11 @@ void (string key, string value) UserInfoCallback =
} }
// dprint ("[[" + self.netname + "](" + key + ")(" + value + ")(" + oldval + ")]\n"); // dprint ("[[" + self.netname + "](" + key + ")(" + value + ")(" + oldval + ")]\n");
if (key == "topcolor") { // FIXME: some topcolors may be allowed /* if (key == "topcolor") { // FIXME: some topcolors may be allowed
setinfokey(self, "topcolor", oldval); setinfokey(self, "topcolor", oldval);
stuffcmd(self, "color \"" + oldval + "\"\n"); stuffcmd(self, "color \"" + oldval + "\"\n");
return; return;
} }*/
if (key == "bottomcolor") { if (key == "bottomcolor") {
setinfokey (self, "bottomcolor", oldval); setinfokey (self, "bottomcolor", oldval);
stuffcmd (self, "bottomcolor \"" + oldval + "\"\n"); stuffcmd (self, "bottomcolor \"" + oldval + "\"\n");