neverball
13 years agospeedbumps.map: moved trim to top of platforms as per rlks comments in svn wiki for...
tonesfrommars [Wed, 5 Jan 2011 06:34:46 +0000 (06:34 +0000)]
speedbumps.map: moved trim to top of platforms as per rlks comments in svn wiki for texturing consistency with rest of easy set

git-svn-id: https://s.snth.net/svn/neverball/trunk@3411 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix requirement to pad descriptions with empty lines
parasti [Mon, 3 Jan 2011 16:05:36 +0000 (16:05 +0000)]
Fix requirement to pad descriptions with empty lines

(Thanks to penma for the reminder.)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3407 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agocurved.map- make underside of wings glass-dark for visibility in speed runs
tonesfrommars [Sun, 2 Jan 2011 21:42:45 +0000 (21:42 +0000)]
curved.map- make underside of wings glass-dark for visibility in speed runs

git-svn-id: https://s.snth.net/svn/neverball/trunk@3406 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agooops, adding timer-test_2.map
tonesfrommars [Thu, 30 Dec 2010 19:18:52 +0000 (19:18 +0000)]
oops, adding timer-test_2.map

git-svn-id: https://s.snth.net/svn/neverball/trunk@3404 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoadding new timer test to misc set
tonesfrommars [Thu, 30 Dec 2010 19:16:54 +0000 (19:16 +0000)]
adding new timer test to misc set

git-svn-id: https://s.snth.net/svn/neverball/trunk@3403 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMove key event handling into functions just for readability
parasti [Wed, 29 Dec 2010 21:24:11 +0000 (21:24 +0000)]
Move key event handling into functions just for readability

git-svn-id: https://s.snth.net/svn/neverball/trunk@3402 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix missing switch breaks for key-up events
parasti [Wed, 29 Dec 2010 18:33:09 +0000 (18:33 +0000)]
Fix missing switch breaks for key-up events

OTOH, it went unnoticed for three years, so why bother.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3401 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoblue-wave.png: corrected RGB profile
tonesfrommars [Wed, 22 Dec 2010 20:13:59 +0000 (20:13 +0000)]
blue-wave.png: corrected RGB profile

git-svn-id: https://s.snth.net/svn/neverball/trunk@3399 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agocorrected some grammatical errors and english idioms in mym level intro texts
tonesfrommars [Mon, 20 Dec 2010 07:19:59 +0000 (07:19 +0000)]
corrected some grammatical errors and english idioms in mym level intro texts

git-svn-id: https://s.snth.net/svn/neverball/trunk@3398 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agohardrise.map: Texture fix
elviz [Mon, 20 Dec 2010 05:13:34 +0000 (05:13 +0000)]
hardrise.map: Texture fix

git-svn-id: https://s.snth.net/svn/neverball/trunk@3397 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agochanged texture under slope in hardrise.map to glass-dark for minimized view obstruction
tonesfrommars [Sun, 19 Dec 2010 22:25:51 +0000 (22:25 +0000)]
changed texture under slope in hardrise.map to glass-dark for minimized view obstruction

git-svn-id: https://s.snth.net/svn/neverball/trunk@3396 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoaligned danger texture in my level turn.map
tonesfrommars [Sat, 18 Dec 2010 20:47:03 +0000 (20:47 +0000)]
aligned danger texture in my level turn.map

git-svn-id: https://s.snth.net/svn/neverball/trunk@3395 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFactor out one more widget
parasti [Sat, 18 Dec 2010 20:07:36 +0000 (20:07 +0000)]
Factor out one more widget

git-svn-id: https://s.snth.net/svn/neverball/trunk@3394 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFactor out common state code in conf screen
parasti [Sat, 18 Dec 2010 20:07:26 +0000 (20:07 +0000)]
Factor out common state code in conf screen

git-svn-id: https://s.snth.net/svn/neverball/trunk@3393 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMake a separate screen for video settings
parasti [Sat, 18 Dec 2010 20:07:11 +0000 (20:07 +0000)]
Make a separate screen for video settings

git-svn-id: https://s.snth.net/svn/neverball/trunk@3392 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFactor out common widgets in conf screen
parasti [Sat, 18 Dec 2010 20:07:00 +0000 (20:07 +0000)]
Factor out common widgets in conf screen

git-svn-id: https://s.snth.net/svn/neverball/trunk@3391 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRename the "ball" option to "ball model" in conf screen
parasti [Sat, 18 Dec 2010 20:06:46 +0000 (20:06 +0000)]
Rename the "ball" option to "ball model" in conf screen

