Commit Graph
33441 Commits
Author SHA1 Message Date
Jason Felds a8fe2634ca Do string validation before parsing.
...this is NOT the right place for this.

At some point, we need to either use std::stof directly
and/or just accept that we need to use exceptions.
2013-05-04 13:43:54 -04:00
Jason Felds fc2b198ce2 Optimization: no need to loop the whole vector.
Gotta love the back call.
2013-05-04 12:03:00 -04:00
Jason Felds f5c877cbb6 Replace StringToInt with the std version.
Again, RageUtil isn't the right home.
2013-05-04 11:59:25 -04:00
Jason Felds af3890f504 Add a comment to move this later.
We probably need a standard helper library.
2013-05-04 11:49:03 -04:00
Jason Felds 490327cf55 Remove the IntToString function, use std.
...this seriously didn't belong in Rage.
2013-05-04 11:22:10 -04:00
Jason Felds 07b9fb6da5 The big NULL replacement party part 6.
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds 28e5148dec The big NULL replacement party part 5.
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds 328c41eec0 The big NULL replacement party part 4.
...okay, not as big of a commit.
2013-05-03 23:24:23 -04:00
Jason Felds a3f37dc2b4 The big NULL replacement party part 3.
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds ba59dd1656 The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds 9f24627bf9 The big NULL replacement party part 1.
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.

And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Jason Felds b22a3bd3c4 I see no use in BaseClasses.
Anyone want to remove this?
2013-05-03 22:49:23 -04:00
Jason Felds a4798fbd5d Some Mac OS X fixes.
Joystick was more stubborn than it should have been.
2013-05-02 22:47:16 -04:00
Jason Felds dba1c7f69a Bring default's changes in.
Hopefully I also handled mac's arch_setup right.
2013-05-02 22:08:51 -04:00
Jason Felds 35f9b78481 Well...this works at least. 2013-05-02 22:06:23 -04:00
Jason Felds fe0c9f4c6f Revert "Loops with unused variables? Wonder why."
This reverts commit c3ae23939a.
2013-05-02 21:48:32 -04:00
Jason Felds 9607f013a0 Revert "These should have been const to begin with."
This reverts commit 15dc12cd0e.
2013-05-02 21:45:13 -04:00
Jason Felds 8a1d137d05 Revert "Now I can apply const appropriately."
This reverts commit 15e9e1d1d4.
2013-05-02 21:44:51 -04:00
Jason Felds 3ac6a08fbe Revert "Loop...and const. Crap."
This reverts commit 4979bf3218.
2013-05-02 21:44:05 -04:00
Jason Felds 1083ffa8cd Another warning fixed.
...any reason why this is a pointer to a vector?
2013-05-02 20:19:37 -04:00
Jason Felds 001769b946 Address one unused warning warning.
...you know what that sentence should say.
2013-05-02 20:07:54 -04:00
Jason Felds c67419ecc8 There goes the macro file.
This is one of my bigger commits in this branch.

Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds b1ed735622 The non windows files. 2013-05-01 23:45:12 -04:00
Jason Felds 02d16ce574 Eww: quad loop. 2013-05-01 23:39:15 -04:00
Jason Felds d281bba0cd One loop for now. 2013-05-01 23:36:18 -04:00
Jason Felds cb6651f1fb Two more loops. 2013-05-01 23:35:15 -04:00
Jason Felds d64dd6721d Simple loop. 2013-05-01 23:34:38 -04:00
Jason Felds ac9a8373d2 Two loops simplified via range for syntax. 2013-05-01 23:33:43 -04:00
Jason Felds 015a433caa Loop dealing with pointers to functions? 2013-05-01 23:32:29 -04:00
Jason Felds 03d2d5da75 Lots of PlayerNumber style loops. 2013-05-01 23:31:37 -04:00
Jason Felds d225713f3d ...why is this in a header file? 2013-05-01 23:25:04 -04:00
Jason Felds f4bd0a879d Blasted iterator math. 2013-05-01 23:24:32 -04:00
Jason Felds 1707d5d044 Oh joy: THIS file.
Take advantage of auto whenever possible.
2013-05-01 23:23:08 -04:00
Jason Felds bf2f771fd1 More loops here. 2013-05-01 23:17:51 -04:00
Jason Felds 66ee0769cc These loops are handled. 2013-05-01 23:14:23 -04:00
Jason Felds 2baca75e2b Keep the comment...updated?
Should we just remove this?
2013-05-01 23:13:30 -04:00
Jason Felds fb66e2139f Some more loops. 2013-05-01 23:12:51 -04:00
Flameshadowxeroshin 78d5be779f Add metric [Gameplay] UseInternalScoring.
Turn it off to prevent the game from touching custom scoring stuff. It is by default on.
2013-05-01 22:11:27 -05:00
Jason Felds 596056b8c3 Loops and...auto actors?
I think we have a new candidate for smart pointers.

The built in kind that is.
2013-05-01 23:11:07 -04:00
Jason Felds a762a7c882 Simple loops. 2013-05-01 23:08:56 -04:00
Jason Felds fdda57beee Rage Sound is complicated. 2013-05-01 23:07:42 -04:00
Jason Felds b7c07d6fe6 Attempt to simplify some loops. 2013-05-01 23:05:43 -04:00
Jason Felds 9d237ae779 A non-windows loop. 2013-05-01 23:02:27 -04:00
Jason Felds 9d19421b7a Another simple one. 2013-05-01 23:01:55 -04:00
Jason Felds e61e09973a Simple loop. 2013-05-01 23:01:11 -04:00
Jason Felds 77e4c710c4 Good variety of loops. 2013-05-01 23:00:25 -04:00
Jason Felds d67a0fd1de Good variety of loops. 2013-05-01 22:51:50 -04:00
Jason Felds 33ca2a3410 Another old style one 2013-05-01 22:44:34 -04:00
Jason Felds 852e1cf8b0 Use the old style loops. 2013-05-01 22:43:42 -04:00
Jason Felds 45b1631e09 Another loop with deleting.
...unsure how maintained this file will be.
2013-05-01 22:42:24 -04:00