mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
Fix oversight in last commit, the '/ 2' is evil.
This commit is contained in:
parent
e137ff1168
commit
aa57ec9f7b
1 changed files with 6 additions and 6 deletions
|
@ -885,12 +885,12 @@ Mod_LoadBrushModel(model_t *mod, void *buffer, int modfilelen)
|
|||
/* Because Quake II is is sometimes so ... "optimized" this
|
||||
* is going to be somewhat dirty. The map data contains indices
|
||||
* that we're converting into pointers. Yeah. No comments. The
|
||||
* indices are 32 bit long, we're loading the map somewhere at
|
||||
* the lower end of the address space (at least on the common
|
||||
* platforms) so 32 bit pointers should be enough. But let's
|
||||
* play save, waste some memory and just take the plattforms
|
||||
* pointer size instead of relying on assumptions. */
|
||||
loadmodel->extradata = Hunk_Begin(modfilelen * sizeof(void*) / 2);
|
||||
* indices are 32 bit long, they just encode the offset between
|
||||
* the hunks base address and the position in the hunk, so 32 bit
|
||||
* pointers should be enough. But let's play save, waste some
|
||||
* allocations and just take the plattforms pointer size instead
|
||||
* of relying on assumptions. */
|
||||
loadmodel->extradata = Hunk_Begin(modfilelen * sizeof(void*));
|
||||
|
||||
loadmodel->type = mod_brush;
|
||||
if (loadmodel != mod_known)
|
||||
|
|
Loading…
Reference in a new issue