Updated floor.c and platform.c