[input,ruamoko,qwaq] Fix incorrect use of PR_RESMAP

I had forgotten that _size was the number of rows in the map, not the
number of objects (1024 objects per row). This fixes the missed device
removal messages. And probably a slew of other bugs I'd yet to encounter
:P
This commit is contained in:
Bill Currie 2021-09-25 15:42:54 +09:00
parent 4057500acc
commit 13bc38a55b
4 changed files with 53 additions and 21 deletions

View file

@ -1539,6 +1539,9 @@ void *PR_Resources_Find (progs_t *pr, const char *name);
\param type The type of the resource. The size must be at least
as large as \c sizeof(type *).
\note \a _size is <em>NOT</em> the number of objects in the
map. It is the number of rows in the map array (each row
has multiple objects).
*/
#define PR_RESMAP(type) struct { type *_free; type **_map; unsigned _size; }