comparison api/Objects/GameSystem.cs @ 308:e1438fb9024c

Re #99: Define "points" values in GameSystem * Update to make sure that we don't return null
author IBBoard <dev@ibboard.co.uk>
date Sun, 13 Feb 2011 21:03:12 +0000
parents afa7a5dd0eea
children 7e1b27843b0d
comparison
equal deleted inserted replaced
307:afa7a5dd0eea 308:e1438fb9024c
322 return ability; 322 return ability;
323 } 323 }
324 324
325 public string GetPointsAbbrev(double pointTemp) 325 public string GetPointsAbbrev(double pointTemp)
326 { 326 {
327 return (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural); 327 string str = (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural);
328 return (str == null ? "" : str);
328 } 329 }
329 330
330 public string GetPointsName(double pointTemp) 331 public string GetPointsName(double pointTemp)
331 { 332 {
332 return (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural); 333 string str = (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural);
334 return (str == null ? "" : str);
333 } 335 }
334 } 336 }
335 } 337 }