Commit Graph
20749 Commits
Author SHA1 Message Date
John Bauer 1ea284e910 Using the || operator makes the operator< invalid, because the following is true:
("foo", "bar") < ("bar", "foo")    < is true for second string
("bar", "foo") < ("foo", "bar")    < is true for first string
We fix this by fully comparing one string, then trying the other one.
2006-10-19 23:17:42 +00:00
Jason Felds c4286ee6f3 Remove an old comment. 2006-10-19 05:01:53 +00:00
Jason Felds 386bbc23e2 Revert: need to start clean again perhaps. 2006-10-19 04:38:13 +00:00
Jason Felds 332183a78d Add pragma for warning C4652 under VC8. (Should this be pragmaed for all VC's?) 2006-10-19 04:16:09 +00:00
Glenn Maynard 8e8f0e192c EHa is "catch catches Windows exceptions". Use standard exception handling. 2006-10-18 20:24:25 +00:00
Glenn Maynard 9279081723 remove old backwards compatibility 2006-10-18 20:19:51 +00:00
Glenn Maynard 626c415c4d move assert 2006-10-18 20:11:11 +00:00
Glenn Maynard 508aaa2857 remove unused 2006-10-18 20:02:26 +00:00
Glenn Maynard 001a57c2e1 exchange one nonportable API for another, since newer Linux kernels changed their mind 2006-10-18 19:48:20 +00:00
Glenn Maynard f7f21e2b8c Replace PRNG with a standard MT.
RandomGen r; r(); now generates [0,2^31-1] on 32-bit platforms,
not [0,2^31-2].  No longer uses MAX_INT, so the default behavior
doesn't depend on the size of an int.

RandomInt no longer generates a float and truncates it.  That
limited the values that could be returned to those that fit in
a 32-bit float.

Remove NR code.  It's not free.

This code is not threadsafe.  Locking access would kill performance.
The old code wasn't, either.  I think most symptoms would be
innocuous enough to not worry about.
2006-10-18 02:28:06 +00:00
Glenn Maynard 08ca0d7721 hide RandomFloat(seed) interface
hide randseed
2006-10-18 01:46:15 +00:00
Glenn Maynard 697baec3c8 don't use RandomFloat(int*) interface; do this directly, since it
really does expect something like an LCG
2006-10-18 01:04:34 +00:00
Glenn Maynard 15d6f3b18f fix popping; note position can depend on the column 2006-10-18 01:03:00 +00:00
Glenn Maynard 82be487b07 iiiii 2006-10-17 22:24:16 +00:00
Glenn Maynard dfaaa18a03 s[s.size()] is probably always going to work, but probably isn't actually valid 2006-10-17 21:41:55 +00:00
Steve Checkoway 4ad2102387 Cleanup. 2006-10-17 10:00:18 +00:00
Glenn Maynard d8a75ce90e only one of sPath and sFullTitle may be set 2006-10-17 09:02:13 +00:00
Glenn Maynard b30163e157 private 2006-10-17 08:58:58 +00:00
Steve Checkoway b863eef79a Difficulty. Remove unused deprecated. 2006-10-17 08:41:33 +00:00
Glenn Maynard c7dff72292 PCRE 4.5 relicensed to standard BSD, like later versions
(with permission from Philip Hazel)
2006-10-17 08:34:03 +00:00
Steve Checkoway 64138f7894 Enums. 2006-10-17 08:22:47 +00:00
Steve Checkoway f0bf9264c2 static. 2006-10-17 08:14:45 +00:00
Glenn Maynard 99678eb50f PlayerNumber 2006-10-17 07:54:04 +00:00
Steve Checkoway 22720e8338 Use filename. 2006-10-16 10:34:20 +00:00
Steve Checkoway a19dad4716 Fix input crash and add text as subactors. 2006-10-16 10:16:47 +00:00
Steve Checkoway 156322028e Play name entry music. 2006-10-16 09:31:28 +00:00
Steve Checkoway ea383df3e1 Static. 2006-10-16 09:01:39 +00:00
Steve Checkoway 52e55b8efc Cleanup. This is done in the metrics with lua. 2006-10-16 08:47:15 +00:00
Steve Checkoway baa0c8e6c8 It does. RString( num, c ). 2006-10-16 08:44:12 +00:00
Steve Checkoway 59a7aee9b5 Use metrics. 2006-10-16 08:42:54 +00:00
Steve Checkoway 15a60d7f9d Once CurrentStringIndex is equal to MAX_RANKING_NAME_LENGTH, it isn't going to change so break. 2006-10-16 08:27:49 +00:00
Steve Checkoway d07dc2335a static. 2006-10-16 07:30:25 +00:00
Steve Checkoway 8d02fa3eb3 Cleanup. 2006-10-16 07:18:03 +00:00
Steve Checkoway 793c616f38 Simplify. 2006-10-16 04:53:48 +00:00
Steve Checkoway bffe668d00 Real unique names now. 2006-10-16 04:52:12 +00:00
Steve Checkoway 75564786d4 Generate a "unique" name based on line numbers. 2006-10-16 04:51:46 +00:00
Glenn Maynard ab4e4a39a4 fix PCH
fix folder nesting
2006-10-16 03:28:40 +00:00
Glenn Maynard 260ce8a472 allow coroutine.corunning to return the main thread
http://lua-users.org/lists/lua-l/2006-09/msg00751.html
2006-10-15 21:01:34 +00:00
Glenn Maynard 84dc84627b fix clean shutdown on abort (dtor order problem) 2006-10-15 20:50:27 +00:00
Steve Checkoway 4590dea0b3 Partial revert. Glenn knew what he was doing with lua_next(), even if I did not. =) 2006-10-15 08:47:31 +00:00
Glenn Maynard 1d5e21c778 old comment 2006-10-15 08:29:26 +00:00
Glenn Maynard cea3b4ef5e remove <Command> children. This was only used to generate
command names on the fly.  If you need that, use Lua, eg.:

Actor.Quad {
    [s .. "Command"] = cmd(x,10)
}
2006-10-15 08:28:11 +00:00
Glenn Maynard 3d7f268dae "Optional" attrib unused 2006-10-15 08:25:11 +00:00
Glenn Maynard 2cede5a421 for cases where we take a number as a boolean, accept a boolean
false as false (to transition away from numbers)
2006-10-15 08:17:35 +00:00
Steve Checkoway 28df192f43 Remove debugging. 2006-10-15 08:07:34 +00:00
Steve Checkoway c3eccabd98 foo? 2006-10-15 08:00:28 +00:00
Steve Checkoway 1948d57161 Simplify. 2006-10-15 07:51:38 +00:00
Steve Checkoway 335227c095 Nothing is pushed when lua_next() returns 0. 2006-10-15 07:39:16 +00:00
Glenn Maynard e3f3adc963 cleanup 2006-10-15 07:37:50 +00:00
Glenn Maynard 2ae28fb758 fix every top-level directory is scanned for courses 2006-10-15 07:30:58 +00:00