MCPcopy Create free account
hub / github.com/diasurgical/devilution / DeltaImportMonster

Function DeltaImportMonster

Source/msg.cpp:1235–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233}
1234
1235BYTE *DeltaImportMonster(BYTE *src, DMonsterStr *dst)
1236{
1237 int i;
1238
1239 for (i = 0; i < MAXMONSTERS; i++) {
1240 if (*src == 0xFF) {
1241 memset(dst, 0xFF, sizeof(DMonsterStr));
1242 src++;
1243 } else {
1244 memcpy(dst, src, sizeof(DMonsterStr));
1245 src += sizeof(DMonsterStr);
1246 }
1247 dst++;
1248 }
1249
1250 return src;
1251}
1252
1253void DeltaImportJunk(BYTE *src)
1254{

Callers 1

DeltaImportDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected