Index: hdr.c
===================================================================
--- hdr.c	(revision 584)
+++ hdr.c	(revision 585)
@@ -363,7 +363,7 @@
 
 signed char raydium_hdr_texture(int texture, signed char hdr)
 {
-if(texture>=0 && texture<raydium_texture_index)
+if(texture>=0 && texture<(int)raydium_texture_index)
     {
     raydium_texture_hdr[texture]=hdr;
     return 1;
 g=raydium_ode_ObjectNearCollide;
     if(g && !g(oo1->id,oo2->id)) return;
+    if(raydium_ode_record_play_fp && raydium_ode_record_play_ghost_tag && 
+       (raydium_ode_record_play_world==oo1->id || 
+        raydium_ode_record_play_world==oo2->id ))
+        return;
     dSpaceCollide2 (o1,o2,data,&raydium_ode_near_callback);
     return;
     }
@@ -5421,6 +5426,11 @@
 raydium_log("ODE: replay: playback: index: %i step(s) and %i event(s)",raydium_ode_record_index_size,n_events);
 }
 
+void raydium_ode_record_play_ghost(signed char ghost)
+{
+raydium_ode_record_play_ghost_tag=(ghost?1:0);
+}
+
 void raydium_ode_capture_play(char *rrp_filename, signed char change_ground)
 {
 unsigned char version;