… | |
… | |
745 | buf << " Combat: " << pl->combat_ob->name; |
745 | buf << " Combat: " << pl->combat_ob->name; |
746 | |
746 | |
747 | if (pl->golem) |
747 | if (pl->golem) |
748 | buf << " Golem: " << pl->golem->name; |
748 | buf << " Golem: " << pl->golem->name; |
749 | |
749 | |
750 | if (buf.empty ()) |
750 | buf.linearise (obuf); |
751 | *obuf = 0; |
|
|
752 | else |
|
|
753 | { |
|
|
754 | memcpy (obuf, buf.linearise () + 1, buf.size () - 1); |
|
|
755 | obuf [buf.size ()] = 0; |
751 | obuf [buf.size ()] = 0; |
756 | } |
|
|
757 | } |
752 | } |
758 | |
753 | |
759 | #define AddIfInt64(Old,New,Type) if (Old != New) {\ |
754 | #define AddIfInt64(Old,New,Type) if (Old != New) {\ |
760 | Old = New; \ |
755 | Old = New; \ |
761 | sl << uint8 (Type) << uint64 (New); \ |
756 | sl << uint8 (Type) << uint64 (New); \ |