Commit graph

8 commits

Author SHA1 Message Date
Daniel Gibson
150c521e13 One entity shooting another should work even if friendly fire is off
In rogue's RHANGAR1 the turret didn't blow up the ceiling when friendly fire
was off, because in ClientTeam() both entities were set to "" (no team),
but OnSameTeam() just did a strcmp() instead of checking this special
case (no team).
We check this now and thus it works. Hooray.
I also refactored ClientTeam() to take the buffer instead of using a
static one and to be static (it's only called by OnSameTeam() anyway).

The savegame table entry for this function was invalid, but it doesn't
need to be saved anyway, so I just deleted it from the table.
2014-11-30 17:55:38 +01:00
Yamagi Burmeister
f7da445083 Fix help computer and inventory updates when already opened
These changes ware originally committed by svdijk into baseq2
as reveison 6f6c9a1 to 20110fa.
2013-04-29 18:42:17 +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
b6a4204049 Cleanup g_cmds.c and add sanity checks 2011-10-18 08:34:04 +00:00
Yamagi Burmeister
62f3b1319f Rearrange files and add a new Makefile 2011-10-11 14:00:27 +00:00
Yamagi Burmeister
809ce5941f Fix the weapprev command by porting the apropriate code from rogue 2010-10-01 15:37:17 +00:00
Yamagi Burmeister
635f0728f8 Fixup, Stufe 1 2009-03-12 17:11:31 +00:00
Yamagi Burmeister
7283829715 Code zu "The Reconing" eingefügCode zu "The Reconing" eingefügt 2009-03-12 16:16:47 +00:00