]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Warn the player when no physics engine exists and physical items are therefore disabled
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 19:55:49 +0000 (22:55 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 19:55:49 +0000 (22:55 +0300)
qcsrc/server/mutators/mutator_physical_items.qc

index 9dcab5b2e276cc726aad648ac48eb8d79e6544c3..60d5a0903843cabf025f46fda2fc14d89a3602c6 100644 (file)
@@ -100,8 +100,12 @@ MUTATOR_HOOKFUNCTION(item_spawning)
 
 MUTATOR_DEFINITION(mutator_physical_items)
 {
+       // check if we have a physics engine
        if not(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE"))
+       {
+               dprint("Warning: Physical items are enabled but no physics engine can be used. Reverting to old items.\n");
                return FALSE;
+       }
 
        MUTATOR_HOOK(Item_Spawn, item_spawning, CBC_ORDER_ANY);