git-svn-id: https://s.snth.net/svn/neverball/trunk@3390 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoDetermine the parent screen of resolution conf screen dynamically
parasti [Sat, 18 Dec 2010 20:06:36 +0000 (20:06 +0000)]
Determine the parent screen of resolution conf screen dynamically

git-svn-id: https://s.snth.net/svn/neverball/trunk@3389 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove some redundant variables
parasti [Sat, 11 Dec 2010 00:20:07 +0000 (00:20 +0000)]
Remove some redundant variables

git-svn-id: https://s.snth.net/svn/neverball/trunk@3388 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFinalize the first update at server init, no point doing it later
parasti [Sat, 4 Dec 2010 20:43:42 +0000 (20:43 +0000)]
Finalize the first update at server init, no point doing it later

git-svn-id: https://s.snth.net/svn/neverball/trunk@3387 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix structure access beyond its lifetime
parasti [Mon, 29 Nov 2010 19:00:52 +0000 (19:00 +0000)]
Fix structure access beyond its lifetime

git-svn-id: https://s.snth.net/svn/neverball/trunk@3386 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoCall the standalone level 00, not 99
parasti [Mon, 29 Nov 2010 19:00:46 +0000 (19:00 +0000)]
Call the standalone level 00, not 99

Also very important.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3385 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoProvide default values for the %s and %l replacements in replay names
parasti [Mon, 29 Nov 2010 19:00:38 +0000 (19:00 +0000)]
Provide default values for the %s and %l replacements in replay names

git-svn-id: https://s.snth.net/svn/neverball/trunk@3384 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix an assertion failure due to a NULL sets array
parasti [Mon, 29 Nov 2010 19:00:32 +0000 (19:00 +0000)]
Fix an assertion failure due to a NULL sets array

Crashes the game when trying to save a replay for a standalone level.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3383 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPromote ad-hoc OS-to-VFS path translation function
parasti [Mon, 29 Nov 2010 19:00:25 +0000 (19:00 +0000)]
Promote ad-hoc OS-to-VFS path translation function

git-svn-id: https://s.snth.net/svn/neverball/trunk@3382 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoVery important optimization
parasti [Mon, 29 Nov 2010 19:00:16 +0000 (19:00 +0000)]
Very important optimization

git-svn-id: https://s.snth.net/svn/neverball/trunk@3381 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSlightly clean up ball/set.c
parasti [Sun, 28 Nov 2010 00:03:30 +0000 (00:03 +0000)]
Slightly clean up ball/set.c

git-svn-id: https://s.snth.net/svn/neverball/trunk@3380 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix score loader improperly reading player names with spaces
parasti [Sun, 28 Nov 2010 00:03:23 +0000 (00:03 +0000)]
Fix score loader improperly reading player names with spaces

git-svn-id: https://s.snth.net/svn/neverball/trunk@3379 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoDocument worldspawn keys "back" and "grad"
parasti [Thu, 25 Nov 2010 19:33:02 +0000 (19:33 +0000)]
Document worldspawn keys "back" and "grad"

Must have missed these.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3378 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdd level testing to the default build menu in Radiant
parasti [Thu, 25 Nov 2010 19:32:54 +0000 (19:32 +0000)]
Add level testing to the default build menu in Radiant

git-svn-id: https://s.snth.net/svn/neverball/trunk@3377 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoReimplement loading of standalone levels from the command line
parasti [Thu, 25 Nov 2010 19:32:45 +0000 (19:32 +0000)]
Reimplement loading of standalone levels from the command line

git-svn-id: https://s.snth.net/svn/neverball/trunk@3376 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix path separator finding in Windows
parasti [Thu, 25 Nov 2010 19:32:34 +0000 (19:32 +0000)]
Fix path separator finding in Windows

git-svn-id: https://s.snth.net/svn/neverball/trunk@3375 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove unused state structure member
parasti [Thu, 25 Nov 2010 19:32:27 +0000 (19:32 +0000)]
Remove unused state structure member

git-svn-id: https://s.snth.net/svn/neverball/trunk@3374 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdd a catch-all state for exiting the level
parasti [Thu, 25 Nov 2010 14:01:44 +0000 (14:01 +0000)]
Add a catch-all state for exiting the level

git-svn-id: https://s.snth.net/svn/neverball/trunk@3373 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMove include lines around
parasti [Thu, 25 Nov 2010 14:01:33 +0000 (14:01 +0000)]
Move include lines around

