Menu

Fixed a bug, but can't comit :)

Anonymous
2019-11-08
2020-06-27
  • Anonymous

    Anonymous - 2019-11-08
    void bury_scepter(KBgame *game, int continent, word grass) {
        int i, j;
        word count = 0;
        for (j = 0; j < LEVEL_H; j++) {
            for (i = 0; i < LEVEL_W; i++) {
                if (game->map[continent][j][i] == 0x00
                || game->map[continent][j][i] == 0x80) {
                    if (count == grass) {
                        game->scepter_x = i;
                        **game->scepter_y = j;**
                        return;     
                    }
                    count++;
                }
            }
        }
    }
    

    Here was a bug, but i never worked with open source, so can't comit, getting error:
    error: remote unpack failed: unable to create temporary object directory
    To https://git.code.sf.net/p/openkb/code
    ! [remote rejected] master -> master (unpacker error)
    error: failed to push some refs to 'https://git.code.sf.net/p/openkb/code'

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.