1
0
Fork 0

#877: MP chat sometimes not working

This commit is contained in:
ThorstenB 2012-09-16 14:00:40 +02:00
parent bb46d276b0
commit fad306d364

View file

@ -412,9 +412,8 @@ var model = {
me.callsign = {};
foreach (var n; props.globals.getNode("ai/models", 1).getChildren("multiplayer")) {
if (!n.getNode("valid").getValue())
if ((var valid = n.getNode("valid")) == nil or (!valid.getValue()))
continue;
if ((var callsign = n.getNode("callsign")) == nil or !(callsign = callsign.getValue()))
continue;
if (!(callsign = string.trim(callsign)))