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

Function InLockList

manage/manage.cpp:1884–1897  ·  view source on GitHub ↗

Returns true if the passed in pagelock is in the LockList, else false

Source from the content-addressed store, hash-verified

1882}
1883// Returns true if the passed in pagelock is in the LockList, else false
1884bool InLockList(mngs_Pagelock *pl) {
1885 if (Starting_editor) {
1886 for (int i = 0; i < Num_locklist; i++) {
1887 if (LockList[i].pagetype == pl->pagetype) {
1888 if (!stricmp(LockList[i].name, pl->name))
1889 return true;
1890 }
1891 }
1892 } else {
1893 if ((mng_CheckIfPageOwned(pl, TableUser)) > 0) // DAJ -1FIX
1894 return true;
1895 }
1896 return false;
1897}
1898// Given a filename, returns the type of primitive it is
1899int GetPrimType(const std::filesystem::path &name) {
1900 int primtype;

Callers 1

UpdatePrimitiveFunction · 0.85

Calls 1

mng_CheckIfPageOwnedFunction · 0.85

Tested by

no test coverage detected