mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
[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:
parent
4057500acc
commit
13bc38a55b
4 changed files with 53 additions and 21 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue