mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 11:00:33 +00:00
ref_soft: fix crash on map restart again
This commit is contained in:
parent
8a99d64139
commit
a6572dd042
2
r_main.c
2
r_main.c
@ -1840,8 +1840,6 @@ void GAME_EXPORT R_NewMap (void)
|
|||||||
R_ClearDecals(); // clear all level decals
|
R_ClearDecals(); // clear all level decals
|
||||||
R_StudioResetPlayerModels();
|
R_StudioResetPlayerModels();
|
||||||
|
|
||||||
D_FlushCaches();
|
|
||||||
|
|
||||||
r_cnumsurfs = sw_maxsurfs->value;
|
r_cnumsurfs = sw_maxsurfs->value;
|
||||||
|
|
||||||
if (r_cnumsurfs <= MINSURFACES)
|
if (r_cnumsurfs <= MINSURFACES)
|
||||||
|
2
r_surf.c
2
r_surf.c
@ -1010,7 +1010,7 @@ void D_FlushCaches( void )
|
|||||||
qboolean newmap = !world || !Q_strcmp( tr.mapname, WORLDMODEL->name );
|
qboolean newmap = !world || !Q_strcmp( tr.mapname, WORLDMODEL->name );
|
||||||
|
|
||||||
// if newmap, surfaces already freed
|
// if newmap, surfaces already freed
|
||||||
if( !newmap && !tr.map_unload )
|
if( !tr.map_unload )
|
||||||
{
|
{
|
||||||
for(c = sc_base ; c ; c = c->next )
|
for(c = sc_base ; c ; c = c->next )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user