git-svn-id: https://s.snth.net/svn/neverball/trunk@3372 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMerge fall-out and time-out states
parasti [Wed, 24 Nov 2010 23:47:19 +0000 (23:47 +0000)]
Merge fall-out and time-out states

git-svn-id: https://s.snth.net/svn/neverball/trunk@3371 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoBump
parasti [Wed, 24 Nov 2010 14:47:01 +0000 (14:47 +0000)]
Bump

git-svn-id: https://s.snth.net/svn/neverball/trunk@3370 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agofixed errors in coin-pad-red-dark.png
tonesfrommars [Sun, 21 Nov 2010 20:51:09 +0000 (20:51 +0000)]
fixed errors in coin-pad-red-dark.png

git-svn-id: https://s.snth.net/svn/neverball/trunk@3369 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoadded texture coin-pad-red-dark
tonesfrommars [Sun, 21 Nov 2010 20:28:14 +0000 (20:28 +0000)]
added texture coin-pad-red-dark

git-svn-id: https://s.snth.net/svn/neverball/trunk@3368 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agopaths.map: Structure and texture fixes
elviz [Fri, 19 Nov 2010 12:21:23 +0000 (12:21 +0000)]
paths.map: Structure and texture fixes

git-svn-id: https://s.snth.net/svn/neverball/trunk@3367 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoDocument ENABLE_FS
parasti [Tue, 16 Nov 2010 22:00:58 +0000 (22:00 +0000)]
Document ENABLE_FS

git-svn-id: https://s.snth.net/svn/neverball/trunk@3366 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoImplement a stdio-based backend for the VFS (no archive support)
parasti [Tue, 16 Nov 2010 22:00:52 +0000 (22:00 +0000)]
Implement a stdio-based backend for the VFS (no archive support)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3365 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix fs_gets to return NULL on encountering EOF with no data read
parasti [Tue, 16 Nov 2010 22:00:43 +0000 (22:00 +0000)]
Fix fs_gets to return NULL on encountering EOF with no data read

git-svn-id: https://s.snth.net/svn/neverball/trunk@3364 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRewrite directory scanner to use linked lists
parasti [Tue, 16 Nov 2010 22:00:37 +0000 (22:00 +0000)]
Rewrite directory scanner to use linked lists

git-svn-id: https://s.snth.net/svn/neverball/trunk@3363 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSplit VFS into a backend-dependent and a backend-independent module
parasti [Tue, 16 Nov 2010 22:00:29 +0000 (22:00 +0000)]
Split VFS into a backend-dependent and a backend-independent module

git-svn-id: https://s.snth.net/svn/neverball/trunk@3362 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove unused path_resolve routine
parasti [Tue, 16 Nov 2010 22:00:21 +0000 (22:00 +0000)]
Remove unused path_resolve routine

git-svn-id: https://s.snth.net/svn/neverball/trunk@3361 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix time scaling relying on floating-point quirks
parasti [Fri, 12 Nov 2010 10:52:04 +0000 (10:52 +0000)]
Fix time scaling relying on floating-point quirks

(In other words, actually check what Nuncabola does there.)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3360 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix speed GUI not being greyed out on zero speed
parasti [Thu, 11 Nov 2010 21:34:23 +0000 (21:34 +0000)]
Fix speed GUI not being greyed out on zero speed

git-svn-id: https://s.snth.net/svn/neverball/trunk@3359 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoaccordian.map: Texture fixes
elviz [Thu, 11 Nov 2010 21:33:16 +0000 (21:33 +0000)]
accordian.map: Texture fixes

git-svn-id: https://s.snth.net/svn/neverball/trunk@3358 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agotitle.map: Removed misplaced chrome from glass bridge
elviz [Thu, 11 Nov 2010 19:44:06 +0000 (19:44 +0000)]
title.map: Removed misplaced chrome from glass bridge

git-svn-id: https://s.snth.net/svn/neverball/trunk@3357 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPort adjustable replay playback speed from Nuncabola
parasti [Thu, 11 Nov 2010 19:42:58 +0000 (19:42 +0000)]
Port adjustable replay playback speed from Nuncabola

git-svn-id: https://s.snth.net/svn/neverball/trunk@3356 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix inconsistent naming
parasti [Tue, 9 Nov 2010 16:02:58 +0000 (16:02 +0000)]
Fix inconsistent naming

