Major refactor part 1.
This commit is contained in:
+2
-1
@@ -82,6 +82,7 @@ void main()
|
||||
|
||||
show_window("Draugnorak");
|
||||
init_flying_creature_configs();
|
||||
init_item_registry();
|
||||
|
||||
bool game_started = false;
|
||||
while (!game_started) {
|
||||
@@ -400,7 +401,7 @@ void main()
|
||||
|
||||
// Sling charge detection
|
||||
if (sling_equipped && (key_down(KEY_LCTRL) || key_down(KEY_RCTRL)) && !sling_charging) {
|
||||
if (inv_stones > 0) {
|
||||
if (get_personal_count(ITEM_STONES) > 0) {
|
||||
sling_charging = true;
|
||||
sling_charge_timer.restart();
|
||||
sling_sound_handle = p.play_stationary("sounds/weapons/sling_swing.ogg", true);
|
||||
|
||||
Reference in New Issue
Block a user