fix a few very small mistakes by Black and Elric: precompiler directives (#define...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Sep 2005 16:05:54 +0000 (16:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Sep 2005 16:05:54 +0000 (16:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5693 d7cf8633-e32d-0410-b094-e92efae38249

progsvm.h
snd_mem.c

index c977d7a..aae25ce 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -508,9 +508,9 @@ void PRVM_FreeString(int num);
 
 //#define PRVM_SAFENAME
 #ifndef PRVM_SAFENAME
-       #define PRVM_NAME       (prog->name)
+#      define PRVM_NAME        (prog->name)
 #else
-       #define PRVM_NAME       (prog->name ? prog->name : "Unknown prog name")
+#      define PRVM_NAME        (prog->name ? prog->name : "Unknown prog name")
 #endif
 
 // helper macro to make function pointer calls easier
index 2b061f4..281e513 100644 (file)
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -56,9 +56,9 @@ size_t ResampleSfx (const qbyte *in_data, size_t in_length, const snd_format_t*
        // General case (linear interpolation with a fixed-point fractional
        // step, 18-bit integer part and 14-bit fractional part)
        // Can handle up to 2^18 (262144) samples per second (> 96KHz stereo)
-       #define FRACTIONAL_BITS 14
-       #define FRACTIONAL_MASK ((1 << FRACTIONAL_BITS) - 1)
-       #define INTEGER_BITS (sizeof(samplefrac)*8 - FRACTIONAL_BITS)
+#      define FRACTIONAL_BITS 14
+#      define FRACTIONAL_MASK ((1 << FRACTIONAL_BITS) - 1)
+#      define INTEGER_BITS (sizeof(samplefrac)*8 - FRACTIONAL_BITS)
        else
        {
                const unsigned int fracstep = (double)in_format->speed / shm->format.speed * (1 << FRACTIONAL_BITS);