git-svn-id: https://s.snth.net/svn/neverball/trunk@3354 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMove joystick-recentered tracking to share/state
parasti [Tue, 9 Nov 2010 15:50:56 +0000 (15:50 +0000)]
Move joystick-recentered tracking to share/state

git-svn-id: https://s.snth.net/svn/neverball/trunk@3353 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove obsolete input value conversion to/from short ints
parasti [Tue, 9 Nov 2010 15:50:43 +0000 (15:50 +0000)]
Remove obsolete input value conversion to/from short ints

git-svn-id: https://s.snth.net/svn/neverball/trunk@3352 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoUse normalized floats to represent joystick axis values
parasti [Tue, 9 Nov 2010 15:50:34 +0000 (15:50 +0000)]
Use normalized floats to represent joystick axis values

git-svn-id: https://s.snth.net/svn/neverball/trunk@3351 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix awkward requirement for non-zero joystick axis value in gui_stick
parasti [Tue, 9 Nov 2010 15:50:12 +0000 (15:50 +0000)]
Fix awkward requirement for non-zero joystick axis value in gui_stick

git-svn-id: https://s.snth.net/svn/neverball/trunk@3350 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdd a macro for copying strings to static arrays
parasti [Mon, 1 Nov 2010 13:41:08 +0000 (13:41 +0000)]
Add a macro for copying strings to static arrays

Yay for macros.
Yay for false sense of security.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3348 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove unused replay header field "goal enabled"
parasti [Mon, 1 Nov 2010 13:40:56 +0000 (13:40 +0000)]
Remove unused replay header field "goal enabled"

CMD_GOAL_OPEN in the first update handles this.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3347 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoClean up demo_play_init
parasti [Mon, 1 Nov 2010 13:40:49 +0000 (13:40 +0000)]
Clean up demo_play_init

git-svn-id: https://s.snth.net/svn/neverball/trunk@3346 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove commented out demo_rename_player body
parasti [Mon, 1 Nov 2010 13:40:40 +0000 (13:40 +0000)]
Remove commented out demo_rename_player body

git-svn-id: https://s.snth.net/svn/neverball/trunk@3345 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoClean up some macro defs and usage
parasti [Mon, 1 Nov 2010 13:40:33 +0000 (13:40 +0000)]
Clean up some macro defs and usage

git-svn-id: https://s.snth.net/svn/neverball/trunk@3344 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMostly switch from using level sequence numbers to level struct pointers
parasti [Mon, 1 Nov 2010 13:40:22 +0000 (13:40 +0000)]
Mostly switch from using level sequence numbers to level struct pointers

git-svn-id: https://s.snth.net/svn/neverball/trunk@3343 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMake write routines take ints, floats and shorts by value not by address
parasti [Mon, 1 Nov 2010 13:40:12 +0000 (13:40 +0000)]
Make write routines take ints, floats and shorts by value not by address

git-svn-id: https://s.snth.net/svn/neverball/trunk@3342 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPlug a couple of display list leaks
parasti [Mon, 1 Nov 2010 13:40:02 +0000 (13:40 +0000)]
Plug a couple of display list leaks

git-svn-id: https://s.snth.net/svn/neverball/trunk@3341 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoUndoing buggy fix 3339 on littlecones.map
mym [Mon, 1 Nov 2010 13:18:21 +0000 (13:18 +0000)]
Undoing buggy fix 3339 on littlecones.map

git-svn-id: https://s.snth.net/svn/neverball/trunk@3340 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agolittlecones.map: Removed an invisible edge (fixed by protonspring)
mym [Sat, 30 Oct 2010 10:29:48 +0000 (10:29 +0000)]
littlecones.map: Removed an invisible edge (fixed by protonspring)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3339 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix teleporter test stopping prematurely upon seeing an "inside" condition
parasti [Fri, 29 Oct 2010 22:32:49 +0000 (22:32 +0000)]
Fix teleporter test stopping prematurely upon seeing an "inside" condition

git-svn-id: https://s.snth.net/svn/neverball/trunk@3338 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoCorrectly check switch test return value in Neverputt
parasti [Fri, 29 Oct 2010 12:32:04 +0000 (12:32 +0000)]
Correctly check switch test return value in Neverputt

git-svn-id: https://s.snth.net/svn/neverball/trunk@3337 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix accidental switch/teleporter behavior changes
parasti [Fri, 29 Oct 2010 12:14:47 +0000 (12:14 +0000)]
Fix accidental switch/teleporter behavior changes

