Ver a proveniência

ensure distance is greater than 0 in CameraMoveToTarget (#3031)

pull/3032/head
kolunmi há 2 anos
committed by GitHub
ascendente
cometimento
98cb7a19a1
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      src/rcamera.h

+ 1
- 1
src/rcamera.h Ver ficheiro

@ -294,7 +294,7 @@ void CameraMoveToTarget(Camera *camera, float delta)
distance += delta;
// Distance must be greater than 0
if (distance < 0) distance = 0.001f;
if (distance <= 0) distance = 0.001f;
// Set new distance by moving the position along the forward vector
Vector3 forward = GetCameraForward(camera);

Carregando…
Cancelar
Guardar