Commit Graph
100 Commits
Author SHA1 Message Date
Steve Checkoway f6edbc8a28 Only subscribe to PlayerJoined a single time. 2009-01-05 07:00:49 +00:00
Steve Checkoway a15f9e4968 Add IsSubscribedToMessage() 2009-01-05 07:00:29 +00:00
Steve Checkoway dbca9eedf6 Revert. IF is a macro, if is a conditional statement. Furthermore, casting to an unsigned 32 bit integer on a 64 bit machine causes the the x<0 to always be false. But since there is a comma, the "bad integer" was evaluating to a nonzero address and so the conditional was always true and the empty statement would be executed. That is wrong. 2009-01-05 06:17:44 +00:00
Steve Checkoway d4209f54ce We have inttypes.h and we want the standard format macros. 2008-12-27 01:17:49 +00:00
Steve Checkoway 382dad70a1 On a 64 bit machines, uint32_t is promoted to unsigned int when compared with 0 and cannot ever be negative. cast it to int32_t first to force sign extension when comparing with 0. 2008-12-26 23:28:04 +00:00
Steve Checkoway 19e1c8bb4e Fix format strings. 2008-12-26 23:23:18 +00:00
Steve Checkoway 2258f21c2d Include inttypes.h, if we have it, and use the standard format macro PRIi64 if it is defined. 2008-12-26 23:21:20 +00:00
Steve Checkoway fc59d1f853 Constant format string. 2008-12-26 13:24:00 +00:00
Steve Checkoway b19f2fba56 Comparison is always false on x86_64. 2008-12-26 13:00:35 +00:00
Steve Checkoway 0132ef996b Fix possible crash with non constant format string. 2008-12-26 12:59:04 +00:00
Steve Checkoway fa7d3e5141 The first of these was correct, the second was actually incorrect, so fix and simplify. 2008-12-26 12:57:13 +00:00
Steve Checkoway 595a0f85d8 Gcc assumes that I do not know order of operation of && and ||, so add parentheses to silence warnings. 2008-12-26 12:37:29 +00:00
Steve Checkoway 45c642ec28 Fix issues on x86_64 where unsigned is not large enough to hold RString::npos and so the comparison is always false. Gcc would have been free to optimize that away. Not sure if it did or not. 2008-12-26 12:34:46 +00:00
Steve Checkoway a6b0a78d98 Use constant format string. 2008-12-26 12:33:29 +00:00
Steve Checkoway ef7749175e Initialize in the correct order. 2008-12-26 12:32:48 +00:00
Steve Checkoway 05a5a33cda Initialize in the correct order. 2008-12-26 12:32:14 +00:00
Steve Checkoway 436f6f48ec Initialize in the correct order. 2008-12-26 12:31:57 +00:00
Steve Checkoway b831f1d405 Without the do, this is a block followed by the no op statement "while(false){}". The breaks were thus breaking out of the outer loop. 2008-12-26 12:30:49 +00:00
Steve Checkoway 887174fcd3 Make sure all of the crash data is written. Also silences annoying gcc warning. execve takes char *const[] as arguments so copy magic parameter. I think that is a standards bug, personally. 2008-12-26 12:23:34 +00:00
Steve Checkoway 7f2d87315d Er, actually doing it correctly this time. 2008-12-26 12:11:00 +00:00
Steve Checkoway a92c75880a Handle failed and partial writes correctly. 2008-12-26 12:07:29 +00:00
Steve Checkoway 97024035e8 Fix spacing issues. Who wrote this code? Why is there no copyright? 2008-12-26 12:03:06 +00:00
Steve Checkoway 70be48e225 Fix possible crash converting to RString. 2008-12-26 11:51:03 +00:00
Steve Checkoway e47215222d Fix warning. 2008-12-26 11:48:20 +00:00
Steve Checkoway 0c83062440 Fix warnings about untested return value for system and nonconstant format string with no arguments for Throw. 2008-12-26 11:46:47 +00:00
Steve Checkoway e57268a9a9 Make ffmpeg stop complaining. 2008-12-26 11:38:47 +00:00
Steve Checkoway dc144f9ad0 Silence warning by doing something with the return value. 2008-12-26 11:36:21 +00:00
Steve Checkoway 8f46ca3b0c Fix warning on x86_64. 2008-12-26 11:11:48 +00:00
Steve Checkoway f630359630 Fix lua error. 2008-12-26 08:52:22 +00:00
Steve Checkoway af4c632f26 Pass PlayerNumber argument. 2008-12-26 08:51:52 +00:00
Steve Checkoway 1509d09ad4 Check that there is actually an argument at that position before attempting to do something with it. 2008-12-26 08:50:47 +00:00
Steve Checkoway a0d35509d3 Add gamma to release. 2008-12-26 03:51:35 +00:00
Steve Checkoway bd1284d43c Add new mac models, used for debug info. It would be really handy if this information could be gotten programatically. 2008-12-26 03:41:54 +00:00
Steve Checkoway c4b751ef02 Unnecessary includes. 2008-12-23 02:46:50 +00:00
Steve Checkoway 264121edb8 Remove BLAS stuff. These matrices are too small for this to be useful. 2008-12-23 02:42:10 +00:00
Steve Checkoway 902169718f Only grab the main display when going full screen. You cannot really interact with the other screens while in full screen, but you can at least see them. 2008-12-23 02:40:26 +00:00
Steve Checkoway 0624f2f207 Fix duplicate symbol link error. 2008-12-05 01:02:55 +00:00
Steve Checkoway c13b0bcb4a Missed one 64 bit to 32 bit conversion. 2008-11-24 07:55:11 +00:00
Steve Checkoway dacca25190 Silence gcc warnings by making explicit the cast from 64 bits to 32 bits. 2008-11-24 07:53:47 +00:00
Steve Checkoway 0efbd42aa3 Make explicit the conversion from 64 bits to 32 bits. In the case of files, perhaps we should be using an appropriate type such as off_t rather than int. I am not sure if anyone would actually want to use files larger than 2 GB with SM, but it seems possible while using .smzip. 2008-11-24 07:52:55 +00:00
Steve Checkoway d4f95e3cec Make this nonfatal except for debug builds. 2008-10-06 08:19:38 +00:00
Steve Checkoway 3be86da9b6 Remove debugging. 2008-10-06 08:10:47 +00:00
Steve Checkoway f364425674 Do not try to localize server names. 2008-10-06 08:09:58 +00:00
Steve Checkoway b01bc37053 Debugging. 2008-10-06 07:54:26 +00:00
Steve Checkoway 28730a1f3f Add temp debugging. 2008-10-06 07:27:58 +00:00
Steve Checkoway d8045f0994 Assert that text can be created. 2008-10-06 06:41:39 +00:00
Steve Checkoway 510daea1de Quiet noisy trace. Input problems were (probably) not SM's fault. 2008-10-06 06:10:55 +00:00
Steve Checkoway ab3ec3cf2f Fix potential, but unlikely memory leak. 2008-10-05 09:41:20 +00:00
Steve Checkoway c4cb740e3a Fix comment. 2008-10-05 09:32:09 +00:00
Steve Checkoway 46fbd1dce6 Not needed...I think. 2008-10-05 09:29:30 +00:00
Steve Checkoway a060bd33cb Log a successful device open. 2008-10-05 09:18:54 +00:00
Steve Checkoway f525c5ca8d Fix logging. Also fix typo. 2008-10-05 08:54:10 +00:00
Steve Checkoway 5fc76284c1 Log actually adding to the queue. 2008-10-05 08:53:19 +00:00
Steve Checkoway c4d53c94b1 Fix typo. 2008-10-05 08:35:38 +00:00
Steve Checkoway 5e7ea06c5f Use IOHIDElementCookie which is really a void* rather than int. 2008-10-05 08:25:31 +00:00
Steve Checkoway 05d91fe025 Add noisy logging. 2008-10-05 07:41:37 +00:00
Steve Checkoway 93c649d33d Warn if addElement fails. 2008-10-05 07:31:21 +00:00
Steve Checkoway 56d19ddd69 Different noisy logging. Remote debugging is painful. 2008-10-05 07:15:06 +00:00
Steve Checkoway f46a18b4e9 Add noisy logging. Will be removed shortly. 2008-10-05 07:05:33 +00:00
Steve Checkoway 6f610bc33d Add logging. 2008-10-05 05:53:53 +00:00
Steve Checkoway f92d70163c Add logging. 2008-10-05 05:53:29 +00:00
Steve Checkoway 0b7c9fff0c Fix compile by fixing for loop scoping rules. This may break in an older compiler that doesn't conform to the c++ standard. 2008-10-05 03:06:27 +00:00
Steve Checkoway 5be7c7f4e5 Fix compile. 2008-10-05 03:05:10 +00:00
Steve Checkoway 6b2aab3bbd Fix build error with smpackage. Doesn't seem to effect the SM build at all. 2008-10-05 03:03:46 +00:00
Steve Checkoway c1362d27b3 No more bold, apparently. 2008-10-05 00:51:19 +00:00
Steve Checkoway 9d8827af5a Save profiles in event mode after every song. 2008-10-04 22:33:25 +00:00
Steve Checkoway 3f7ed2593c New lines. 2008-10-04 22:30:23 +00:00
Steve Checkoway baa952b00a Blank out left and right frame. 2008-10-04 22:29:12 +00:00
Steve Checkoway 2191f4a423 Testing commit mailer. 2008-09-24 23:26:23 +00:00
Steve Checkoway 8c89de8c3d glXGetCurrentContext() returns NULL if no context has been set by glXMakeCurrent() so delay checking until after a context has been set. 2008-09-24 21:41:10 +00:00
Steve Checkoway 32caf19653 Missed commit for screenshot timing code. Sometimes this takes an absurd amount of time on OS X. 2008-09-24 21:30:41 +00:00
Steve Checkoway d33a70faa9 SetBpmFromCourse might be crashing while dereferencing something (bug 2068075). Add assert. 2008-09-24 17:33:11 +00:00
Steve Checkoway c02c613fd3 stoptweening. This _seems_ to stop the infinite recursion dialog. 2008-09-22 13:08:18 +00:00
Steve Checkoway 237fc1731e Missed commit 2008-09-22 11:50:16 +00:00
Steve Checkoway cdfa2730cf Debugging. 2008-09-22 10:26:20 +00:00
Steve Checkoway c19892861d Fix lots of lua warnings on SSMusic. I am not sure which side of the branch should actually be taken if there are not two players, so I just decided on the then branch. 2008-09-22 04:53:58 +00:00
Steve Checkoway b7b3e88a9f Fix crashes with GAMESTATE->m_iCoins. 2008-09-22 04:39:22 +00:00
Steve Checkoway a4342de0b8 Sort files, change StepsDisplay.* paths to relative to enclosing group. 2008-08-17 12:04:42 +00:00
Steve Checkoway 1e5b8dbd76 15% of the time in this function was spent dereferencing dst. Go gcc. 2008-08-11 06:17:35 +00:00
Steve Checkoway ec87939361 SDL was removed a long time ago. 2008-08-05 18:14:07 +00:00
Steve Checkoway 6654fa2e1d Mac OS X does not need glFlush() called, swapping the buffers does it implicitly. 2008-07-29 09:26:41 +00:00
Steve Checkoway f8711d2f74 Year. 2008-07-29 07:06:06 +00:00
Steve Checkoway 6acaf86466 Update. 2008-07-28 18:34:18 +00:00
Steve Checkoway 9dc61ec946 Oops, no GLIBCXX_DEBUG* anywhere. 2008-07-28 07:37:58 +00:00
Steve Checkoway e3532904d6 Add debugging. I do not really have reason to suspect that these are not sorted, but I am not sure why the assert in GameState::UpdateSongPosition() is triggering if not from this. Bugs 2004783 and 2016502. 2008-07-28 07:35:56 +00:00
Steve Checkoway a74201a013 Treat lifts like taps. This should fix assist ticks not ticking for lifts. 2008-07-28 06:26:28 +00:00
Steve Checkoway ec3d626b46 Fix hash check for course cache files. Do not attempt to calculate radar values if there are no entries. 2008-07-28 05:47:45 +00:00
Steve Checkoway 6801ad6469 Give up on DWARF, go back to stabs. 2008-07-28 04:31:32 +00:00
Steve Checkoway acb706d550 The debug version of the STL is absurdly slow. Do not enable it here. 2008-07-28 04:30:04 +00:00
Steve Checkoway d563a5f640 Make GetValueFromMap static. Also hush bogus warning about possible uninitialized use of iPage. 2008-07-28 04:15:55 +00:00
Steve Checkoway 08a504dd8d Fix extra stage crash on songs with more than one stage. Fixes bugs 1905623, 1906055, and 1879968 (probably). 2008-07-23 12:27:12 +00:00
Steve Checkoway 6d8ac95e72 Add asserts. By this point, every human player needs to have steps. 2008-07-23 12:22:24 +00:00
Steve Checkoway 148f4b57b8 Simplify a bit. 2008-07-23 11:12:07 +00:00
Steve Checkoway d7c754dca7 Fix a few lua errors. I do not actually see the time being displayed anywhere. 2008-07-22 13:37:28 +00:00
Steve Checkoway 2149e5dfc5 Pick a font for ScreenMusicScroll. 2008-07-22 13:05:19 +00:00
Steve Checkoway 145527deb5 Remove duplicate file. 2008-07-22 11:17:32 +00:00
Steve Checkoway acdc225981 Blank header. (Not sure what this should really be but the pointed to file no longer exists.) 2008-07-22 11:15:58 +00:00
Steve Checkoway 815a332ef3 Change assert to one that doesn't always succeed. 2008-07-22 11:08:26 +00:00
Steve Checkoway 6c0bb3173e Fix dialogs on OS X. 2008-07-22 11:07:32 +00:00
Steve Checkoway 44a533660d Add missing strings. 2008-07-22 11:06:41 +00:00