git-svn-id: https://s.snth.net/svn/neverball/trunk@3336 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoStop recording if game init failed
parasti [Thu, 28 Oct 2010 23:54:52 +0000 (23:54 +0000)]
Stop recording if game init failed

git-svn-id: https://s.snth.net/svn/neverball/trunk@3335 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPO update
parasti [Thu, 28 Oct 2010 23:50:14 +0000 (23:50 +0000)]
PO update

git-svn-id: https://s.snth.net/svn/neverball/trunk@3334 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoLoad the level even when the replay file could not be opened
parasti [Thu, 28 Oct 2010 23:50:02 +0000 (23:50 +0000)]
Load the level even when the replay file could not be opened

Also display a warning.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3333 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoshare/solid_all: clean up intersection tests
parasti [Thu, 28 Oct 2010 15:06:22 +0000 (15:06 +0000)]
share/solid_all: clean up intersection tests

git-svn-id: https://s.snth.net/svn/neverball/trunk@3332 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRevert "share/solid: wrap all structs with typedefs"
parasti [Thu, 28 Oct 2010 12:33:39 +0000 (12:33 +0000)]
Revert "share/solid: wrap all structs with typedefs"

This reverts r3328 by parasti.

Conflicts:

ball/game_client.c

git-svn-id: https://s.snth.net/svn/neverball/trunk@3331 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSlightly clean up game_run_cmd
parasti [Wed, 27 Oct 2010 17:46:00 +0000 (17:46 +0000)]
Slightly clean up game_run_cmd

git-svn-id: https://s.snth.net/svn/neverball/trunk@3329 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoshare/solid: wrap all structs with typedefs
parasti [Wed, 27 Oct 2010 17:45:52 +0000 (17:45 +0000)]
share/solid: wrap all structs with typedefs

Just cuz.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3328 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix repeated animation on return from replay save screen
parasti [Tue, 26 Oct 2010 14:18:05 +0000 (14:18 +0000)]
Fix repeated animation on return from replay save screen

git-svn-id: https://s.snth.net/svn/neverball/trunk@3327 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix simulation lockup when the ball gets pinched between solids
parasti [Tue, 26 Oct 2010 14:17:57 +0000 (14:17 +0000)]
Fix simulation lockup when the ball gets pinched between solids

git-svn-id: https://s.snth.net/svn/neverball/trunk@3326 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix undefined C usage
parasti [Mon, 25 Oct 2010 21:07:37 +0000 (21:07 +0000)]
Fix undefined C usage

Subtracting to before the first item in an array is apparently asking
for trouble even if I don't intend to use the value.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3325 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoCredits
parasti [Sat, 23 Oct 2010 18:53:42 +0000 (18:53 +0000)]
Credits

git-svn-id: https://s.snth.net/svn/neverball/trunk@3324 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdd a hack to work around path change problems
parasti [Fri, 22 Oct 2010 22:57:36 +0000 (22:57 +0000)]
Add a hack to work around path change problems

The path timing code is crap overall; it uses rounded floats for time
calculations that really should be exact, and path parts can change in
the middle of a time step. The latter causes visible problems on the
centrifuge test map; probably similar problems would be reproducible
for linear movement on a suitable map (perhaps a platform that quickly
descends at a constant speed over multiple path parts). Add a hack to
work around this by splitting movements if they'd continue over path
part changes.

From: Uoti Urpala

git-svn-id: https://s.snth.net/svn/neverball/trunk@3323 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoReorganize the main simulation loop
parasti [Fri, 22 Oct 2010 22:57:30 +0000 (22:57 +0000)]
Reorganize the main simulation loop

From: Uoti Urpala

git-svn-id: https://s.snth.net/svn/neverball/trunk@3322 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoImprove rotation behavior under constant centrifugal force
parasti [Fri, 22 Oct 2010 22:57:22 +0000 (22:57 +0000)]
Improve rotation behavior under constant centrifugal force

The ball had a tendency to slowly sink through walls when it was
"stably" leaning against them under centrifugal force. Rewrite
rotation calculations in a way that avoids this problem. There's still
at least one failure case though: when the path part of the rotating
body changes in the middle of the time step the result can be badly
off.

From: Uoti Urpala

git-svn-id: https://s.snth.net/svn/neverball/trunk@3321 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agocentrifuge.map: add a switch for the guard thwomp
parasti [Fri, 22 Oct 2010 16:39:59 +0000 (16:39 +0000)]
centrifuge.map: add a switch for the guard thwomp

