MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / PrepareEarForNetwork

Function PrepareEarForNetwork

Source/msg.cpp:2396–2400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2394}
2395
2396void PrepareEarForNetwork(const Item &item, TEar &ear)
2397{
2398 ear.bCursval = item._ivalue | ((item._iCurs - ICURS_EAR_SORCERER) << 6);
2399 CopyUtf8(ear.heroname, item._iIName, sizeof(ear.heroname));
2400}
2401
2402void RecreateItem(const Player &player, const TItem &messageItem, Item &item)
2403{

Callers 2

PrepareItemForNetworkFunction · 0.85
PackNetItemFunction · 0.85

Calls 1

CopyUtf8Function · 0.85

Tested by

no test coverage detected