ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/info.C
(Generate patch)

Comparing deliantra/server/common/info.C (file contents):
Revision 1.8 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.10 by pippijn, Sat Jan 6 14:42:28 2007 UTC

1/* 1/*
2 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
3 3
4 Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 5 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
5 Copyright (C) 1992 Frank Tore Johansen 6 Copyright (C) 1992 Frank Tore Johansen
6 7
7 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
118 if (i && (i % 3) == 0) 119 if (i && (i % 3) == 0)
119 { 120 {
120 str[i + j] = ' '; 121 str[i + j] = ' ';
121 j++; 122 j++;
122 } 123 }
124
123 if (bits & 1) 125 if (bits & 1)
124 str[i + j] = '1'; 126 str[i + j] = '1';
125 else 127 else
126 str[i + j] = '0'; 128 str[i + j] = '0';
129
127 bits >>= 1; 130 bits >>= 1;
128 } 131 }
132
129 str[i + j] = '\0'; 133 str[i + j] = '\0';
130 return;
131} 134}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines