| 621 | } |
| 622 | |
| 623 | void TSStatic::setSkinName(const char* name) |
| 624 | { |
| 625 | if (!isGhost()) |
| 626 | { |
| 627 | if (name[0] != '\0') |
| 628 | { |
| 629 | // Use tags for better network performance |
| 630 | // Should be a tag, but we'll convert to one if it isn't. |
| 631 | if (name[0] == StringTagPrefixByte) |
| 632 | mSkinNameHandle = NetStringHandle(U32(dAtoi(name + 1))); |
| 633 | else |
| 634 | mSkinNameHandle = NetStringHandle(name); |
| 635 | } |
| 636 | else |
| 637 | mSkinNameHandle = NetStringHandle(); |
| 638 | |
| 639 | setMaskBits(SkinMask); |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | void TSStatic::reSkin() |
| 644 | { |
no test coverage detected