diff --git a/src/memory.c b/src/memory.c
index 23e5cbd3634f7541950dfcd6ce9834496cf8dc6a..af93fa6f7b00a2af6d1a9d5bacd6d0a028e3ee00 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
/*
Copyright (C) Prikol Software 1996-1997
Copyright (C) Aleksey Volynskov 1996-1997
- Copyright (C) <ARembo@gmail.com> 2011
This file is part of the Doom2D:Rembo project.
#include "glob.h"
#include <stdio.h>
#include <stdlib.h>
-#include <malloc.h>
#include <string.h>
#include "error.h"
#include "files.h"
if(!resl[h]) return;
--resl[h];
}
+
+int M_locked (int h) {
+ h&=-1-0x8000;
+ return (h != -1) && (h != 0xFFFF) && (resl[h] != 0);
+}
+
+int M_was_locked (int h) {
+ h&=-1-0x8000;
+ return (h != -1) && (h != 0xFFFF) && (resp[h] != NULL);
+}