Commit graph

11 commits

Author SHA1 Message Date
Yamagi Burmeister
08a6bfd4df Fix current health being reset to 100 if >100 at level change.
This is another code inconsistency, we must not clamp the current health
to the client max health (which apparently is always 100) but to the
current max health of the player entity.

Analyzed and fix suggest by @BjossiAlfreds, fixes yquake2/yquake2#441.
2019-09-06 07:13:29 +02:00
Yamagi Burmeister
eb0c7a3cb5 Split the gibs per frame limit between gibs and debris.
The gibs and debris per frame must be limited to prevent server mem
map overflows. Until now debris and gibs were handled the same, the
debris spawned by rockets and grenates could prevent the actual gibs
of the killed monster from spawning.

Before this change 20 entities were spawned at max. Now up tp 40
enties can be spawned. This needs some testings.
2018-10-07 12:13:48 +02:00
Yamagi Burmeister
291d9852ee Reset gibsthisframe and lastgibframe at map change
Without this change the conditionals at g_misc.c:199 and 381 wouldn't
trigger until level.framenum reach it's previous value, resulting in
much to few debris or gibs being thrown. This fixes #104.

Many thanks to maraakate for the analysis and the idea how to fix it.
2015-10-24 13:30:41 +02:00
Yamagi Burmeister
6d07abecc4 fix several printf format string errors in games' code
Submitted by: Ozkan Sezer
2015-08-31 18:25:16 +02:00
Yamagi Burmeister
00f0bb8df1 Remove superfluous whitespaces and end of lines
With this commit 'xatrix' is cleaned up. Every single line was audited,
many bugs removed and hundered of sanity checks added. Additionally the
code was reformated. All in all 'Xatrix' should now be much more
reliable and for the first time in ~15 years completeable without any
crashes, logic bugs or the like. Until now about 130 hours spread over
more than a year were spend for this project.

Of course this code is totaly untested. The next step is testing,
testing and testing. After that the spawn points needs to be fixed
so that all maps can pe started by "map $mapname".
2013-02-12 18:49:17 +01:00
Yamagi Burmeister
6e48d1aa2a Merge branch 'master' into cleanup
Conflicts:
	CHANGELOG
	src/g_combat.c
	src/g_func.c
	src/g_items.c
2013-01-05 12:34:59 +01:00
Yamagi Burmeister
88bbdc4779 Sync shared.c and shared.h with baseq2, import rand.c 2012-06-26 14:33:37 +02:00
Yamagi Burmeister
c48f0633b3 Cleanup g_main.c and add sanity checks 2011-10-18 09:32:11 +00:00
Yamagi Burmeister
62f3b1319f Rearrange files and add a new Makefile 2011-10-11 14:00:27 +00:00
Yamagi Burmeister
b8e40ec947 rogue-cleanup, zweiter teil 2009-03-12 17:20:42 +00:00
Yamagi Burmeister
7283829715 Code zu "The Reconing" eingefügCode zu "The Reconing" eingefügt 2009-03-12 16:16:47 +00:00