Commit Graph

1027 Commits

Author SHA1 Message Date
Allanis
58ee934426 [Change] Use SIGTRAP instead of assert for blowing up on errors. 2013-11-26 19:27:34 +00:00
Allanis
2a69789a24 [Add] Automagically give backtraces in DEBUG mode. 2013-11-26 18:23:50 +00:00
Allanis
39c7a4ecd5 [Fix?] Finally think I fixed it. The dialogue was being called when the weapons were being updated (hook on death) and the main_loop was being handled before the loop was destroyed. So another iteration of weapon_update was being run in the middle of the first one, causing a double weapon_destroy to be triggered. Moving the main_loop() in secondary_loop to the top so that the loop condition is run right after the event handling will solve this as an iteration won't be run in between dialogues. 2013-11-26 16:03:17 +00:00
Allanis
96587aac90 [Fix?] I think this might do it? 2013-11-26 15:55:42 +00:00
Allanis
03f20c5a25 [Fix?] Need second check to avoid segfault.. 2013-11-26 15:51:34 +00:00
Allanis
c8fe8e8eb8 [Fix?] Continue in switch case doesn't behave as I thought it did..... 2013-11-26 15:49:34 +00:00
Allanis
29f58fe1e4 [Fix?] FFS! Trying to delete a weapon that doesn't even exist! 2013-11-26 15:43:28 +00:00
Allanis
3fc6514861 [Fix] Bug in weapon system timers. 2013-11-26 15:36:27 +00:00
Allanis
01243e12e3 [Add] Lua logic for traders. 2013-11-26 15:07:41 +00:00
Allanis
6c4983120d [Fix] Segfault when having active missions. 2013-11-25 15:51:24 +00:00
Allanis
05b1d19e55 [Add] Added explosions, only being used on deaths right now. 2013-11-24 21:56:40 +00:00
Allanis
4e054e3cf4 Merge branch 'master' of github.com:Allanis/Lephisto 2013-11-23 22:44:02 +00:00
Allanis
b172453841 [Fix] Slight bug with loading mission variables. 2013-11-23 22:43:31 +00:00
Allanis
f626ac2ac6 [Fix] 32 bit compiler warnings. 2013-11-23 14:18:01 +00:00
Allanis
b831e311e6 [Change] Disable sound and music if fail to initiailize. [Add] Warn if SDL_Mixer version differs. 2013-11-23 02:23:13 +00:00
Allanis
e5d50254d2 [Add] Spit out warning if SDL major/minor versions differ. 2013-11-23 01:50:30 +00:00
Allanis
4eca6815bc [Add] Cute feature, game doesn't pause with death menu. 2013-11-21 12:55:04 +00:00
Allanis
1edbf5b944 [Add] Pilot:setFaction() added to Lua API. 2013-11-20 23:07:42 +00:00
Allanis
4038b56ac6 [Change] misn.timerStart() now uses milliseconds. 2013-11-20 22:57:51 +00:00
Allanis
0c238662c2 [Add] player.getPilot() to Lua API. 2013-11-20 20:56:38 +00:00
Allanis
47a8efa9ee [Add] Pilot:alive() and Pilot:broadcast() to Lua API. 2013-11-19 21:51:04 +00:00
Allanis
7344f88916 [Change] Apparently you can't have two parameters in __add, so made add synonymous (same with __sub). 2013-11-19 21:26:57 +00:00
Allanis
67cd35faa5 [Add] Function to get the player, for usage in mission stuff. 2013-11-19 21:24:19 +00:00
Allanis
4af334e5e4 [Fix] Mission timers should save and load properly now. 2013-11-18 23:30:16 +00:00
Allanis
6ad8d75d2d [Add] Mission timers added. 2013-11-17 14:58:33 +00:00
Allanis
1becd0d68a [Change] When creating a new pilot with pilot.add(), pretend to enter from hyperspace if we have a large distance from planet. 2013-11-17 14:28:03 +00:00
Allanis
87771ab892 [Fix] Pilot boarding hooks fixed. 2013-11-17 05:56:36 +00:00
Allanis
5d17f0e31d [Add] Added Planet:pos() and Vec2:dist() plus much more. 2013-11-17 02:55:03 +00:00
Allanis
ef19939647 [Add] Pilots can now have up to four hooks at any given time. 2013-11-16 20:13:31 +00:00
Allanis
2489949d30 [Fix] Clear velocity when doing Pilot:warp() 2013-11-16 19:10:32 +00:00
Allanis
d2067f9274 [Add] Pilots now use metatables. [Change] Moved Lua pilot stuff into it's own file. 2013-11-16 05:20:55 +00:00
Allanis
2f0d0384c1 [Add] pilot.clear() and pilot.togglespawn() to Lua API. 2013-11-14 18:48:04 +00:00
Allanis
c5cab45910 [Add] First 2D vector support for lua. 2013-11-14 05:01:25 +00:00
Allanis
49c1bd5b4e [Change] Removed dependancy of the spawn_timer on SDL_GetTicks(). 2013-11-13 02:42:23 +00:00
Allanis
a42c21da4e [Add] Pilot "jump" hook. 2013-11-12 00:42:31 +00:00
Allanis
5a87b2da77 [Change] MAJOR AI rehaul, split all the lua stuff into generic templates.
[Add] Bomber attack routines.
[Fix] Bug with AI forgetting about you if another enemy attacks.
2013-11-10 05:03:59 +00:00
Allanis
0d569ecc54 [Add] Improved ai.secondary to actually take ammo into account. 2013-11-09 05:49:03 +00:00
Allanis
9c2e35c472 [Add] pilot_getAmmo. 2013-11-09 00:23:57 +00:00
Allanis
e829e71347 [Change] Made ship_classFromString non-static. 2013-11-09 00:18:41 +00:00
Allanis
29ba80afba [Change] control_rate is now defined as a float. 2013-11-09 00:02:06 +00:00
Allanis
7bf8d63e00 [Add] Commodity land mission checks. 2013-11-07 23:10:01 +00:00
Allanis
4b64b1c185 [Add] Allow for faction logo's to be displayed. 2013-11-05 23:50:09 +00:00
Allanis
4b5f11ae28 [Add] Documented specail effects. 2013-11-01 19:27:18 +00:00
Allanis
9c9a7e07ca [Fix] Remove the outfit when you run out of ammo. 2013-10-30 21:50:44 +00:00
Allanis
18e4d9088c [Fix] Silly mistake in image array scrolling. 2013-10-29 20:44:34 +00:00
Allanis
9699b0ed10 [Add] Players shipyard now follows same style as noraml shipyard. 2013-10-28 14:53:05 +00:00
Allanis
3877884730 [Fix] Image arrays going out of sync. 2013-10-28 14:33:05 +00:00
Allanis
ca292cf791 [Add] Use image array for shipyard and made toolkit_getList apply to image array. 2013-10-27 16:00:23 +00:00
Allanis
ea6df25b0c [Change] outfit_getTech returns outfits instead of names. 2013-10-26 20:52:36 +01:00
Allanis
e955b58817 [Add] Significant inprovements to imageArray, including scrollwheel functionality. 2013-10-26 01:11:02 +01:00
Allanis
88c40143c2 [Add] Added image arrays to toolkit. 2013-10-25 01:51:23 +01:00
Allanis
3ffc858863 [Add] Documented Nebulae stuff. 2013-10-24 00:34:08 +01:00
Allanis
435be644cf [Fix] Few corrections in documentation. 2013-10-22 18:54:30 +01:00
Allanis
6764a1c424 [Add] Documented Player. 2013-10-22 18:42:17 +01:00
Allanis
2533dd816f [Add] Documented opengl stuff. 2013-10-22 18:29:07 +01:00
Allanis
3347a8b7cc [Add] Documented outfits. 2013-10-21 22:38:11 +01:00
Allanis
8d6160244d [Add] Documented menus. 2013-10-20 19:54:23 +01:00
Allanis
e70bfacdcd [Add] Documented weapons. [Fix] Input dialogues. 2013-10-20 18:24:03 +01:00
Allanis
d4b945aca7 [Add] Documented glColour. 2013-10-20 17:43:46 +01:00
Allanis
8fa9b389b1 [Add] Documentation for fonts. 2013-10-19 23:14:06 +01:00
Allanis
93fd1eef4d [Add] Player can abort hyperspaec jump sequence. 2013-10-15 23:38:49 +01:00
Allanis
2fdeecaefa [Fix] NAV computer should always be green when in hyperspace mode. 2013-10-15 00:44:21 +01:00
Allanis
a3f791e52f [Change] Tweaked fleet adding a little so it seems more natural. 2013-10-15 00:31:55 +01:00
Allanis
8198a2db77 [Add] Documentation for lfile.c 2013-10-12 18:33:55 +01:00
Allanis
673b83ea6a [Add] More doxygen along with some slight code cleaup. 2013-10-11 23:02:39 +01:00
Allanis
833283add0 [Add] Documentation for random number generations. 2013-10-10 20:34:58 +01:00
Allanis
8feb19e20c [Add] Pilots sort of start as landed. 2013-10-09 22:16:28 +01:00
Allanis
c2d4f39a72 [Add] Ships now have human readable class strings instead of numbers. 2013-10-08 19:34:48 +01:00
Allanis
b748f0f18e [Change] Seperated dialogues from toolkit. 2013-10-05 18:38:40 +01:00
Allanis
898b44b29d [Fix] Should compile in non-debug mode again. 2013-10-04 17:30:21 +01:00
Allanis
0231017e57 [Fix] Some long time snprintf mistakes. 2013-10-04 17:03:48 +01:00
Allanis
652d9352ad [Add] Qtcreator project support for the IDE users of the world. 2013-10-04 16:34:34 +01:00
Allanis
69b05ae150 [Change] No point playing sound for entering hyperspace range when already jumping. 2013-10-04 01:36:52 +01:00
Allanis
89fd3509e9 [Add] OHHHHHH YEAAAAHHHHH!!! You can sell your ships now ladies! 2013-10-04 01:34:05 +01:00
Allanis
e2b8e738f5 [Add] Sanity check to spfx_add() 2013-10-04 01:08:53 +01:00
Allanis
4cac5ba5b2 [Add] Beam weapons require spfx and proper spfx usage. 2013-10-04 01:07:12 +01:00
Allanis
1177685e62 [Fix] Beam stops moving if enemy got destroyed. 2013-10-04 00:02:33 +01:00
Allanis
4340b8042c [Change] Tweaked beam aggro chance somewhat. 2013-10-03 01:17:11 +01:00
Allanis
0ae6b8cecd [Fix] Killed startup warning about missing 'turn' element on non-turret beams. 2013-10-03 01:15:08 +01:00
Allanis
566e96505f [Add] Display sound driver on init plox. 2013-10-03 01:11:08 +01:00
Allanis
2cade50bc9 [Fix] Possible race condition and improved sound_exit correctness. 2013-10-03 01:08:38 +01:00
Allanis
62f7986459 [Change] Make the start of beam not be so abrupt. 2013-10-03 01:01:39 +01:00
Allanis
5bf8a0b689 [Add] Sound should be fully positional now. 2013-10-02 01:17:01 +01:00
Allanis
cc34292293 [Add] Actively ask for doublebuffering. 2013-10-01 22:26:51 +01:00
Allanis
ebdfaad9a7 [Add] Improved sound system considerably, not used properly yet. 2013-10-01 22:12:39 +01:00
Allanis
810e4afb28 [Fix] Just a few lame typos. 2013-10-01 00:13:03 +01:00
Allanis
6dd9de9835 [Fix] Some obscure bugs like not being able to shoot secondary weapons right away. 2013-09-30 22:43:33 +01:00
Allanis
090bcb96c8 [Add] You can now cancel beams as secondary weapon instead of having to hold shift. 2013-09-30 22:34:46 +01:00
Allanis
4d8b462359 [Add] First round to bring more control to beam weapons. 2013-09-30 22:29:53 +01:00
Allanis
70d4987a00 [Add] starting to add sound for beam weapons. Sound system could do with an overhaul tbh. 2013-09-29 21:25:59 +01:00
Allanis
1a03c08672 [Add] Documented joystick.c 2013-09-29 01:29:43 +01:00
Allanis
8516b33391 [Add] Beam weapons now render properly. 2013-09-25 20:45:14 +01:00
Allanis
f2144b1053 [Change] Fewer explosions with beam weapons. 2013-09-24 23:31:44 +01:00
Allanis
55bb07c560 [Add] More improvements for beam turrets, they also use energy properly now.
[Add] New outfit: Ragnorak beam.
2013-09-24 22:22:41 +01:00
Allanis
5832239b74 [Change] Render spfx in reverse order. 2013-09-24 21:35:24 +01:00
Allanis
71ab2d863f [Add] Added outfit states and beam hit function. Also added compile option for clang. 2013-09-23 22:59:01 +01:00
Allanis
06ea30d96e [Add] Beam weapons now use delay and duration. 2013-09-23 21:04:56 +01:00
Allanis
7030d97402 [Change] Some cleaning up and more documentation of outfit.* 2013-09-23 20:58:55 +01:00
Allanis
f0336e14af [Change] Improved some of the shooting handling. 2013-09-23 20:28:12 +01:00
Allanis
81fd657540 [Add] Documented board.c 2013-09-22 16:24:33 +01:00