Now using enum values instead of numbers in gswe_calculate_data_by_position()
It's just more beautiful.
This commit is contained in:
parent
cac67e57e3
commit
4f61aea449
@ -477,8 +477,8 @@ gswe_calculate_data_by_position(GsweMoment *moment, GswePlanet planet, gdouble p
|
|||||||
|
|
||||||
// If position happens to be exactly 0, this calculation yields
|
// If position happens to be exactly 0, this calculation yields
|
||||||
// GSWE_SIGN_NONE, but should be GSWE_SIGN_ARIES
|
// GSWE_SIGN_NONE, but should be GSWE_SIGN_ARIES
|
||||||
if (sign == 0) {
|
if (sign == GSWE_SIGN_NONE) {
|
||||||
sign = 1;
|
sign = GSWE_SIGN_ARIES;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sign_info = g_hash_table_lookup(gswe_sign_info_table, GINT_TO_POINTER(sign))) == NULL) {
|
if ((sign_info = g_hash_table_lookup(gswe_sign_info_table, GINT_TO_POINTER(sign))) == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user