Mercurial > projects > chipmunkd
changeset 20:f897d96cc7c9
cleanup
author | Extrawurst |
---|---|
date | Thu, 09 Dec 2010 22:20:50 +0100 |
parents | eb61cc181345 |
children | f2287962b4b7 |
files | trunk/tests/ChipmunkDemos/drawSpace.d |
diffstat | 1 files changed, 4 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/tests/ChipmunkDemos/drawSpace.d Thu Dec 09 22:20:19 2010 +0100 +++ b/trunk/tests/ChipmunkDemos/drawSpace.d Thu Dec 09 22:20:50 2010 +0100 @@ -1,23 +1,6 @@ -/* Copyright (c) 2007 Scott Lembcke - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ + +// written in the D programming language + module drawSpace; import derelict.opengl.gl; @@ -406,7 +389,7 @@ static cpHashValue hash_func(cpHashValue x, cpHashValue y, cpHashValue n) { - return cast(cpHashValue)((x*1640531513uL ^ y*2654435789uL) % n); + return cast(cpHashValue)(( (x*1640531513uL) ^ (y*2654435789uL) ) % n); } static void