3452 Commits

Author SHA1 Message Date
Jens Ayton
d7b77e5f39 Suppress warnings when building icosmesh under Linux (feature request #5254).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4166 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 21:21:48 +00:00
Jens Ayton
b050faa3b2 Experimental support for letting station scripts determine whether a ship is physically able to dock. Disabled because of collision detection problems with inactive docking ports.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4165 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 19:50:13 +00:00
Jens Ayton
30b50bd694 Cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4164 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 19:21:12 +00:00
Jens Ayton
adec267577 Fixed JS missionVariable enumerable, and made SystemInfo objects enumerable (so :d system.info works, for example).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4163 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 18:50:21 +00:00
Eric Walch
e4bc696ed7 - Added a cloakAutomatic ship property an a cloak_automatic shipkey. Default = yes
- GROUP_ATTACK_TARGET messages are now also send to escorts is the mother is part of a bigger group.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4162 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 18:14:33 +00:00
Nikos Barkas
7b8df93f45 Fixed miniature planets and demoships remaining on screen when a JS mission screen was started.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4161 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 17:10:33 +00:00
Jens Ayton
19f05aa8f2 Changed assertion on targeting a wormhole without a wormhole scanner to soft fallback behaviour, after a report in the forum. Possibly a recycled entity ID? Memo: entity IDs are evil.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4160 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-27 00:29:27 +00:00
Jens Ayton
1fabd05576 [Mac] jsautooplen.h and jsautokw.h are now actually automatically generated for ease of updating.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4159 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-26 17:49:05 +00:00
Jens Ayton
a749e59a43 Missing file.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4158 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-26 00:11:54 +00:00
Jens Ayton
f987fd0829 [Mac] Added Sparkle update support, finally.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4157 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 23:31:19 +00:00
Jens Ayton
019f71973e Further JavaScript streamlining.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4156 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 20:19:35 +00:00
Jens Ayton
4923976dcf Fix for something that builds in testrelease but not debug, for variation.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4155 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 20:08:12 +00:00
Jens Ayton
4270ec1eb1 JS Ship.prototype.equipmentStatus() now returns EQUIPMENT_UNKNOWN when passed a string that isn't a known equipment identifier.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4154 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 19:31:26 +00:00
Jens Ayton
aee2cacb23 Finished Clang run-through. One leak fixed, five messages remaining are accounted for. (Pity about the dozens in libnspr and libvorbis.)
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4153 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 19:17:55 +00:00
Jens Ayton
3289dfc9c5 More Clang Static Analyzer stuff. Fixed some potential junk accesses, asserted some previously-implicit assumptions.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4152 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 19:14:33 +00:00
Jens Ayton
40eb15a237 Going through Clang Static Analyzer messages. Some fixes, some cleanup. In particular, fixed leaks of planet texture generators.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4151 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-25 18:51:52 +00:00
Jens Ayton
1e37e0961a Simplifed OOJSScript so there's now One True method call interface.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4150 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 21:40:15 +00:00
Jens Ayton
c73749773e Only send guiScreenChanged() once when switching to shipyard screen.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4149 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 20:53:36 +00:00
Jens Ayton
ad400a23ac Yet more JS event handling reform.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4148 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 20:52:32 +00:00
Jens Ayton
9c99848716 More JS event handling reform.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4147 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 20:00:49 +00:00
Jens Ayton
5e26246215 Undid mess.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4146 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 19:40:55 +00:00
Jens Ayton
8fba230594 Ensure consistent definition of OO_NEW_JS.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4145 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 19:39:45 +00:00
Jens Ayton
2fba6d4acb Disabling counts_as_kill also suppresses q-bomb cascade.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4144 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 18:32:12 +00:00
Jens Ayton
37c5982f4a Added counts_as_kill shipdata key.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4143 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 18:14:01 +00:00
Jens Ayton
a9fda60269 Belatedly remembered that the whole multiple-JavaScript-context thing was a completely bogus hack to work around bad exception handling, and ripped it out for the slight simplicity win.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4142 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 17:17:43 +00:00
Jens Ayton
df33517045 Fix type mismatch.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4141 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 16:35:51 +00:00
Jens Ayton
ade28ce185 Work on reducing the number of object translations involved in script dispatch. Also, hid every single JS_BeginRequest()/JS_EndRequest() pair inside OOJavaScriptEngine by baking them into acquireContext and releaseContext:.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4140 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-24 16:28:46 +00:00
Jens Ayton
b368c831af Aforementioned oldjs shenanigans, now with usefulness.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4139 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 22:35:05 +00:00
Jens Ayton
babf28f15b Workaround for defective ObjC type checking in gnu-gcc.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4138 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 22:33:45 +00:00
Jens Ayton
19c2ad245a More oldjs shenanigans.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4137 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 22:29:49 +00:00
Jens Ayton
f48845621e "The F11 key, it does nothing!"
"You'll just have to use the Settings screen like everyone else."



git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4136 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 22:25:01 +00:00
Nikos Barkas
bd59902632 Fixed (hopefully - please verify correctness of fix) build breakage on Windows.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4135 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 21:57:36 +00:00
Jens Ayton
d1c880e315 Converters defined with DEFINE_JS_OBJECT_GETTER() now show up with their real name in profiles.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4134 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 21:20:00 +00:00
Jens Ayton
f27f1c23b2 Streamlined JSFunctionPredicate.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4133 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 21:11:27 +00:00
Jens Ayton
fa0161db70 oldjs fixage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4132 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 20:52:13 +00:00
Jens Ayton
b636e923ce Work on using jsids instead of strings to identify methods and properties, starting with the simple cases.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4131 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 20:43:56 +00:00
Jens Ayton
0aba4b0971 Removed support for changedScriptHandlers.plist.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4130 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 19:39:03 +00:00
Jens Ayton
4ef5f4a8b0 New JS method global.defaultFont.measureString().
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4129 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 18:24:52 +00:00
Jens Ayton
68c0a3c5b3 Build fixage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4128 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 17:48:46 +00:00
Jens Ayton
e5bcbdc5b7 Support for explicitly-sized overlays and backgrounds (bug #17201).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4126 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 17:06:26 +00:00
Jens Ayton
95b9116437 Infrastructure for specifying overlay/underlay height. Also fixed default value of runMissionScreen() spinModel setting.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4125 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 15:37:01 +00:00
Nikos Barkas
20687d8f71 Fixed SDL build warning (-recenterVirtualJoystick is a Mac-only method).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4124 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 14:39:41 +00:00
Jens Ayton
76630d9f2b Cleaned up some JavaScript object coersion stuff, and fixed a crasher in callObjC(). Oddly enough, this is work on bug #17201.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4123 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 14:39:27 +00:00
Jens Ayton
027dbea907 Renamed OpenGLSprite to OOTextureSprite for consistency.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4122 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 13:53:52 +00:00
Jens Ayton
15020e406a Implemented originalDimensions property for textures, indicating size of texture before any rescaling (as per bug #17201 part 1).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4121 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-23 13:51:11 +00:00
Jens Ayton
167045d36c Disabled nonsensical special case for NPC ships with custom missile launch positions inside the bounding box.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4120 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-22 20:40:57 +00:00
Jens Ayton
399e369606 Fixed default escort function (first four ships no longer try to fly inside mother).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4119 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-22 20:38:44 +00:00
Nikos Barkas
eafb5ffe2f Switching weapons off now deactivates turrets as well.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4118 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-22 15:25:31 +00:00
Jens Ayton
8bf132296c Support for Mac touchpad release events, and better windowed mouse control.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4117 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-22 14:14:46 +00:00
Jens Ayton
f99dd38018 Escort positions are now cached. Fixed copying of scripts under OS X.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4116 127b21dd-08f5-0310-b4b7-95ae10353056
2011-01-22 13:52:38 +00:00