BP Logo
Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Crash when often using 'Display Cover'/'Line of sight'
Crash when often using 'Display Cover'/'Line of sight'[message #238983] Sun, 29 November 2009 17:26
Lesh 2

 
Messages:108
Registered:September 2006
Location: Izhevsk, Russia
Under some circumstances game crashes when using 'Display Cover'/'Line of sight' and moving screen to any direction. It is reproducible, but it is not always occurs. It can take some time to get crash.

How to reproduce:
At first increase 'Display Cover'/'Line of sight' area to maximum.
Then constantly hit del/end keys and simultaneously move game screen with arrows.

I've made patch, that helped me:
Index: Build/TileEngine/Render_Dirty.cc
===================================================================
--- Build/TileEngine/Render_Dirty.cc	(revision 7057)
+++ Build/TileEngine/Render_Dirty.cc	(working copy)
@@ -310,6 +310,7 @@
 
 void FreeBackgroundRectPending(BACKGROUND_SAVE* const b)
 {
+	if (b == NO_BGND_RECT) return;
 	b->fPendingDelete = TRUE;
 }
 
@@ -573,6 +574,7 @@
 
 	// Get buffer size
 	const BACKGROUND_SAVE* const bgs      = v->background;
+	if (bgs == NO_BGND_RECT) return;
 	UINT32                 const buf_size = (bgs->sRight - bgs->sLeft) * (bgs->sBottom - bgs->sTop);
 
 	v->fActivelySaving = TRUE;

[Updated on: Sun, 29 November 2009 17:54] by Moderator


Previous Topic: x
Next Topic: r7056 minor bug report
Goto Forum:
  


Current Time: Thu Sep 16 14:47:35 EEST 2021

Total time taken to generate the page: 0.03290 seconds