diff options
author | Simon Howard | 2005-09-08 22:10:40 +0000 |
---|---|---|
committer | Simon Howard | 2005-09-08 22:10:40 +0000 |
commit | 730c726d7ea0a98c7ce960609627c6d4abd9a1cd (patch) | |
tree | 1d9f9fe6c77d7606e9a017f15b9eb31ac3d633e7 /src/i_system.c | |
parent | 90a8fb8c18d4039bb6178608f9bf7fa16ae82547 (diff) | |
download | chocolate-doom-730c726d7ea0a98c7ce960609627c6d4abd9a1cd.tar.gz chocolate-doom-730c726d7ea0a98c7ce960609627c6d4abd9a1cd.tar.bz2 chocolate-doom-730c726d7ea0a98c7ce960609627c6d4abd9a1cd.zip |
Delay calls so we don't use the entire CPU
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 95
Diffstat (limited to 'src/i_system.c')
-rw-r--r-- | src/i_system.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/i_system.c b/src/i_system.c index 93824e04..ea3b3b1b 100644 --- a/src/i_system.c +++ b/src/i_system.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: i_system.c 80 2005-09-06 22:39:43Z fraggle $ +// $Id: i_system.c 95 2005-09-08 22:10:40Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.9 2005/09/08 22:10:40 fraggle +// Delay calls so we don't use the entire CPU +// // Revision 1.8 2005/09/06 22:39:43 fraggle // Restore -nosound, -nosfx, -nomusic // @@ -52,7 +55,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: i_system.c 80 2005-09-06 22:39:43Z fraggle $"; +rcsid[] = "$Id: i_system.c 95 2005-09-08 22:10:40Z fraggle $"; #include <stdlib.h> @@ -164,6 +167,13 @@ void I_WaitVBL(int count) SDL_Delay((count * 1000) / 70); } +// Sleep for a specified number of ms + +void I_Sleep(int ms) +{ + SDL_Delay(ms); +} + byte* I_AllocLow(int length) { byte* mem; |