[Warzone-dev] [PATCH] Use direct initialisation, since this is possible here.

2008-05-22 Thread Dennis Schridde
--- src/multistruct.c |5 + src/order.c |6 ++ 2 files changed, 3 insertions(+), 8 deletions(-)diff --git a/src/multistruct.c b/src/multistruct.c index a0da65d..20247cc 100644 --- a/src/multistruct.c +++ b/src/multistruct.c @@ -383,11 +383,8 @@ BOOL recvLasSat() if(

[Warzone-dev] [PATCH] Improved structure, better layout for proj_InFlightDirect

2008-05-22 Thread Dennis Schridde
--- src/projectile.c | 107 +++--- 1 files changed, 53 insertions(+), 54 deletions(-)diff --git a/src/projectile.c b/src/projectile.c index 2a9aefa..15363bf 100644 --- a/src/projectile.c +++ b/src/projectile.c @@ -652,12 +652,12 @@ static void

[Warzone-dev] [PATCH] Fix indirect projectiles sometimes never reaching their target due to an unsigned underflow.

2008-05-22 Thread Dennis Schridde
--- src/projectile.c |8 1 files changed, 4 insertions(+), 4 deletions(-)diff --git a/src/projectile.c b/src/projectile.c index 1389d4c..f9ae99a 100644 --- a/src/projectile.c +++ b/src/projectile.c @@ -640,8 +640,8 @@ static void proj_InFlightDirectFunc( PROJECTILE *psProj ) /* we

[Warzone-dev] [PATCH] Largely simplified proj_InFlightIndirect.

2008-05-22 Thread Dennis Schridde
--- src/projectile.c | 334 +++-- 1 files changed, 145 insertions(+), 189 deletions(-)diff --git a/src/projectile.c b/src/projectile.c index 15363bf..1389d4c 100644 --- a/src/projectile.c +++ b/src/projectile.c @@ -901,253 +901,209 @@ static void

Re: [Warzone-dev] [PATCH] Fix indirect projectiles sometimes never reaching their target due to an unsigned underflow.

2008-05-22 Thread Dennis Schridde
After these changes, the 2 functions look like attached, with the also attached differences. static void proj_InFlightDirectFunc( PROJECTILE *psProj ) { /* we want a delay between Las-Sats firing and actually hitting in multiPlayer magic number but that's how long the audio countdown message

[Warzone-dev] Possible fix for eventRemoveContext crash

2008-05-22 Thread Per Inge Mathisen
I think this should fix the eventRemoveContext crashes that we have. It assumes that the bison/flex stuff frees its own allocations, so we don't have to. I could not see any leaks, but did not test that much, since my box tends to hang after running valgrind a while. Comments? Testing results?