| 3635 | //-------------------------------------------------------------------------- |
| 3636 | |
| 3637 | void ShapeBase::setShapeName(const char* name) |
| 3638 | { |
| 3639 | if (!isGhost()) { |
| 3640 | if (name[0] != '\0') { |
| 3641 | // Use tags for better network performance |
| 3642 | // Should be a tag, but we'll convert to one if it isn't. |
| 3643 | if (name[0] == StringTagPrefixByte) |
| 3644 | mShapeNameHandle = NetStringHandle(U32(dAtoi(name + 1))); |
| 3645 | else |
| 3646 | mShapeNameHandle = NetStringHandle(name); |
| 3647 | } |
| 3648 | else { |
| 3649 | mShapeNameHandle = NetStringHandle(); |
| 3650 | } |
| 3651 | setMaskBits(NameMask); |
| 3652 | } |
| 3653 | } |
| 3654 | |
| 3655 | void ShapeBase::setSkinName(const char* name) |
| 3656 | { |
no test coverage detected