git-svn-id: https://s.snth.net/svn/neverball/trunk@3320 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoHave just one rotation test map
parasti [Fri, 22 Oct 2010 16:22:34 +0000 (16:22 +0000)]
Have just one rotation test map

(Also remove obsolete ODE test map.)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3319 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoUpdate copyright headers
parasti [Thu, 21 Oct 2010 17:03:41 +0000 (17:03 +0000)]
Update copyright headers

git-svn-id: https://s.snth.net/svn/neverball/trunk@3318 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agowalk-the-plank.map: rename back to nostairs.map
parasti [Thu, 21 Oct 2010 14:36:49 +0000 (14:36 +0000)]
walk-the-plank.map: rename back to nostairs.map

(Who'd have thought that renaming a level would totally break all the
replays of that level...)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3317 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove "geometry" option
parasti [Wed, 20 Oct 2010 19:47:28 +0000 (19:47 +0000)]
Remove "geometry" option

git-svn-id: https://s.snth.net/svn/neverball/trunk@3316 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agowalk-the-plank.map: Updated contributor information
elviz [Mon, 18 Oct 2010 19:40:57 +0000 (19:40 +0000)]
walk-the-plank.map: Updated contributor information

git-svn-id: https://s.snth.net/svn/neverball/trunk@3315 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMerged newstairs branch
elviz [Fri, 15 Oct 2010 20:47:40 +0000 (20:47 +0000)]
Merged newstairs branch

git-svn-id: https://s.snth.net/svn/neverball/trunk@3314 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years ago[newstairs] walk-the-plank.map: Set Medium most-coins score to the sum of all coins...
elviz [Fri, 15 Oct 2010 15:16:19 +0000 (15:16 +0000)]
[newstairs] walk-the-plank.map: Set Medium most-coins score to the sum of all coins above the first goal

git-svn-id: https://s.snth.net/svn/neverball/branches/newstairs@3313 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years ago[newstairs] nostairs.map: Rename to walk-the-plank.map as suggested by parasti
elviz [Fri, 15 Oct 2010 14:58:52 +0000 (14:58 +0000)]
[newstairs] nostairs.map: Rename to walk-the-plank.map as suggested by parasti

git-svn-id: https://s.snth.net/svn/neverball/branches/newstairs@3312 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years ago[newstairs] New version of nostairs.map
elviz [Thu, 14 Oct 2010 21:12:09 +0000 (21:12 +0000)]
[newstairs] New version of nostairs.map

git-svn-id: https://s.snth.net/svn/neverball/branches/newstairs@3311 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoCreate branch for work on nostairs.map
elviz [Thu, 14 Oct 2010 21:04:39 +0000 (21:04 +0000)]
Create branch for work on nostairs.map

git-svn-id: https://s.snth.net/svn/neverball/branches/newstairs@3310 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix impact point computation result stored in the wrong variable
parasti [Thu, 14 Oct 2010 19:11:47 +0000 (19:11 +0000)]
Fix impact point computation result stored in the wrong variable

Thanks to uau for discovering this.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3309 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRevert "Pass linear body velocity to collision detection separately"
parasti [Thu, 14 Oct 2010 19:11:40 +0000 (19:11 +0000)]
Revert "Pass linear body velocity to collision detection separately"

This reverts r3227 by parasti.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3308 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoDefine gravity constants only once
parasti [Wed, 13 Oct 2010 21:16:37 +0000 (21:16 +0000)]
Define gravity constants only once

git-svn-id: https://s.snth.net/svn/neverball/trunk@3307 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agogoslow.map: Remove "Click to begin." intro text that made more sense in connection...
elviz [Sun, 10 Oct 2010 00:12:00 +0000 (00:12 +0000)]
goslow.map: Remove "Click to begin." intro text that made more sense in connection with the 1.4 level order

git-svn-id: https://s.snth.net/svn/neverball/trunk@3303 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoIdentify the 40.0 in mouse-to-tilt calculation
parasti [Fri, 8 Oct 2010 21:31:53 +0000 (21:31 +0000)]
Identify the 40.0 in mouse-to-tilt calculation

git-svn-id: https://s.snth.net/svn/neverball/trunk@3302 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdd cmd_free
parasti [Fri, 8 Oct 2010 15:20:25 +0000 (15:20 +0000)]
Add cmd_free

git-svn-id: https://s.snth.net/svn/neverball/trunk@3301 78b8d119-cf0a-0410-b17c-f493084dd1d7