MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / BigObjRemove

Function BigObjRemove

Descent3/object.cpp:1372–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1370}
1371
1372void BigObjRemove(int objnum) {
1373 int i;
1374
1375 Objects[objnum].flags &= (~OF_BIG_OBJECT);
1376
1377 for (i = 0; i < Num_big_objects; i++) {
1378 if (BigObjectList[i] == objnum) {
1379 Num_big_objects--;
1380 break;
1381 }
1382 }
1383
1384 while (i < Num_big_objects) {
1385 BigObjectList[i] = BigObjectList[i + 1];
1386 i++;
1387 }
1388
1389 ASSERT(Num_big_objects < MAX_BIG_OBJECTS);
1390 ASSERT(Num_big_objects >= 0);
1391}
1392
1393// Resets the object list: sets all objects to unused, intializes handles, & sets roomnums to -1
1394// Called by the editor to init a new level.

Callers 1

ObjUnlinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected