Commit Graph

994 Commits

Author SHA1 Message Date
Allanis
769880c7ac [Remove] Some useless debugs. 2013-12-11 22:59:12 +00:00
Allanis
9a31850ce7 [Add] Actually chance system faction on planet addition/removal. 2013-12-11 22:57:48 +00:00
Allanis
8b1b6e2af0 [Add] Implemented fleet addition and removal! 2013-12-11 22:19:06 +00:00
Allanis
80c45c3067 [Add] Added propper unidiff cleanup. 2013-12-11 20:27:07 +00:00
Allanis
fdd5e930f5 [Add] First release of unidiff - Save changes to the universe in a diff format. 2013-12-10 22:51:00 +00:00
Allanis
b7ddccd309 [Fix] Fixed segmentation fault when system only has one planet with no factions. 2013-12-09 22:18:23 +00:00
Allanis
25660ff7d1 [Change] Everything now conforms to last nights cleanups. 2013-12-09 00:48:32 +00:00
Allanis
5a42e63e4a [Change] Major rewrite of space.c. Let's pray we don't have a ton of bugs. 2013-12-07 22:16:01 +00:00
Allanis
da4b261de7 [Change] Stop firing before starting to jump into hyperspace. 2013-12-06 20:59:24 +00:00
Allanis
4176b20749 [Add] Allow missions to interact with music subsystem. 2013-12-06 20:52:35 +00:00
Allanis
153f99553f [Fix] Some more fine tuning on missions. 2013-12-05 00:40:48 +00:00
Allanis
ad12c52cd0 [Add] Fourth mission in tutorial campaign. Also fixed a few bugs preventing campaign form working. 2013-12-04 22:04:05 +00:00
Allanis
fc1215e4ad [Fix] Fixed a few sound issues that have been around for some time. 2013-12-01 23:42:18 +00:00
Allanis
2f2143742a [Change] Let's also grey out secondary weapon when we are out of ammo. 2013-11-30 22:10:05 +00:00
Allanis
11bbd0854f [Change] Secondary weapon greys out when you can't use it again. 2013-11-29 20:55:41 +00:00
Allanis
66c0ef8d9f [Add] noidle state. 2013-11-28 02:46:45 +00:00
Allanis
8716d14016 [Add] Let's catch SIGTRAP too. 2013-11-26 19:32:27 +00:00
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