Commit graph

262 commits

Author SHA1 Message Date
Yamagi Burmeister
6c854253de Remove unnecessary conditionals. They're always true. 2014-08-03 11:40:36 +02:00
Yamagi Burmeister
1859c42484 Use correct return type 2014-08-03 11:34:06 +02:00
Yamagi Burmeister
d8eb7037a4 Use correct flavor of abs() 2014-08-03 11:29:47 +02:00
Yamagi Burmeister
8dd8520ddc Rewrite COM_FileExtention()
COM_FileExtension() was parsing strings from beginning to end, bailing
out as soon as '.' was found and treating everything thereafter as the
file extension. That behavior caused problem with relatives pathes
like models/monsters/tank/../ctank/skin.pcx. The new implementation uses
strrchr() to determine the last '.'.
2014-07-30 21:44:21 +02:00
Yamagi Burmeister
bac51c8d95 Whitespace cleanup 2014-02-22 13:20:22 +01:00
Yamagi Burmeister
926c38ac1b Fix help computer and inventory updates when already opened
These changes ware originally committed by svdijk into baseq2
as reveison 6f6c9a1 to 20110fa.
2014-02-22 13:14:02 +01:00
Yamagi Burmeister
f4058dc8e9 Remove to unsued variables not found by Clang 2014-02-13 08:10:06 +01:00
Yamagi Burmeister
e53422065e Add functions of Deadalus and Medic Commander
This brings the necessary changes to the savegame tables for being able
to save levels with an Deadalus or Medic Commander. Since this breaks
savegame compatiblity, bump the savegame version. *sigh*
2014-02-11 19:07:27 +01:00
Yamagi Burmeister
069ded5e88 Bring back the Medic Commander, lost during early cleanup 2014-02-11 19:07:07 +01:00
Yamagi Burmeister
2bbb79e56b Bring back the Deadalus, lost during early cleanup 2014-02-11 19:06:23 +01:00
Yamagi Burmeister
5fe56d8bac Fix manual loading of maps in coop mode
This change ports my magic "find the right coop spawnpoint if target is
unset"-heuristic from baseq2 to rogue. This code was originally written
by me and is licensed to the GPL and the Quake II SDK license. With this
change all maps can by loaded by console in coop mode without spawnpoint
problems.
2014-02-06 19:23:06 +01:00
Yamagi Burmeister
f69e6aa98a Cleanup window (both stages) and add sanity checks 2014-02-06 18:49:22 +01:00
Yamagi Burmeister
eb4dc2b586 Cleanup turret and add sanity checks 2014-02-06 18:46:12 +01:00
Yamagi Burmeister
342c157e15 Cleanup tank and add sanity checks 2014-02-06 18:45:56 +01:00
Yamagi Burmeister
e77291f8c7 Cleanup supertank and add sanity checks 2014-02-06 18:42:23 +01:00
Yamagi Burmeister
cb95ec45a0 Cleanup stalker and add sanity checks 2014-02-06 18:42:06 +01:00
Yamagi Burmeister
f10b7137ff Cleanup soldier and add sanity checks 2014-02-06 18:41:49 +01:00
Yamagi Burmeister
af65bf67e0 Cleanup parasite and add sanity checks 2014-02-05 19:46:50 +01:00
Yamagi Burmeister
8bf6b098b2 Cleanup mutant and add sanity checks 2014-02-05 19:46:32 +01:00
Yamagi Burmeister
ea8149e344 Cleanup player animations 2014-02-05 19:46:18 +01:00
Yamagi Burmeister
93b666e830 Cleanup move.c and add sanity checks 2014-02-05 19:45:59 +01:00
Yamagi Burmeister
817cb17c10 Cleanup medic and add sanity checks 2014-02-05 19:45:37 +01:00
Yamagi Burmeister
f13744b79e Cleanup insane and add sanity checks 2014-02-05 19:43:50 +01:00
Yamagi Burmeister
b123f6870d Cleanup infantry and add sanity checks 2014-02-05 19:43:26 +01:00
Yamagi Burmeister
cc4c996cd5 Cleanup hover and add sanity checks 2014-02-04 17:32:13 +01:00
Yamagi Burmeister
c9f4d792f9 Cleanup gunner and add sanity checks 2014-02-04 17:31:41 +01:00
Yamagi Burmeister
a3eb6b72aa Cleanup gladiator and add sanity checks 2014-02-04 17:31:19 +01:00
Yamagi Burmeister
08e453217d Cleanup flyer and add sanity checks 2014-02-04 17:29:42 +01:00
Yamagi Burmeister
73899ec20c Cleanup floater and add sanity checks 2014-02-04 17:29:21 +01:00
Yamagi Burmeister
e2edf54062 Cleanup flipper and add sanity checks 2014-02-04 17:29:01 +01:00
Yamagi Burmeister
d3710d28e1 Cleanup chick and add sanity checks 2014-02-03 17:51:47 +01:00
Yamagi Burmeister
9e61cdfc45 Cleanup carrier and add sanity checks 2014-02-03 17:51:27 +01:00
Yamagi Burmeister
21948786d0 Cleanup brain and add sanity checks 2014-02-03 17:50:12 +01:00
Yamagi Burmeister
a12497536f Cleanup boss3 and add sanity checks 2014-02-03 17:49:44 +01:00
Yamagi Burmeister
134d6008c1 Cleanupo boss2 and add sanity checks 2014-02-03 17:48:44 +01:00
Yamagi Burmeister
2c05b79e46 Cleanup berserker and add sanity checks 2014-02-03 17:48:26 +01:00
Yamagi Burmeister
d97357f177 Remove actor
The actor was a special "monster" used für simulating NPC. It was never
fully implemented and therefor disfunctional. Thus it was never used in
any map. Remove it like done in baseq2 and xatrix.
2014-02-02 18:40:34 +01:00
Yamagi Burmeister
83e9c55ab5 Cleanup local.h 2014-02-02 18:17:27 +01:00
Yamagi Burmeister
777e939e8c Cleanup game.h 2014-02-02 18:14:54 +01:00
Yamagi Burmeister
daefddcf6b Add file headers
With this commit the game logic is cleaned up. Coop spawnpoint cleanup
is still missing, it'll be done at a later time. While not completely
finshed, rogue should alread run much more stable than the unmodified
code. Please note, that this is still untested! Headers are next,
monsters will be done after that.
2014-01-30 18:33:36 +01:00
Yamagi Burmeister
3f70140b56 Cleanup tag.c and add sanity checks 2014-01-30 18:20:59 +01:00
Yamagi Burmeister
19ae368fef Cleanup ball.c and add sanity checks 2014-01-30 18:20:59 +01:00
Yamagi Burmeister
6bb515a5e3 Cleanup weapon.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
676f6c5f25 Cleanup view.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
91393ab581 Cleanup trail.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
174a7b42bc Cleanup hud.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
d8c6aae783 Cleanup client.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
79eb5c8c09 Cleanup g_weapon.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
dd6503a780 Cleanup g_utils.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
2f89dd8382 Cleanup g_turret.c and add sanity checks 2014-01-30 18:20:53 +01:00
Yamagi Burmeister
695d83441e Cleanup g_trigger.c and add sanity checks 2014-01-30 18:20:52 +01:00
Yamagi Burmeister
811e038971 Cleanup g_target.c and add sanity checks 2014-01-30 18:20:52 +01:00
Yamagi Burmeister
3be19fed3a Cleanup g_svcmds.c and add sanity checks 2014-01-30 18:20:52 +01:00
Yamagi Burmeister
a81e7e6bf7 Cleanup g_sphere.c and add sanity checks 2014-01-30 18:20:52 +01:00
Yamagi Burmeister
ef791c82c1 Cleanup src/g_spawn.c and add sanity checks 2014-01-30 18:20:52 +01:00
Yamagi Burmeister
b417093ec8 Cleanup g_phys.c and add sanity checks 2014-01-30 18:20:52 +01:00
Yamagi Burmeister
027fccbfe4 Cleanup gnewweap.c and add sanity checks 2014-01-30 18:20:44 +01:00
Yamagi Burmeister
762208bceb Cleanup g_newtrig.c and add sanity checks 2014-01-26 16:16:23 +01:00
Yamagi Burmeister
b81736eece Cleanup g_newtarg.c and add sanity checks 2014-01-26 16:12:23 +01:00
Yamagi Burmeister
4816a3ae03 Cleanup g_newfnc.c and add santiy checks 2014-01-26 16:06:06 +01:00
Yamagi Burmeister
579b6cc413 Cleanup g_newdm.c and add sanity checks. 2014-01-26 15:58:17 +01:00
Yamagi Burmeister
2d2c7e8222 Cleanup g_newai.c and add sanity checks 2014-01-26 15:53:04 +01:00
Yamagi Burmeister
d1e914778e Cleanup g_monster.c and add sanity checks 2014-01-26 11:34:15 +01:00
Yamagi Burmeister
e47f955256 Cleanup g_misc.c and add sanity checks 2014-01-26 11:13:50 +01:00
Yamagi Burmeister
be4d838f45 Cleanup g_main.c and add sanity checks 2014-01-26 10:20:06 +01:00
Yamagi Burmeister
ea9bd331ff Cleanup g_item.c and add sanity checks 2014-01-23 19:31:39 +01:00
Yamagi Burmeister
b3be15b91b Cleanup g_func.c and add sanity checks 2013-05-01 15:35:01 +02:00
Yamagi Burmeister
bacd021882 Cleanup g_combat.c and add sanity checks 2013-05-01 13:39:08 +02:00
Yamagi Burmeister
0a471ec8d8 Cleanup g_cmds.c and add sanity checks 2013-05-01 10:43:49 +02:00
Yamagi Burmeister
7dc2b023e9 Cleanup g_chase.c and add sanity checks 2013-05-01 10:28:42 +02:00
Yamagi Burmeister
8a89578a2d Cleanup g_ai.c and add sanity checks 2013-05-01 10:25:53 +02:00
Joshua Scoggins
49288378bf Added the sparc64 ARCH tag to savegame.c 2012-11-30 20:59:47 -08:00
Joshua Scoggins
b741f8adb1 Added OpenBSD and MacOS X support to savegame.c 2012-11-30 20:59:07 -08:00
Joshua Scoggins
16e11b2ae4 Added an ia64 ARCH string to savegame.c 2012-11-30 20:45:48 -08:00
Yamagi Burmeister
8dc6640a7e Initialize variable "blindfire"
Found by Clang 4.2 SVN.
2012-11-08 08:13:02 +01:00
Daniel Gibson
ee209d649c Remove bad check from door_use()
It was added in ec3ceb2696
2012-10-18 22:24:00 +02:00
Yamagi Burmeister
cb9736d97c Fix warnings, enable a clean Windows build 2012-06-30 21:08:08 +02:00
Yamagi Burmeister
2482849546 Add platform defines for windows 2012-06-27 14:54:27 +02:00
Yamagi Burmeister
e341087a80 Port randk() from baseq2 2012-06-27 14:34:56 +02:00
Yamagi Burmeister
6aeeda2a9d Fix possible division by zero 2012-06-27 14:24:26 +02:00
Yamagi Burmeister
ec3ceb2696 Remove dead code 2012-06-27 14:20:58 +02:00
Yamagi Burmeister
b4363080c7 Added a CHANGELOG 2011-12-08 11:02:36 +00:00
Yamagi Burmeister
489ab02814 Rearrange source and rework Makefile 2011-10-11 11:40:43 +00:00
Yamagi Burmeister
d1c7849ef1 Port the new savegame system from quake 2 2011-10-11 10:53:48 +00:00
Yamagi Burmeister
e4b136c168 Calculate a real bounding box for rotating entities 2011-10-11 08:02:37 +00:00
Yamagi Burmeister
4e31aed406 Fix the crash when too much debris or gib is thrown 2011-10-11 07:58:53 +00:00
Yamagi Burmeister
5acee518b5 Make static functions non-static 2011-10-11 07:48:50 +00:00
Yamagi Burmeister
ab796d18ed Initialize some variables 2011-07-02 08:35:07 +00:00
Yamagi Burmeister
08340b71b1 Behebt einen potentiellen Nullpointer beim Herausfinden, ob der Spieler
vor einem Monster steht.
2011-01-23 14:40:50 +00:00
Yamagi Burmeister
ae3ae9e72c - Prüfe ob "run" im Target-Code NULL ist
- Prüfe ob "plane" beim Anheften der Proxy-Mine NULL ist
2010-12-27 15:47:09 +00:00
Yamagi Burmeister
5af197b73c Ändere einige Details in der Ausgabe der Spiele 2010-10-27 13:33:37 +00:00
Yamagi Burmeister
f6365b98b7 Der gleiche cl_gun == 2 und fov > 91 Fix wie im Hauptspiel für CTF und
beide Addons.
2010-01-28 20:59:40 +00:00
Yamagi Burmeister
f171e29266 No-Op Änderung. Entfernt sinnlosen Code 2010-01-28 16:57:21 +00:00
Yamagi Burmeister
8f7debb1e6 So, nun explodieren auch die Teslas wieder in der Lava. Den
Prixymine-Bug haben wir sogar noch ein wenig eleganter gefixt
2010-01-05 09:39:31 +00:00
Yamagi Burmeister
57fa438154 Okay, eine andere Lösung. Bei der vorherigen explodierten die Proxys
leider nicht, wenn man sie in Lava warf
2010-01-05 09:23:28 +00:00
Yamagi Burmeister
23862f340a Dies fixt einen sehr seltenen Crash bei exzessiver Nutzung des
Proxymine-Launchers
2010-01-05 09:14:39 +00:00
Yamagi Burmeister
7416156ad3 Den Gunner repariert 2009-04-08 17:50:41 +00:00
Yamagi Burmeister
920ea02401 Der dumme Stalker klebt nun wieder an der Decke 2009-04-05 10:48:21 +00:00
Yamagi Burmeister
06e66057c3 Animationen der Infantry korrigiert 2009-04-03 11:07:39 +00:00
Yamagi Burmeister
3cf9b066c6 Überflüssige ifdef entfernt 2009-03-31 15:25:16 +00:00
Yamagi Burmeister
597a7ca7ec Baut nun fehlerfrei 2009-03-31 15:11:03 +00:00
Yamagi Burmeister
4cd96d7fb4 Mkay, nun startet er wieder 2009-03-31 13:01:57 +00:00
Yamagi Burmeister
8be94c74b6 Und weitere Änderungen 2009-03-31 12:48:29 +00:00
Yamagi Burmeister
99073edce7 Die meisten Moster 2009-03-31 12:36:47 +00:00
Yamagi Burmeister
f7e666ddaf Das behebt den Teslacrash 2009-03-31 11:17:05 +00:00
Yamagi Burmeister
e28b86fd81 Die Spiellogik aufgeräumt. Funktioniert auch, man sollte aber besser
nicht auf ausgelegte Teslaspulen schießen.
2009-03-31 10:59:11 +00:00
Yamagi Burmeister
7f1e2a0af6 Und weiter aufgeräumt 2009-03-31 09:18:35 +00:00
Yamagi Burmeister
ebfd333fab g_ai.c aufgeräumt 2009-03-30 14:11:48 +00:00
Yamagi Burmeister
2f70ee701a g_local.h aufgeräumt und die Makros dort korrigiert 2009-03-30 14:04:28 +00:00
Yamagi Burmeister
b6f3898533 Mal angefangen aufzuräumen 2009-03-30 12:59:22 +00:00
Yamagi Burmeister
00467e1c25 Eine Makefile für rogue 2009-03-30 12:48:38 +00:00
Yamagi Burmeister
ae4db9289f Gorund zero eingefügt 2009-03-12 20:03:41 +00:00